xref: /freebsd/sys/contrib/device-tree/Bindings/input/cypress,tm2-touchkey.txt (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1Samsung tm2-touchkey
2
3Required properties:
4- compatible:
5    * "cypress,tm2-touchkey" - for the touchkey found on the tm2 board
6    * "cypress,midas-touchkey" - for the touchkey found on midas boards
7    * "cypress,aries-touchkey" - for the touchkey found on aries boards
8    * "coreriver,tc360-touchkey" - for the Coreriver TouchCore 360 touchkey
9- reg: I2C address of the chip.
10- interrupts: interrupt to which the chip is connected (see interrupt
11	binding[0]).
12- vcc-supply : internal regulator output. 1.8V
13- vdd-supply : power supply for IC 3.3V
14
15Optional properties:
16- linux,keycodes: array of keycodes (max 4), default KEY_PHONE and KEY_BACK
17
18[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
19
20Example:
21	&i2c0 {
22		/* ... */
23
24		touchkey@20 {
25			compatible = "cypress,tm2-touchkey";
26			reg = <0x20>;
27			interrupt-parent = <&gpa3>;
28			interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
29			vcc-supply=<&ldo32_reg>;
30			vdd-supply=<&ldo33_reg>;
31			linux,keycodes = <KEY_PHONE KEY_BACK>;
32		};
33	};
34