From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 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 1692FC63697 for ; Thu, 19 Nov 2020 15:48:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 900FE20643 for ; Thu, 19 Nov 2020 15:48:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CBdVZEPn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 900FE20643 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ef9n8qMCslkGLo1PlXWfRXSTcbTjwLUWs0c/rLGAqyc=; b=CBdVZEPnKnNqSdD+3SyEPba4F ju3FIJPIj/01yzfaZjbPy5W84eHadQuAtHwc+PTPQvu1TbLq6YsSBOXzAQhWeiWX5FzKf58+3WBgL TbGCwnvB4j37dV4nF6GatSlSyyxM/xrrX0S9UP/kWrpKAfIYW7kLYUWcbWVoH8+1rOxBr/lAtGOBk +ZAMyKtytCrOQb0XOqYkBDw/dFmH/gSY53lZzFPMFzkyTM+iuorjbcjBiW9HDxpLUO0vsTgDC+zZ1 Bk9Kh0xqMPzzDCXK01Jy14TozcBChdWrWFhr0TjkQxz6w65xvM603oadp9Ug2DdAFP2zh+B0DmBtN Rp7if0sJw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfm8v-0004Vi-Bs; Thu, 19 Nov 2020 15:46:41 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfm88-0004AQ-2e for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2020 15:45:59 +0000 X-Originating-IP: 90.55.104.168 Received: from bootlin.com (atoulouse-258-1-33-168.w90-55.abo.wanadoo.fr [90.55.104.168]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 6F969E000D; Thu, 19 Nov 2020 15:45:45 +0000 (UTC) Date: Thu, 19 Nov 2020 16:45:44 +0100 From: Maxime Chevallier To: Andrew Lunn Subject: Re: net: phy: Dealing with 88e1543 dual-port mode Message-ID: <20201119164544.69b87307@bootlin.com> In-Reply-To: <20201119151641.GJ1853236@lunn.ch> References: <20201119152246.085514e1@bootlin.com> <20201119151641.GJ1853236@lunn.ch> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201119_104552_301542_A5CC9AC3 X-CRM114-Status: GOOD ( 14.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Fainelli , netdev@vger.kernel.org, Antoine Tenart , Russell King - ARM Linux , Vivien Didelot , Thomas Petazzoni , "David S. Miller" , linux-arm-kernel@lists.infradead.org, Heiner Kallweit Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Andrew, On Thu, 19 Nov 2020 16:16:41 +0100 Andrew Lunn wrote: >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? No, it's my schematic that is misleading in that case :) The 2 ports are independent of each other. There isn't any configuration on the MAC part for that setup. Thanks, Maxime -- Maxime Chevallier, Bootlin Embedded Linux and kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel