realtek: move debounce-interval to correct node

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: 4357f32d41 ("realtek: debounce reset key for Zyxel GS1900")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
This commit is contained in:
Sander Vanheule 2025-01-01 20:05:20 +01:00
parent ae0fd92699
commit 777c6106ed
2 changed files with 3 additions and 3 deletions

View File

@ -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>;
};
};

View File

@ -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>;
};
};