ath79: add support for Qxwlan E750A v4
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_qxwlan_e750a-v4-16m.dts
diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts
new file mode 100644 (file)
index 0000000..61389be
--- /dev/null
@@ -0,0 +1,49 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9344_qxwlan_e750x.dtsi"
+
+/ {
+       model = "Qxwlan E750A v4 16M";
+       compatible = "qxwlan,e750a-v4-16m", "qca,ar9344";
+};
+
+&leds {
+       lan {
+               label = "green:lan";
+               gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+       };
+
+       wan {
+               label = "green:wan";
+               gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+       };
+};
+
+&eth0 {
+       status = "okay";
+
+       phy-handle = <&swphy4>;
+
+       mtd-mac-address = <&pridata 0x400>;
+       mtd-mac-address-increment = <1>;
+};
+
+&eth1 {
+       status = "okay";
+
+       mtd-mac-address = <&pridata 0x400>;
+
+       gmac-config {
+               device = <&gmac>;
+               switch-phy-swap = <0>;
+               switch-only-mode = <1>;
+       };
+};
+
+&partitions {
+       partition@70000 {
+               compatible = "denx,uimage";
+               label = "firmware";
+               reg = <0x070000 0xf90000>;
+       };
+};