Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1329062rdb; Sat, 18 Nov 2023 11:37:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqSYq5qSwgZv/LPdDeh1KUb9ZNlyepev7WQh70FJ1HNZjIDPgtgD+t6h5K0hm8jgNSnsWv X-Received: by 2002:a05:6870:44d3:b0:1e9:dae7:f58a with SMTP id t19-20020a05687044d300b001e9dae7f58amr3677124oai.22.1700336259047; Sat, 18 Nov 2023 11:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700336259; cv=none; d=google.com; s=arc-20160816; b=BeZpzTEkgSBg6AXb3U+/GHoxbHmoNg1QerytUy8x7YTHhyYD/LPfpgsoUywO5ckVQd mQ9CI3vFWGmiNtrf5AKXi/P5IARS4VrK6Effc6zVnD0fXsLjjVH+3mbGu/kkXrrFboV6 ylHoh6FhNdh962ULxkWEZIELqozCuID5SMKFrLwXICQ5hWT3ksHgVnnp3ydSvDIdwl12 RFnEuxLKmJmJ3nMVBmlnMVnsJzWuvbXIuY+5P1E3cbOOTUCgeA7DGueEaheaUrPvh5+I +LtAY6dWpVjvvMCTlU+6IQqTcLZbHgcg6pPgK8OSzFlHbEYEQvBMJWy9vqtQ3xKH3r/S QGQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k1aqD8s308HU/CtiyzCh6FFV6oCvcUqmf4QRDj/tSmU=; fh=Pwj75hNZiMgNQNhn17ZuGZIhgdvZvmvEShJkeGPd8yk=; b=xF9N79dqyJzcNSWVQ3bdHHq3AyNVGMjdqXfhrfSBITrjI9019i2IeJDsS7XWsGBW7a quh50H+FUqY3oskXZ9HLkcM+bwYAbXxWRal2qxgXhQusaC6ZljbF3Fw1jMV1dN+Bs8t8 7RJfgBNcZISFH3bTCbXzk8CFhqnW+tLC3EDJvcpsqggccku3TTssZTOAjMf5xivlDYSN CsRyr99W0gobkbBiYvO8qVa4/kzA757f59FJo9aBPNe12Mx2pGZvrOLV1hMrUWIQYMFB Ww8QG+9xI3Cy08vkBKeNmQPw5NDoyjFcG1Nkj3DkgHvnJEPdmPJKEHLpZ4AxN/K4ihLj 3qEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FfGMdm7P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a1-20020a17090a8c0100b0027d11201a11si7215237pjo.170.2023.11.18.11.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 11:37:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FfGMdm7P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 56BC9807C655; Sat, 18 Nov 2023 11:36:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbjKRTgc (ORCPT + 99 others); Sat, 18 Nov 2023 14:36:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbjKRTgN (ORCPT ); Sat, 18 Nov 2023 14:36:13 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBB126A1; Sat, 18 Nov 2023 11:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=k1aqD8s308HU/CtiyzCh6FFV6oCvcUqmf4QRDj/tSmU=; b=FfGMdm7P9JHeq7crmQS6ocDyYq rR10RxYawbG2+cH5LYzCM47xsVZ6YLwEr5PZtrC22xvfLB/KVjUW6mOSDqINsbHd2JVfgCGP9er6o V/GpwNX6GnlnX1kUTjAeZvw/crRzQtD0tPZd7cbLp2YtuSuGMkEbHCugn2Wh6rGN4V2H4iZaicUhW b8zxwi3lEvgen7q6kaB2Y4qGMrGQVAPOFaGjIb4S/4jFt4aDiMcxdZF08zshRWFheZ3lir9oJzTnK hIkx4wX4LmrIzTeAdzJCqgCo0GJw4fItZrHAnMjG+pbkVqmMxmPjxh2l6D47pSZU3sgCyoIVjEJHy p6b3zy9Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46872) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r4R4W-0003vd-0d; Sat, 18 Nov 2023 19:33:40 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r4R4U-0001OK-SV; Sat, 18 Nov 2023 19:33:38 +0000 Date: Sat, 18 Nov 2023 19:33:38 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Luo Jie , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hkallweit1@gmail.com, corbet@lwn.net, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v5 3/6] net: phy: at803x: add QCA8084 ethernet phy support Message-ID: References: <20231118062754.2453-1-quic_luoj@quicinc.com> <20231118062754.2453-4-quic_luoj@quicinc.com> <1eb60a08-f095-421a-bec6-96f39db31c09@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1eb60a08-f095-421a-bec6-96f39db31c09@lunn.ch> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 18 Nov 2023 11:36:34 -0800 (PST) On Sat, Nov 18, 2023 at 04:51:42PM +0100, Andrew Lunn wrote: > On Sat, Nov 18, 2023 at 02:27:51PM +0800, Luo Jie wrote: > > Add qca8084 PHY support, which is four-port PHY with maximum > > link capability 2.5G, the features of each port is almost same > > as QCA8081 and slave seed config is not needed. > > > > Three kind of interface modes supported by qca8084. > > PHY_INTERFACE_MODE_10G_QXGMII, PHY_INTERFACE_MODE_2500BASEX and > > PHY_INTERFACE_MODE_SGMII. > > Sorry for joining the conversation late. > > I'm trying to get my head around QXGMII. Let me describe what i think > is happening, and then you can correct me.... > > You have 4 MACs, probably in a switch. The MII interfaces from these > MACs go into a multiplexer, and out comes QXGMII? You then have a > SERDES interface out of the switch and into the PHY package. Inside > the PHY package there is a demultiplexor, giving you four MII > interfaces, one to each PHY in the package. > > If you have the PHY SERDES running in 2500BaseX, you have a single > MAC, no mux/demux, and only one PHY is used? The other three are idle. > Same from SGMII? > > So the interface mode QXGMII is a property of the package. It is not > really a property of one PHY. Having one PHY using QXGMII and another > SGMII does not work? 10G_QXGMII is defined in the Cisco USXGMII multi-port document as one of several possibilities for a USXGMII-M link. The Cisco document can be a little confusing beause it states that 10G_QXGMII supports 10M, 100M, 1G and 2.5G, and then only talks about a 10G and 100M/1G MAC. For 10G_QXGMII, there are 4 MAC interfaces. These are connected to a rate "adaption" through symbol replication block, and then on to a clause 49 PCS block. There is then a port MUX and framing block, followed by the PMA serdes which communicates with the remote end over a single pair of transmit/receive serdes lines. Each interface also has its own clause 37 autoneg block. So, for an interface to operate in SGMII mode, it would have to be muxed to a different path before being presented to the USXGMII-M block since each interface does not have its own external data lane - thus that's out of scope of USXGMII-M as documented by Cisco. Hope this helps. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!