现象描述:
点屏出现条纹,无法正常显示。
&lvds {
status = "okay";
};
&lvds_panel {
status = "okay";
compatible ="simple-panel";
backlight = <&backlight>;
bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;**==========》》》此处做修改**
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <350>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
rockchip,data-mapping = "jeida";**==========》》》此处做修改**
rockchip,data-width = <24>;
rockchip,output = "duallvds";**==========》》》此处做修改**
最终点亮配置:
bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <350>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
rockchip,data-mapping = "vesa";
rockchip,data-width = <24>;
rockchip,output = "lvds";
timing9: timing9 {
clock-frequency = <76000000>;
hactive = <1366>;
vactive = <768>;
hback-porch = <80>;
hfront-porch = <80>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <40>;
vsync-len = <8>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
另附一些已适配屏幕配置参数:
&lvds_panel {
status = "okay";
compatible ="simple-panel";
backlight = <&backlight>;
/*6 bit open*/
/*
bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <350>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
rockchip,data-mapping = "jeida";
rockchip,data-width = <24>;
rockchip,output = "lvds";
*/
/*66 bit open*/
/*
bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <350>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
rockchip,data-mapping = "jeida";
rockchip,data-width = <24>;
rockchip,output = "duallvds";
*/
/*8 bit open*/
/*
bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <350>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
rockchip,data-mapping = "vesa";
rockchip,data-width = <24>;
rockchip,output = "lvds";
*/
/* 88 bit open*/
bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <500>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
rockchip,data-mapping = "vesa";
rockchip,data-width = <24>;
rockchip,output = "duallvds";
display-timings {
native-mode = <&timing17>;
//8.4 inch 8 bit 800x600 M084GNS1R1-IVO pwm-100~20000 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing0: timing0 {
clock-frequency = <39600000>;
hactive = <800>;
vactive = <600>;
hback-porch = <90>;
hfront-porch = <90>;
vback-porch = <25>;
vfront-porch = <25>;
hsync-len = <20>;
vsync-len = <10>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//8.4 inch 8 bit 800x600 AA084SC01 pwm-100~1000 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing1: timing1 {
clock-frequency = <40000000>;
hactive = <800>;
vactive = <600>;
hback-porch = <110>;
hfront-porch = <110>;
vback-porch = <10>;
vfront-porch = <10>;
hsync-len = <36>;
vsync-len = <8>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//12.1 inch 8 bit 800x600 bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
timing2: timing2 {
clock-frequency = <40000000>;
hactive = <800>;
vactive = <600>;
hback-porch = <60>;
hfront-porch = <60>;
vback-porch = <10>;
vfront-porch = <10>;
hsync-len = <20>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//10.1 inch 8 bit 800x1280 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing3: timing3 {
clock-frequency = <60000000>;
hactive = <800>;
vactive = <1280>;
hback-porch = <24>;
hfront-porch = <72>;
vback-porch = <10>;
vfront-porch = <12>;
hsync-len = <24>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//7 inch 6 bit 1024x600 bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
timing4: timing4 {
clock-frequency = <60000000>;
hactive = <1024>;
vactive = <600>;
hback-porch = <90>;
hfront-porch = <160>;
vback-porch = <13>;
vfront-porch = <12>;
hsync-len = <70>;
vsync-len = <10>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//12.1 inch 8 bit 1024x768 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing5: timing5 {
clock-frequency = <65000000>;
hactive = <1024>;
vactive = <768>;
hback-porch = <40>;
hfront-porch = <40>;
vback-porch = <10>;
vfront-porch = <10>;
hsync-len = <20>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//10.1 inch 6 bit 1280x800 bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
timing6: timing6 {
clock-frequency = <85000000>;
hactive = <1280>;
vactive = <800>;
hback-porch = <60>;
hfront-porch = <60>;
vback-porch = <5>;
vfront-porch = <5>;
hsync-len = <48>;
vsync-len = <6>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//10.1 inch 8 bit M101B36 1280x800 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing7: timing7 {
clock-frequency = <72400000>;
hactive = <1280>;
vactive = <800>;
hback-porch = <78>;
hfront-porch = <72>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <10>;
vsync-len = <8>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//17 inch 88 bit 1280x1024 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing8: timing8 {
clock-frequency = <140000000>;
hactive = <1280>;
vactive = <1024>;
hback-porch = <80>;
hfront-porch = <80>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <42>;
vsync-len = <12>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//18.5 inch 8 bit 1366x768 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing9: timing9 {
clock-frequency = <76000000>;
hactive = <1366>;
vactive = <768>;
hback-porch = <80>;
hfront-porch = <80>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <40>;
vsync-len = <8>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//13.3 inch 6 bit 1366x768 bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
timing10: timing10 {
clock-frequency = <69500000>;
hactive = <1366>;
vactive = <768>;
hback-porch = <40>;
hfront-porch = <40>;
vback-porch = <10>;
vfront-porch = <10>;
hsync-len = <20>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//19 1440x900 M190PW01_V8
timing11: timing11 {
clock-frequency = <103000000>;
hactive = <1440>;
vactive = <900>;
hback-porch = <200>;
hfront-porch = <200>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <88>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//19.5 1600x900 M195RTN1.0-AUO
timing12: timing12 {
clock-frequency = <121000000>;
hactive = <1600>;
vactive = <900>;
hback-porch = <250>;
hfront-porch = <250>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <60>;
vsync-len = <4>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//21.5 inch 88 bit 1920x1080 HR215WU1-120-BOE bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing13: timing13 {
clock-frequency = <136000000>;
hactive = <1920>;
vactive = <1080>;
hback-porch = <50>;
hfront-porch = <50>;
vback-porch = <20>;
vfront-porch = <20>;
hsync-len = <40>;
vsync-len = <5>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//23.6 164600000 21.5 148640000 inch 88 bit 1920x1080 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing14: timing14 {
clock-frequency = <164600000>;
hactive = <1920>;
vactive = <1080>;
hback-porch = <48>;
hfront-porch = <48>;
vback-porch = <8>;
vfront-porch = <8>;
hsync-len = <32>;
vsync-len = <4>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//21.5 1920x1080 T215HVN01.1-AUO
timing15: timing15 {
clock-frequency = <144000000>;
hactive = <1920>;
vactive = <1080>;
hback-porch = <45>;
hfront-porch = <45>;
vback-porch = <25>;
vfront-porch = <25>;
hsync-len = <192>;
vsync-len = <108>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//10.1 inch 8 bit 800x1280 ddkj HD101BOEDD383DD bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
timing16: timing16 {
clock-frequency = <81614400>;
hactive = <800>;
vactive = <1280>;
hback-porch = <60>;
hfront-porch = <80>;
vback-porch = <40>;
vfront-porch = <60>;
hsync-len = <40>;
vsync-len = <8>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
//default 1080p
timing17: timing17 {
clock-frequency = <148500000>;
hactive = <1920>;
vactive = <1080>;
hback-porch = <44>;
hfront-porch = <148>;
vback-porch = <5>;
vfront-porch = <36>;
hsync-len = <88>;
vsync-len = <4>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};