realtek: debounce reset key for Zyxel GS1900
authorSander Vanheule <sander@svanheule.net>
Wed, 1 Jan 2025 10:01:48 +0000 (11:01 +0100)
committerSander Vanheule <sander@svanheule.net>
Wed, 1 Jan 2025 10:06:08 +0000 (11:06 +0100)
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 <sander@svanheule.net>
target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts

index b985c4bc8e499df79ff3cde0fe7a422b7242bfb4..59b44ad1615eed5b9994629badfeef9f699538f0 100644 (file)
@@ -20,6 +20,7 @@
 
        keys {
                compatible = "gpio-keys-polled";
+               debounce-interval = <100>;
                poll-interval = <20>;
 
                reset {
index 9844dc2180ff3645df27e88f9b1ce825b2f79685..ad3245fc27635889b01edaab0621c909aff695c8 100644 (file)
@@ -41,6 +41,7 @@
 
        keys {
                compatible = "gpio-keys-polled";
+               debounce-interval = <100>;
                poll-interval = <20>;
 
                mode {