diff mbox series

[v3,19/21] arm: dts: s700: add node for ethernet controller

Message ID 1579954983-11329-20-git-send-email-amittomer25@gmail.com
State New
Headers show
Series Actions S700 SoC support | expand

Commit Message

Amit Tomer Jan. 25, 2020, 12:23 p.m. UTC
This patch adds node for ethernet controller(found on Action Semi S700 SoC).

Since, there is no upstream Linux binding exist for S700 ethernet controller, Changes
are put in u-boot specific dtsi file.

Signed-off-by: Amit Singh Tomar <amittomer25 at gmail.com>
---
Changes since v2:
        * Newly added patch, not there in v2/v1.
---
 arch/arm/dts/s700-u-boot.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/dts/s700-u-boot.dtsi b/arch/arm/dts/s700-u-boot.dtsi
index 4a33042..489d0f5 100644
--- a/arch/arm/dts/s700-u-boot.dtsi
+++ b/arch/arm/dts/s700-u-boot.dtsi
@@ -12,6 +12,21 @@ 
 			compatible = "actions,s700-reset";
 			reg = <0 0xe01680a8 0 0x8>;
 		};
+
+		gmac:  ethernet at e0220000 {
+			compatible = "actions,s700-ethernet";
+			reg = <0 0xe0220000 0 0x2000>;
+			interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "macirq";
+			local-mac-address = [ 00 18 fe 66 66 66 ];
+			clocks = <&cmu CLK_ETHERNET>, <&cmu CLK_RMII_REF>;
+			clock-names = "ethernet", "rmii_ref";
+			resets = <&reset 55>;
+			reset-names = "ethernet";
+			phy-mode = "rmii";
+
+			status = "okay";
+		};
 	};
 };