]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ili210x - use resolution from ili251x firmware
authorMarek Vasut <marex@denx.de>
Sun, 17 Oct 2021 04:34:20 +0000 (21:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Oct 2021 05:29:32 +0000 (22:29 -0700)
commit2f5a4f3c6a876384e262b2bfd9bca3ef441cc4e8
tree5a67e2aa343356d2942442ac367ee1eaf47c4e59
parent39055cebfd051147725ee4856f2365cda02f0fc8
Input: ili210x - use resolution from ili251x firmware

The ili251x firmware protocol permits readout of panel resolution,
implement this, but make it possible to override this value using
DT bindings. This way, older DTs which contain touchscreen-size-x
and touchscreen-size-y properties will behave just like before and
new DTs may avoid specifying these for ILI251x.

Note that the command format is different on other controllers, so
this functionality is isolated to ILI251x.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20210831202506.181927-1-marex@denx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ili210x.c