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#
6
7title: Cypress CY8CTMA140 series touchscreen controller bindings
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    const: cypress,cy8ctma140
18
19  reg:
20    const: 0x20
21
22  clock-frequency:
23    description: I2C client clock frequency, defined for host
24    minimum: 100000
25    maximum: 400000
26
27  interrupts:
28    maxItems: 1
29
30  vcpin-supply:
31    description: Analog power supply regulator on VCPIN pin
32
33  vdd-supply:
34    description: Digital power supply regulator on VDD pin
35
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
42
43additionalProperties: false
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - touchscreen-size-x
50  - touchscreen-size-y
51  - touchscreen-max-pressure
52
53examples:
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    };
71
72...
73