mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
apm821xx: WNDAP6X0: convert to interrupt-driven gpio-key driver
This patch converts the device to use the gpio-key over gpio-key-polled driver. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
parent
b8236e102c
commit
9148cbcb7b
@ -123,14 +123,11 @@
|
|||||||
|
|
||||||
&POB0 {
|
&POB0 {
|
||||||
keys {
|
keys {
|
||||||
compatible = "gpio-keys-polled";
|
compatible = "gpio-keys";
|
||||||
#interrupt-cells = <2>;
|
|
||||||
poll-interval = <60>; /* 3 * 20 = 60ms */
|
|
||||||
autorepeat;
|
|
||||||
|
|
||||||
reset {
|
reset {
|
||||||
label = "Reset Button";
|
label = "Reset Button";
|
||||||
gpios = <&GPIO0 16 GPIO_ACTIVE_HIGH>;
|
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
interrupt-parent = <&UIC1>;
|
interrupt-parent = <&UIC1>;
|
||||||
interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
|
interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
|
||||||
|
Loading…
Reference in New Issue
Block a user