From 50cf0c088c46f91dfa2e50eef1b00a466e75cb36 Mon Sep 17 00:00:00 2001 From: Ziyuan Xu Date: Tue, 9 Oct 2018 09:15:47 +0800 Subject: [PATCH] arm64: dts: rockchip: rk1808-evb: support adc keys Change-Id: I602270b2fe4a32fa2ee3930eb411aef68167f9b9 Signed-off-by: Ziyuan Xu --- arch/arm64/boot/dts/rockchip/rk1808-evb.dtsi | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk1808-evb.dtsi b/arch/arm64/boot/dts/rockchip/rk1808-evb.dtsi index e5ef7d57db26..ff7f101ac519 100644 --- a/arch/arm64/boot/dts/rockchip/rk1808-evb.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk1808-evb.dtsi @@ -3,6 +3,7 @@ #include #include +#include #include #include #include "rk1808.dtsi" @@ -11,6 +12,27 @@ model = "Rockchip RK1808 EVB"; compatible = "rockchip,rk1808-evb", "rockchip,rk1808"; + adc-keys { + compatible = "adc-keys"; + autorepeat; + io-channels = <&saradc 2>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + vol-down-key { + linux,code = ; + label = "volume down"; + press-threshold-microvolt = <300000>; + }; + + vol-up-key { + linux,code = ; + label = "volume up"; + press-threshold-microvolt = <18000>; + }; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm1 0 25000 0>;