xref: /linux/Documentation/devicetree/bindings/input/touchscreen/himax,hx83112b.yaml (revision 55d0969c451159cff86949b38c39171cab962069)
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,hx83100a
19      - himax,hx83112b
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  reset-gpios:
28    maxItems: 1
29
30  touchscreen-inverted-x: true
31  touchscreen-inverted-y: true
32  touchscreen-size-x: true
33  touchscreen-size-y: true
34  touchscreen-swapped-x-y: true
35
36additionalProperties: false
37
38required:
39  - compatible
40  - reg
41  - interrupts
42  - reset-gpios
43  - touchscreen-size-x
44  - touchscreen-size-y
45
46examples:
47  - |
48    #include <dt-bindings/interrupt-controller/irq.h>
49    #include <dt-bindings/gpio/gpio.h>
50    i2c {
51      #address-cells = <1>;
52      #size-cells = <0>;
53      touchscreen@48 {
54        compatible = "himax,hx83112b";
55        reg = <0x48>;
56        interrupt-parent = <&tlmm>;
57        interrupts = <65 IRQ_TYPE_LEVEL_LOW>;
58        touchscreen-size-x = <1080>;
59        touchscreen-size-y = <2160>;
60        reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
61      };
62    };
63
64...
65