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