ramips: mt7621: convert GPIO dts refs
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_mikrotik_rb750gr3.dts
index 0b39fa240af1e0cff058d08ce65ef25a4b824a58..ebb6585c91c7699641631aa0c3502f4f47752397 100644 (file)
 
                pwr {
                        label = "rb750gr3:blue:pwr";
-                       gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_usr: usr {
                        label = "rb750gr3:green:usr";
-                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                };
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
        beeper {
                compatible = "gpio-beeper";
-               gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
+               gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
        };
 
        gpio_export {
@@ -65,7 +64,7 @@
                usb_power {
                        gpio-export,name = "usb_power";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
                };
        };
 };
        mtd-mac-address-increment = <1>;
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       /* via gpio7 (uart3 group) the PoE status can be read */
-                       ralink,group = "uart2", "uart3", "jtag", "wdt";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               /* via gpio7 (uart3 group) the PoE status can be read */
+               ralink,group = "uart2", "uart3", "jtag", "wdt";
+               ralink,function = "gpio";
        };
 };