ramips: fix dtc warnings
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / DCH-M225.dts
index 3465c70ad0e04edfe9af21ab3640cf8d2268883c..07e3314963eb0d2ab41941af12ad97af6b8bc147 100644 (file)
@@ -2,27 +2,30 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
        compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
        model = "D-Link DCH-M225";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "dch-m225:green:power";
-                       gpios = <&gpio1 5 1>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "dch-m225:red:status";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -53,7 +56,7 @@
                        "Headphones", "HP_L",
                        "Headphones", "HP_R";
                simple-audio-card,mclk-fs = <256>;
-               simple-audio-card,hp-det-gpio = <&gpio0 14 1>;
+               simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
 
                simple-audio-card,cpu {
                        sound-dai = <&i2s>;
@@ -89,7 +92,7 @@
        #sound-dai-cells = <0>;
        status = "okay";
        pinctrl-names = "default";
-       pinctrl-0 = <&gpio_i2s_pins>, <&wm8960_mclk_pins>;
+       pinctrl-0 = <&mdio_refclk_pins>;
 };
 
 &spi0 {
                        ralink,function = "gpio";
                };
 
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
-
-               wm8960_mclk_pins: wm8960_mclk {
-                       wm8960_mclk {
-                               ralink,group = "mdio";
-                               ralink,function = "refclk";
-                       };
+               gpio_i2s {
+                       ralink,group = "uartf";
+                       ralink,function = "gpio i2s";
                };
        };
 };
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
-