ramips: improve Skylab SKW92A support
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / DWR-512-B.dts
index ab3c02aeb3470d189f4d32bab4766ca9f00adbae..04fa08f0a5b2be3d8ee71b72ef76295ca5a4652a 100644 (file)
@@ -6,18 +6,23 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,rt5350-soc";
+       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 {
                        label = "wps";
-                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
@@ -33,9 +38,9 @@
 
                sms {
                        label = "dwr-512-b:green:sms";
-                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
-               status {
+               led_status: status {
                        label = "dwr-512-b:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
                compatible = "gpio-export";
                #size-cells = <0>;
 
+               slic_int {
+                       gpio-export,name = "slic_int";
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+               };
                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;
+               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>;
+                       };
                };
+       };
+};
 
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x20000>;
-                       read-only;
-               };
+&spi1 {
+       status = "okay";
 
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0x7a0000>;
-               };
+       spidev@1 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "siliconlabs,si3210";
 
-               config: partition@7f0000 {
-                       label = "config";
-                       reg = <0x7f0000 0x10000>;
-               };
+               reg = <0>;
+               spi-max-frequency = <1000000>;
        };
 };