Browse Source

realtek: use gpio-keys instead of "-polled" if SoC GPIO is used in 5.10

The new backported GPIO driver supports interrupt, so use gpio-keys
instead of gpio-keys-polled for keys connected to the internal GPIO
controller.

Signed-off-by: INAGAKI Hiroshi <[email protected]>
INAGAKI Hiroshi 4 years ago
parent
commit
d7b349db7c

+ 1 - 2
target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi

@@ -18,8 +18,7 @@
 	};
 
 	keys {
-		compatible = "gpio-keys-polled";
-		poll-interval = <20>;
+		compatible = "gpio-keys";
 
 		mode {
 			label = "reset";

+ 1 - 2
target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts

@@ -19,8 +19,7 @@
 	};
 
 	keys {
-		compatible = "gpio-keys-polled";
-		poll-interval = <20>;
+		compatible = "gpio-keys";
 
 		reset {
 			label = "reset";