1 Allwinner sun4i low res adc attached tablet keys
2 ------------------------------------------------
5 - compatible: should be one of the following string:
6 "allwinner,sun4i-a10-lradc-keys"
7 "allwinner,sun8i-a83t-r-lradc"
8 "allwinner,sun50i-a64-lradc", "allwinner,sun8i-a83t-r-lradc"
9 - reg: mmio address range of the chip
10 - interrupts: interrupt to which the chip is connected
11 - vref-supply: powersupply for the lradc reference voltage
13 Each key is represented as a sub-node of the compatible mentioned above:
15 Required subnode-properties:
16 - label: Descriptive name of the key.
17 - linux,code: Keycode to emit.
18 - channel: Channel this key is attached to, must be 0 or 1.
19 - voltage: Voltage in µV at lradc input when this key is pressed.
23 #include <dt-bindings/input/input.h>
25 lradc: lradc@1c22800 {
26 compatible = "allwinner,sun4i-a10-lradc-keys";
27 reg = <0x01c22800 0x100>;
29 vref-supply = <®_vcc3v0>;
33 linux,code = <KEY_VOLUMEUP>;
39 label = "Volume Down";
40 linux,code = <KEY_VOLUMEDOWN>;
47 linux,code = <KEY_MENU>;
54 linux,code = <KEY_ENTER>;
61 linux,code = <KEY_HOMEPAGE>;