spent an embarrassing amount of time trying to get the cyd touchscreen working in landscape mode after an esphome update broke the config. the mipi spi platform started throwing invalid offsets errors and the older ili9xxx platform got deprecated and renamed. turns out the display controller is natively portrait so you need rotation to get landscape but in newer esphome versions that property has to live in the lvgl block not the display block.
the touchscreen calibration was the real pain point. after rotating the display the raw touch coordinates no longer map intuitively to the screen. spent a while cycling through swap xy and mirror x and mirror y combinations until taps lined up with buttons. the swipe gesture logic also needed rewriting because what feels like a horizontal swipe physically becomes a vertical coordinate change after the axis swap. ended up detecting vertical movement instead of horizontal for page swipes. still not perfect but usable now.