summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Lespinasse2025-01-16 08:50:23 +0000
committerHauke Mehrtens2025-03-31 22:26:09 +0000
commitf9d59735c6b50a33f3a96065796f2c14103c689c (patch)
treeaaea1f9fdf792a3caa2d9e44926e7ba2aabf2c5b
parentec231bf564f33ac7cac975e5f262b252fb2a89cc (diff)
downloadopenwrt-f9d59735c6b50a33f3a96065796f2c14103c689c.tar.gz
rockchip: configure reset button on nanopi R6
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. Signed-off-by: Michel Lespinasse <michel@lespinasse.org> Link: https://github.com/openwrt/openwrt/pull/17638 (cherry picked from commit 2e7d060fd1ba6160067df1a2ba303c7c2efe2a7e) Link: https://github.com/openwrt/openwrt/pull/18347 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button b/target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button
new file mode 100644
index 0000000000..5ca4aff115
--- /dev/null
+++ b/target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button
@@ -0,0 +1,18 @@
+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>;
+ };
+ };
+