]> git.ipfire.org Git - thirdparty/u-boot.git/blob - Bindings/input/touchscreen/himax,hx83112b.yaml
Squashed 'dts/upstream/' content from commit aaba2d45dc2a
[thirdparty/u-boot.git] / Bindings / input / touchscreen / himax,hx83112b.yaml
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
7 title: Himax hx83112b touchscreen controller
8
9 maintainers:
10 - Job Noorman <job@noorman.info>
11
12 allOf:
13 - $ref: touchscreen.yaml#
14
15 properties:
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
35 additionalProperties: false
36
37 required:
38 - compatible
39 - reg
40 - interrupts
41 - reset-gpios
42 - touchscreen-size-x
43 - touchscreen-size-y
44
45 examples:
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 ...