ath79: WNDR3700 v1/v2: make u-boot env partition writable
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr1043nd-v1.dts
index d01d2cc716e82e67bd12116248544cc44daaa743..f617d89c5ba766ff92b79ae7e6f8628b698bb8af 100644 (file)
@@ -8,10 +8,13 @@
 
 / {
        compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
-       model = "TP-Link TL-WR1043ND Version 1";
+       model = "TP-Link TL-WR1043ND v1";
 
        aliases {
-               led-status = &system;
+               led-boot = &system;
+               led-failsafe = &system;
+               led-running = &system;
+               led-upgrade = &system;
        };
 
        extosc: ref {
@@ -22,8 +25,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                button0 {
                        label = "reset";
@@ -45,7 +46,6 @@
                usb {
                        label = "tp-link:green:usb";
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
                };
@@ -64,7 +64,6 @@
                wlan {
                        label = "tp-link:green:wlan";
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy0tpt";
                };
        };
@@ -88,6 +87,8 @@
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port: port@1 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
                        };
 
                        partition@20000 {
+                               compatible = "tplink,firmware";
                                label = "firmware";
                                reg = <0x020000 0x7D0000>;
                        };
        phy-mode = "rgmii";
        mtd-mac-address = <&uboot 0x1fc00>;
 
-       resets = <&rst 9>;
-       reset-names = "mac";
-
        fixed-link {
                speed = <1000>;
                full-duplex;