arm64: dts: rockchip: rk1808-evb: support adc keys

Change-Id: I602270b2fe4a32fa2ee3930eb411aef68167f9b9
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
Ziyuan Xu
2018-10-09 09:15:47 +08:00
committed by Tao Huang
parent fb4fc53dc8
commit 50cf0c088c

View File

@@ -3,6 +3,7 @@
#include <dt-bindings/display/media-bus-format.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/sensor-dev.h>
#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 = <KEY_VOLUMEDOWN>;
label = "volume down";
press-threshold-microvolt = <300000>;
};
vol-up-key {
linux,code = <KEY_VOLUMEUP>;
label = "volume up";
press-threshold-microvolt = <18000>;
};
};
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm1 0 25000 0>;