Unverified Commit 24babe69 authored by Alban Bedel's avatar Alban Bedel Committed by Paul Burton
Browse files

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: default avatarAlban Bedel <albeu@free.fr>
Signed-off-by: default avatarPaul 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
parent a999933d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -22,11 +22,10 @@
	};

	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>;
+2 −3
Original line number Diff line number Diff line
@@ -29,11 +29,10 @@
		};
	};

	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";
+2 −3
Original line number Diff line number Diff line
@@ -47,11 +47,10 @@
		};
	};

	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";
+2 −3
Original line number Diff line number Diff line
@@ -29,11 +29,10 @@
		};
	};

	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";
+2 −3
Original line number Diff line number Diff line
@@ -47,11 +47,10 @@
		};
	};

	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";