mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user