How to rotate only origin?
If you want the origin to rotate 90 degrees on X axis, in object mode press R followed by  X then -90 Enter,  then Ctrl + A (Apply Rotation), then R followed by X 90 Enter.
replace X with Y or Z depending on what axis you need, -90 is the degree of rotation replace that too with whatever value you need.