xref: /linux/Documentation/devicetree/bindings/input/touchscreen/himax,hx83112b.yaml (revision 8a922b7728a93d837954315c98b84f6b78de0c4f)
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/himax,hx83112b.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Himax hx83112b touchscreen controller
8
9maintainers:
10  - Job Noorman <job@noorman.info>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    enum:
18      - himax,hx83112b
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  reset-gpios:
27    maxItems: 1
28
29  touchscreen-inverted-x: true
30  touchscreen-inverted-y: true
31  touchscreen-size-x: true
32  touchscreen-size-y: true
33  touchscreen-swapped-x-y: true
34
35additionalProperties: false
36
37required:
38  - compatible
39  - reg
40  - interrupts
41  - reset-gpios
42  - touchscreen-size-x
43  - touchscreen-size-y
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    #include <dt-bindings/gpio/gpio.h>
49    i2c {
50      #address-cells = <1>;
51      #size-cells = <0>;
52      touchscreen@48 {
53        compatible = "himax,hx83112b";
54        reg = <0x48>;
55        interrupt-parent = <&tlmm>;
56        interrupts = <65 IRQ_TYPE_LEVEL_LOW>;
57        touchscreen-size-x = <1080>;
58        touchscreen-size-y = <2160>;
59        reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
60      };
61    };
62
63...
64