Raspberry Pi 4 + Hyperpixel 4 screen in portrait mode touch seems inverted

I don’t have a Pi 4 or a Hyperpixel yet so can’t help directly but it might be worth looking at Hyperpixel 4 with touch - headache with touch! it looks like a similar problem.