diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-05-31 16:28:51 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-06-02 11:08:37 +0200 |
commit | 651adad6035a7b99784070e110147bd25029b0ce (patch) | |
tree | b1fb2136f2d47e9ece8f80190df32809f461425a /target/linux/apm821xx | |
parent | 9148cbcb7b00cb51df40b75cb8e134e4e615245b (diff) | |
download | upstream-651adad6035a7b99784070e110147bd25029b0ce.tar.gz upstream-651adad6035a7b99784070e110147bd25029b0ce.tar.bz2 upstream-651adad6035a7b99784070e110147bd25029b0ce.zip |
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>
Diffstat (limited to 'target/linux/apm821xx')
-rw-r--r-- | target/linux/apm821xx/dts/meraki-mr24.dts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/target/linux/apm821xx/dts/meraki-mr24.dts b/target/linux/apm821xx/dts/meraki-mr24.dts index cb7c095dbb..144c6f0eb3 100644 --- a/target/linux/apm821xx/dts/meraki-mr24.dts +++ b/target/linux/apm821xx/dts/meraki-mr24.dts @@ -166,16 +166,14 @@ }; keys { - compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; - poll-interval = <60>; /* 3 * 20 = 60ms */ - autorepeat; + compatible = "gpio-keys"; reset { /* Label as per Meraki's "MR24 Installation Guide" */ label = "Factory Reset Button"; linux,code = <KEY_RESTART>; + interrupt-parent = <&UIC1>; + interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>; gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; }; }; |