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)
commit235300ed8c6ccf8d3044f4ad25b1e984d5dd20d0
tree5a67e2aa343356d2942442ac367ee1eaf47c4e59
parent9e5afc84ff94815ad10853420dcecdf33e9226f8
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