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

Commit f5f30dca authored by Paul Chang's avatar Paul Chang Committed by Vijay Navnath Kamble
Browse files

input: touchscreen: Add himax touchscreen support



apq8053-lite FEP-V2 SOM has 2 variants of display Panel -
8" and 10". For 8" display panel the touch vendor is Himax.
Add Himax touchscreen support for 8" Display Panel.

Change-Id: Icfbf21f800b09d83122795fc26f833d5c3bd6bcb
Signed-off-by: default avatarPaul Chang <poyuan_chang@himax.com.tw>
Git-commit: aa2965fae3f8d791d0fd4c8105408bee807b540c
Git-commit: 714259e2f1eadeb712fdb9cf6e6619fe6eece156
Git-commit: 788fbe836fcabb5493596a2ccc393645665e47c5
Git-commit: 884851757226bb87dd51c5686ee9935a7cd95403
Git-commit: a2b465b13af90f22233943c492b6f09a4fa892e7
Git-commit: 1f5b2aaafa1d9935b0831b641edebd18cf05eb04
Git-commit: 3f6ec12edd3200d6d3c4c32b93e4ed390160403d
Git-commit: 7bc077d513ac739518734a4ab7fee80ca63a9d02
Git-commit: 97afcbfbca30b5eeb3b8acc10e2d1b430650e7a0
Git-commit: 566ec5a310816f2527a0f06e164a90fca7c04650
Git-commit: c91150831a152e1123902f36194802124b7d8aca
Git-commit: c48e3f6d989efadc818563a154e8c029d6c8acfd
Git-commit: fc785e480943fec46cc85a920592de714c9662e9
Git-commit: 2e38029b518618d33b295a9db251fdf183584de5
Git-commit: 6ae46c3501c85b874d0f430ead0ecd0b8a465af2
Git-commit: 2dbe6ff0b26c05930cfeb8079c98968d91f4ae85
Git-commit: 104a28fd7540c4674f8a02f4bad3f8a66b5d92d5
Git-commit: 262492fd69d729acdfef1a223e11155c9ed5301d
Git-commit: 887a29104e1d895664642a27db7935c2bbc32d0f
Git-commit: 0caefe38fb476103606494e13f830f2690acf430
Git-commit: f855d7e895df3d307ceee5cef69d410e816a4987
Git-Repo:  https://github.com/HimaxSoftware/msm-3.18


Signed-off-by: default avatarVijay Navnath Kamble <vkambl@codeaurora.org>
parent 177532b0
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
Himax touch controller

Required properties:

 - compatible	: should be "himax,hxcommon"
 - 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.
 - himax,irq-gpio	: irq gpio
 - himax,reset-gpio	: reset gpio

Optional property:
 - vdd-supply		: Analog power supply needed to power device
 - vcc_i2c-supply		: Power source required to pull up i2c bus
 - himax,i2c-pull-up	: specify to indicate pull up is needed
 - himax,disable-gpios	: specify to disable gpios in suspend (power saving)
 - himax,button-map		: virtual key code mappings to be used
 - himax,x-flip		: modify orientation of the x axis
 - himax,y-flip		: modify orientation of the y axis
 - himax,panel-coords	: touch panel min x, min y, max x and
					max y resolution
 - himax,display-coords	: display min x, min y, max x and
					max y resolution
 - himax,reset-delay	: reset delay for controller (ms), default 100
 - himax,fw-image-name	: name of firmware .img file in /etc/firmware
 - himax,power-down		: fully power down regulators in suspend
 - himax,do-lockdown	: perform one time lockdown procedure

