summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2022-01-04 17:56:46 +0300
committerNeil Armstrong <narmstrong@baylibre.com>2022-01-25 20:03:04 +0300
commitb88ffa66d530ba01ec64b1f5eeb74f8b8ce61d7f (patch)
tree732cd611ac1bfc2ad7c48d1d235e0662d2710117 /arch/arm
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
downloadlinux-b88ffa66d530ba01ec64b1f5eeb74f8b8ce61d7f.tar.xz
ARM: dts: ox810se: Add Ethernet support
Add nodes for the embedded Synopsys DWMAC Ethernet controller. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lore.kernel.org/r/20220104145646.135877-4-narmstrong@baylibre.com
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/ox810se-wd-mbwe.dts4
-rw-r--r--arch/arm/boot/dts/ox810se.dtsi18
2 files changed, 22 insertions, 0 deletions
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 @@
};
};
+&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 @@
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>;