From: Christian Lamparter Date: Fri, 31 May 2019 14:29:32 +0000 (+0200) Subject: apm821xx: MX60: convert to interrupt-driven gpio-key driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1544df0d89bed93372b79340ad988cb1f4137110;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/target/linux/apm821xx/dts/meraki-mx60.dts b/target/linux/apm821xx/dts/meraki-mx60.dts index 638bfe5c16d6..2550d259ab4c 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 = ; gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; + interrupt-parent = <&UIC1>; + interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>; }; }; };