ramips: improve Skylab SKW92A support
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / DWR-512-B.dts
index f531df80a189f1ec09625bb9a440fba0f90bcb71..04fa08f0a5b2be3d8ee71b72ef76295ca5a4652a 100644 (file)
@@ -9,10 +9,15 @@
        compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
        model = "D-Link DWR-512 B";
 
+       aliases {
+               led-boot = &led_status;
+               led-failsafe = &led_status;
+               led-running = &led_status;
+               led-upgrade = &led_status;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                wps {
@@ -35,7 +40,7 @@
                        label = "dwr-512-b:green:sms";
                        gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
-               status {
+               led_status: status {
                        label = "dwr-512-b:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
@@ -68,7 +73,7 @@
                modem3g_enable {
                        gpio-export,name = "modem3g_enable";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
                };
        };
 };
        status = "okay";
 
        mx25l6405d@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <30000000>;
                m25p,fast-read;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x20000>;
-                       read-only;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0x7a0000>;
-               };
-
-               config: partition@7f0000 {
-                       label = "config";
-                       reg = <0x7f0000 0x10000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "jboot";
+                               reg = <0x0 0x10000>;
+                               read-only;
+                       };
+
+                       partition@10000 {
+                               label = "firmware";
+                               reg = <0x10000 0x7e0000>;
+                       };
+
+                       config: partition@7f0000 {
+                               label = "config";
+                               reg = <0x7f0000 0x10000>;
+                       };
                };
        };
 };