]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Add reset button to NanoPi R5S
authorDiederik de Haas <didi.debian@cknow.org>
Fri, 11 Jul 2025 14:20:37 +0000 (16:20 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 15 Jul 2025 10:38:42 +0000 (12:38 +0200)
The NanoPi R5S LTS version has a reset button, which is connected via
GPIO. Note that the non-LTS version does not have the reset button and
therefore on page 19 of the schematic version 2204 it is marked 'NC',
but it is connected on the LTS version.

Signed-off-by: Diederik de Haas <didi.debian@cknow.org>
Link: https://lore.kernel.org/r/20250711142138.197445-1-didi.debian@cknow.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts

index 3b31f0dd8f3bc4d262cc5352105631910fd583a5..c12bd01e280503f0e86c1e2fa0c88e3ce4269594 100644 (file)
                ethernet0 = &gmac0;
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+               pinctrl-0 = <&gpio4_a0_k1_pin>;
+               pinctrl-names = "default";
+
+               button-reset {
+                       debounce-interval = <50>;
+                       gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
+                       label = "RESET";
+                       linux,code = <KEY_RESTART>;
+               };
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                };
        };
 
+       gpio-keys {
+               gpio4_a0_k1_pin: gpio4-a0-k1-pin {
+                       rockchip,pins = <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        gpio-leds {
                lan1_led_pin: lan1-led-pin {
                        rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;