Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1035166rdh; Fri, 24 Nov 2023 04:02:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPH3/phwL57JmpwYktlXdkKg4vw42ZEG8DgXEjzShXU12uSC5AzsJ/XJ0hTXYfzHvOlr00 X-Received: by 2002:a05:6870:1691:b0:1c5:56f:ac08 with SMTP id j17-20020a056870169100b001c5056fac08mr3095317oae.12.1700827371671; Fri, 24 Nov 2023 04:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700827371; cv=none; d=google.com; s=arc-20160816; b=dzJc5MtuiAoaQz8HXMOC6ZOABfTn3+uqPL9rusvycVtT+faxhTs1+Ti2k7dMGuJv2c grE3RhFDIGa3v1xxt+T/tya4ynYOZ14hC16Okjun/V+385lW5rxYoN6HlU2+Z6iV4MLP nlNZF5WuwDnGjkOB1Sryaypn7Z7ULflfO5pyAhSSpWDnPCHL1F7b6s0l5J8SYMf+NHNZ hFZzZ1eYVrkBPACSHo6J2pmYuEK8ETh/8IgZnYoA+iqZA4WJp7YikL6uwaaEkIASKj2l lVF8jb/CsghWdAY5C3ZW4NGF4n2kWu7xcM59kZuCqYiATmE8u8hJkoxNCQAkC1JcYXer 2k+g== 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=jXK3bax0cfz5rSkvK5+ePqNa/iax3Z0ee0GmtmgkQcE=; fh=gQQxQWjanL6tviTj2IyFL6p+UKI6lsZHy/IvVNCcM4c=; b=k9czFswNu8ibjuWJBEDrYt5u5Tl9sAjSjxvjgKBlTFhGwNZfRNW0xfl/S2wHFTQavd +f50qE+sm40YlJgyD4ioRA359Ky/TpeOLTWiDHO9JtqNNXyrte8GSir7ZCqk+z3ORQ4+ jaYTJRFNwyHUjzxa6U2ThmhP9gxXEDUpNkbMUAl55cQttW0RSK0zUeP4oYlrKZiQpvJ4 JQtXvbSOD2ILsXX+cTcE2ohOW8zx2MkY2gP6gO4gVzCanJZJMoTr/RfJJ2C2qH2aBF1d dU2GW4YYR2Z5jeKPYOL5KcCP2p9ArecNEwHyNR1d0RAzsaUguJmeJ/cgAWQXr4RpsP2x 3wIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=HfjakhJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s38-20020a05683043a600b006b899ca0249si1304668otv.333.2023.11.24.04.02.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 04:02:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=HfjakhJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 9CE18804C216; Fri, 24 Nov 2023 04:02:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbjKXMCc (ORCPT + 99 others); Fri, 24 Nov 2023 07:02:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbjKXMCb (ORCPT ); Fri, 24 Nov 2023 07:02:31 -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 0A22310E7; Fri, 24 Nov 2023 04:02:34 -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=jXK3bax0cfz5rSkvK5+ePqNa/iax3Z0ee0GmtmgkQcE=; b=HfjakhJYxwThKIpbkYB7na4BGn 09jJNyocLmM4DTc/n7jVdLxTtyi5M0lY2kAT06SQr+/haeCOIbaf72gz8L9uFnjwocQ76fYhuHpa6 njop1sO4aVCJ+tOTlfnDnzGDUq886m8WDWpUfzjH40ooiCrl6OLI55rE8iUN99IEPwTLJ2tUJ8XBv WN+NNiYlDhvoeUF232CwwkcZbT8LmbkDWAiqOm3t5Zi64b7vzksL3S3kO5nfNjM0mnT1FyRUe9jjT P3HgWt8qLR6mZTnEJk3Pn9h6T9fzTkR6xeAlbxAUc669BqQQoMwI3RT3RM19tCezfx2c3U/83tb7V RJh/82gg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42224) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r6Uss-0002pP-25; Fri, 24 Nov 2023 12:02:10 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r6Usp-0007DH-It; Fri, 24 Nov 2023 12:02:07 +0000 Date: Fri, 24 Nov 2023 12:02:07 +0000 From: "Russell King (Oracle)" To: Jie Luo Cc: Christian Marangi , Andrew Lunn , Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , Vladimir Oltean , Harini Katakam , Simon Horman , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next RFC PATCH 03/14] dt-bindings: net: document ethernet PHY package nodes Message-ID: References: <20231121144244.GA1682395-robh@kernel.org> <655e4939.5d0a0220.d9a9e.0491@mx.google.com> <6a030399-b8ed-4e2c-899f-d82eb437aafa@lunn.ch> <655f2ba9.5d0a0220.294f3.38d8@mx.google.com> <655fa905.df0a0220.49d9b.7afd@mx.google.com> <367c0aea-b110-4e3f-a161-59d27db11188@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <367c0aea-b110-4e3f-a161-59d27db11188@quicinc.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Fri, 24 Nov 2023 04:02:48 -0800 (PST) On Fri, Nov 24, 2023 at 07:49:27PM +0800, Jie Luo wrote: > > > On 11/24/2023 3:33 AM, Christian Marangi wrote: > > On Thu, Nov 23, 2023 at 03:57:58PM +0100, Andrew Lunn wrote: > > > On Thu, Nov 23, 2023 at 02:35:31PM +0000, Russell King (Oracle) wrote: > > > > On Thu, Nov 23, 2023 at 03:27:05PM +0100, Andrew Lunn wrote: > > > > > > Just to be more precise qca807x can operate in 3 different mode: > > > > > > (this is controlled by the MODE_CFG bits) > > > > > > > > > > > - QSGMII: 5 copper port > > > > > > > > > > 4 slots over QSGMII, plus the second SERDES is connected to the MAC > > > > > using SGMII/1000BaseX? > > > > > > > > > > > - PSGMII: 5 copper port > > > > > > > > > > 5 slots over QSGMII, the second SERDES is idle? > > > > > > > > > > > - PSGMII: 4 copper port + 1 combo (that can be both fiber or copper) > > > > > > > > > > 5 slots over QSGMII, with the second SERDES connected to an SFP cage. > > > > > > > > > > Are ports 1-4 always connected to the P/Q SGMII. Its only port 5 which > > > > > can use the second SERDES? > > > > > > > > I think what would really help here is if there was an ascii table to > > > > describe the configurations, rather than trying to put it into words. > > > > > > Yes. > > > > > > And also for ipq4019. We need to merge these two threads of > > > conversation, since in the end they are probably the same driver, same > > > device tree etc. > > > > > > > For everyone that missed Robert response in patch 12 let me quote him > > also here. > > > > " > > Hi Andrew, > > I think that the description is confusing. > > QCA807x supports 3 different modes: > > 1. PSGMII (5 copper ports) > > 2. PSGMII (4 copper ports + 1 combo port) > > 3. QSGMII+SGMII > > > > So, in case option 2 is selected then the combo port can also be used for > > 1000Base-X and 100Base-FX modules or copper and it will autodetect the > > exact media. > > This is supported via the SFP op-s and I have been using it without issues > > for a while. > > > > I have not tested option 3 in combination with SFP to the copper > > module so I cant > > say whether that works. > > For the option3, the last PHY works on SGMII mode, then it can't be > used with SFP, only copper is supported in this mode. So, from what you've written, and looking at the PDF for QCA8075: First Serdes mode Second Serdes mode Option 1 PSGMII for copper Disabled ports 0-4 Option 2 PSGMII for copper 1000BASE-X / 100BASE-FX ports 0-4 Option 3 QSGMII for copper SGMII for ports 0-3 copper port 4 In all cases, ports 0-4 have a copper (baseT/baseTx/baseTe) port available. This is a much easier to understand presentation than writing out a longwinded description of the three modes. Please include the table and the statement below the table in the commit description as that is necessary to describe the hardware setup being addressed in these patches. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!