ARM: dts: rockchip: rv1106-evb: Add adc-key
As saradc is disabled, so adc-key is disabled default.
To enable adc-key, add saradc as follow:
&saradc {
status = "okay";
vref-supply = <&vcc_1v8>;
};
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ia111f503ed187432ca13dd9a6d37cc000ac25d2b
This commit is contained in:
@@ -3,9 +3,28 @@
|
||||
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
#include "rv1106-amp.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 0>;
|
||||
io-channel-names = "buttons";
|
||||
poll-interval = <100>;
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
key_volumeup-key {
|
||||
label = "key_volumeup";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
press-threshold-microvolt = <0>;
|
||||
};
|
||||
|
||||
key_volumedown-key {
|
||||
label = "key_volumedown";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
press-threshold-microvolt = <400781>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&fiq_debugger {
|
||||
|
||||
Reference in New Issue
Block a user