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