Message ID | 20230721110345.3925719-1-m.felsch@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp144584vqg; Fri, 21 Jul 2023 04:47:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGG97fUvIj+i9Nwt1RBYtp4Vc8ZWcDckqUBgVtZdgVJeWCxzppXfzuRcCrJsE8HoI5gmCB3 X-Received: by 2002:a17:906:5a54:b0:993:f9b2:93c1 with SMTP id my20-20020a1709065a5400b00993f9b293c1mr1293593ejc.9.1689940065528; Fri, 21 Jul 2023 04:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689940065; cv=none; d=google.com; s=arc-20160816; b=ArK2JFNZ+gHDHc+gxwbDGRG+IRqWiM1kBJbRogpYtxn55dGiLTdtPZZpAvTYQ45VDd Io7jqVaKKyxuNEYjuEDU/uEePxB2KgmfMaJsTH8h0gPQFchMfaKQ92jA3BqzCRsorb9a MkWVOPCAefyebUoUr2d6oqTduByTn85yISsroQGCQgozbcFiBqa1GY/6WY8A1XHRwg8r ccH485XY5GWaVhXpvO4NUrtMvmNcTBlBqihqqx/lhlsn/Lq24GbtkIJJzjIseTGjRwgI GUg1k4rqdj2IiFTtqA4e+qLVYlQvy06n/iJ0Yez8hHdZNr4X2oGee9kSs68bob2H+m9P mnog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1vS1YQieIpXzSNCMdP4isLtJWQYxixPgRsQ0uczaA8o=; fh=/jmAP7gN7zembLy1LEj3LQ6EGWKPXnThWr+GY2cg3sk=; b=dbKcAnjaSP4wUTaomgIc9hqJt6jEhP6UK8i2w2qfYVNeq876WzXFUmyggcvyXrO/ac cWy4e+QVV2pkpOQSb8IvrlvsW/NGS0kvrwqYQXXrk7v1Pp5Zld10ELBl+uxvG1JXs6OW APPZ1h0oUEWp/PQez3cp7Yx1+RWi1SQzXHSFuiVVUAj37W1z3qCwpWpyPh4uKAWgMgQO BGjOMaXCur4n0JoSSJxaWoxcKvgcp3pQap8SIBdyY3cr4k1H2vo0TufAANsovU0Au3En Nfubmx8gsM05krxm+QcaYdlIj8PiB2h58m+YrFRZCSGwVL8HTzlvoRLO3guL/4ERXoXm QO3g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170906039000b0099279210464si1894358eja.420.2023.07.21.04.46.58; Fri, 21 Jul 2023 04:47:45 -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 S231441AbjGULIz (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Fri, 21 Jul 2023 07:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbjGULIE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 07:08:04 -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 1D8D0449A for <linux-kernel@vger.kernel.org>; Fri, 21 Jul 2023 04:04:33 -0700 (PDT) Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from <m.felsch@pengutronix.de>) id 1qMnvK-0000Ly-Jj; Fri, 21 Jul 2023 13:03:50 +0200 From: Marco Felsch <m.felsch@pengutronix.de> To: 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, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next v4 1/3] dt-bindings: net: snps,dwmac: add phy-supply support Date: Fri, 21 Jul 2023 13:03:43 +0200 Message-Id: <20230721110345.3925719-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772030594162766411 X-GMAIL-MSGID: 1772030594162766411 |
Series |
[net-next,v4,1/3] dt-bindings: net: snps,dwmac: add phy-supply support
|
|
Commit Message
Marco Felsch
July 21, 2023, 11:03 a.m. UTC
Document the common phy-supply property to be able to specify a phy regulator. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Changelog: v4: - no changes v3: - no changes v2 - add ack-by Documentation/devicetree/bindings/net/snps,dwmac.yaml | 3 +++ 1 file changed, 3 insertions(+)
Comments
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. > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > 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. Rob
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 <vendor>,phy-supply nor <ip-vendor>,phy-supply, therefore I thought this is common. > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > --- > > 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
Hi Rob, On 23-07-24, Marco Felsch wrote: > 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 <vendor>,phy-supply nor <ip-vendor>,phy-supply, > therefore I thought this is common. any further comments else I would like to gentle ping this series. Regards, Marco > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > > --- > > > 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 > >
Hi, On 23-08-29, Marco Felsch wrote: > > Hi, > > gentle ping on this series. ping++ > On 23-07-21, Marco Felsch wrote: > > Document the common phy-supply property to be able to specify a phy > > regulator. > > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > --- > > 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 > > + > > snps,axi-config: > > $ref: /schemas/types.yaml#/definitions/phandle > > description: > > -- > > 2.39.2 > > > > > > > >
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 + snps,axi-config: $ref: /schemas/types.yaml#/definitions/phandle description: