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

Commit 9ad929b6 authored by Shantanu Jain's avatar Shantanu Jain
Browse files

ARM: dts: msm: enable synaptics S1222 touch panel for 8909w V2A/B



Enable Synatipcs S1222 touch panel to add touch support for
MSM8909W V2A/B devices.

Change-Id: Idb43db9fa812984e046138f53d3a6099dc86620a
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent 7e7f0660
Loading
Loading
Loading
Loading
+76 −30
Original line number Original line Diff line number Diff line
@@ -34,40 +34,35 @@
&soc {
&soc {
	i2c@78b9000 { /* BLSP1 QUP5 */
	i2c@78b9000 { /* BLSP1 QUP5 */
		synaptics@20 {
		synaptics@20 {
			status = "disabled";
			compatible = "synaptics,dsx-i2c";
			synaptics,display-coords = <0 0 479 479>;
			reg = <0x20>;
			/delete-property/ synaptics,power-down;
			/delete-property/ synaptics,disable-gpios;
			synaptics,is_wake;
		};

		it7260@46 {
			status = "disabled";
			compatible = "ite,it7260_ts";
			reg = <0x46>;
			interrupt-parent = <&msm_gpio>;
			interrupt-parent = <&msm_gpio>;
			interrupts = <13 0x2008>;
			interrupts = <98 0x2008>;
			/* deleted - avdd-supply */
			vdd_ana-supply = <&pm660_l18>;
			/* deleted - vdd-supply */
			vcc_i2c-supply = <&pm660_l13>;
			/* pins used by touchscreen */
			synaptics,pwr-reg-name = "vdd_ana";
			pinctrl-names = "pmx_ts_active","pmx_ts_suspend", \
			synaptics,bus-reg-name = "vcc_i2c";
			pinctrl-names = "pmx_ts_active", "pmx_ts_suspend",
							"pmx_ts_release";
							"pmx_ts_release";
			pinctrl-0 = <&ts_int_active &ts_ite_reset_active>;
			pinctrl-0 = <&ts_int_active &ts_reset_active>;
			pinctrl-1 = <&ts_int_suspend &ts_ite_reset_suspend>;
			pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
			pinctrl-2 = <&ts_release>;
			pinctrl-2 = <&ts_release>;
			ite,reset-gpio = <&msm_gpio 12 0x00>;
			synaptics,irq-gpio = <&msm_gpio 98 0x2008>;
			ite,irq-gpio = <&msm_gpio 13 0x2008>;
			synaptics,irq-on-state = <0>;
			ite,panel-coords = <0 0 320 320>;
			synaptics,irq-flags = <0x2008>;
			ite,display-coords = <0 0 320 320>;
			synaptics,power-delay-ms = <200>;
			ite,reset-delay = <20>;
			synaptics,reset-delay-ms = <200>;
			ite,num-fingers = <2>;
			synaptics,max-y-for-2d = <389>;
			ite,wakeup;
			synaptics,resume-in-workqueue;
			ite,palm-detect-en;
			/delete-property/ synaptics,reset-gpio;
			ite,palm-detect-keycode = <142>;
			/delete-property/ synaptics,display-coords;
			ite,fw-name = "it7260_fw_050D0014.bin";
			/delete-property/ synaptics,panel-coords;
			ite,cfg-name = "it7260_cfg_62011E01.bin";
			/delete-property/ synaptics,power-down;
			ite,avdd-lpm-cur = <3000>;
			/delete-property/ synaptics,disable-gpios;
			/delete-property/ synaptics,is_wake;
		};
		};

		/delete-node/ it7260@46;
	};
	};


	qcom,blackghost {
	qcom,blackghost {
@@ -164,3 +159,54 @@
		};
		};
	};
	};
};
};

/* Pinctrl dt nodes for interrupt & reset gpio for Synaptics touch controller */
&ts_int_active {
	mux {
		pins = "gpio98";
	};

	config {
		pins = "gpio98";
	};
};

&ts_int_suspend {
	mux {
		pins = "gpio98";
	};

	config {
		pins = "gpio98";
	};
};

&ts_reset_active {
	mux {
		pins = "gpio16";
	};

	config {
		pins = "gpio16";
	};
};

&ts_reset_suspend {
	mux {
		pins = "gpio16";
	};

	config {
		pins = "gpio16";
	};
};

&ts_release {
	mux {
		pins = "gpio98", "gpio16";
	};

	config {
		pins = "gpio98", "gpio16";
	};
};