arm64: dts: rockchip: rk1808 move adc key label to specific board dts

different board have different key definition, so move adc key label
to specific board dts.

Change-Id: I71da316c639ca0fd063c1ec5c2e303f1a824ed71
Signed-off-by: Lin Huang <hl@rock-chips.com>
This commit is contained in:
Lin Huang
2018-12-20 16:51:05 +08:00
committed by Tao Huang
parent d4d7e73829
commit ef2f9b921c
2 changed files with 15 additions and 13 deletions

View File

@@ -24,6 +24,20 @@
};
};
&adc_key {
vol-down-key {
linux,code = <KEY_VOLUMEDOWN>;
label = "volume down";
press-threshold-microvolt = <300000>;
};
vol-up-key {
linux,code = <KEY_VOLUMEUP>;
label = "volume up";
press-threshold-microvolt = <18000>;
};
};
&display_subsystem {
status = "okay";
};

View File

@@ -12,25 +12,13 @@
model = "Rockchip RK1808 EVB";
compatible = "rockchip,rk1808-evb", "rockchip,rk1808";
adc-keys {
adc_key: adc-keys {
compatible = "adc-keys";
autorepeat;
io-channels = <&saradc 2>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1800000>;
poll-interval = <100>;
vol-down-key {
linux,code = <KEY_VOLUMEDOWN>;
label = "volume down";
press-threshold-microvolt = <300000>;
};
vol-up-key {
linux,code = <KEY_VOLUMEUP>;
label = "volume up";
press-threshold-microvolt = <18000>;
};
};
backlight: backlight {