Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atmel-maxtouch #412

Open
wants to merge 172 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
a9b143f
Input: atmel_mxt_ts - remove unnecessary platform data
ndyer Jul 7, 2013
071cfce
Input: atmel_mxt_ts - improve T19 GPIO keys handling
ndyer Jul 7, 2013
ffcc8c3
Input: atmel_mxt_ts - return IRQ_NONE when interrupt handler fails
ndyer Jul 7, 2013
3e1d141
Input: atmel_mxt_ts - define helper functions for size and instances
djkurtz Jul 7, 2013
98db726
Input: atmel_mxt_ts - select FW_LOADER for firmware code
ndyer Jul 7, 2013
aad82e7
Input: atmel_mxt_ts - wait for CHG assert in mxt_check_bootloader
bleungatchromium Jul 7, 2013
9f846c4
Input: atmel_mxt_ts - wait for CHG after bootloader resets
bleungatchromium Jul 7, 2013
4139c6c
Input: atmel_mxt_ts - make wait-after-reset period compatible with al…
Jul 7, 2013
1e3900e
Input: atmel_mxt_ts - improve error reporting and debug
ndyer Jul 7, 2013
414720f
Input: atmel_mxt_ts - implement CRC check for configuration data
ndyer Jul 7, 2013
ea59e11
Input: atmel_mxt_ts - download device config using firmware loader
ndyer Jul 7, 2013
d8411fd
Input: atmel_mxt_ts - calculate and check CRC in config file
ndyer Jul 7, 2013
f81367c
Input: atmel_mxt_ts - add additional bootloader addresses
ndyer Jul 7, 2013
70d9ee8
Input: atmel_mxt_ts - read and report bootloader version
ndyer Jul 7, 2013
3a2ce18
Input: atmel_mxt_ts - implement bootloader frame retries
ndyer Jul 7, 2013
3d1506f
Input: atmel_mxt_ts - improve bootloader progress output
ndyer Jul 7, 2013
087ccdc
Input: atmel_mxt_ts - add check for incorrect firmware file format
ndyer Jul 7, 2013
8d5096c
Input: atmel_mxt_ts - read screen config from chip
ndyer Jul 7, 2013
f1a4bfb
Input: atmel_mxt_ts - use deep sleep mode when stopped
ndyer Jul 7, 2013
8c5211f
Input: atmel_mxt_ts - rename pressure to amplitude to match spec
ndyer Jul 7, 2013
c582a22
Input: atmel_mxt_ts - rename touchscreen defines to include T9
ndyer Jul 7, 2013
7b56b3e
Input: atmel_mxt_ts - handle multiple input reports in one message
ndyer Jul 7, 2013
b223f50
Input: atmel_mxt_ts - add Atmel copyright line
ndyer Feb 20, 2014
b8685d9
Input: atmel_mxt_ts - initialise IRQ before probing
ndyer Feb 28, 2013
b4902ef
Input: atmel_mxt_ts - move input device init into separate function
ndyer Dec 4, 2012
39a81c8
Input: atmel_mxt_ts - handle APP_CRC_FAIL on startup
ndyer Feb 28, 2013
9b52bc4
Input: atmel_mxt_ts - handle bootloader previously unlocked
ndyer Feb 28, 2013
969df91
Input: atmel_mxt_ts - add bootloader addresses for new chips
ndyer Sep 3, 2012
2d4b85b
Input: atmel_mxt_ts - recover from bootloader on probe
ndyer Aug 15, 2012
b17cb42
Input: atmel_mxt_ts - add support for dynamic message size
ndyer Dec 5, 2012
ea99542
Input: atmel_mxt_ts - decode T6 status messages
ndyer Dec 5, 2012
5cea3f6
Input: atmel_mxt_ts - split message handler into separate functions
ndyer Feb 24, 2014
8f55cb3
Input: atmel_mxt_ts - implement T44 message handling
ndyer Dec 5, 2012
da1ac38
Input: atmel_mxt_ts - output status from T48 Noise Supression
ndyer Aug 1, 2012
2c36848
Input: atmel_mxt_ts - output status from T42 Touch Suppression
ndyer Aug 1, 2012
0c147d7
Input: atmel_mxt_ts - implement vector/orientation support
ndyer Jun 2, 2012
2ab82d8
Input: atmel_mxt_ts - implement I2C retries
ndyer Aug 8, 2012
c5b4ec1
Input: atmel_mxt_ts - implement T63 Active Stylus support
ndyer Aug 9, 2012
9d771ff
Input: atmel_mxt_ts - implement support for T15 Key Array
ndyer Aug 9, 2012
f0dca49
Input: atmel_mxt_ts - remove unused defines
ndyer Oct 16, 2012
396c15e
Input: atmel_mxt_ts - verify Information Block checksum on probe
ndyer Dec 7, 2012
0da81a2
Input: atmel_mxt_ts - use T18 RETRIGEN to handle IRQF_TRIGGER_LOW
ndyer Dec 10, 2012
0156be5
Input: atmel_mxt_ts - handle reports from T47 Stylus object
ndyer Dec 10, 2012
d27712e
Input: atmel_mxt_ts - release touch state during suspend
ndyer Dec 10, 2012
1518d84
Input: atmel_mxt_ts - initialize power config before and after downlo…
ndyer Dec 13, 2012
f8f6470
Input: atmel_mxt_ts - add regulator control support
ndyer Jan 16, 2013
8d85106
Input: atmel_mxt_ts - implement support for T100 touch object
ndyer Feb 12, 2013
b63429b
Input: atmel_mxt_ts - allow specification of firmware file name
ndyer Mar 5, 2013
f0eda6f
Input: atmel_mxt_ts - set default irqflags when there is no pdata
yufengshen May 14, 2012
7a81cb5
Input: atmel_mxt_ts - handle cfg filename via pdata/sysfs
ndyer Mar 5, 2013
643f355
Input: atmel_mxt_ts - only use first T9 instance
ndyer Apr 11, 2013
b454937
Input: atmel_mxt_ts - allow input name to be specified in platform data
ndyer Oct 1, 2013
6c472e0
Input: atmel_mxt_ts - implement debug output for messages
ndyer Aug 23, 2011
e0d874c
Input: atmel_mxt_ts - add memory access interface via sysfs
ndyer Aug 23, 2011
3e3aded
Input: atmel_mxt_ts - implement improved debug message interface
ndyer May 31, 2013
8045c06
Input: atmel_mxt_ts - fixed vdd being checked instead of avdd
prajoshpremdas Apr 30, 2014
ac72474
Input: atmel_mxt_ts - fix build error in mxt_read_t9_resolution
ndyer May 20, 2014
d90cff3
Input: atmel_mxt_ts - address code indentation issues
ndyer May 20, 2014
3082f99
Input: atmel_mxt_ts - implement device tree support
ndyer May 23, 2014
47d23bf
Input: atmel_mxt_ts - fix invalid return from mxt_get_bootloader_version
ndyer May 23, 2014
ecf667b
Input: atmel_mxt_ts - Set pointer emulation on touchpads
ndyer May 23, 2014
0ac7589
Input: atmel_mxt_ts - rename mxt_check_reg_init to mxt_update_cfg
ndyer May 23, 2014
1713253
Input: atmel_mxt_ts - change reset GPIO warning to debug message
ndyer May 23, 2014
fbdb834
Input: atmel_mxt_ts - do not reset slots when input device is null
ndyer May 23, 2014
f6cdb4c
Add documentation for device tree
ndyer Jun 5, 2014
ac2b190
Input: atmel_mxt_ts - Initialise input slots with INPUT_MT_DIRECT
ndyer Jun 5, 2014
c790990
Input: atmel_mxt_ts - use async firmware loader interface for config
ndyer Jun 5, 2014
292a98f
Input: atmel_mxt_ts - improve error handling in initialise functions
ndyer Jun 18, 2014
cce1114
Input: atmel_mxt_ts - improve device tree parsing for earlier kernels
ndyer Jun 18, 2014
ee93fae
Input: atmel_mxt_ts - add cfg name and input name to device tree
ndyer Jun 18, 2014
c524432
Input: atmel_mxt_ts - reorder mxt_free_object_table to improve robust…
ndyer Jun 18, 2014
7144d11
Input: atmel_mxt_ts - move functions in file to improve code layout
ndyer Jun 18, 2014
254de6f
Input: atmel_mxt_ts - check gpio validity in mxt_probe_regulators
ndyer Jun 18, 2014
8466580
Input: atmel_mxt_ts - wrap long line
ndyer Jun 18, 2014
3fecd27
Input: atmel_mxt_ts - support config checksum attribute in sysfs
Jun 18, 2014
c7643a5
Input: atmel_mxt_ts - allocate pdata using devm_kzalloc
ndyer Jun 18, 2014
d62312d
Input: atmel_mxt_ts - use of_match_ptr rather than ifdefs
ndyer Jun 18, 2014
a350ed5
Input: atmel_mxt_ts - fix bug with endianness conversion in T100 inti…
ndyer Jun 20, 2014
e6bc3d7
Input: atmel_mxt_ts - leave platform to specify irqflags when using DT
ndyer Jul 3, 2014
9dbb941
Input: atmel_mxt_ts - fix bug in info CRC error output
ndyer Jul 4, 2014
e41f091
Input: atmel_mxt_ts - fix interrupt documentation for tegra
ndyer Jul 23, 2014
75fcc1c
Input: atmel_mxt_ts - simplify mxt_initialize a bit
dtor Jul 23, 2014
a3aa258
Input: atmel_mxt_ts - rework platform data handling
ndyer Jul 24, 2014
c680da9
Input: atmel_mxt_ts - add error check to request_firmware_nowait()
ndyer Jul 24, 2014
9048a68
Input: atmel_mxt_ts - split config update a bit
dtor Jul 23, 2014
b3501d6
Input: atmel_mxt_ts - minor tweak to capitalisation in comment
ndyer Jul 24, 2014
cfb9008
Input: atmel_mxt_ts - remove unnecessary blank line
ndyer Jul 24, 2014
a5a39ec
Input: atmel_mxt_ts - call CRC completion after CRC update
ndyer Jul 28, 2014
645b11d
Input: atmel-mxt_ts - use kstrtou8 in sysfs interface rather than scanf
ndyer Jul 28, 2014
1668937
Input: atmel_mxt_ts - fix checkpatch issue
ndyer Jul 28, 2014
9c6cefd
Input: atmel_mxt_ts - reorder code due to upstream patch churn
ndyer Jul 29, 2014
13a28fc
Input: atmel_mxt_ts - mXT224 DMA quirk was fixed in firmware v2.0.AA
ndyer Jul 29, 2014
0834d5f
Input: atmel_mxt_ts - fix a few issues reported by Coverity
dtor Aug 11, 2014
dae0a25
Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_…
drxaero Jul 20, 2014
8a565da
Input: atmel_mxt_ts - don't spam dmesg with warning about empty inter…
ndyer Sep 2, 2014
1da3bd7
Input: atmel_mxt_ts - remove unnecessary 'out of memory' message
ndyer Sep 9, 2014
861eaec
Input: atmel_mxt_ts - fix checkpatch warning with bare else
ndyer Sep 9, 2014
f56cf2a
Input: atmel_mxt_ts - add guards when sysfs interface called with no …
ndyer Sep 9, 2014
5ebb68c
Input: atmel_mxt_ts - fix double free of input device
swarren Sep 9, 2014
7ba066a
Input: atmel_mxt_ts - adjust MXT_MAX_BLOCK_WRITE
ndyer Oct 24, 2014
128c825
Input: atmel_mxt_ts - implement support for T107 active stylus
ndyer Jun 14, 2013
8a317bd
Input: atmel_mxt_ts - improve handling of hover
ndyer Nov 26, 2014
b6d4b6e
Input: atmel_mxt_ts - handle new T100 touch types
ndyer Oct 24, 2014
febb33d
Input: touchscreen - use __maybe_unused instead of ifdef around suspe…
ndyer Nov 28, 2014
e129ca5
Input: atmel_mxt_ts - improve indentation by reworking if statements
ndyer Dec 5, 2014
d60a46c
Input: atmel_mxt_ts - change T100 debug output from status to tool type
ndyer Dec 5, 2014
3d6afc7
Input: atmel_mxt_ts - disable interrupt for 50ms after reset
ndyer Dec 5, 2014
f49d15d
Input: atmel_mxt_ts - remove extra blank lines
ndyer Dec 9, 2014
870e547
Input: atmel_mxt_ts - remove unnecessary forward declarations
ndyer Dec 9, 2014
c5b2fd9
Input: atmel_mxt_ts - fix merge issue in T100 init code
ndyer Dec 9, 2014
a201886
Input: atmel_mxt_ts - remove unnecessary debug on ENOMEM
ndyer Dec 9, 2014
3907be9
Input: atmel_mxt_ts - fix bug in debug output for T100
ndyer Dec 9, 2014
fca9f31
Input: atmel_mxt_ts - Update device tree documentation
ndyer Mar 10, 2015
96e59cd
Input: atmel_mxt_ts - config CRC may start at T71
ndyer Apr 23, 2015
5ba62ef
Input: atmel_mxt_ts - add suspend modes
ndyer Mar 10, 2015
e464784
Input: atmel_mxt_ts - minor formatting fix
ndyer Mar 10, 2015
e4c68ee
Input: atmel_mxt_ts - guard debug interface when in bootloader mode
ndyer Dec 16, 2014
8aac17c
Input: atmel_mxt_ts - refactor firmware flash to extract context into…
ndyer Dec 23, 2014
632589b
Input: atmel_mxt_ts - refactor code to enter bootloader into separate…
ndyer Dec 23, 2014
e8c0b10
Input: atmel_mxt_ts - combine bootloader version query with probe
ndyer Dec 24, 2014
801f83a
Input: atmel_mxt_ts - improve bootloader state machine handling
ndyer Dec 24, 2014
eb8fdee
Input: atmel_mxt_ts - check firmware format before putting device int…
ndyer Jan 6, 2015
84917e0
Input: atmel_mxt_ts - rename bl_completion to chg_completion
ndyer Mar 19, 2015
c3eb7c2
Input: atmel_mxt_ts - make bootloader interrupt driven
ndyer Mar 19, 2015
d263fc3
Input: atmel_mxt_ts - delay enabling IRQ when not using regulators
ndyer Apr 30, 2015
43c3b3e
Input: atmel_mxt_ts - use BIT() macro when reporting button state
dtor Apr 15, 2015
1593c9a
Input: atmel_mxt_ts - use BIT() macro everywhere
ndyer Jun 4, 2015
d7aaa05
Input: atmel_mxt_ts - use get_unaligned_le16
ndyer Jun 16, 2015
cfd7094
Input: atmel_mxt_ts - move #defines as per upstream
ndyer Jun 16, 2015
122e6d6
Input: atmel_mxt_ts - Improve reporting of stylus buttons
ndyer Jun 16, 2015
2407b22
Input: atmel_mxt_ts - update hovering finger support
Apr 6, 2015
6b8953d
Input: atmel_mxt_ts - factor out T9 and T100 init functions
Apr 6, 2015
61d588d
Input: atmel_mxt_ts - split out touchpad initialisation logic
sjoerdsimons Apr 6, 2015
9028f42
Input: atmel_mxt_ts - add support for Google Pixel 2
dtor Apr 7, 2015
cfe3f58
Input: atmel_mxt_ts - rename TOUCH_CTRL to T9_CTRL
ndyer Jun 4, 2015
93918df
Input: atmel_mxt_ts - reorder init completions to reduce upstream pat…
ndyer Jun 4, 2015
c6d2762
Input: atmel_mxt_ts - fix minor checkpatch errors
ndyer Jun 16, 2015
0b1af86
Input: atmel_mxt_ts - tidy up flow in bootloader retries
ndyer Jun 16, 2015
702785a
Input: atmel_mxt_ts - improve formatting
ndyer Jun 16, 2015
f140cbd
Input: atmel_mxt_ts - remove guards around inclusion of of_gpio.h
ndyer Jun 16, 2015
2ef7380
Input: atmel_mxt_ts - remove warning on zero T44 count
ndyer Jun 16, 2015
463e6ab
Input: atmel_mxt_ts - remove debug about reset GPIO
ndyer Jun 4, 2015
23cff25
Input: atmel_mxt_ts - don't report zero pressure from T9
ndyer Jun 17, 2015
12936a0
Input: atmel_mxt_ts - tool type is ignored when slot is closed
ndyer Jun 22, 2015
7137626
Merge pull request #8 from ndyer/maxtouch-v3.14
ndyer Jul 30, 2015
35058d9
Input: atmel_mxt_ts - refactor to add np variable in mxt_parse_dt
ndyer Aug 6, 2015
85a9ade
Input: atmel_mxt_ts - suspend/resume causes panic if input_dev fails …
Aug 4, 2015
13f22bf
Merge pull request #9 from ndyer/maxtouch-v3.14
ndyer Aug 6, 2015
43a586e
Input: atmel_mxt_ts - check return values in mxt_start and mxt_stop
ndyer Sep 15, 2015
4e86e6b
Input: atmel_mxt_ts - reduce debug level for toggling MSG output
ndyer Oct 22, 2015
46e4fb7
Input: atmel_mxt_ts - split large reads into blocks
ndyer Oct 27, 2015
35b9ed6
Input: atmel_mxt_ts - Add debug for T92 gesture and T93 touch seq msgs
Jan 21, 2015
03bd7e7
Input: atmel_mxt_ts - avoid null regulator handle
ndyer Oct 27, 2015
57af0f6
Input: atmel_mxt_ts - rename config_csum attribute to config_crc
Jul 2, 2014
02086c9
Input: atmel_mxt_ts - initialise sysfs after object table probed
ndyer Oct 29, 2015
37ce0c5
Merge pull request #10 from ndyer/maxtouch-v3.14
ndyer Oct 30, 2015
b63e03a
Input: atmel_mxt_ts - fix bug with entering bootloader
ndyer Dec 15, 2015
586fec6
Input: atmel_mxt_ts - remove duplicated code in mxt_initialize_input_…
ndyer Dec 15, 2015
9541c60
Input: atmel_mxt_ts - remove support for old T63 active stylus
ndyer Dec 15, 2015
ecfe5ef
Input: atmel_mxt_ts - don't register T107 stylus reports unless enabled
ndyer Dec 15, 2015
7d452f7
Merge pull request #12 from ndyer/maxtouch-v3.14
ndyer Dec 17, 2015
49bba71
Input: atmel_mxt_ts - fix warning in mxt_set_up_active_stylus
ndyer Mar 10, 2016
c03ddbc
Input: atmel_mxt_ts - improve touchscreen size/orientation handling
ndyer Jan 11, 2016
f371bc4
Input: atmel_mxt_ts - use min() macro
ndyer Mar 15, 2016
f1804f1
Input: atmel_mxt_ts - remove debug msg in correct places
ndyer Mar 15, 2016
11a72ee
Input: atmel_mxt_ts - remove some blank lines
ndyer Mar 15, 2016
fa6d353
Input: atmel_mxt_ts - add maxtouch to I2C table for module autoload
Dec 11, 2015
71b2796
Input: atmel_mxt_ts - add generic platform data for Chromebooks
dtor Nov 20, 2015
90ddd8b
Input: atmel_mxt_ts - create fw attr before mxt_initialize
ndyer Mar 15, 2016
f83c9bb
Input: atmel_mxt_ts - refactor config update code to add context struct
ndyer Apr 22, 2016
4c72090
Input: atmel_mxt_ts - zero terminate config firmware file
ndyer Apr 22, 2016
72c0333
Merge pull request #13 from ndyer/maxtouch-v3.14
ndyer Apr 25, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions Documentation/devicetree/bindings/input/atmel,maxtouch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Atmel maXTouch touchscreen/touchpad

