From: Tomer Maimon <tmaimon77@gmail.com>
To: <davem@davemloft.net>, <edumazet@google.com>,
<robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
<alexandre.torgue@foss.st.com>, <peppe.cavallaro@st.com>,
<joabreu@synopsys.com>, <mcoquelin.stm32@gmail.com>,
<avifishman70@gmail.com>, <tali.perry1@gmail.com>,
<joel@jms.id.au>, <andrew@codeconstruct.com.au>,
<venture@google.com>, <yuenn@google.com>,
<benjaminfair@google.com>, <j.neuschaefer@gmx.net>
Cc: devicetree@vger.kernel.org, Tomer Maimon <tmaimon77@gmail.com>,
netdev@vger.kernel.org, openbmc@lists.ozlabs.org,
linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 1/2] dt-bindings: net: Add support NPCM dwmac
Date: Tue, 21 Nov 2023 17:17:32 +0200 [thread overview]
Message-ID: <20231121151733.2015384-2-tmaimon77@gmail.com> (raw)
In-Reply-To: <20231121151733.2015384-1-tmaimon77@gmail.com>
Add documentation to describe Nuvoton BMC NPCM dwmac driver(sgmii).
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
.../bindings/net/nuvoton,npcm8xx-sgmii.yaml | 72 +++++++++++++++++++
.../devicetree/bindings/net/snps,dwmac.yaml | 1 +
2 files changed, 73 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/nuvoton,npcm8xx-sgmii.yaml
diff --git a/Documentation/devicetree/bindings/net/nuvoton,npcm8xx-sgmii.yaml b/Documentation/devicetree/bindings/net/nuvoton,npcm8xx-sgmii.yaml
new file mode 100644
index 000000000000..6a5f2cade7c9
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/nuvoton,npcm8xx-sgmii.yaml
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/nuvoton,npcm8xx-sgmii.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nuvoton NPCM DWMAC SGMII Ethernet controller
+
+maintainers:
+ - Tomer Maimon <tmaimon77@gmail.com>
+
+select:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - nuvoton,npcm8xx-sgmii
+ required:
+ - compatible
+
+allOf:
+ - $ref: snps,dwmac.yaml#
+
+properties:
+ compatible:
+ oneOf:
+ - items:
+ - enum:
+ - nuvoton,npcm8xx-sgmii
+ - const: snps,dwmac-3.50a
+ reg:
+ items:
+ - description:
+ The first range represent DWMAC controller registers.
+ - description:
+ The second range represent PCS configuration registers.
+
+ clocks:
+ items:
+ - description: GMAC main clock
+
+ clock-names:
+ items:
+ - const: stmmaceth
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/clock/nuvoton,npcm845-clk.h>
+
+ ahb {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ gmac0: ethernet@f0802000 {
+ compatible = "nuvoton,npcm8xx-sgmii","snps,dwmac-3.50a";
+ reg = <0x0 0xf0802000 0x0 0x2000>, <0x0 0xf0780000 0x0 0x200>;
+ interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "macirq";
+ clocks = <&clk NPCM8XX_CLK_AHB>;
+ clock-names = "stmmaceth";
+ phy-mode = "rgmii-id";
+ };
+ };
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 5c2769dc689a..ba52dbc85144 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -66,6 +66,7 @@ properties:
- ingenic,x2000-mac
- loongson,ls2k-dwmac
- loongson,ls7a-dwmac
+ - nuvoton,npcm8xx-sgmii
- qcom,qcs404-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
--
2.33.0
next prev parent reply other threads:[~2023-11-21 15:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 15:17 [PATCH v1 0/2] net: stmmac: add NPCM dwmac support Tomer Maimon
2023-11-21 15:17 ` Tomer Maimon [this message]
2023-11-21 15:17 ` [PATCH v1 2/2] net: stmmac: Add NPCM support Tomer Maimon
2023-11-21 15:45 ` Russell King (Oracle)
2023-11-22 17:23 ` Tomer Maimon
2023-11-27 15:58 ` Russell King (Oracle)
2023-11-30 17:15 ` Tomer Maimon
2023-11-21 16:00 ` Andrew Lunn
2023-11-22 17:50 ` Tomer Maimon
2023-11-22 18:45 ` Andrew Lunn
2023-11-23 13:50 ` Tomer Maimon
2023-11-27 15:19 ` Tomer Maimon
2023-11-28 23:31 ` Andrew Lunn
2023-11-30 17:17 ` Tomer Maimon
2023-11-30 17:26 ` Andrew Lunn
2023-11-30 18:25 ` Tomer Maimon
2023-11-30 19:59 ` Serge Semin
2023-11-30 20:34 ` [Linux-stm32] " Maxime Chevallier
2023-12-01 16:25 ` Serge Semin
2023-11-22 2:11 ` kernel test robot
2023-11-22 4:45 ` kernel test robot
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=20231121151733.2015384-2-tmaimon77@gmail.com \
--to=tmaimon77@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew@codeconstruct.com.au \
--cc=avifishman70@gmail.com \
--cc=benjaminfair@google.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=j.neuschaefer@gmx.net \
--cc=joabreu@synopsys.com \
--cc=joel@jms.id.au \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=peppe.cavallaro@st.com \
--cc=robh+dt@kernel.org \
--cc=tali.perry1@gmail.com \
--cc=venture@google.com \
--cc=yuenn@google.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 read-only IMAP folder(s) and NNTP newsgroup(s).