ramips: update device tree source files
[openwrt/openwrt.git] / target / linux / ramips / dts / X5.dts
index 26d3cd7ca3f09f26377416a4fdd77434fcc4b23e..8911fa80e52bc1b05fa61eb63e4938dd04d23788 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "X5", "ralink,rt5350-soc";
+       compatible = "poray,x5", "ralink,rt5350-soc";
        model = "Poray X5";
 
        gpio-leds {
 
                power {
                        label = "x5:green:power";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                20 {
                        label = "x5:green:20";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                50 {
                        label = "x5:green:50";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                80 {
                        label = "x5:green:80";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                bat {
                        label = "bat";
-                       gpios = <&gpio0 9 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 
@@ -63,7 +66,7 @@
                usb-mode {
                        gpio-export,name = "usb-mode";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 18 0>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
                };
        };
 };
@@ -75,8 +78,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "gd25q64";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {