ramips/mt762x: convert devices to interrupt-driven gpio-keys
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_youku_yk1.dts
index 6ddb2c5d39838ecd09296721ae7f3df67418b205..82be9c4c9741161bd6590a9f3cdb4cfa5f049a13 100644 (file)
 
        leds {
                compatible = "gpio-leds";
+
                wan {
                        label = "yk1:blue:wan";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
+
                air {
                        label = "yk1:blue:air";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
+
                usb {
                        label = "yk1:blue:usb";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
+
                led_power: power {
                        label = "yk1:blue:power";
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
@@ -39,8 +43,8 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
+
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;