Skip to content

Commit

Permalink
realtek: move debounce-interval to correct node
Browse files Browse the repository at this point in the history
The debounce-interval of a gpio-keys node should be placed in the key
node itself, not in the main node. Move the properties added earlier and
fix the key node name while we're here.

Fixes: 4357f32 ("realtek: debounce reset key for Zyxel GS1900")
Signed-off-by: Sander Vanheule <[email protected]>
  • Loading branch information
svanheule committed Jan 1, 2025
1 parent ae0fd92 commit 777c610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

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

reset {
label = "reset";
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <100>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@

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

mode {
reset {
label = "reset";
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <100>;
};
};

Expand Down

0 comments on commit 777c610

Please sign in to comment.