Example:
	i2c@f9927000 { /* BLSP1 QUP5 */
		cell-index = <5>;
		compatible = "himax,hxcommon";
		#address-cells = <1>;
		#size-cells = <0>;
		reg-names = "qup_phys_addr";
		reg = <0xf9927000 0x1000>;
		interrupt-names = "qup_err_intr";
		interrupts = <0 99 0>;
		gpios = <&msmgpio 19 0>, /* SCL */
			<&msmgpio 18 0>; /* SDA */
		qcom,i2c-bus-freq = <100000>;
		qcom,i2c-src-freq = <19200000>;

		himax_ts@20 {
			compatible = "himax,hxcommon"
			reg = <0x20>;
			interrupt-parent = <&tlmm>;
			interrupts	= <255 0x2008>;
			vdd-supply 	= <&pm8994_l15>;
			avdd-supply = <&pm8994_l22>;
			himax,panel-coords = <0 720 0 1440>;
			himax,display-coords = <0 720 0 1440>;
			himax,irq-gpio = <&tlmm 255 0x2008>;
			himax,rst-gpio = <&tlmm 8 0x00>;
		};
	};
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@ hitex Hitex Development Tools
holt	Holt Integrated Circuits, Inc.
honeywell	Honeywell
hp	Hewlett Packard
himax   Himax Coroporation
i2se	I2SE GmbH
ibm	International Business Machines (IBM)
idt	Integrated Device Technologies, Inc.
+11 −0
Original line number Diff line number Diff line
@@ -1291,4 +1291,15 @@ config TOUCHSCREEN_GT9XX_v28

source "drivers/input/touchscreen/gt9xx_v2.8/Kconfig"

config TOUCHSCREEN_HIMAX_CHIPSET
	bool "Himax touchpanel CHIPSET"
	depends on I2C
	help
	  Say Y here if you have a Himax CHIPSET touchscreen.
	  HIMAX controllers are multi touch controllers which can
	  report 10 touches at a time.

          If unsure, say N.

source "drivers/input/touchscreen/hxchipset/Kconfig"
endif
+1 −0
Original line number Diff line number Diff line
@@ -105,3 +105,4 @@ obj-$(CONFIG_TOUCHSCREEN_COLIBRI_VF50) += colibri-vf50-ts.o
obj-$(CONFIG_TOUCHSCREEN_ROHM_BU21023)	+= rohm_bu21023.o
obj-$(CONFIG_TOUCHSCREEN_FTS)		+= focaltech_touch/
obj-$(CONFIG_TOUCHSCREEN_GT9XX_v28)		+= gt9xx_v2.8/
obj-$(CONFIG_TOUCHSCREEN_HIMAX_CHIPSET)	+= hxchipset/
+46 −0
Original line number Diff line number Diff line
#
# Himax Touchscreen driver configuration
#

config TOUCHSCREEN_HIMAX_I2C
	tristate "HIMAX chipset i2c touchscreen"
	depends on TOUCHSCREEN_HIMAX_CHIPSET
	help
		Say Y here to enable support for HIMAX CHIPSET over I2C based touchscreens.
		If unsure, say N.

		To compile this driver as a module,
		This enables support for HIMAX CHIPSET over I2C based touchscreens.

config TOUCHSCREEN_HIMAX_DEBUG
	tristate "HIMAX debug function"
	depends on TOUCHSCREEN_HIMAX_I2C
	help
		Say Y here to enable support for HIMAX debug function.

		If unsure, say N.

		To compile this driver as a module,
		This enables support for HIMAX debug function.

config TOUCHSCREEN_HIMAX_ITO_TEST
	tristate "HIMAX driver test over Dragon Board"
	depends on TOUCHSCREEN_HIMAX_I2C
	help
		Say Y here to enable support for HIMAX driver test over Dragon Board.

		If unsure, say N.

		To compile this driver as a module,
		this enables support for HIMAX driver test over Dragon Board.

config HMX_DB
	tristate "HIMAX driver test over Dragon Board"
	depends on TOUCHSCREEN_HIMAX_I2C
	help
		Say Y here to enable support for HIMAX driver test over Dragon Board.

		If unsure, say N.

		To compile this driver as a module,
		this enables support for HIMAX driver test over Dragon Board.
Loading