Skip to content

Commit 93b94b9

Browse files
ZhengShunQianrkhuangtao
authored andcommitted
arm: dts: rockchip: add saradc keys for px3se evb
The px3se evb board has a adc keyboard including Vol+, Vol-, ESC, Home, Menu, Reserve. Change-Id: Id3794d7a845f7c5364900865440a731d162a9ad0 Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
1 parent cc20bc0 commit 93b94b9

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

arch/arm/boot/dts/px3se-evb.dts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "rk3128.dtsi"
55
#include <dt-bindings/display/drm_mipi_dsi.h>
6+
#include <dt-bindings/input/input.h>
67

78
/ {
89
model = "Rockchip PX3SE Evaluation Board";
@@ -12,6 +13,50 @@
1213
bootargs = "loglevel=7 root=PARTUUID=614e0000-0000-4b53-8000-1d28000054a9 rootwait";
1314
};
1415

16+
adc-keys {
17+
compatible = "adc-keys";
18+
io-channels = <&saradc 1>;
19+
io-channel-names = "buttons";
20+
poll-interval = <100>;
21+
keyup-threshold-microvolt = <1800000>;
22+
23+
reserved-key {
24+
linux,code = <KEY_RESERVED>;
25+
label = "reserved";
26+
press-threshold-microvolt = <1549000>;
27+
};
28+
29+
home-key {
30+
linux,code = <KEY_HOME>;
31+
label = "home";
32+
press-threshold-microvolt = <1314000>;
33+
};
34+
35+
esc-key {
36+
linux,code = <KEY_ESC>;
37+
label = "esc";
38+
press-threshold-microvolt = <985000>;
39+
};
40+
41+
menu-key {
42+
linux,code = <KEY_MENU>;
43+
label = "menu";
44+
press-threshold-microvolt = <623000>;
45+
};
46+
47+
vol-down-key {
48+
linux,code = <KEY_VOLUMEDOWN>;
49+
label = "volume down";
50+
press-threshold-microvolt = <300000>;
51+
};
52+
53+
vol-up-key {
54+
linux,code = <KEY_VOLUMEUP>;
55+
label = "volume up";
56+
press-threshold-microvolt = <18000>;
57+
};
58+
};
59+
1560
backlight: backlight {
1661
compatible = "pwm-backlight";
1762

@@ -418,6 +463,11 @@
418463
status = "okay";
419464
};
420465

466+
&saradc {
467+
status = "okay";
468+
vref-supply = <&vcc_io>;
469+
};
470+
421471
&sdio {
422472
cap-mmc-highspeed;
423473
cap-sd-highspeed;

0 commit comments

Comments
 (0)