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
6 Mask Rom key is connected to SARADC and can be read from OS.
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>
12 .../arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 15 +++++++++++++++
13 1 file changed, 15 insertions(+)
15 --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
16 +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
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"
30 + compatible = "adc-keys";
31 + io-channels = <&saradc 0>;
32 + io-channel-names = "buttons";
33 + keyup-threshold-microvolt = <1800000>;
34 + poll-interval = <100>;
38 + linux,code = <KEY_SETUP>;
39 + press-threshold-microvolt = <2000>;
44 stdout-path = "serial2:1500000n8";