devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Samin Guo <samin.guo@starfivetech.com>
To: <linux-riscv@lists.infradead.org>, <netdev@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: "David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Emil Renner Berthing <kernel@esmil.dk>,
	Richard Cochran <richardcochran@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Peter Geis <pgwipeout@gmail.com>,
	Yanhong Wang <yanhong.wang@starfivetech.com>,
	Samin Guo <samin.guo@starfivetech.com>
Subject: [PATCH v6 3/8] dt-bindings: net: snps,dwmac: Add 'ahb' reset/reset-name
Date: Mon, 13 Mar 2023 11:46:40 +0800	[thread overview]
Message-ID: <20230313034645.5469-4-samin.guo@starfivetech.com> (raw)
In-Reply-To: <20230313034645.5469-1-samin.guo@starfivetech.com>

According to:
stmmac_platform.c: stmmac_probe_config_dt
stmmac_main.c: stmmac_dvr_probe

dwmac controller may require one (stmmaceth) or two (stmmaceth+ahb)
reset signals, and the maxItems of resets/reset-names is going to be 2.

The gmac of Starfive Jh7110 SOC must have two resets.
it uses snps,dwmac-5.20 IP.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
---
 .../devicetree/bindings/net/snps,dwmac.yaml          | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 01b056ab71f7..e4519cf722ab 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -133,12 +133,16 @@ properties:
         - ptp_ref
 
   resets:
-    maxItems: 1
-    description:
-      MAC Reset signal.
+    minItems: 1
+    items:
+      - description: GMAC stmmaceth reset
+      - description: AHB reset
 
   reset-names:
-    const: stmmaceth
+    minItems: 1
+    items:
+      - const: stmmaceth
+      - const: ahb
 
   power-domains:
     maxItems: 1
-- 
2.17.1


  parent reply	other threads:[~2023-03-13  3:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-13  3:46 [PATCH v6 0/8] Add Ethernet driver for StarFive JH7110 SoC Samin Guo
2023-03-13  3:46 ` [PATCH v6 1/8] dt-bindings: net: snps,dwmac: Add dwmac-5.20 version Samin Guo
2023-03-13  3:46 ` [PATCH v6 2/8] net: stmmac: platform: Add snps,dwmac-5.20 IP compatible string Samin Guo
2023-03-13  3:46 ` Samin Guo [this message]
2023-03-13  3:46 ` [PATCH v6 4/8] dt-bindings: net: Add support StarFive dwmac Samin Guo
2023-03-13  3:46 ` [PATCH v6 5/8] net: stmmac: Add glue layer for StarFive JH7110 SoC Samin Guo
2023-03-13  3:46 ` [PATCH v6 6/8] net: stmmac: starfive_dmac: Add phy interface settings Samin Guo
2023-03-13  3:46 ` [PATCH v6 7/8] riscv: dts: starfive: jh7110: Add ethernet device nodes Samin Guo
2023-03-13  3:46 ` [PATCH v6 8/8] riscv: dts: starfive: visionfive 2: Add configuration of gmac and phy Samin Guo
2023-03-14  0:33 ` [PATCH v6 0/8] Add Ethernet driver for StarFive JH7110 SoC Jakub Kicinski
2023-03-15  1:31   ` Guo Samin
2023-07-01 21:57     ` Aurelien Jarno
2023-07-04  1:58       ` Guo Samin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230313034645.5469-4-samin.guo@starfivetech.com \
    --to=samin.guo@starfivetech.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kernel@esmil.dk \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pgwipeout@gmail.com \
    --cc=richardcochran@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=yanhong.wang@starfivetech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).