ramips: fix dtc warnings
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / kn_rc.dts
index 3c9dfb4d241da112a6e36217cc0b6236479cc185..b8a032a838f446b9c1fb8a327bdb2f629cace04a 100644 (file)
@@ -6,27 +6,32 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
        model = "ZyXEL Keenetic Omni";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
                wan {
                        label = "kn_rc:green:wan";
-                       gpios = <&gpio0 38 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "kn_rc:green:usb";
-                       gpios = <&gpio0 39 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "kn_rc:green:wifi";
-                       gpios = <&gpio0 72 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "kn_rc:green:power";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
@@ -34,8 +39,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
        };
 };
 
+&gpio1 {
+       status = "okay";
+};
+
+&gpio3 {
+       status = "okay";
+};
+
 &spi0 {
        status = "okay";