Page MenuHomeFreeBSD

am335x: ti_adc add possibility to invert x coordinate
Needs ReviewPublic

Authored by oskar.holmlund_ohdata.se on Jan 4 2024, 9:49 PM.
Tags
Referenced Files
Unknown Object (File)
Wed, Apr 17, 7:59 AM
Unknown Object (File)
Thu, Apr 4, 10:51 PM
Unknown Object (File)
Feb 22 2024, 10:55 PM
Unknown Object (File)
Feb 17 2024, 4:34 PM
Unknown Object (File)
Jan 12 2024, 1:09 AM
Unknown Object (File)
Jan 11 2024, 11:06 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped