说明:
a、本方法适用于sim8930模块和sim8950模块,平台适用于android7、android8、android9
b、一般调屏步骤,这里不做说明,请参考文档 SIM8950 Series Display Driver Development Guide_V1.00.pdf,这里只说明双屏异显屏差异修改
例如修改一个分辨率如下的屏,客户可以按照以下方法修改:
w:1920 88 44 148
h:1080 4 5 36
bootable/bootloader/lk/target/msm8953/rules.mk
#xcz add
DEFINES += DSI1_FLAG2=1
DEFINES += DSI0_FLAG=1
下面文件中的参数根据实际屏参修改
kernel/msm-3.18/arch/arm/boot/dts/qcom/dsi-panel-nt35532-1080p-video-sim2.dtsi
qcom,mdss-dsi-panel-width = <1080>;
qcom,mdss-dsi-h-front-porch = <100>;
qcom,mdss-dsi-h-back-porch = <80>;
qcom,mdss-dsi-h-pulse-width = <20>;
qcom,mdss-dsi-panel-height = <1920>;
qcom,mdss-dsi-v-front-porch = <16>;
qcom,mdss-dsi-v-pulse-width = <5>;
qcom,mdss-dsi-v-back-porch = <16>;
改成:
qcom,mdss-dsi-panel-width = <1920>;
qcom,mdss-dsi-h-front-porch = <88>;
qcom,mdss-dsi-h-pulse-width = <44>;
qcom,mdss-dsi-h-back-porch = <148>;
qcom,mdss-dsi-panel-height = <1080>;
qcom,mdss-dsi-v-front-porch = <4>;
qcom,mdss-dsi-v-pulse-width = <5>;
qcom,mdss-dsi-v-back-porch = <36>;
kernel/msm-3.18/include/uapi/video/msm_hdmi_modes.h
#define HDMI_VFRMT_640x480p60_4_3_TIMING \
{HDMI_VFRMT_1080x1920p60_9_16, 1080, 100, 20, 80, false, \
1920, 16, 5, 16, false, 150297, 60000, false, true, \
HDMI_RES_AR_16_9, 0}
#define HDMI_VFRMT_1080x1920p60_9_16_TIMING \
{HDMI_VFRMT_1080x1920p60_9_16, 1080, 100, 20, 80, false, \
1920, 16, 5, 16, false, 150297, 60000, false, true, \
HDMI_RES_AR_16_9, 0}
改成
#define HDMI_VFRMT_640x480p60_4_3_TIMING \
{HDMI_VFRMT_1080x1920p60_9_16, 1920, 88, 44, 148, false, \
1080, 4, 5, 36, false, 148500, 60000, false, true, \
HDMI_RES_AR_16_9, 0}
#define HDMI_VFRMT_1080x1920p60_9_16_TIMING \
{HDMI_VFRMT_1080x1920p60_9_16, 1920, 88, 44, 148, false, \
1080, 4, 5, 36, false, 148500, 60000, false, true, \
HDMI_RES_AR_16_9, 0}
148500 = (1920+88+44+148)*(1080+4+5+36)*60/1000