Skip to contentSkip to conversation

arm64: dts: rockchip: Add maskrom button to R5S + R5C

PATCH Applied Diederik de Haas 2 participants 2 messages Jul 16, 2025 – Jul 17, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: Add maskrom button to R5S + R5C

Both the R5S and R5C have a MASKROM button connected via saradc. For both the R5S as the R5C it's described on page 9 of their respective schematic, identified as 'Recovery'.

---
 .../arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi +14 -0
index f4d042bdd328..e3f44ea4eabe 100644
@@ -25,6 +25,20 @@ chosen: chosen {
 		stdout-path = "serial2:1500000n8";
 	};
 
+	adc-keys {
+		compatible = "adc-keys";
+		io-channels = <&saradc 0>;
+		io-channel-names = "buttons";
+		keyup-threshold-microvolt = <1800000>;
+		poll-interval = <100>;
+
+		button-maskrom {
+			label = "MASKROM";
+			linux,code = <KEY_SETUP>;
+			press-threshold-microvolt = <0>;
+		};
+	};
+
 	hdmi-con {
 		compatible = "hdmi-connector";
 		type = "a";
Signature · 1 line
2.50.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Diederik de Haas

Both the R5S and R5C have a MASKROM button connected via saradc. For both the R5S as the R5C it's described on page 9 of their respective schematic, identified as 'Recovery'.

Applied, thanks!

And added a NanoPi before the "R5S + R5C"

[1/1] arm64: dts: rockchip: Add maskrom button to R5S + R5C

      commit: 07e04c071a35abe12957b575cd1453ccafc02eb6

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>