arm64: dts: rockchip: remove adc-keys from rk3399-android.dtsi

Change-Id: I4a01cfcc4dfe69cab164836d4b2ecc893d463356
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu
2019-12-18 17:18:11 +08:00
committed by Tao Huang
parent e8c812380f
commit a25827902c
3 changed files with 88 additions and 45 deletions

View File

@@ -100,51 +100,6 @@
};
};
adc_keys: 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 = <1750>;
};
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <297500>;
};
menu-key {
label = "menu";
linux,code = <KEY_MENU>;
press-threshold-microvolt = <1305500>;
};
home-key {
label = "home";
linux,code = <KEY_HOME>;
press-threshold-microvolt = <621250>;
};
back-key {
label = "back";
linux,code = <KEY_BACK>;
press-threshold-microvolt = <980000>;
};
camera-key {
label = "camera";
linux,code = <KEY_CAMERA>;
press-threshold-microvolt = <787500>;
};
};
gpio_keys: gpio-keys {
compatible = "gpio-keys";
autorepeat;

View File

@@ -47,6 +47,50 @@
/ {
compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
adc_keys: 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 = <1750>;
};
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <297500>;
};
menu-key {
label = "menu";
linux,code = <KEY_MENU>;
press-threshold-microvolt = <1305500>;
};
home-key {
label = "home";
linux,code = <KEY_HOME>;
press-threshold-microvolt = <621250>;
};
back-key {
label = "back";
linux,code = <KEY_BACK>;
press-threshold-microvolt = <980000>;
};
camera-key {
label = "camera";
linux,code = <KEY_CAMERA>;
press-threshold-microvolt = <787500>;
};
};
vcc3v3_sys: vcc3v3-sys {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_sys";

View File

@@ -11,6 +11,50 @@
/ {
compatible = "rockchip,rk3399-sapphire", "rockchip,rk3399";
adc_keys: 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 = <1750>;
};
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <297500>;
};
menu-key {
label = "menu";
linux,code = <KEY_MENU>;
press-threshold-microvolt = <1305500>;
};
home-key {
label = "home";
linux,code = <KEY_HOME>;
press-threshold-microvolt = <621250>;
};
back-key {
label = "back";
linux,code = <KEY_BACK>;
press-threshold-microvolt = <980000>;
};
camera-key {
label = "camera";
linux,code = <KEY_CAMERA>;
press-threshold-microvolt = <787500>;
};
};
backlight: backlight {
compatible = "pwm-backlight";
brightness-levels = <