Firefly Open Source Community

Title: mipi_dphy0 enabling error in dts file [Print This Page]

Author: myarikkaya    Time: 9/27/2023 16:33
Title: mipi_dphy0 enabling error in dts file
I'm trying enable to mipi dsi on RK3566-PC.
For that I'am using this documantation. https://download.t-firefly.com/product/Board/Common/Document/Developer/Rockchip_Developer_Guide_DRM_Panel_Porting_CN.pdf
In this documantation there is a step for  enable to mipi_dphy0.
When I change the device tree for enable to mipi_dphy0, I take a kernel dts build error.

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 ?



tchip_askquestions

test.zip

3.06 KB, Down times: 1


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/) Powered by Discuz! X3.1