Browse Source

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 <[email protected]>
Christian Lamparter 6 years ago
parent
commit
1544df0d89
1 changed files with 3 additions and 3 deletions
  1. 3 3
      target/linux/apm821xx/dts/meraki-mx60.dts

+ 3 - 3
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>;
 		};
 	};
 };