apm821xx: fix bogus key-presses on boot
[openwrt/staging/ynezz.git] / target / linux / apm821xx / dts / meraki-mx60.dts
index 638bfe5c16d67d807edb8b20102f3d8a03ecadda..3620005e4d250bdd76bef574ccc9b5947ff1fbf0 100644 (file)
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <60>;   /* 3 * 20 = 60ms */
-               autorepeat;
+               compatible = "gpio-keys";
 
                reset {
                        label = "Reset button";
                        linux,code = <KEY_RESTART>;
                        gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
+                       interrupt-parent = <&UIC1>;
+                       interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
+                       debounce-interval = <60>;
                };
        };
 };