diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-05-31 16:29:32 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-06-02 11:08:37 +0200 |
commit | 1544df0d89bed93372b79340ad988cb1f4137110 (patch) | |
tree | e170c1893b466275e9abcb4417953669cb6169c2 /target/linux/apm821xx/dts/meraki-mx60.dts | |
parent | 651adad6035a7b99784070e110147bd25029b0ce (diff) | |
download | upstream-1544df0d89bed93372b79340ad988cb1f4137110.tar.gz upstream-1544df0d89bed93372b79340ad988cb1f4137110.tar.bz2 upstream-1544df0d89bed93372b79340ad988cb1f4137110.zip |
apm821xx: MX60: 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/dts/meraki-mx60.dts')
-rw-r--r-- | target/linux/apm821xx/dts/meraki-mx60.dts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/apm821xx/dts/meraki-mx60.dts b/target/linux/apm821xx/dts/meraki-mx60.dts index 638bfe5c16..2550d259ab 100644 --- a/target/linux/apm821xx/dts/meraki-mx60.dts +++ b/target/linux/apm821xx/dts/meraki-mx60.dts @@ -159,14 +159,14 @@ }; 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>; }; }; }; |