Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] mipi_dphy0 enabling error in dts file

65

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
65

【Linux】 mipi_dphy0 enabling error in dts file

Posted at 9/27/2023 16:33:48      View:637 | Replies:1        Print      Only Author   [Copy Link] 1#
  • Type: Self-Compiled Firmware
  • SDK Package Name: ROC-RK3566-PC-MIPI_Rk356x_v1.3.2f_230926
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: -
  • Log: test.zip
Problem description and steps to reproduce:
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 ?



test.zip

3.06 KB, Down times: 0

Reply

Use props Report

370

Credits

7

Prestige

7

Contribution

intermediate

Rank: 3Rank: 3

Credits
370
Posted at 9/28/2023 10:39:37        Only Author  2#
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
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list