ath79: reorganize DTSI for ar7240 TP-Link devices
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar7240_tplink_tl-wr.dtsi
diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi b/target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi
new file mode 100644 (file)
index 0000000..7621b1d
--- /dev/null
@@ -0,0 +1,46 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar7240_tplink.dtsi"
+
+&leds {
+       lan1 {
+               label = "tp-link:green:lan1";
+               gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+       };
+
+       lan2 {
+               label = "tp-link:green:lan2";
+               gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+       };
+
+       lan3 {
+               label = "tp-link:green:lan3";
+               gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+       };
+
+       lan4 {
+               label = "tp-link:green:lan4";
+               gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
+       };
+
+       wan {
+               label = "tp-link:green:wan";
+               gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+
+       mtd-mac-address = <&uboot 0x1fc00>;
+       mtd-mac-address-increment = <(-1)>;
+};
+
+&eth1 {
+       mtd-mac-address = <&uboot 0x1fc00>;
+       mtd-mac-address-increment = <1>;
+};
+
+&ath9k {
+       compatible = "pci168c,002b";
+};