Required properties:
- compatible:
atmel,maxtouch

- reg: The I2C address of the device

- interrupts: The sink for the touchpad's IRQ output
See ../interrupt-controller/interrupts.txt

Optional properties for main touchpad device:

- linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages
on GPIO bit changes. An array of up to 8 entries can be provided
indicating the Linux keycode mapped to each bit of the status byte,
starting at the LSB. Linux keycodes are defined in
<dt-bindings/input/input.h>.

Note: the numbering of the GPIOs and the bit they start at varies between
maXTouch devices. You must either refer to the documentation, or
experiment to determine which bit corresponds to which input. Use
KEY_RESERVED for unused padding values.

- atmel,suspend-mode: Select method used to suspend:
MXT_SUSPEND_DEEP_SLEEP - use T7 to suspend the device into deep sleep
MXT_SUSPEND_T9_CTRL - use T9.CTRL to turn off touch processing
Definitions are in <dt-bindings/input/atmel_mxt_ts.h>.

- atmel,reset-gpio: Configure RESET GPIO. Required for regulator support.

- atmel,cfg_name: Provide name of configuration file in OBP_RAW format. This
will be downloaded from the firmware loader on probe to the device.

- atmel,input_name: Override name of input device from the default.

Example:

touch@4b {
compatible = "atmel,maxtouch";
reg = <0x4b>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
};
8 changes: 0 additions & 8 deletions arch/arm/mach-s5pv210/mach-goni.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,6 @@ static void __init goni_radio_init(void)

/* TSP */
static struct mxt_platform_data qt602240_platform_data = {
.x_line = 17,
.y_line = 11,
.x_size = 800,
.y_size = 480,
.blen = 0x21,
.threshold = 0x28,
.voltage = 2800000, /* 2.8V */
.orient = MXT_DIAGONAL,
.irqflags = IRQF_TRIGGER_FALLING,
};

Expand Down
1 change: 1 addition & 0 deletions drivers/input/touchscreen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ config TOUCHSCREEN_AD7879_SPI
config TOUCHSCREEN_ATMEL_MXT
tristate "Atmel mXT I2C Touchscreen"
depends on I2C
select FW_LOADER
help
Say Y here if you have Atmel mXT series I2C touchscreen,
such as AT42QT602240/ATMXT224, connected to your system.
Expand Down
Loading