From c66526ad82f2d583f277eca2445b034d52259d7d Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Wed, 20 Feb 2019 14:20:05 +0800 Subject: [PATCH] arm64: dts: rockchip: add the adc_keys for rk3399-sapphire-excavator-linux.dts There are four adc keys on rk3399 sapphire excavator board, these are ESC/MENU/VOL+/VOL- key. Change-Id: I7ddb6343fd22240739a198665d9ccf82d4529af9 Signed-off-by: Caesar Wang --- .../rk3399-sapphire-excavator-linux.dts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts index 82f34590ce03..895ed9888462 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts @@ -50,6 +50,38 @@ model = "Rockchip RK3399 Excavator Board (Linux Opensource)"; compatible = "rockchip,rk3399-excavator-linux", "rockchip,rk3399"; + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + poll-interval = <100>; + keyup-threshold-microvolt = <1800000>; + + esc-key { + linux,code = ; + label = "esc"; + press-threshold-microvolt = <1310000>; + }; + + menu-key { + linux,code = ; + label = "menu"; + press-threshold-microvolt = <987000>; + }; + + vol-down-key { + linux,code = ; + label = "volume down"; + press-threshold-microvolt = <300000>; + }; + + vol-up-key { + linux,code = ; + label = "volume up"; + press-threshold-microvolt = <17000>; + }; + }; + fiq_debugger: fiq-debugger { compatible = "rockchip,fiq-debugger"; rockchip,serial-id = <2>;