ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / M3.dts
index 2b56cf77dce547fabd5277b739a51b0e2726df72..ef7a78b42cd532b89cd6b089289ae1a9110241b8 100644 (file)
@@ -2,36 +2,41 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "M3", "ralink,rt5350-soc";
+       compatible = "poray,m3", "ralink,rt5350-soc";
        model = "Poray M3";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "m3:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                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 17 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
@@ -43,8 +48,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "w25q32";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {