From d7b349db7cbadae3a9e11f1d2f375c037f6adb3b Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sat, 26 Jun 2021 12:29:24 +0900 Subject: [PATCH] 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 --- 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 9cde00517ee..e98a9bfc615 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 a9af1d44f59..1dc9e272fe3 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"; -- 2.30.2