How to add a new LCD driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to add a new LCD driver

572 次查看
road_wang
Contributor I

     Refer to attachment panel specification,I‘m add a new LCD driver。The following files have been changed,But the screen doesn't show anything, only the backlight is on,Is there any other file to change?

 1、arch/arm/boot/dts/imx6ul-14x14-evk.dts:

&lcdif {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcdif_dat
&pinctrl_lcdif_ctrl>;
display = <&display0>;
status = "okay";

display0: display {
bits-per-pixel = <16>;
bus-width = <24>;

display-timings {
native-mode = <&timing0>;
timing0: timing0 {
mode_name = "TFT70AB-800x480";
clock-frequency = <33000000>;
hactive = <800>;
vactive = <480>;
hfront-porch = <121>;
hback-porch = <88>;
hsync-len = <48>;
vback-porch = <39>;
vfront-porch = <21>;
vsync-len = <3>;

hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <0>;
};
};
};
};

2. board\freescale\imx6ul_14x14_evk\imx6ul_14x14_evk:

struct display_info_t const displays[] = {{
.bus = MX6UL_LCDIF1_BASE_ADDR,
.addr = 0,
.pixfmt = 24,
.detect = NULL,
.enable = do_enable_parallel_lcd,
.mode = {
.name = "TFT70AB-800x480",
.xres = 800,
.yres = 480,
.pixclock = 30303,
.left_margin = 48,
.right_margin = 121,
.upper_margin = 39,
.lower_margin = 21,
.hsync_len = 88,
.vsync_len = 3,
.sync = 0,
.vmode = FB_VMODE_NONINTERLACED

} } };

0 项奖励
1 回复

470 次查看
igorpadykov
NXP Employee
NXP Employee

Hi road

one can recheck lcd power up sequence defined in sect.3.2. Power Sequence

and test it for example in uboot, function do_enable_parallel_lcd()

mx6ul_14x14_evk.c\mx6ul_14x14_evk\freescale\board - uboot-imx - i.MX U-Boot 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励