]> www.infradead.org Git - linux.git/commitdiff
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 7e2fcb220aea321f68fdc305a9e816ccdc75e502..c59e06ff2423a826b9f82e7f3766efb27aa35f07 100644 (file)
        };
 };
 
+&etha {
+       status = "okay";
+};
+
 &uart1 {
        status = "okay";
 
index 0755e5864c4a372caf9f95b60f9cde575bfc2a65..96c0745f7b709174c420850b20e044dcd52c3832 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>;