cf179d9fa9368afa9da71b0e68966744ea4bb6d3
[openwrt/staging/stintel.git] /
1 From da439eed06ff6806f22341ab0468226afc555305 Mon Sep 17 00:00:00 2001
2 From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
3 Date: Thu, 29 Aug 2024 14:27:00 +0200
4 Subject: [PATCH] arm64: dts: rockchip: add Mask Rom key on NanoPC-T6
5
6 Mask Rom key is connected to SARADC and can be read from OS.
7
8 Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
9 Link: https://lore.kernel.org/r/20240829-friendlyelec-nanopc-t6-lts-v6-9-edff247e8c02@linaro.org
10 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
11 ---
12 .../arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 15 +++++++++++++++
13 1 file changed, 15 insertions(+)
14
15 --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
16 +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
17 @@ -8,6 +8,7 @@
18 /dts-v1/;
19
20 #include <dt-bindings/gpio/gpio.h>
21 +#include <dt-bindings/input/input.h>
22 #include <dt-bindings/pinctrl/rockchip.h>
23 #include <dt-bindings/usb/pd.h>
24 #include "rk3588.dtsi"
25 @@ -21,6 +22,20 @@
26 mmc1 = &sdmmc;
27 };
28
29 + adc-keys-0 {
30 + compatible = "adc-keys";
31 + io-channels = <&saradc 0>;
32 + io-channel-names = "buttons";
33 + keyup-threshold-microvolt = <1800000>;
34 + poll-interval = <100>;
35 +
36 + button-maskrom {
37 + label = "Mask Rom";
38 + linux,code = <KEY_SETUP>;
39 + press-threshold-microvolt = <2000>;
40 + };
41 + };
42 +
43 chosen {
44 stdout-path = "serial2:1500000n8";
45 };