Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2905749rwo; Mon, 24 Jul 2023 03:17:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPy8z5YY28Nyx7a5t6S7L46BUSssaIPLY6uhL4RLkEjDXROCdhCAw2f9IZ5Yx8CuO+fwdm X-Received: by 2002:a05:6a20:1591:b0:137:db14:e87c with SMTP id h17-20020a056a20159100b00137db14e87cmr8186487pzj.13.1690193831774; Mon, 24 Jul 2023 03:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690193831; cv=none; d=google.com; s=arc-20160816; b=P6i20MBOi4+8fiRngGdOtgkpS7MlGNyMcIyV2wSVc17Q1PruQFR7pNLnacYWXsvC/z +ykluXlMu/4bR0/WGFrbgpeVA2dp7Oka9d860BXJ7acvHV42qDnciq+W5GUHpKlZU6iW bNPudtgj4lwLkzAfOSNnUnbwYmUo8ljqzcUyOQB+O9TjrGNJhbypjCYrU9ieduFRjgOK PEMykeaSZW0xXQBASEsY8kn2hN61E5cgmyxGKWt/M5RJHgCASiBAGipxEjZcRkSIG7E7 1QFwbzkh1b3Yy//6QVaWBXeCs4x6ZSH2JGJA3WHYLiTap8gdfmZHw4BtX4MYVvJCIuvv j+4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=c839ZqTMxO3PFYXjxeXMEHY6oGHmpl8uIHpzEi5g/z8=; fh=4eL24OR9PIhnJQGQdjbcNev1rRpCegRDzViipRxIXUM=; b=1HWDXmjEsbKr3DxrNZpCX790Fg81MYj2PBrAWFQtl9d3GaafBhovVaewB0rhjaayiw 8Td5/SbYHMvQM2GSX/e7Xe9/3w93PyX3rdQvHLKfrDb48QX1/3tYL7dFv7hTmudXrW9z Q+qfkpLha72mTN4iWhHotl433PkRCr8vr1+29f1WzFT8rmgsYwpFmZTgHW0nNpekILL2 JMZcUD1xmUOzL7/igBefUCfPnOutNKUkRR1JHnSUIm2UD2SVBTkglspArwhMtZavB8TX OcJcUhcRXwDcDc+1U6IVvmuc7k/BKfV1/PDTbnWkYwr9YQ6FGbaacq569VcI28taRrC7 pJ7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a056a001bc500b0066e4ceca385si8374766pfw.247.2023.07.24.03.16.59; Mon, 24 Jul 2023 03:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjGXJkU (ORCPT + 99 others); Mon, 24 Jul 2023 05:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjGXJkT (ORCPT ); Mon, 24 Jul 2023 05:40:19 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B421A5 for ; Mon, 24 Jul 2023 02:40:18 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qNs2n-0007xi-CP; Mon, 24 Jul 2023 11:39:57 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qNs2j-0000XN-1d; Mon, 24 Jul 2023 11:39:53 +0200 Date: Mon, 24 Jul 2023 11:39:53 +0200 From: Marco Felsch To: Rob Herring Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next v4 1/3] dt-bindings: net: snps,dwmac: add phy-supply support Message-ID: <20230724093953.h7vs6gzrpk3ieznv@pengutronix.de> References: <20230721110345.3925719-1-m.felsch@pengutronix.de> <20230721142433.GA1012219-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230721142433.GA1012219-robh@kernel.org> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 23-07-21, Rob Herring wrote: > On Fri, Jul 21, 2023 at 01:03:43PM +0200, Marco Felsch wrote: > > Document the common phy-supply property to be able to specify a phy > > regulator. > > What common property? I don't see any such property in > ethernet-controller.yaml. Not in ethernet-controller.yaml but there are at least a few user of this binding: - allwinner,sun4i-a10-mdio.yaml - allwinner,sun7i-a20-gmac.yaml - allwinner,sun8i-a83t-emac.yaml - fsl,fec.yaml - rockchip-dwmac.yaml - rockchip,emac.yaml Also there is no ,phy-supply nor ,phy-supply, therefore I thought this is common. > > Signed-off-by: Marco Felsch > > Acked-by: Krzysztof Kozlowski > > --- > > Changelog: > > v4: > > - no changes > > v3: > > - no changes > > v2 > > - add ack-by > > > > Documentation/devicetree/bindings/net/snps,dwmac.yaml | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > index ddf9522a5dc23..847ecb82b37ee 100644 > > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > @@ -160,6 +160,9 @@ properties: > > can be passive (no SW requirement), and requires that the MAC operate > > in a different mode than the PHY in order to function. > > > > + phy-supply: > > + description: PHY regulator > > Is this for an serdes, sgmii, etc. type phy or ethernet phy? Either way, > this property belongs in the PHY's node because it is the PHY that has > supply connection. I'm guessing you put this here for the latter case > because ethernet PHYs on MDIO are "discoverable" except for the small > problem that powering them on is not discoverable. All kind of ethernet phys connected to you etherent MAC which need to be power controlled by software. You're right this sould belong to the PHY node (as Krzysztof already mentioned) but this isn't the case yet. As you can see there are at least 6 user of the exact same binding. Regards, Marco