realtek: move debounce-interval to correct node
authorSander Vanheule <sander@svanheule.net>
Wed, 1 Jan 2025 19:05:20 +0000 (20:05 +0100)
committerSander Vanheule <sander@svanheule.net>
Wed, 1 Jan 2025 19:36:44 +0000 (20:36 +0100)
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>
target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts

index 59b44ad1615eed5b9994629badfeef9f699538f0..3889fe8859a7e3727fe6a7d885a311cc3daf68ab 100644 (file)
 
        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>;
                };
        };
 
index ad3245fc27635889b01edaab0621c909aff695c8..a1e0a6d06d82331cd380746c46c90c9c94021781 100644 (file)
 
        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>;
                };
        };