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