Our products use IMX8MQ, we hope to achieve MIPI DSI output display in the UBOOT phase. I read the MIPI DSI register with 'mm.l 0x30A10000'. Uboot crashes and keeps restarting, but there is no problem with reading and writing the mipi CSI register.How can I read or write this part of the address.thanks.
writing the mipi CSI register.How can I read or write this part of the address.thanks.
Hi Joe_C
reason may be that clocks are not enabled and configured in CCM, one can look
at linux mipi-dsi initializations codes in
read in linux with memtool:
https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool?h=imx_5.4.47_2.2.0
Best regards
igor
thank igorpadykov
I've configured and initialized the clock, but it doesn't work.The MIPI CSI clock is not initialized in the Uboot project, but can be accessed.The principle of MIPI DSI and MIPI CSI accessing registers should be the same,but the MIPI DSI registers just can't be accessed.
Hi Joe_C
suggest to try linux memtool and print all relevant mipi-dsi registers, then check them in uboot.
Best regards
igor
Hi igorpadykov
According to your suggestion, I used Linux memtool to print the physical address of registers ranging from 0x30A10000 to 0x30A1FFFF, but it could not be accessed normally, and a bus error would occur.What should I do to access these addresses, I found that other parts of the address can not be accessed, such as i2c1 to i2C3.
thank igorpadykov
All the associated MIPI DSI registers have physical address ranges 0x30A10000 to 0x30a1FFFF, the addresses of these ranges are inaccessible, the MIPI DSI clock has been configured and enabled, what else did I miss?I looked all over the project and I couldn't find the code to initialize the MIPI CSI, but it was accessible,and I think they're the same, why is it accessible to the MIPI CSI, but not to the MIPI DSI.
thank igorpadykov
I've configured and initialized the clock, but it doesn't work.The MIPI CSI clock is not initialized in the Uboot project, but can be accessed.The principle of MIPI DSI and MIPI CSI accessing registers should be the same,but the MIPI DSI registers just can't be accessed.
老哥,建议先阅读linux内核的关于DSI部分的 code,然后再调试 uboot吧。