summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/rk3288-evb.dtsi
diff options
context:
space:
mode:
authorJacob Chen <jacob-chen@iotwrt.com>2017-07-01 10:02:47 +0800
committerHeiko Stuebner <heiko@sntech.de>2017-07-16 17:08:58 +0200
commitef93f7518f0517ee8b9aaf915eeecff3c9cbddad (patch)
tree3b11b0f5ab08108cc10b828b86d8e180f1af063d /arch/arm/boot/dts/rk3288-evb.dtsi
parent849f05538199e9b86c31e69ffb3a7353d04c6e44 (diff)
downloadtalos-op-linux-ef93f7518f0517ee8b9aaf915eeecff3c9cbddad.tar.gz
talos-op-linux-ef93f7518f0517ee8b9aaf915eeecff3c9cbddad.zip
ARM: dts: rockchip: enable adc key for rk3288-evb
rk3288-evb have many tablet-used adc buttons. Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3288-evb.dtsi')
-rw-r--r--arch/arm/boot/dts/rk3288-evb.dtsi37
1 files changed, 37 insertions, 0 deletions
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 = <KEY_VOLUMEUP>;
+ press-threshold-microvolt = <100000>;
+ };
+
+ button-down {
+ label = "Volume Down";
+ linux,code = <KEY_VOLUMEDOWN>;
+ press-threshold-microvolt = <300000>;
+ };
+
+ menu {
+ label = "Menu";
+ linux,code = <KEY_MENU>;
+ press-threshold-microvolt = <640000>;
+ };
+
+ esc {
+ label = "Esc";
+ linux,code = <KEY_ESC>;
+ press-threshold-microvolt = <1000000>;
+ };
+
+ home {
+ label = "Home";
+ linux,code = <KEY_HOME>;
+ press-threshold-microvolt = <1300000>;
+ };
+ };
+
backlight: backlight {
compatible = "pwm-backlight";
brightness-levels = <
OpenPOWER on IntegriCloud