mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-16 03:44:39 +00:00
apm821xx: MR24: 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
9148cbcb7b
commit
651adad603
@ -166,16 +166,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
keys {
|
keys {
|
||||||
compatible = "gpio-keys-polled";
|
compatible = "gpio-keys";
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
poll-interval = <60>; /* 3 * 20 = 60ms */
|
|
||||||
autorepeat;
|
|
||||||
|
|
||||||
reset {
|
reset {
|
||||||
/* Label as per Meraki's "MR24 Installation Guide" */
|
/* Label as per Meraki's "MR24 Installation Guide" */
|
||||||
label = "Factory Reset Button";
|
label = "Factory Reset Button";
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
|
interrupt-parent = <&UIC1>;
|
||||||
|
interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
|
||||||
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user