Merge tag 'block-6.13-20242901' of git://git.kernel.dk/linux
[drm/drm-misc.git] / Documentation / devicetree / bindings / input / touchscreen / hynitron,cstxxx.yaml
blob9cb5d4af00f755e56e41a1f72c06d5fdefa4a378
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/hynitron,cstxxx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Hynitron cstxxx series touchscreen controller
9 description: |
10   Bindings for Hynitron cstxxx series multi-touch touchscreen
11   controllers.
13 maintainers:
14   - Chris Morgan <macromorgan@hotmail.com>
16 allOf:
17   - $ref: touchscreen.yaml#
19 properties:
20   compatible:
21     enum:
22       - hynitron,cst340
24   reg:
25     maxItems: 1
27   interrupts:
28     maxItems: 1
30   reset-gpios:
31     maxItems: 1
33   touchscreen-size-x: true
34   touchscreen-size-y: true
35   touchscreen-inverted-x: true
36   touchscreen-inverted-y: true
37   touchscreen-swapped-x-y: true
39 additionalProperties: false
41 required:
42   - compatible
43   - reg
44   - interrupts
45   - reset-gpios
47 examples:
48   - |
49     #include <dt-bindings/gpio/gpio.h>
50     #include <dt-bindings/interrupt-controller/arm-gic.h>
51     i2c {
52       #address-cells = <1>;
53       #size-cells = <0>;
54       touchscreen@1a {
55         compatible = "hynitron,cst340";
56         reg = <0x1a>;
57         interrupt-parent = <&gpio4>;
58         interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
59         reset-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;
60         touchscreen-size-x = <640>;
61         touchscreen-size-y = <480>;
62       };
63     };
65 ...