From a3bf5c75fcd580bfe2846fda593a4a50bdee1e27 Mon Sep 17 00:00:00 2001 From: Weiwen Chen Date: Tue, 18 Oct 2022 20:46:21 +0800 Subject: [PATCH] ARM: dts: rockchip: rv1106-evb: Add adc-key As saradc is disabled, so adc-key is disabled default. To enable adc-key, add saradc as follow: &saradc { status = "okay"; vref-supply = <&vcc_1v8>; }; Signed-off-by: Weiwen Chen Change-Id: Ia111f503ed187432ca13dd9a6d37cc000ac25d2b --- arch/arm/boot/dts/rv1106-evb.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/rv1106-evb.dtsi b/arch/arm/boot/dts/rv1106-evb.dtsi index 114c23eee5c5..f8e002b9df11 100644 --- a/arch/arm/boot/dts/rv1106-evb.dtsi +++ b/arch/arm/boot/dts/rv1106-evb.dtsi @@ -3,9 +3,28 @@ * Copyright (c) 2022 Rockchip Electronics Co., Ltd. */ #include "rv1106-amp.dtsi" +#include / { + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 0>; + io-channel-names = "buttons"; + poll-interval = <100>; + keyup-threshold-microvolt = <1800000>; + key_volumeup-key { + label = "key_volumeup"; + linux,code = ; + press-threshold-microvolt = <0>; + }; + + key_volumedown-key { + label = "key_volumedown"; + linux,code = ; + press-threshold-microvolt = <400781>; + }; + }; }; &fiq_debugger {