xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/touchscreen/zinitix.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDevice tree bindings for Zinitx BT541 touchscreen controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun - compatible		: Should be "zinitix,bt541"
6*4882a593Smuzhiyun - reg			: I2C address of the chip. Should be 0x20
7*4882a593Smuzhiyun - interrupts		: Interrupt to which the chip is connected
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun - vdd-supply		: Analog power supply regulator on VCCA pin
12*4882a593Smuzhiyun - vddo-supply		: Digital power supply regulator on VDD pin
13*4882a593Smuzhiyun - zinitix,mode		: Mode of reporting touch points. Some modes may not work
14*4882a593Smuzhiyun			  with a particular ts firmware for unknown reasons. Available
15*4882a593Smuzhiyun			  modes are 1 and 2. Mode 2 is the default and preferred.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunThe touchscreen-* properties are documented in touchscreen.txt in this
18*4882a593Smuzhiyundirectory.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunExample:
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun	i2c@00000000 {
23*4882a593Smuzhiyun		/* ... */
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun		bt541@20 {
26*4882a593Smuzhiyun			compatible = "zinitix,bt541";
27*4882a593Smuzhiyun			reg = <0x20>;
28*4882a593Smuzhiyun			interrupt-parent = <&msmgpio>;
29*4882a593Smuzhiyun			interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
30*4882a593Smuzhiyun			pinctrl-names = "default";
31*4882a593Smuzhiyun			pinctrl-0 = <&tsp_default>;
32*4882a593Smuzhiyun			vdd-supply = <&reg_vdd_tsp>;
33*4882a593Smuzhiyun			vddo-supply = <&pm8916_l6>;
34*4882a593Smuzhiyun			touchscreen-size-x = <540>;
35*4882a593Smuzhiyun			touchscreen-size-y = <960>;
36*4882a593Smuzhiyun			zinitix,mode = <2>;
37*4882a593Smuzhiyun		};
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun		/* ... */
40*4882a593Smuzhiyun	};
41