Skip to content

Commit

Permalink
realtek: debounce reset key for Zyxel GS1900
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
svanheule committed Jan 1, 2025
1 parent adfb1b7 commit 4357f32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

keys {
compatible = "gpio-keys-polled";
debounce-interval = <100>;
poll-interval = <20>;

reset {
Expand Down
1 change: 1 addition & 0 deletions target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

keys {
compatible = "gpio-keys-polled";
debounce-interval = <100>;
poll-interval = <20>;

mode {
Expand Down

0 comments on commit 4357f32

Please sign in to comment.