diff options
author | Caesar Wang <wxt@rock-chips.com> | 2019-02-20 14:20:05 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2019-02-20 17:06:16 +0800 |
commit | c66526ad82f2d583f277eca2445b034d52259d7d (patch) | |
tree | e0364f45e28cbacaeab5bba87e7fbb9b6f23045f | |
parent | 7df0273f2c3335a83bd62093aa938979e1903dd9 (diff) |
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 <wxt@rock-chips.com>
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts | 32 |
1 files changed, 32 insertions, 0 deletions
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 = <KEY_ESC>; + label = "esc"; + press-threshold-microvolt = <1310000>; + }; + + menu-key { + linux,code = <KEY_MENU>; + label = "menu"; + press-threshold-microvolt = <987000>; + }; + + vol-down-key { + linux,code = <KEY_VOLUMEDOWN>; + label = "volume down"; + press-threshold-microvolt = <300000>; + }; + + vol-up-key { + linux,code = <KEY_VOLUMEUP>; + label = "volume up"; + press-threshold-microvolt = <17000>; + }; + }; + fiq_debugger: fiq-debugger { compatible = "rockchip,fiq-debugger"; rockchip,serial-id = <2>; |