From: Jacob Chen Date: Sat, 1 Jul 2017 02:02:47 +0000 (+0800) Subject: ARM: dts: rockchip: enable adc key for rk3288-evb X-Git-Tag: v4.14-rc1~66^2~6^2~33 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ef93f7518f0517ee8b9aaf915eeecff3c9cbddad;p=linux-2.6-block.git ARM: dts: rockchip: enable adc key for rk3288-evb rk3288-evb have many tablet-used adc buttons. Signed-off-by: Jacob Chen Signed-off-by: Heiko Stuebner --- diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi index f549f91e177a..e44ad8052424 100644 --- a/arch/arm/boot/dts/rk3288-evb.dtsi +++ b/arch/arm/boot/dts/rk3288-evb.dtsi @@ -48,6 +48,43 @@ reg = <0x0 0x80000000>; }; + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + + button-up { + label = "Volume Up"; + linux,code = ; + press-threshold-microvolt = <100000>; + }; + + button-down { + label = "Volume Down"; + linux,code = ; + press-threshold-microvolt = <300000>; + }; + + menu { + label = "Menu"; + linux,code = ; + press-threshold-microvolt = <640000>; + }; + + esc { + label = "Esc"; + linux,code = ; + press-threshold-microvolt = <1000000>; + }; + + home { + label = "Home"; + linux,code = ; + press-threshold-microvolt = <1300000>; + }; + }; + backlight: backlight { compatible = "pwm-backlight"; brightness-levels = <