Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 752aa460 authored by Fei Mao's avatar Fei Mao Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add touch for QRD Holi-pm6125

And new touch node for QRD Holi-pm6125 device.

Change-Id: I5814485668823e2972cbfcb8ccb2d60e6b6620de
parent e288930e
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
@@ -665,3 +665,65 @@
		};
	};
};

&tlmm {
	touch_avdd_default: touch_avdd_default {
		mux {
			pins = "gpio53";
			function = "gpio";
		};

		config {
			pins = "gpio53";
			drive-strength = <8>;
			bias-disable = <0>;
			output-high;
		};
	};
};

&soc {
	touch_avdd: touch_avdd {
		compatible = "regulator-fixed";
		regulator-name = "touch_avdd";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-enable-ramp-delay = <233>;
		gpio = <&tlmm 53 0>;
		enable-active-high;
		pinctrl-names = "default";
		pinctrl-0 = <&touch_avdd_default>;
	};
};

&qupv3_se8_i2c {
	#address-cells = <1>;
	#size-cells = <0>;

	status = "ok";
	qcom,i2c-touch-active = "focaltech,fts_ts";

	focaltech@38 {
		compatible = "focaltech,fts_ts";
		reg = <0x38>;
		interrupt-parent = <&tlmm>;
		interrupts = <22 0x2008>;
		focaltech,reset-gpio = <&tlmm 21 0x00>;
		focaltech,irq-gpio = <&tlmm 22 0x2008>;
		focaltech,max-touch-number = <5>;
		focaltech,display-coords = <0 0 1080 2340>;

		vcc_i2c-supply = <&L9A>;
		vdd-supply = <&touch_avdd>;

		pinctrl-names = "pmx_ts_active", "pmx_ts_suspend",
				"pmx_ts_release";
		pinctrl-0 = <&ts_active>;
		pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
		pinctrl-2 = <&pmx_ts_release>;

		panel = <&dsi_r66451_amoled_90hz_cmd
			 &dsi_r66451_amoled_90hz_video
			 &dsi_r66451_amoled_cmd &dsi_r66451_amoled_video>;
	};
};