realtek: use gpio-keys instead of "-polled" if SoC GPIO is used in 5.10
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 26 Jun 2021 03:29:24 +0000 (12:29 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 25 Sep 2021 22:32:18 +0000 (00:32 +0200)
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 <musashino.open@gmail.com>
target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts

index 9cde00517ee6250bd4843a7145d2421f6c9c787d..e98a9bfc615b477afe5caba3fedb966b18b30380 100644 (file)
@@ -18,8 +18,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                mode {
                        label = "reset";
index a9af1d44f5949853fe087ec37950091225e25eec..1dc9e272fe3fd38ef4bd72375569f30e316e6171 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";