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

Commit adbc104e authored by Mao Li's avatar Mao Li Committed by Gerrit - the friendly Code Review server
Browse files

input: msg21xx_ts: Mstar touch driver optimization



Mstar driver uses the ic-type DT property for dynamic detection
support. Driver reads a register from the controller and compares
both the values to check if connected touch controller is of
Mstar or not.
Remove all DBG messages and convert them to dev_dbg/info.
Add a debugfs entry for suspend/resume.
Remove ts_data/pdata global declaration and use dev_get_drvdata()
and input_set_drvdata()/dev_set_drvdata() instead.

Change-Id: Ia053745d48faf68b946fbb0cf16d392cbfdd2a3c
Signed-off-by: default avatarMao Li <maol@codeaurora.org>
parent 3511ae2a
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@ Required properties:
			config defined in pin groups of interrupt and reset gpio.
			"pmx_ts_release" : Release configuration of pins, this should specify
			release config defined in pin groups of interrupt and reset gpio.
 - mstar,num-max-touches: It defines the maximum number of touch supported by the controller.
 - mstar,hard-reset-delay-ms : hard reset delay in ms
 - mstar,post-hard-reset-delay-ms : post hard reset delay in ms

Optional properties:

@@ -39,6 +42,10 @@ Optional properties:
 - mstar,panel-coords : panel coords for the chip in pixels.
				It is a four tuple consisting of min x,
				min y, max x and max y values
 - mstar,ic-type : It defines the ic-type of the controller. Values are as folows:
			1 -> msg2133.
			2 -> msg21xxA.
			3 -> msg26xxM.

Example:
	i2c@78b9000 { /* BLSP1 QUP5 */
@@ -56,5 +63,9 @@ Example:
			pinctrl-0 = <&ts_int_active &ts_reset_active>;
			pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
			mstar,button-map = <172 139 158>;
			mstar,ic-type = <2>;
			mstar,num_max_touches = <2>;
			mstar,hard-reset-delay-ms = <100>;
			mstar,post-hard-reset-delay-ms = <100>;
		};
	};
+5 −1
Original line number Diff line number Diff line
@@ -36,6 +36,10 @@
			pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
			pinctrl-2 = <&ts_release>;
			mstar,button-map = <172 139 158>;
			mstar,ic-type = <2>;
			mstar,num-max-touches = <2>;
			mstar,hard-reset-delay-ms = <100>;
			mstar,post-hard-reset-delay-ms = <100>;
		};
	};
};
+798 −742

File changed.

Preview size limit exceeded, changes collapsed.