hi Yuuki,
If you are using X server, you can use xinput & xrandr for up-down invert. This link is for your reference.
https://wiki.ubuntu.com/X/InputCoordinateTransformation
For xinput, you can use "xinput list" to check the input device name. Take Yocto 3.10.17 release as the example.
-> xinput list
| ⎡ Virtual core pointer | id=2 | [master pointer (3)] |
| ⎜ ↳ Virtual core XTEST pointer | id=4 | [slave pointer (2)] |
| ⎜ ↳ eGalax Touch Screen | id=10 [slave pointer (2)] |
| ⎜ ↳ max11801_ts | id=9 | [slave pointer (2)] |
Then invert input coordinate by the command below.
-> xinput set-prop 'eGalax Touch Screen' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
Back to normal by the command.
-> xinput set-prop 'eGalax Touch Screen' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
Regards,
Max