Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D90CDC6369E for ; Thu, 19 Nov 2020 15:16:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 88CA022202 for ; Thu, 19 Nov 2020 15:16:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728342AbgKSPQs (ORCPT ); Thu, 19 Nov 2020 10:16:48 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:38666 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbgKSPQs (ORCPT ); Thu, 19 Nov 2020 10:16:48 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kflft-007xDF-Qm; Thu, 19 Nov 2020 16:16:41 +0100 Date: Thu, 19 Nov 2020 16:16:41 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: Vivien Didelot , Florian Fainelli , Heiner Kallweit , Russell King - ARM Linux , "David S. Miller" , Antoine Tenart , Thomas Petazzoni , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: net: phy: Dealing with 88e1543 dual-port mode Message-ID: <20201119151641.GJ1853236@lunn.ch> References: <20201119152246.085514e1@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119152246.085514e1@bootlin.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Maxime > The way this works is that the PHY is internally configured by chaining > 2 internal PHYs back to back. One PHY deals with the Host interface and > is configured as an SGMII to QSGMII converter (the QSGMII is only used > from within the PHY), and the other PHY acts as the Media-side PHY, > configured in QSGMII to auto-media (RJ45 or Fiber (SFP)) : > > +- 88e1543 -----------------------+ > +-----+ | +--------+ +--------+ | /-- Copper (RJ45) > | |--SGMII----| Port 0 |--QSGMII--| Port 1 |----< > | | | +--------+ +--------+ | \--- Fiber > | MAC | | | > | | | +--------+ +--------+ | /-- Copper (RJ45) > | |--SGMII----| Port 2 |--QSGMII--| Port 3 |----< > +-----+ | +--------+ +--------+ | \-- Fiber > +---------------------------------+ Does this mean you need a dual port MAC as well? Do we need to configure the MUX in the MAC? Andrew