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