Connecting a dsi display
-
how do I need to change rk3588-cpcm5-evb.dts to make dsi0 work? I plan to put i2c on C0, C1?
-
@alfek
The DSI node can be enabled as follows.I didn't understand which GPIO C0 C1 corresponds to, please indicate.diff --git a/arch/arm64/boot/dts/rockchip/rk3588-cpcm5-evb-v11.dts b/arch/arm64/boot/dts/rockchip/rk3588-cpcm5-evb-v11.dts index 5f52819c2e9b..fa505ddfe99d 100755 --- a/arch/arm64/boot/dts/rockchip/rk3588-cpcm5-evb-v11.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-cpcm5-evb-v11.dts @@ -526,7 +526,7 @@ &sdmmc { }; &dsi0 { - status = "disabled"; + status = "okay"; dsi0_panel: panel@0 { status = "okay"; compatible = "simple-panel-dsi"; @@ -779,7 +779,7 @@ &dsi0_in_vp3 { &route_dsi0 { - status = "disabled"; + status = "okay"; connect = <&vp3_out_dsi0>; };
-
@george yes, sorry, I didn't specify
I plan to use GPIO1_C0_1V8_U and GPIO1_C0_1V8_U
And can you tell me how I can convert the corrected dts to dtb? It doesn't work with dtc, as far as I understand, because of include dependencies -
- First, synchronize the code using the following command:
https://github.com/yanyitech/coolpi-kernel.git
- Open the corresponding DTS file and modify the DSI related configuration
vim arch/arm64/boot/dts/rockchip/rk3588-cpcm5-evb.dts &dsi0 { status = "okay"; //rockchip,lane-rate = <1000>; dsi0_panel: panel@0 { status = "disabled"; compatible = "simple-panel-dsi"; reg = <0>; backlight = <&backlight>; reset-delay-ms = <10>; enable-delay-ms = <10>; prepare-delay-ms = <10>; unprepare-delay-ms = <10>; disable-delay-ms = <60>; dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; dsi,format = <MIPI_DSI_FMT_RGB888>; dsi,lanes = <4>; panel-init-sequence = [ 05 78 01 11 05 00 01 29 ]; panel-exit-sequence = [ 05 00 01 28 05 00 01 10 ];
- Use the following command to recompile the kernel
./build-kernel.sh Welcome to using Coolpi Development Board! ------------------------------------------ Please enter a number to select your machine 1. cp4b 2. cp4b-hdmi-in 3. cm5-evb 4. cm5-evb-v11 5. cm5-minipc 6. cm5-notebook 7. cm5-notebook-v20 8. cm5-8uart 9. cpnano 10. exit Enter option number: 3 BOARD=cm5-evb HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/conf # # configuration written to .config # SYNC include/config/auto.conf.cmd HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o
- Update the dtb file to the /boot/firmware directory
-
@george thank you, it worked.
How can I customize screen resolution? 800x480. And how do I still configure i2c? -
@george
Could you help? does it give this error when connecting?
[ 8.515533] dw-mipi-dsi2 fde20000.dsi: [drm:dw_mipi_dsi2_bind] ERROR Failed to find panel or bridge: -517