mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 21:39:07 +07:00
ad5396ee32
Add device tree bindings for mms114 touchscreen. [Dmitry Torokhov: added #ifdef CONFIG_OF guards] Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
35 lines
669 B
Plaintext
35 lines
669 B
Plaintext
* MELFAS MMS114 touchscreen controller
|
|
|
|
Required properties:
|
|
- compatible: must be "melfas,mms114"
|
|
- reg: I2C address of the chip
|
|
- interrupts: interrupt to which the chip is connected
|
|
- x-size: horizontal resolution of touchscreen
|
|
- y-size: vertical resolution of touchscreen
|
|
|
|
Optional properties:
|
|
- contact-threshold:
|
|
- moving-threshold:
|
|
- x-invert: invert X axis
|
|
- y-invert: invert Y axis
|
|
|
|
Example:
|
|
|
|
i2c@00000000 {
|
|
/* ... */
|
|
|
|
touchscreen@48 {
|
|
compatible = "melfas,mms114";
|
|
reg = <0x48>;
|
|
interrupts = <39 0>;
|
|
x-size = <720>;
|
|
y-size = <1280>;
|
|
contact-threshold = <10>;
|
|
moving-threshold = <10>;
|
|
x-invert;
|
|
y-invert;
|
|
};
|
|
|
|
/* ... */
|
|
};
|