These files can be used to configure the rotation of the touchscreen to 90°, 180° or 270°.
Simply replace the default T5UID1.CFG file with the one that fits your use-case and re-flash your touchscreen.
T5UID1.CFG