WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / touchscreen / cypress,cy8ctma140.yaml
blob3225c8d1fdaf002c35ea43bd3b6a0d68967672bc
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma140.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cypress CY8CTMA140 series touchscreen controller bindings
9 maintainers:
10   - Linus Walleij <linus.walleij@linaro.org>
12 allOf:
13   - $ref: touchscreen.yaml#
15 properties:
16   compatible:
17     const: cypress,cy8ctma140
19   reg:
20     const: 0x20
22   clock-frequency:
23     description: I2C client clock frequency, defined for host
24     minimum: 100000
25     maximum: 400000
27   interrupts:
28     maxItems: 1
30   vcpin-supply:
31     description: Analog power supply regulator on VCPIN pin
33   vdd-supply:
34     description: Digital power supply regulator on VDD pin
36   touchscreen-inverted-x: true
37   touchscreen-inverted-y: true
38   touchscreen-size-x: true
39   touchscreen-size-y: true
40   touchscreen-swapped-x-y: true
41   touchscreen-max-pressure: true
43 additionalProperties: false
45 required:
46   - compatible
47   - reg
48   - interrupts
49   - touchscreen-size-x
50   - touchscreen-size-y
51   - touchscreen-max-pressure
53 examples:
54   - |
55     #include <dt-bindings/interrupt-controller/irq.h>
56     i2c {
57       #address-cells = <1>;
58       #size-cells = <0>;
59       touchscreen@20 {
60         compatible = "cypress,cy8ctma140";
61         reg = <0x20>;
62         touchscreen-size-x = <480>;
63         touchscreen-size-y = <800>;
64         touchscreen-max-pressure = <255>;
65         interrupt-parent = <&gpio6>;
66         interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
67         vdd-supply = <&ab8500_ldo_aux2_reg>;
68         vcpin-supply = <&ab8500_ldo_aux2_reg>;
69       };
70     };
72 ...