xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/cypress,cyapa.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunCypress I2C Touchpad
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: must be "cypress,cyapa".
5*4882a593Smuzhiyun- reg: I2C address of the chip.
6*4882a593Smuzhiyun- interrupts: interrupt to which the chip is connected (see interrupt
7*4882a593Smuzhiyun	binding[0]).
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun- wakeup-source: touchpad can be used as a wakeup source.
11*4882a593Smuzhiyun- pinctrl-names: should be "default" (see pinctrl binding [1]).
12*4882a593Smuzhiyun- pinctrl-0: a phandle pointing to the pin settings for the device (see
13*4882a593Smuzhiyun	pinctrl binding [1]).
14*4882a593Smuzhiyun- vcc-supply: a phandle for the regulator supplying 3.3V power.
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
17*4882a593Smuzhiyun[1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunExample:
20*4882a593Smuzhiyun	&i2c0 {
21*4882a593Smuzhiyun		/* ... */
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun		/* Cypress Gen3 touchpad */
24*4882a593Smuzhiyun		touchpad@67 {
25*4882a593Smuzhiyun			compatible = "cypress,cyapa";
26*4882a593Smuzhiyun			reg = <0x67>;
27*4882a593Smuzhiyun			interrupt-parent = <&gpio>;
28*4882a593Smuzhiyun			interrupts = <2 IRQ_TYPE_EDGE_FALLING>;	/* GPIO 2 */
29*4882a593Smuzhiyun			wakeup-source;
30*4882a593Smuzhiyun		};
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun		/* Cypress Gen5 and later touchpad */
33*4882a593Smuzhiyun		touchpad@24 {
34*4882a593Smuzhiyun			compatible = "cypress,cyapa";
35*4882a593Smuzhiyun			reg = <0x24>;
36*4882a593Smuzhiyun			interrupt-parent = <&gpio>;
37*4882a593Smuzhiyun			interrupts = <2 IRQ_TYPE_EDGE_FALLING>;	/* GPIO 2 */
38*4882a593Smuzhiyun			wakeup-source;
39*4882a593Smuzhiyun		};
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun		/* ... */
42*4882a593Smuzhiyun	};
43