Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ath79: Use the IRQ based GPIO key driver for the buttons

Now that the GPIO driver support interrupts we don't need to poll the
buttons.

Signed-off-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/15283/
Cc: linux-mips@linux-mips.org
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

authored by

Alban Bedel and committed by
Paul Burton
24babe69 a999933d

+9 -14
+1 -2
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
··· 22 22 }; 23 23 24 24 gpio-keys { 25 - compatible = "gpio-keys-polled"; 25 + compatible = "gpio-keys"; 26 26 #address-cells = <1>; 27 27 #size-cells = <0>; 28 28 29 - poll-interval = <20>; 30 29 button@0 { 31 30 label = "reset"; 32 31 linux,code = <KEY_RESTART>;
+2 -3
arch/mips/boot/dts/qca/ar9331_dpt_module.dts
··· 29 29 }; 30 30 }; 31 31 32 - gpio-keys-polled { 33 - compatible = "gpio-keys-polled"; 32 + gpio-keys { 33 + compatible = "gpio-keys"; 34 34 #address-cells = <1>; 35 35 #size-cells = <0>; 36 - poll-interval = <100>; 37 36 38 37 button@0 { 39 38 label = "reset";
+2 -3
arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts
··· 47 47 }; 48 48 }; 49 49 50 - gpio-keys-polled { 51 - compatible = "gpio-keys-polled"; 50 + gpio-keys { 51 + compatible = "gpio-keys"; 52 52 #address-cells = <1>; 53 53 #size-cells = <0>; 54 - poll-interval = <100>; 55 54 56 55 button@0 { 57 56 label = "jumpstart";
+2 -3
arch/mips/boot/dts/qca/ar9331_omega.dts
··· 29 29 }; 30 30 }; 31 31 32 - gpio-keys-polled { 33 - compatible = "gpio-keys-polled"; 32 + gpio-keys { 33 + compatible = "gpio-keys"; 34 34 #address-cells = <1>; 35 35 #size-cells = <0>; 36 - poll-interval = <100>; 37 36 38 37 button@0 { 39 38 label = "reset";
+2 -3
arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts
··· 47 47 }; 48 48 }; 49 49 50 - gpio-keys-polled { 51 - compatible = "gpio-keys-polled"; 50 + gpio-keys { 51 + compatible = "gpio-keys"; 52 52 #address-cells = <1>; 53 53 #size-cells = <0>; 54 - poll-interval = <100>; 55 54 56 55 button@0 { 57 56 label = "wps";