MIPI-DSI Driver in U-boot for i.Mx8 MM

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

MIPI-DSI Driver in U-boot for i.Mx8 MM

3,757 次查看
kailas_kharse
Contributor IV

Hello,

I wanted to use LCD UE040HD-RB40-L043A based on Driver IC ST7703 in U-boot, I have a working driver for ST7703 in Kernel working fine.

Can you please share the reference to how can I port the same driver to U-boot?

Do we have MIPI-DSI support is available in U-boot for i.Mx8MM?

 

 

Thanks & Regards,

Kailas Kharse

 

标记 (2)
0 项奖励
9 回复数

3,518 次查看
melania77
Contributor I

MX 8M Mini processor to provide MIPI-DSI, MIPI-CSI, LVDS interfaces and Audio ... The MYC-C8MMX CPU Module is using NXP's 14 x 14 mm, 0.5 mm pitch, ... Many peripheral drivers are in source code to help accelerate customers' designs​. ... Source Code Provided. Bootstrap program. U-boot. The primary bootstrap.TellBaskinRobbins

0 项奖励

3,743 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Kailas

 

for i.MX8MM U-boot MIPI-DSI support one can look at below link, adjust

struct display_info_t const displays[] for new lcd :

https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mm_evk/imx8mm_evk.c?h=...

 

Best regards
igor

0 项奖励

3,536 次查看
sd05
Contributor III

Hello @igorpadykov 

I also have a same requirement as @kailas_kharse i tried the same as you suggested

I tried adding the struct display_info_t in the board file but the enable function is not getting called do we need to set any environment variabled or some configuration needs to be enabled??

Can you write in detail how the struct display_info_t works? What are the configuration to enable??

Thanks in advance

0 项奖励

3,525 次查看
igorpadykov
NXP Employee
NXP Employee

one can try to add #def CONFIG_VIDEO to uboot/include/configs/imx8mm_evk.h
https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mm_evk.h?h=imx_v2019.0...

remove adv7535,MIPI2HDMI from from board/freescale/imx8mm_evk/imx8mm_evk.c

https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mm_evk/imx8mm_evk.c?h=...

 

Best regards
igor

 

 

 

 

 

0 项奖励

3,499 次查看
sd05
Contributor III

Thanks @igorpadykov 

But this is not the info I am seeking

I want to know the api sequence following which the lcd init_sequence is called and splash screen is display on lcd panel

Need help from some uboot expert

0 项奖励

3,523 次查看
sd05
Contributor III

Hello @igorpadykov 

Thanks for your quick response..

I have already added the said configs in my custom board config file and only added the display_info_t struct as in the imx8mm_evk.c but the enable function is not getting called.

Please guide with the full process.

Please note that I am having my custom board not using imx8mm_evk.c board file.

This task is on priority for us and struggling with this for a month please help us to get it resolved.

Thanks!

0 项奖励

3,508 次查看
igorpadykov
NXP Employee
NXP Employee

also one can check rm67191_panel in dts

https://github.com/varigit/uboot-imx/blob/imx_v2020.04_5.4.70_2.3.2_var01/arch/arm/dts/imx8mm-evk.dt...

 

Another example boundary devices uboot nitrogen MX8M Mini LTK080A60A004T mipi display :

https://github.com/boundarydevices/u-boot-imx6/blob/boundary-v2020.10/board/boundary/nitrogen8mm_som...

 

Best regards
igor

0 项奖励

3,701 次查看
kailas_kharse
Contributor IV

Hello Igor,

I tired to add the panel in dts as below: 

File: arch/arm/dts/fsl-imx8mm-var-dart.dts

+
+&lcdif {
+ status = "okay";
+};
+
+&mipi_dsi {
+ status = "okay";
+ panel@0 {
+ compatible = "simple-panel";
+ reg = <0>;
+ pinctrl-0 = <&pinctrl_mipi_dsi_rst>;
+ reset-gpio =<&gpio5 26 GPIO_ACTIVE_LOW>;
+ dsi-lanes = <4>;
+ video-mode = <2>; /* 0: burst mode (high speed)
+ * 1: Low-Power Mode
+ */
+ vrefresh = <60>;
+ panel-width-mm = <52>;
+ panel-height-mm = <107>;
+ //backlight = <&backlight>; //comment it for now
+ };
+};

Q1. The driver is not getting probed after making the above changes, What can be the issue?

Q2. I tried writing the init sequence of LCD taking reference of the rm68000 but when we read back the reg values were different?

Q3. What is "imx_mipi_dsi_bridge_attach" in "imx_mipi_dsi_bridge.c/.h" file what is this file used for, Not getting this bridge here? As I am directly connecting the MIPI DSI display to MIPI DSI port.

 

Thanks & Regards,
Kailas Kharse

标记 (3)
0 项奖励

3,580 次查看
kailas_kharse
Contributor IV

Hello Igor,

 

Do you have any update on the above thread, we are blocked can you please help on priority.

 

Thanks ,
Kailas K.

0 项奖励