18c2ecf20Sopenharmony_ciDevice tree bindings for Zinitx BT541 touchscreen controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci - compatible		: Should be "zinitix,bt541"
68c2ecf20Sopenharmony_ci - reg			: I2C address of the chip. Should be 0x20
78c2ecf20Sopenharmony_ci - interrupts		: Interrupt to which the chip is connected
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciOptional properties:
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci - vdd-supply		: Analog power supply regulator on VCCA pin
128c2ecf20Sopenharmony_ci - vddo-supply		: Digital power supply regulator on VDD pin
138c2ecf20Sopenharmony_ci - zinitix,mode		: Mode of reporting touch points. Some modes may not work
148c2ecf20Sopenharmony_ci			  with a particular ts firmware for unknown reasons. Available
158c2ecf20Sopenharmony_ci			  modes are 1 and 2. Mode 2 is the default and preferred.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciThe touchscreen-* properties are documented in touchscreen.txt in this
188c2ecf20Sopenharmony_cidirectory.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciExample:
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci	i2c@00000000 {
238c2ecf20Sopenharmony_ci		/* ... */
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci		bt541@20 {
268c2ecf20Sopenharmony_ci			compatible = "zinitix,bt541";
278c2ecf20Sopenharmony_ci			reg = <0x20>;
288c2ecf20Sopenharmony_ci			interrupt-parent = <&msmgpio>;
298c2ecf20Sopenharmony_ci			interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
308c2ecf20Sopenharmony_ci			pinctrl-names = "default";
318c2ecf20Sopenharmony_ci			pinctrl-0 = <&tsp_default>;
328c2ecf20Sopenharmony_ci			vdd-supply = <&reg_vdd_tsp>;
338c2ecf20Sopenharmony_ci			vddo-supply = <&pm8916_l6>;
348c2ecf20Sopenharmony_ci			touchscreen-size-x = <540>;
358c2ecf20Sopenharmony_ci			touchscreen-size-y = <960>;
368c2ecf20Sopenharmony_ci			zinitix,mode = <2>;
378c2ecf20Sopenharmony_ci		};
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci		/* ... */
408c2ecf20Sopenharmony_ci	};
41