};
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>;
};
};
};