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

LEDE Commits lede-commits at lists.infradead.org
Sat Sep 25 15:37:43 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d7b349db7cbadae3a9e11f1d2f375c037f6adb3b

commit d7b349db7cbadae3a9e11f1d2f375c037f6adb3b
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Sat Jun 26 12:29:24 2021 +0900

    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 <musashino.open at gmail.com>
---
 target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 3 +--
 target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
index 9cde00517e..e98a9bfc61 100644
--- a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
+++ b/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";
diff --git a/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts b/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts
index a9af1d44f5..1dc9e272fe 100644
--- a/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts
+++ b/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";



More information about the lede-commits mailing list