arm64: dts: rockchip: add adc_keys node for rk3399 board

Change-Id: I0fde323d5924df5389e51abc584cc6eccbcb6166
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
This commit is contained in:
Wu Liangqing
2019-12-18 17:40:27 +08:00
committed by Tao Huang
parent addd52e777
commit 30e757b4c4
3 changed files with 40 additions and 52 deletions

View File

@@ -14,6 +14,26 @@
/ {
compatible = "rockchip,rk3399-evb-ind", "rockchip,rk3399";
adc_keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1800000>;
poll-interval = <100>;
vol-up-key {
linux,code = <115>;
label = "volume up";
rockchip,adc_value = <1000>;
};
vol-down-key {
linux,code = <114>;
label = "volume down";
rockchip,adc_value = <170000>;
};
};
clkin_gmac: external-gmac-clock {
compatible = "fixed-clock";
clock-frequency = <125000000>;
@@ -48,25 +68,6 @@
};
};
rk_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>;
};
};
dp_sound: dp-sound {
status = "disabled";
compatible = "rockchip,cdndp-sound";

View File

@@ -110,22 +110,6 @@
regulator-max-microvolt = <12000000>;
};
keys: gpio-keys {
compatible = "gpio-keys";
autorepeat;
power {
debounce-interval = <100>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
label = "GPIO Power";
linux,code = <KEY_POWER>;
linux,input-type = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pwr_btn>;
wakeup-source;
};
};
dp_sound: dp-sound {
status = "disabled";
compatible = "rockchip,cdndp-sound";

View File

@@ -14,6 +14,26 @@
#include <dt-bindings/display/mipi_dsi.h>
/ {
adc_keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1800000>;
poll-interval = <100>;
vol-up-key {
label = "volume up";
linux,code = <KEY_VOLUMEUP>;
press-threshold-microvolt = <1000>;
};
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <170000>;
};
};
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm0 0 25000 0>;
@@ -183,23 +203,6 @@
};
};
&adc_keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
keyup-threshold-microvolt = <1800000>;
vol-up-key {
label = "volume up";
linux,code = <KEY_VOLUMEUP>;
press-threshold-microvolt = <1000>;
};
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <170000>;
};
};
&cdn_dp {
status = "okay";
extcon = <&fusb0>;