1 ADC attached resistor ladder buttons
2 ------------------------------------
5 - compatible: "adc-keys"
6 - io-channels: Phandle to an ADC channel
7 - io-channel-names = "buttons";
8 - keyup-threshold-microvolt: Voltage at which all the keys are considered up.
11 - poll-interval: Poll interval time in milliseconds
12 - autorepeat: Boolean, Enable auto repeat feature of Linux input
15 Each button (key) is represented as a sub-node of "adc-keys":
17 Required subnode-properties:
18 - label: Descriptive name of the key.
19 - linux,code: Keycode to emit.
20 - press-threshold-microvolt: Voltage ADC input when this key is pressed.
24 #include <dt-bindings/input/input.h>
27 compatible = "adc-keys";
28 io-channels = <&lradc 0>;
29 io-channel-names = "buttons";
30 keyup-threshold-microvolt = <2000000>;
34 linux,code = <KEY_VOLUMEUP>;
35 press-threshold-microvolt = <1500000>;
39 label = "Volume Down";
40 linux,code = <KEY_VOLUMEDOWN>;
41 press-threshold-microvolt = <1000000>;
46 linux,code = <KEY_ENTER>;
47 press-threshold-microvolt = <500000>;