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

Commit dc6a0257 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: touchpanel: Add ST Touchscreen version 4.1.0 driver" into msm-4.14

parents ddaa69c1 e8a48fda
Loading
Loading
Loading
Loading
+54 −0
Original line number Original line Diff line number Diff line
STMicroelectronics touch controller

The STMicroelectronics controller is connected to host processor
via i2c. The controller generates interrupts when the
user touches the panel. The host controller is expected
to read the touch coordinates over i2c and pass the coordinates
to the rest of the system.

Required properties:

 - compatible		: should be "st,fts".
 - reg			: i2c slave address of the device.
 - interrupt-parent	: parent of interrupt.
 - interrupts		: touch sample interrupt to indicate presense or release
				of fingers on the panel.
 - vdd-supply		: Power supply needed to power up the device.
 - vcc-supply		: Power source required to power up i2c bus.
 - st,irq-gpio		: irq gpio which is to provide interrupts to host,
				same as "interrupts" node. It will also
				contain active low or active high information.
 - st,reset-gpio	: reset gpio to control the reset of chip.
 - pinctrl-names	: This should be defined if a target uses pinctrl framework.
			See "pinctrl" in Documentation/devicetree/bindings/pinctrl/msm-pinctrl.txt.
			Specify the names of the configs that pinctrl can install in driver.
			Following are the pinctrl configs that can be installed:
			"pmx_ts_active" : Active configuration of pins, this should specify active
			config defined in pin groups of interrupt and reset gpio.
			"pmx_ts_suspend" : Disabled configuration of pins, this should specify sleep
			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.
 - st,regulator_avdd	: name of Power supply needed to power up the device.
 - st,regulator_dvdd	: name of Power source required to power up i2c bus.
Optional properties:


Example:
	i2c@78b9000 { /* BLSP1 QUP5 */
		st_fts@49 {
			compatible = "st,fts";
			reg = <0x49>;
			interrupt-parent = <&msm_gpio>;
			interrupts = <13 0x2008>;
			vdd-supply = <&pm8916_l17>;
			vcc-supply = <&pm8916_l6>;
			pinctrl-names = "pmx_ts_active","pmx_ts_suspend";
			pinctrl-0 = <&ts_int_active &ts_reset_active>;
			pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
			st,irq-gpio = <&msm_gpio 13 0x00000001>;
			st,reset-gpio = <&msm_gpio 12 0x0>;
			st,regulator_dvdd = "vdd";
			st,regulator_avdd = "avdd";
		};
	};
+10 −0
Original line number Original line Diff line number Diff line
@@ -1246,4 +1246,14 @@ config TOUCHSCREEN_ROHM_BU21023
	  To compile this driver as a module, choose M here: the
	  To compile this driver as a module, choose M here: the
	  module will be called bu21023_ts.
	  module will be called bu21023_ts.


config TOUCHSCREEN_ST
	bool "STMicroelectronics Touchscreen Driver"
	depends on I2C
	help
	  Say Y here if you have a STMicroelectronics Touchscreen.

	  If unsure, say N.

source "drivers/input/touchscreen/st/Kconfig"

endif
endif
+1 −0
Original line number Original line Diff line number Diff line
@@ -104,3 +104,4 @@ obj-$(CONFIG_TOUCHSCREEN_ZET6223) += zet6223.o
obj-$(CONFIG_TOUCHSCREEN_ZFORCE)	+= zforce_ts.o
obj-$(CONFIG_TOUCHSCREEN_ZFORCE)	+= zforce_ts.o
obj-$(CONFIG_TOUCHSCREEN_COLIBRI_VF50)	+= colibri-vf50-ts.o
obj-$(CONFIG_TOUCHSCREEN_COLIBRI_VF50)	+= colibri-vf50-ts.o
obj-$(CONFIG_TOUCHSCREEN_ROHM_BU21023)	+= rohm_bu21023.o
obj-$(CONFIG_TOUCHSCREEN_ROHM_BU21023)	+= rohm_bu21023.o
obj-$(CONFIG_TOUCHSCREEN_ST)		+= st/
+9 −0
Original line number Original line Diff line number Diff line
#
# STMicroelectronics touchscreen driver configuration
#

config TOUCHSCREEN_ST_I2C
	tristate "STMicroelectronics i2c touchscreen"
	depends on TOUCHSCREEN_ST
	help
	  This enables support for ST touch panel over I2C based touchscreens.
+5 −0
Original line number Original line Diff line number Diff line
#
## Makefile for the STMicroelectronics touchscreen driver.
#

obj-$(CONFIG_TOUCHSCREEN_ST_I2C) += fts.o fts_gui.o fts_driver_test.o fts_lib/
Loading