In case e.g. qcom,mdss-dsi-panel-orientation = "180"; is set for a panel it should generate code for the panel driver to be able to customize the orientation in DTS (and provide the value to set there as well in the example).
On my OnePlus 5 the used qcom,mdss_dsi_samsung_s6e3fa5_1080p_cmd panel is oriented physically upside down and thus the default rendered output is upside down if this isn't accounted for in the panel driver.
FDT: cheeseburger.dtb.zip
Source DTS: https://github.com/LineageOS/android_kernel_oneplus_msm8998/blob/lineage-19.1/arch/arm/boot/dts/qcom/dsi-panel-samsung_s6e3fa5_1080p_cmd.dtsi#L158
For now I've got these related commits in my mainline kernel fork for the panel driver:
In case e.g.
qcom,mdss-dsi-panel-orientation = "180";is set for a panel it should generate code for the panel driver to be able to customize the orientation in DTS (and provide the value to set there as well in the example).On my OnePlus 5 the used
qcom,mdss_dsi_samsung_s6e3fa5_1080p_cmdpanel is oriented physically upside down and thus the default rendered output is upside down if this isn't accounted for in the panel driver.FDT: cheeseburger.dtb.zip
Source DTS: https://github.com/LineageOS/android_kernel_oneplus_msm8998/blob/lineage-19.1/arch/arm/boot/dts/qcom/dsi-panel-samsung_s6e3fa5_1080p_cmd.dtsi#L158
For now I've got these related commits in my mainline kernel fork for the panel driver:
drm/panel: s6e3fa5: Read panel orientationdrm/panel: samsung-s6e3fa5: Implement .get_orientation callback