In the Android kernel you can set the devicetree property qcom,mdss-dsi-panel-orientation in the devicetree node of the panel to configure how the panel is mounted.
In your case I believe it should be:
... your other properties ...
qcom,mdss-dsi-panel-orientation = "180";
For further reference see Documentation/devicetree/bindings/fb/mdss-dsi-panel.txt