ARM: dts: rockchip: add adc key config for rk3288-evb board

Change-Id: Iab3c08291e6c13be9a66276c72b631c050d0df88
Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
This commit is contained in:
Jianhui Wang 2020-03-13 18:57:04 +08:00 committed by Tao Huang
commit ada5e4edb5
2 changed files with 10 additions and 61 deletions

View file

@ -206,58 +206,6 @@
};
};
rk_key: rockchip-key {
compatible = "rockchip,key";
status = "okay";
io-channels = <&saradc 1>;
vol-up-key {
linux,code = <115>;
label = "volume up";
rockchip,adc_value = <1>;
};
vol-down-key {
linux,code = <114>;
label = "volume down";
rockchip,adc_value = <170>;
};
power-key {
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
linux,code = <116>;
pinctrl-names = "default";
pinctrl-0 = <&pwrbtn>;
label = "power";
gpio-key,wakeup;
};
menu-key {
linux,code = <59>;
label = "menu";
rockchip,adc_value = <355>;
};
home-key {
linux,code = <102>;
label = "home";
rockchip,adc_value = <746>;
};
back-key {
linux,code = <158>;
label = "back";
rockchip,adc_value = <560>;
};
camera-key {
linux,code = <212>;
label = "camera";
rockchip,adc_value = <450>;
};
};
nandc0: nandc@ff400000 {
compatible = "rockchip,rk-nandc";
reg = <0x0 0xff400000 0x0 0x4000>;

View file

@ -48,33 +48,34 @@
io-channels = <&saradc 1>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1800000>;
poll-interval = <100>;
button-up {
label = "Volume Up";
vol-up-key {
label = "volume up";
linux,code = <KEY_VOLUMEUP>;
press-threshold-microvolt = <100000>;
press-threshold-microvolt = <1000>;
};
button-down {
label = "Volume Down";
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <300000>;
press-threshold-microvolt = <170000>;
};
menu {
label = "Menu";
label = "menu";
linux,code = <KEY_MENU>;
press-threshold-microvolt = <640000>;
};
esc {
label = "Esc";
label = "esc";
linux,code = <KEY_ESC>;
press-threshold-microvolt = <1000000>;
};
home {
label = "Home";
label = "home";
linux,code = <KEY_HOME>;
press-threshold-microvolt = <1300000>;
};