Skip to content

Commit 954f070

Browse files
diederikdehaasmmind
authored andcommitted
arm64: dts: rockchip: Add reset button to NanoPi R5S
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent a2df3ae commit 954f070

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
ethernet0 = &gmac0;
1818
};
1919

20+
gpio-keys {
21+
compatible = "gpio-keys";
22+
pinctrl-0 = <&gpio4_a0_k1_pin>;
23+
pinctrl-names = "default";
24+
25+
button-reset {
26+
debounce-interval = <50>;
27+
gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
28+
label = "RESET";
29+
linux,code = <KEY_RESTART>;
30+
};
31+
};
32+
2033
gpio-leds {
2134
compatible = "gpio-leds";
2235
pinctrl-names = "default";
@@ -127,6 +140,12 @@
127140
};
128141
};
129142

143+
gpio-keys {
144+
gpio4_a0_k1_pin: gpio4-a0-k1-pin {
145+
rockchip,pins = <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
146+
};
147+
};
148+
130149
gpio-leds {
131150
lan1_led_pin: lan1-led-pin {
132151
rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;

0 commit comments

Comments
 (0)