On OLIMEX LCD 7/10" there is an option to have resistive touch panel connected to the internal 12 bit ADC on the TI AM335x.
The x coordinates are inverted so the most leftmost coordinate are x=4096 and far to right its x=0.
Introduce made up DTS property (freebsd,x-inverted) to invert the X coordinate to the ti,am3359-tsc node.
ofcourse there can be a bug in the olimex dts but the wires seems to be in the same order as the description, it can also be some problem in the register values for 4 wire touch panels.
I have placed order for other resistive touch panels to get more hw for this driver.
But for now this is the simplest way to get the coordinates to work with Qt applications for example.