ramips: mt7621: convert GPIO dts refs
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_mikrotik_rbm33g.dts
index 8abc08e200e5e427b0a643829e98050cace284af..90093c501c592c8f0473df91672e2d6cb4594948 100644 (file)
 
                led_usr: usr {
                        label = "rbm33g: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";
 
                res {
                        label = "res";
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -46,7 +45,7 @@
 
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
-               gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+               gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
                enable-active-high;
                regulator-boot-on;
                regulator-always-on;
@@ -58,7 +57,7 @@
 
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
-               gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
+               gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
                enable-active-high;
                regulator-boot-on;
                regulator-always-on;
@@ -70,7 +69,7 @@
 
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
-               gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
+               gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
                enable-active-high;
                regulator-boot-on;
                regulator-always-on;
 
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
-               gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+               gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
                enable-active-high;
                regulator-always-on;
        };
 };
 
-
 &spi0 {
        status = "okay";
 
        mtd-mac-address-increment = <1>;
 };
 
-
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "uart2", "wdt";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               ralink,group = "uart2", "wdt";
+               ralink,function = "gpio";
        };
 };