ramips: mt7621: convert GPIO dts refs
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iodata_wn-gx300gr.dts
index 020f78aba67ab5de8a910d28745606c3651755de..66edebacf18a0801439403b0f18daf1a26c93fba 100644 (file)
 
                led_power: power {
                        label = "wn-gx300gr:green:power";
-                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "wn-gx300gr:green:wps";
-                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                auto {
                        label = "auto";
-                       gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                custom {
                        label = "custom";
-                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
        mtd-mac-address = <&factory 0x4>;
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "uart2", "uart3", "jtag";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               ralink,group = "uart2", "uart3", "jtag";
+               ralink,function = "gpio";
        };
 };