Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp317334rdb; Sat, 16 Dec 2023 09:17:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfCoDwfpBZCLzS6F7bUSvy7rwg8EZDkmECvrmATQ9acz2CiwUs1TOMOUeKnjQoc9HLjJjl X-Received: by 2002:ac8:5846:0:b0:425:9651:4211 with SMTP id h6-20020ac85846000000b0042596514211mr19175573qth.16.1702747078474; Sat, 16 Dec 2023 09:17:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702747078; cv=none; d=google.com; s=arc-20160816; b=SlkosRRAswqutCwgeQO1GphLbGbqN93ZkG0ITTvCJDQnNnhKbt7Zq1Cl2h8rL1SPYG JMVYcsyn9bmofqCVt55Gsy9XIk4r3Ap0bOlla4yStEhxp58gM892yJlGqR/SHr/zanWd mDTGmw4p38yaDt1KeYuCYvCuw6n+DmW8CkCmL86vldK4oJ2mVQZVTEX3r0xEHCceAurV NatoxOy+RyilfYdML0ydGt828kuXAEzn/hzak39sD8mVYqKOEJuM4XBZ5MYF2CV3Ied9 kn9FmXUEcMLX3Zbhhr5LSIMvvNML18R8F4YPgU6fLmyPetMxPoCziYPmXSTLEE0esAgN gNqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FHjww8/JwxqxsdngrNpGSnmmTqKJPwi9ZbW08puInak=; fh=Ot3/GmhK+MdcP2CpgMJ7LHScq/qBlRG/5bblxDp7Jq0=; b=WO0dnDS7ftCkao4ZO0YnLjxIA4cfYzQwQtVBYOBGCIf0Hcd6eA0sE9v8CRezXQaCjV rolN1/df11g5zwH3qs9VcZ7IKvN84VbLaAW7mpBBYAzJuLCG/8v+/9J+mOHZ0S3fthYP 5LV8A8shRtnEp+5nQnmiTt1r0M7AeuPoKnHCwut8cogZ853RUR7qKYwtwXEhuwBehMtQ hfkmLyTwhGo6iTquzKpLRfZ/51S7TZwLy6fLH/v7/ewVZg4Nul0i9S33w0SFGRUwkfAv u3KzyM3W6Djsrbx91kVcXidkI6c7SJwj63GC/NlpTrLnkjdQTj+L1LfWEmTJPVty70Z5 Mc8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tv5Il2gL; spf=pass (google.com: domain of linux-kernel+bounces-2292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fa14-20020a05622a4cce00b004237b1fca88si21755103qtb.737.2023.12.16.09.17.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 09:17:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tv5Il2gL; spf=pass (google.com: domain of linux-kernel+bounces-2292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D2321C219D8 for ; Sat, 16 Dec 2023 17:17:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F0A730D17; Sat, 16 Dec 2023 17:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="tv5Il2gL" X-Original-To: linux-kernel@vger.kernel.org Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37C5731728; Sat, 16 Dec 2023 17:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=FHjww8/JwxqxsdngrNpGSnmmTqKJPwi9ZbW08puInak=; b=tv5Il2gL1C6mALplFJ6c1DXf// h6AVYnapE5sTimAMquEf+yv4USmN58k4jF3KtOT7PCIIZGbG88KlHM8Z8ly06olorQU5VeOCtdUcL Yem92xDcwLs9nI2hvnJ5qNiYvk0mEgnvycqc7rwNqPwCQLCEKWKJbFriQUyS9N37Ju20=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rEYI6-0036tz-LE; Sat, 16 Dec 2023 18:17:30 +0100 Date: Sat, 16 Dec 2023 18:17:30 +0100 From: Andrew Lunn To: Jie Luo Cc: "Russell King (Oracle)" , Krzysztof Kozlowski , 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, p.zabel@pengutronix.de, f.fainelli@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v8 14/14] dt-bindings: net: ar803x: add qca8084 PHY properties Message-ID: References: <20231215074005.26976-1-quic_luoj@quicinc.com> <20231215074005.26976-15-quic_luoj@quicinc.com> <4cb2bd57-f3d3-49f9-9c02-a922fd270572@lunn.ch> <3a40570b-40bf-4609-b1f4-a0a6974accea@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a40570b-40bf-4609-b1f4-a0a6974accea@quicinc.com> > Yes, Russell, i will add an example in the DT doc in the next patch set. > The following is the device node used for the current qca8084 PHY > code design. If you look at Christians work, this would be expressed differently: > mdio: mdio@90000 { > ethernet-phy-package@1 { > > compatible = "qca,qca8084-package"; > > qcom,phy-work-mode = <2>; > clocks = <&qca8k_nsscc NSS_CC_APB_BRIDGE_CLK>, > <&qca8k_nsscc NSS_CC_AHB_CLK>, > <&qca8k_nsscc NSS_CC_SEC_CTRL_AHB_CLK>, > <&qca8k_nsscc NSS_CC_TLMM_CLK>, > <&qca8k_nsscc NSS_CC_TLMM_AHB_CLK>, > <&qca8k_nsscc NSS_CC_CNOC_AHB_CLK>, > <&qca8k_nsscc NSS_CC_MDIO_AHB_CLK>, > <&qca8k_nsscc NSS_CC_MDIO_MASTER_AHB_CLK>, > <&qca8k_nsscc NSS_CC_SRDS0_SYS_CLK>, > <&qca8k_nsscc NSS_CC_SRDS1_SYS_CLK>; > clock-names = "apb_bridge", > "ahb", > "sec_ctrl_ahb", > "tlmm", > "tlmm_ahb", > "cnoc_ahb", > "mdio_ahb", > "mdio_master_ahb", > "srds0_sys", > "srds1_sys"; > resets = <&qca8k_nsscc NSS_CC_SRDS0_SYS_ARES>, > <&qca8k_nsscc NSS_CC_SRDS1_SYS_ARES>, > <&qca8k_nsscc NSS_CC_DSP_ARES>; > reset-names = "srds0_sys", > "srds1_sys"; > All the properties above are common to the package as a whole. Then follow the four individual PHYs, and the properties which are specific to each one. > > ethernet-phy@0 { > compatible = "ethernet-phy-id004d.d180"; > reg = <0>; > clocks = , > clock-names = <"gephy_sys">; > resets = <&qca8k_nsscc NSS_CC_GEPHY0_SYS_ARES>, > <&qca8k_nsscc NSS_CC_GEPHY0_ARES>; > reset-names = "gephy_sys", "gephy_soft"; > }; > > > ethernet-phy@1 { > compatible = "ethernet-phy-id004d.d180"; > reg = <1>; > clocks = , > clock-names = <"gephy_sys">; > resets = <&qca8k_nsscc NSS_CC_GEPHY1_SYS_ARES>, > <&qca8k_nsscc NSS_CC_GEPHY1_ARES>; > reset-names = "gephy_sys", "gephy_soft"; > > }; > > ethernet-phy@2 { > compatible = "ethernet-phy-id004d.d180"; > reg = <2>; > clocks = , > clock-names = <"gephy_sys">; > resets = <&qca8k_nsscc NSS_CC_GEPHY2_SYS_ARES>, > <&qca8k_nsscc NSS_CC_GEPHY2_ARES>; > reset-names = "gephy_sys", "gephy_soft"; > > }; > > ethernet-phy@3 { > compatible = "ethernet-phy-id004d.d180"; > reg = <3>; > clocks = , > clock-names = <"gephy_sys">; > reset-names = "gephy_sys", "gephy_soft"; > }; > }; Andrew