mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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";
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user