summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml
blob: fa27c6754ca4e91dc8b4664bf7b78a6fafb7c954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/trivial-touch.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Trivial touch screen controller with i2c interface

maintainers:
  - Frank Li <Frank.Li@nxp.com>

properties:
  compatible:
    enum:
      # The Azoteq IQS550, IQS572 and IQS525 trackpad and touchscreen controllers
      - azoteq,iqs550
      - azoteq,iqs572
      - azoteq,iqs525
      # Himax hx83100a touchscreen controller
      - himax,hx83100a
      # Himax hx83112b touchscreen controller
      - himax,hx83112b
      # Hynitron cstxxx series touchscreen controller
      - hynitron,cst340
      # Ilitek I2C Touchscreen Controller
      - ilitek,ili210x
      - ilitek,ili2117
      - ilitek,ili2120
      - ilitek,ili2130
      - ilitek,ili2131
      - ilitek,ili2132
      - ilitek,ili2316
      - ilitek,ili2322
      - ilitek,ili2323
      - ilitek,ili2326
      - ilitek,ili251x
      - ilitek,ili2520
      - ilitek,ili2521
      # MAXI MAX11801 Resistive touch screen controller with i2c interface
      - maxim,max11801
      # Microchip AR1020 and AR1021 touchscreen interface (I2C)
      - microchip,ar1021-i2c
      # Trivial touch screen controller with i2c interface
      - semtech,sx8650
      - semtech,sx8654
      - semtech,sx8655
      - semtech,sx8656

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  reset-gpios:
    maxItems: 1

  wakeup-source: true

allOf:
  - $ref: touchscreen.yaml

required:
  - compatible
  - reg
  - interrupts

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        touchscreen@48 {
            compatible = "maxim,max11801";
            reg = <0x48>;
            interrupt-parent = <&gpio3>;
            interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
        };
    };