ARM: dts: ox810se: Add Ethernet support
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 4 Jan 2022 14:56:46 +0000 (15:56 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 25 Jan 2022 17:03:04 +0000 (18:03 +0100)
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
arch/arm/boot/dts/ox810se-wd-mbwe.dts
arch/arm/boot/dts/ox810se.dtsi

index 7e2fcb2..c59e06f 100644 (file)
        };
 };
 
+&etha {
+       status = "okay";
+};
+
 &uart1 {
        status = "okay";
 
index 0755e58..96c0745 100644 (file)
                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>;