When I added the code in following file to kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dts file,
&mipi_dphy0 {
status = "okay";
}
&mipi_dphy1 {
status = "disabled";
}
I took the error at following line:
scripts/kconfig/conf --syncconfig Kconfig
DTC arch/arm64/boot/dts/rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dtb
CALL scripts/checksyscalls.sh
Error: arch/arm64/boot/dts/rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dts:71.1-12 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:307: recipe for target 'arch/arm64/boot/dts/rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dtb' failed
make[1]: *** [arch/arm64/boot/dts/rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dtb] Error 1
arch/arm64/Makefile:145: recipe for target 'rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dtb' failed
make: *** [rockchip/rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dtb] Error 2
make: *** Waiting for unfinished jobs....
ERROR: Running build_extboot failed!
ERROR: exit code 2 from line 774:
make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
How can I enable the mipi_dsi0 like says on documentation ?
Author: Liuth Time: 9/28/2023 10:39
syntax error because you are missing a ";" at end of "}"
BUT this is not the point.
There's no mipi_dphy nodes in RK356x but video_phy instead. The doc you read is not suitable for RK356X
You can find more accurate docs under docs/ in SDK
rk3566-firefly-roc-pc-mipi101_M101014_BE45_A1.dts is already well configured, you can find video_phy0 is enabled in it.
So you don't need to modify anything about dts, mipi dsi0 works if you choose the right mk file when building, for example:
# choose to build ubuntu firmware with mipi support
./build.sh roc-rk3566-pc-mipi-ubuntu.mk
# start build
./build.sh
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)