From: Sander Vanheule Date: Wed, 1 Jan 2025 10:01:48 +0000 (+0100) Subject: realtek: debounce reset key for Zyxel GS1900 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4357f32d41eb4364841cab831bcaf7848695b5d7;p=openwrt%2Fstaging%2Fsvanheule.git realtek: debounce reset key for Zyxel GS1900 When the reset button is next to the SFP cages, I2C operations on the modules might cause interference on the button's GPIO line. Add a debounce-interval of 5 times the poll-interval to ensure the line is actually stable for some time and not just glitching. Signed-off-by: Sander Vanheule --- diff --git a/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi b/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi index b985c4bc8e..59b44ad161 100644 --- a/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi +++ b/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi @@ -20,6 +20,7 @@ keys { compatible = "gpio-keys-polled"; + debounce-interval = <100>; poll-interval = <20>; reset { diff --git a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts index 9844dc2180..ad3245fc27 100644 --- a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts +++ b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts @@ -41,6 +41,7 @@ keys { compatible = "gpio-keys-polled"; + debounce-interval = <100>; poll-interval = <20>; mode {