arm64: dts: overlays: VIM3/VIM3L: add M2X ETH overlay
authorNick Xie <nick@khadas.com>
Tue, 25 Aug 2020 06:54:21 +0000 (14:54 +0800)
committerNick Xie <nick@khadas.com>
Tue, 25 Aug 2020 06:55:28 +0000 (14:55 +0800)
Signed-off-by: Nick Xie <nick@khadas.com>
arch/arm64/boot/dts/amlogic/overlays/kvim3/Makefile
arch/arm64/boot/dts/amlogic/overlays/kvim3/m2x-eth.dts [new file with mode: 0644]
arch/arm64/boot/dts/amlogic/overlays/kvim3l/Makefile
arch/arm64/boot/dts/amlogic/overlays/kvim3l/m2x-eth.dts [new file with mode: 0644]

index f671bde7b129eb1832c1ff14709e697701f659cb..bd35fa85378270dd1c545a3c7f9bfec8158938ed 100644 (file)
@@ -4,7 +4,8 @@ dtbo-y += uart3.dtbo \
                  spi1.dtbo \
                  onewire.dtbo \
                  os08a10.dtbo \
-                 disable-ts050.dtbo
+                 disable-ts050.dtbo \
+                 m2x-eth.dtbo
 
 targets += $(dtbo-y)
 always  := $(dtbo-y)
diff --git a/arch/arm64/boot/dts/amlogic/overlays/kvim3/m2x-eth.dts b/arch/arm64/boot/dts/amlogic/overlays/kvim3/m2x-eth.dts
new file mode 100644 (file)
index 0000000..3d37a8f
--- /dev/null
@@ -0,0 +1,15 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+       fragment@0 {
+               target = <&ethmac>;
+
+               __overlay__ {
+                       status = "okay";
+
+                       mc_val = <0x4be04>;
+                       internal_phy=<1>;
+               };
+       };
+};
index 32b1fdb7f67e23e6ff82d376c7ff9267ca9fc578..e52498a6d31160902d1eef519c546e3b73aee99b 100644 (file)
@@ -3,7 +3,8 @@ dtbo-y += uart3.dtbo \
                  i2c3.dtbo \
                  spi1.dtbo \
                  onewire.dtbo \
-                 disable-ts050.dtbo
+                 disable-ts050.dtbo \
+                 m2x-eth.dtbo
 
 targets += $(dtbo-y)
 always  := $(dtbo-y)
diff --git a/arch/arm64/boot/dts/amlogic/overlays/kvim3l/m2x-eth.dts b/arch/arm64/boot/dts/amlogic/overlays/kvim3l/m2x-eth.dts
new file mode 100644 (file)
index 0000000..3d37a8f
--- /dev/null
@@ -0,0 +1,15 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+       fragment@0 {
+               target = <&ethmac>;
+
+               __overlay__ {
+                       status = "okay";
+
+                       mc_val = <0x4be04>;
+                       internal_phy=<1>;
+               };
+       };
+};