Skip to contentSkip to conversation

ARM: dts: meson: enable Ethernet controller

PATCH In review Beniamino Galvani 2 participants 2 messages Nov 23, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: meson: enable Ethernet controller

Add a node for the Ethernet controller to Meson DTS file and enable it on the Geniatech ATV1200 board.

---
 arch/arm/boot/dts/meson.dtsi         | 11 +++++++++++
 arch/arm/boot/dts/meson6-atv1200.dts |  4 ++++
 2 files changed, 15 insertions(+)
arch/arm/boot/dts/meson.dtsi +11 -0
index 03bcff8..4704b95 100644
@@ -143,5 +143,16 @@
 			#size-cells = <0>;
 			status = "disabled";
 		};
+
+		ethmac: ethernet at c9410000 {
+			compatible = "amlogic,meson6-dwmac", "snps,dwmac";
+			reg = <0xc9410000 0x10000
+			       0xc1108108 0x4>;
+			interrupts = <0 8 1>;
+			interrupt-names = "macirq";
+			clocks = <&clk81>;
+			clock-names = "stmmaceth";
+			status = "disabled";
+		};
 	};
 }; /* end of / */
arch/arm/boot/dts/meson6-atv1200.dts +4 -0
index d7d351a..1237faa 100644
@@ -64,3 +64,7 @@
 &uart_AO {
 	status = "okay";
 };
+
+&ethmac {
+	status = "okay";
+};
Signature · 1 line
1.9.1
Tested-by on v1 1/1
#1 lore raw
Quoted 43 lines · Beniamino Galvani

Add a node for the Ethernet controller to Meson DTS file and enable it on the Geniatech ATV1200 board.

---
 arch/arm/boot/dts/meson.dtsi         | 11 +++++++++++
 arch/arm/boot/dts/meson6-atv1200.dts |  4 ++++
 2 files changed, 15 insertions(+)
arch/arm/boot/dts/meson.dtsi +11 -0
index 03bcff8..4704b95 100644
@@ -143,5 +143,16 @@
                        #size-cells = <0>;
                        status = "disabled";
                };
+
+               ethmac: ethernet at c9410000 {
+                       compatible = "amlogic,meson6-dwmac", "snps,dwmac";
+                       reg = <0xc9410000 0x10000
+                              0xc1108108 0x4>;
+                       interrupts = <0 8 1>;
+                       interrupt-names = "macirq";
+                       clocks = <&clk81>;
+                       clock-names = "stmmaceth";
+                       status = "disabled";
+               };
        };
 }; /* end of / */
arch/arm/boot/dts/meson6-atv1200.dts +4 -1
index d7d351a..1237faa 100644
@@ -64,3 +64,7 @@
 &uart_AO {
        status = "okay";
 };
+
+&ethmac {
+       status = "okay";
+};
--
Quoted 2 lines

1.9.1

Thanks,

Signature · 1 line
Carlo Caione