xref: /linux/Documentation/devicetree/bindings/input/touchscreen/wacom,w9007a-lt03.yaml (revision e1611017870fa1582b5ff9ec0edc09542318daa6)
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/wacom,w9007a-lt03.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Wacom W9000-series penabled I2C touchscreen
8
9maintainers:
10  - Hendrik Noack <hendrik-noack@gmx.de>
11
12description: |
13  The W9000-series are penabled touchscreen controllers by Wacom.
14
15  The firmware of controllers in different devices may differ. This can also
16  affect the controller's behavior.
17
18allOf:
19  - $ref: touchscreen.yaml#
20
21properties:
22  compatible:
23    enum:
24      - wacom,w9002
25      - wacom,w9007a-lt03
26      - wacom,w9007a-v1
27
28  reg:
29    maxItems: 1
30
31  interrupts:
32    maxItems: 1
33
34  vdd-supply: true
35
36  flash-mode-gpios:
37    maxItems: 1
38
39  reset-gpios:
40    maxItems: 1
41
42required:
43  - compatible
44  - reg
45  - interrupts
46
47unevaluatedProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/gpio/gpio.h>
52    #include <dt-bindings/interrupt-controller/irq.h>
53
54    i2c {
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        digitizer@56 {
59            compatible = "wacom,w9007a-lt03";
60            reg = <0x56>;
61            interrupt-parent = <&gpd1>;
62            interrupts = <1 IRQ_TYPE_EDGE_RISING>;
63
64            vdd-supply = <&stylus_reg>;
65
66            flash-mode-gpios = <&gpd1 3 GPIO_ACTIVE_HIGH>;
67            reset-gpios = <&gpx0 1 GPIO_ACTIVE_LOW>;
68
69            touchscreen-x-mm = <216>;
70            touchscreen-y-mm = <135>;
71            touchscreen-inverted-x;
72        };
73    };
74