Skip to content

Commit 07e04c0

Browse files
diederikdehaasmmind
authored andcommitted
arm64: dts: rockchip: Add maskrom button to NanoPi 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'. 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 b2501f3 commit 07e04c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@
2525
stdout-path = "serial2:1500000n8";
2626
};
2727

28+
adc-keys {
29+
compatible = "adc-keys";
30+
io-channels = <&saradc 0>;
31+
io-channel-names = "buttons";
32+
keyup-threshold-microvolt = <1800000>;
33+
poll-interval = <100>;
34+
35+
button-maskrom {
36+
label = "MASKROM";
37+
linux,code = <KEY_SETUP>;
38+
press-threshold-microvolt = <0>;
39+
};
40+
};
41+
2842
hdmi-con {
2943
compatible = "hdmi-connector";
3044
type = "a";

0 commit comments

Comments
 (0)