xref: /openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/bu21013.txt (revision 9f4813b531a0b8cc502fcfb142937fe4e9104d77)
1fb647002SLee Jones* Rohm BU21013 Touch Screen
2fb647002SLee Jones
3fb647002SLee JonesRequired properties:
4fb647002SLee Jones - compatible              : "rohm,bu21013_tp"
5fb647002SLee Jones - reg                     : I2C device address
6a1b70a44SLinus Walleij - reset-gpios             : GPIO pin enabling (selecting) chip (CS)
7db3e34d4SDmitry Torokhov - interrupt-parent        : the phandle for the gpio controller
8db3e34d4SDmitry Torokhov - interrupts              : (gpio) interrupt to which the chip is connected
9fb647002SLee Jones
10fb647002SLee JonesOptional properties:
11a1b70a44SLinus Walleij - touch-gpios             : GPIO pin registering a touch event
12fb647002SLee Jones - <supply_name>-supply    : Phandle to a regulator supply
13*4b6253faSDmitry Torokhov - touchscreen-size-x      : General touchscreen binding, see [1].
14*4b6253faSDmitry Torokhov - touchscreen-size-y      : General touchscreen binding, see [1].
15*4b6253faSDmitry Torokhov - touchscreen-inverted-x  : General touchscreen binding, see [1].
16*4b6253faSDmitry Torokhov - touchscreen-inverted-y  : General touchscreen binding, see [1].
17*4b6253faSDmitry Torokhov - touchscreen-swapped-x-y : General touchscreen binding, see [1].
18*4b6253faSDmitry Torokhov
19*4b6253faSDmitry Torokhov[1] All general touchscreen properties are described in
20*4b6253faSDmitry Torokhov    Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt.
21*4b6253faSDmitry Torokhov
22*4b6253faSDmitry TorokhovDeprecated properties:
23fb647002SLee Jones - rohm,touch-max-x        : Maximum outward permitted limit in the X axis
24fb647002SLee Jones - rohm,touch-max-y        : Maximum outward permitted limit in the Y axis
25fb647002SLee Jones - rohm,flip-x             : Flip touch coordinates on the X axis
26fb647002SLee Jones - rohm,flip-y             : Flip touch coordinates on the Y axis
27fb647002SLee Jones
28fb647002SLee JonesExample:
29fb647002SLee Jones
30fb647002SLee Jones	i2c@80110000 {
314c9847b7SMathieu Malaterre		bu21013_tp@5c {
32fb647002SLee Jones			compatible = "rohm,bu21013_tp";
33fb647002SLee Jones			reg = <0x5c>;
34db3e34d4SDmitry Torokhov			interrupt-parent = <&gpio2>;
35db3e34d4SDmitry Torokhov			interrupts <&20 IRQ_TYPE_LEVEL_LOW>;
36db3e34d4SDmitry Torokhov			touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>;
37fb647002SLee Jones			avdd-supply = <&ab8500_ldo_aux1_reg>;
38fb647002SLee Jones
39*4b6253faSDmitry Torokhov			touchscreen-size-x = <384>;
40*4b6253faSDmitry Torokhov			touchscreen-size-y = <704>;
41*4b6253faSDmitry Torokhov			touchscreen-inverted-y;
42fb647002SLee Jones		};
43fb647002SLee Jones	};
44