1
0
mirror of https://github.com/cjdelisle/openwrt.git synced 2025-08-28 22:43:22 +00:00
Files
openwrt/target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button.patch
Tianling Shen eb974c3b3e rockchip: Restore kernel files for v6.6
This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/18683
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-06-14 17:22:52 +02:00

19 lines
545 B
Diff

Nanopi R6: set up reset button to be handled by openwrt
Set up openwrt to handle the reset button appropriately (so that it
can trigger the various recovery modes) on the nanopi R6S and R6C models.
--- a/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6.dtsi
@@ -48,8 +48,8 @@
button-user {
debounce-interval = <50>;
gpios = <&gpio1 RK_PC0 GPIO_ACTIVE_LOW>;
- label = "User Button";
- linux,code = <BTN_1>;
+ label = "reset";
+ linux,code = <KEY_RESTART>;
};
};