public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Neil Armstrong <narmstrong@baylibre•com>
To: davem@davemloft•net, kuba@kernel•org
Cc: netdev@vger•kernel.org, linux-oxnas@groups•io,
	linux-arm-kernel@lists•infradead.org,
	linux-kernel@vger•kernel.org,
	Neil Armstrong <narmstrong@baylibre•com>
Subject: [PATCH arm-soc-next v2 3/3] ARM: dts: ox810se: Add Ethernet support
Date: Tue,  4 Jan 2022 15:56:46 +0100	[thread overview]
Message-ID: <20220104145646.135877-4-narmstrong@baylibre.com> (raw)
In-Reply-To: <20220104145646.135877-1-narmstrong@baylibre.com>

Add nodes for the embedded Synopsys DWMAC Ethernet controller.

Signed-off-by: Neil Armstrong <narmstrong@baylibre•com>
---
 arch/arm/boot/dts/ox810se-wd-mbwe.dts |  4 ++++
 arch/arm/boot/dts/ox810se.dtsi        | 18 ++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/ox810se-wd-mbwe.dts b/arch/arm/boot/dts/ox810se-wd-mbwe.dts
index 7e2fcb220aea..c59e06ff2423 100644
--- a/arch/arm/boot/dts/ox810se-wd-mbwe.dts
+++ b/arch/arm/boot/dts/ox810se-wd-mbwe.dts
@@ -103,6 +103,10 @@ rtc0: rtc@48 {
 	};
 };
 
+&etha {
+	status = "okay";
+};
+
 &uart1 {
 	status = "okay";
 
diff --git a/arch/arm/boot/dts/ox810se.dtsi b/arch/arm/boot/dts/ox810se.dtsi
index 0755e5864c4a..96c0745f7b70 100644
--- a/arch/arm/boot/dts/ox810se.dtsi
+++ b/arch/arm/boot/dts/ox810se.dtsi
@@ -81,6 +81,24 @@ soc {
 		ranges;
 		interrupt-parent = <&intc>;
 
+		etha: ethernet@40400000 {
+			compatible = "oxsemi,ox810se-dwmac", "snps,dwmac";
+			reg = <0x40400000 0x2000>;
+			interrupts = <8>;
+			interrupt-names = "macirq";
+			mac-address = [000000000000]; /* Filled in by U-Boot */
+			phy-mode = "rgmii";
+
+			clocks = <&stdclk 6>, <&gmacclk>;
+			clock-names = "gmac", "stmmaceth";
+			resets = <&reset 6>;
+
+			/* Regmap for sys registers */
+			oxsemi,sys-ctrl = <&sys>;
+
+			status = "disabled";
+		};
+
 		apb-bridge@44000000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
-- 
2.25.1


  parent reply	other threads:[~2022-01-04 14:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04 14:56 [PATCH v2 0/3] ARM: ox810se: Add Ethernet support Neil Armstrong
2022-01-04 14:56 ` [PATCH net-next v2 1/3] dt-bindings: net: oxnas-dwmac: Add bindings for OX810SE Neil Armstrong
2022-01-12  1:23   ` Rob Herring
2022-01-04 14:56 ` [PATCH net-next v2 2/3] net: stmmac: dwmac-oxnas: Add support " Neil Armstrong
2022-01-04 14:56 ` Neil Armstrong [this message]
2022-01-08  3:22 ` [PATCH v2 0/3] ARM: ox810se: Add Ethernet support Jakub Kicinski
2022-01-12 17:36 ` Jakub Kicinski
2022-01-13  9:12 ` Neil Armstrong

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=20220104145646.135877-4-narmstrong@baylibre.com \
    --to=narmstrong@baylibre$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=kuba@kernel$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-oxnas@groups$(echo .)io \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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