From: INAGAKI Hiroshi Date: Sat, 26 Jun 2021 03:29:24 +0000 (+0900) Subject: realtek: use gpio-keys instead of "-polled" if SoC GPIO is used in 5.10 X-Git-Tag: v22.03.0-rc1~1681 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d7b349db7cbadae3a9e11f1d2f375c037f6adb3b;p=openwrt%2Fopenwrt.git 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 --- 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";