Debian Codegraph @

Documentation/devicetree/bindings/input/touchscreen/himax,hx852es.yaml

raw
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,hx852es.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Himax HX852x(ES) touch panel controller
8
9 maintainers:
10 - Stephan Gerhold <[email protected]>
11
12 allOf:
13 - $ref: touchscreen.yaml#
14
15 properties:
16 compatible:
17 items:
18 - enum:
19 - himax,hx8525e
20 - himax,hx8526e
21 - himax,hx8527e
22 - const: himax,hx852es
23
24 reg:
25 maxItems: 1
26
27 interrupts:
28 maxItems: 1
29 description: Touch Screen Interrupt (TSIX), active low
30
31 reset-gpios:
32 maxItems: 1
33 description: External Reset (XRES), active low
34
35 vcca-supply:
36 description: Analog power supply (VCCA)
37
38 vccd-supply:
39 description: Digital power supply (VCCD)
40
41 touchscreen-inverted-x: true
42 touchscreen-inverted-y: true
43 touchscreen-size-x: true
44 touchscreen-size-y: true
45 touchscreen-swapped-x-y: true
46
47 linux,keycodes:
48 minItems: 1
49 maxItems: 4
50
51 required:
52 - compatible
53 - reg
54 - interrupts
55 - reset-gpios
56
57 additionalProperties: false
58
59 examples:
60 - |
61 #include <dt-bindings/gpio/gpio.h>
62 #include <dt-bindings/input/input.h>
63 #include <dt-bindings/interrupt-controller/irq.h>
64
65 i2c {
66 #address-cells = <1>;
67 #size-cells = <0>;
68
69 touchscreen@48 {
70 compatible = "himax,hx8527e", "himax,hx852es";
71 reg = <0x48>;
72 interrupt-parent = <&tlmm>;
73 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
74 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
75 vcca-supply = <&reg_ts_vcca>;
76 vccd-supply = <&pm8916_l6>;
77 linux,keycodes = <KEY_BACK KEY_HOMEPAGE KEY_APPSELECT>;
78 };
79 };
80
81 ...