From 4357f32d41eb4364841cab831bcaf7848695b5d7 Mon Sep 17 00:00:00 2001 From: Sander Vanheule Date: Wed, 1 Jan 2025 11:01:48 +0100 Subject: [PATCH] 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 --- target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi | 1 + target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts | 1 + 2 files changed, 2 insertions(+) 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 { -- 2.30.2