ramips: mt7621: convert GPIO dts refs
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubiquiti_edgerouterx.dtsi
index 1d54713fe678c3f3e3c99c14172656f5b9c1db03..df64a3456f06232f1d60505859e6f4aedbbee748 100644 (file)
@@ -4,11 +4,8 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ubiquiti,edgerouterx", "mediatek,mt7621-soc";
-
-       memory@0 {
-               device_type = "memory";
-               reg = <0x0 0x10000000>;
+       aliases {
+               label-mac-device = &ethernet;
        };
 
        chosen {
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
        };
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag";
+               ralink,function = "gpio";
        };
 };