mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:55:16 +07:00
f6eeb9e548
Commitaf503716ac
("i2c: core: report OF style module alias for devices registered via OF") fixed how the I2C core reports the module alias when devices are registered via OF. But the atmel_mxt_ts driver only has an "atmel,maxtouch" compatible in its OF device ID table, so if a Device Tree is using a different one, autoload won't be working for the module (the matching works because the I2C device ID table is used as a fallback). So add compatible strings for each of the entries in the I2C device table. Fixes:af503716ac
("i2c: core: report OF style module alias for devices registered via OF") Reported-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: Rob Herring <robh@kernel.org> [dtor: document which compatibles are deprecated and should not be used] Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
Atmel maXTouch touchscreen/touchpad
|
|
|
|
Required properties:
|
|
- compatible:
|
|
atmel,maxtouch
|
|
|
|
The following compatibles have been used in various products but are
|
|
deprecated:
|
|
atmel,qt602240_ts
|
|
atmel,atmel_mxt_ts
|
|
atmel,atmel_mxt_tp
|
|
atmel,mXT224
|
|
|
|
- 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.
|
|
|
|
- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low)
|
|
|
|
Example:
|
|
|
|
touch@4b {
|
|
compatible = "atmel,maxtouch";
|
|
reg = <0x4b>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
|
|
};
|