MIPS: ath79: Use the IRQ based GPIO key driver for the buttons
authorAlban Bedel <albeu@free.fr>
Mon, 13 Feb 2017 23:10:37 +0000 (00:10 +0100)
committerPaul Burton <paul.burton@mips.com>
Sat, 28 Jul 2018 02:29:53 +0000 (19:29 -0700)
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
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
arch/mips/boot/dts/qca/ar9331_dpt_module.dts
arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts
arch/mips/boot/dts/qca/ar9331_omega.dts
arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts

index 3931033..7fccf63 100644 (file)
        };
 
        gpio-keys {
-               compatible = "gpio-keys-polled";
+               compatible = "gpio-keys";
                #address-cells = <1>;
                #size-cells = <0>;
 
-               poll-interval = <20>;
                button@0 {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
index d4e4502..e7af2cf 100644 (file)
                };
        };
 
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
+       gpio-keys {
+               compatible = "gpio-keys";
                #address-cells = <1>;
                #size-cells = <0>;
-               poll-interval = <100>;
 
                button@0 {
                        label = "reset";
index 4f95ccf..d38aa73 100644 (file)
                };
        };
 
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
+       gpio-keys {
+               compatible = "gpio-keys";
                #address-cells = <1>;
                #size-cells = <0>;
-               poll-interval = <100>;
 
                button@0 {
                        label = "jumpstart";
index f70f79c..11778ab 100644 (file)
                };
        };
 
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
+       gpio-keys {
+               compatible = "gpio-keys";
                #address-cells = <1>;
                #size-cells = <0>;
-               poll-interval = <100>;
 
                button@0 {
                        label = "reset";
index 748131a..c8290d3 100644 (file)
                };
        };
 
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
+       gpio-keys {
+               compatible = "gpio-keys";
                #address-cells = <1>;
                #size-cells = <0>;
-               poll-interval = <100>;
 
                button@0 {
                        label = "wps";