xref: /linux/Documentation/devicetree/bindings/input/touchscreen/rohm,bu21013.yaml (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1*7e52794bSDario Binacchi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*7e52794bSDario Binacchi%YAML 1.2
3*7e52794bSDario Binacchi---
4*7e52794bSDario Binacchi$id: http://devicetree.org/schemas/input/touchscreen/rohm,bu21013.yaml#
5*7e52794bSDario Binacchi$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7e52794bSDario Binacchi
7*7e52794bSDario Binacchititle: Rohm BU21013 touchscreen
8*7e52794bSDario Binacchi
9*7e52794bSDario Binacchidescription:
10*7e52794bSDario Binacchi  Rohm BU21013 I2C driven touchscreen controller.
11*7e52794bSDario Binacchi
12*7e52794bSDario Binacchimaintainers:
13*7e52794bSDario Binacchi  - Dario Binacchi <dario.binacchi@amarulasolutions.com>
14*7e52794bSDario Binacchi
15*7e52794bSDario BinacchiallOf:
16*7e52794bSDario Binacchi  - $ref: touchscreen.yaml#
17*7e52794bSDario Binacchi
18*7e52794bSDario Binacchiproperties:
19*7e52794bSDario Binacchi  compatible:
20*7e52794bSDario Binacchi    enum:
21*7e52794bSDario Binacchi      - rohm,bu21013_tp
22*7e52794bSDario Binacchi
23*7e52794bSDario Binacchi  reg:
24*7e52794bSDario Binacchi    maxItems: 1
25*7e52794bSDario Binacchi
26*7e52794bSDario Binacchi  interrupts:
27*7e52794bSDario Binacchi    maxItems: 1
28*7e52794bSDario Binacchi
29*7e52794bSDario Binacchi  reset-gpios:
30*7e52794bSDario Binacchi    maxItems: 1
31*7e52794bSDario Binacchi
32*7e52794bSDario Binacchi  touch-gpios:
33*7e52794bSDario Binacchi    maxItems: 1
34*7e52794bSDario Binacchi    description: GPIO registering a touch event.
35*7e52794bSDario Binacchi
36*7e52794bSDario Binacchi  avdd-supply:
37*7e52794bSDario Binacchi    description: Analogic power supply
38*7e52794bSDario Binacchi
39*7e52794bSDario Binacchi  rohm,touch-max-x:
40*7e52794bSDario Binacchi    deprecated: true
41*7e52794bSDario Binacchi    description: Maximum value on the X axis.
42*7e52794bSDario Binacchi    $ref: /schemas/types.yaml#/definitions/uint32
43*7e52794bSDario Binacchi
44*7e52794bSDario Binacchi  rohm,touch-max-y:
45*7e52794bSDario Binacchi    deprecated: true
46*7e52794bSDario Binacchi    description: Maximum value on the Y axis.
47*7e52794bSDario Binacchi    $ref: /schemas/types.yaml#/definitions/uint32
48*7e52794bSDario Binacchi
49*7e52794bSDario Binacchi  rohm,flip-x:
50*7e52794bSDario Binacchi    deprecated: true
51*7e52794bSDario Binacchi    description: Flip touch coordinates on the X axis
52*7e52794bSDario Binacchi    type: boolean
53*7e52794bSDario Binacchi
54*7e52794bSDario Binacchi  rohm,flip-y:
55*7e52794bSDario Binacchi    deprecated: true
56*7e52794bSDario Binacchi    description: Flip touch coordinates on the Y axis
57*7e52794bSDario Binacchi    type: boolean
58*7e52794bSDario Binacchi
59*7e52794bSDario Binacchi  touchscreen-inverted-x: true
60*7e52794bSDario Binacchi  touchscreen-inverted-y: true
61*7e52794bSDario Binacchi  touchscreen-size-x: true
62*7e52794bSDario Binacchi  touchscreen-size-y: true
63*7e52794bSDario Binacchi  touchscreen-swapped-x-y: true
64*7e52794bSDario Binacchi
65*7e52794bSDario BinacchiadditionalProperties: false
66*7e52794bSDario Binacchi
67*7e52794bSDario Binacchirequired:
68*7e52794bSDario Binacchi  - compatible
69*7e52794bSDario Binacchi  - reg
70*7e52794bSDario Binacchi  - reset-gpios
71*7e52794bSDario Binacchi  - interrupts
72*7e52794bSDario Binacchi
73*7e52794bSDario Binacchiexamples:
74*7e52794bSDario Binacchi  - |
75*7e52794bSDario Binacchi    #include <dt-bindings/gpio/gpio.h>
76*7e52794bSDario Binacchi    #include <dt-bindings/interrupt-controller/irq.h>
77*7e52794bSDario Binacchi    i2c {
78*7e52794bSDario Binacchi        #address-cells = <1>;
79*7e52794bSDario Binacchi        #size-cells = <0>;
80*7e52794bSDario Binacchi
81*7e52794bSDario Binacchi        touchscreen@5c {
82*7e52794bSDario Binacchi            compatible = "rohm,bu21013_tp";
83*7e52794bSDario Binacchi            reg = <0x5c>;
84*7e52794bSDario Binacchi
85*7e52794bSDario Binacchi            interrupt-parent = <&gpio2>;
86*7e52794bSDario Binacchi            interrupts = <0x20 IRQ_TYPE_LEVEL_LOW>;
87*7e52794bSDario Binacchi            reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
88*7e52794bSDario Binacchi            touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
89*7e52794bSDario Binacchi            avdd-supply = <&ab8500_ldo_aux1_reg>;
90*7e52794bSDario Binacchi
91*7e52794bSDario Binacchi            touchscreen-size-x = <384>;
92*7e52794bSDario Binacchi            touchscreen-size-y = <704>;
93*7e52794bSDario Binacchi            touchscreen-inverted-y;
94*7e52794bSDario Binacchi        };
95*7e52794bSDario Binacchi    };
96