1 Allwinner sun4i low res adc attached tablet keys
2 ------------------------------------------------
5 - compatible: "allwinner,sun4i-a10-lradc-keys"
6 - reg: mmio address range of the chip
7 - interrupts: interrupt to which the chip is connected
8 - vref-supply: powersupply for the lradc reference voltage
10 Each key is represented as a sub-node of "allwinner,sun4i-a10-lradc-keys":
12 Required subnode-properties:
13 - label: Descriptive name of the key.
14 - linux,code: Keycode to emit.
15 - channel: Channel this key is attached to, must be 0 or 1.
16 - voltage: Voltage in µV at lradc input when this key is pressed.
20 #include <dt-bindings/input/input.h>
22 lradc: lradc@01c22800 {
23 compatible = "allwinner,sun4i-a10-lradc-keys";
24 reg = <0x01c22800 0x100>;
26 vref-supply = <®_vcc3v0>;
30 linux,code = <KEY_VOLUMEUP>;
36 label = "Volume Down";
37 linux,code = <KEY_VOLUMEDOWN>;
44 linux,code = <KEY_MENU>;
51 linux,code = <KEY_ENTER>;
58 linux,code = <KEY_HOMEPAGE>;