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: 4357f32d41eb ("realtek: debounce reset key for Zyxel GS1900")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
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>;
};
};
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>;
};
};