Skip to content

rockchip: Fix several DTB validation issues

Diederik de Haas linux-arm-kernel linux-devicetree linux-rockchip lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 5 repliesApplied
  2. v310 patches 2 repliesSuperseded
  3. v210 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches7 repliesSuperseded

Changes in v4 from the cover letter

- Fix commit message in patch 3 wrt dt-bindings (Rob) Link to v3:
https://lore.kernel.org/linux-rockchip/[email protected]/

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/10arm64: dts: rockchip: Move dsi address+size-cells from SoC to px30 boardsarch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3146w-a2.dts arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3146w.dts arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3148w.dts +8 more+20 -20 replies
2/10arm64: dts: rockchip: Move dsi address+size-cells from SoC to rk3399 boardsarch/arm64/boot/dts/rockchip/rk3399-base.dtsi arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +1 more+6 -70 replies
3/10dt-bindings: display: rockchip,dw-mipi-dsi: Drop address/size cellsDocumentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml+0 -61 reply
4/10arm64: dts: rockchip: Simplify VOP port definition on rk3328arch/arm64/boot/dts/rockchip/rk3328.dtsi+1 -50 replies
5/10arm64: dts: rockchip: Simplify edp endpoints on several rk3399 boardsarch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts+12 -340 replies
6/10arm64: dts: rockchip: Simplify mipi_out endpoint on rk3399 RP64 dtsoarch/arm64/boot/dts/rockchip/rk3399-rockpro64-screen.dtso+6 -130 replies
7/10arm64: dts: rockchip: Move mipi_out node on rk3399 haikou demo dtsoarch/arm64/boot/dts/rockchip/rk3399-puma-haikou-video-demo.dtso+6 -61 reply
8/10arm64: dts: rockchip: Fix LCD panel port on rk3566-pinetab2arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi+3 -30 replies
9/10arm64: dts: rockchip: Drop unneeded address+size-cells on px30arch/arm64/boot/dts/rockchip/px30.dtsi+0 -40 replies
10/10arm64: dts: rockchip: Drop regulator-compatible property on rk3399arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts+0 -40 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Quentin Schulz
1/10
2/10
3/10R-b
4/10
5/10
6/10
7/10R-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/10] rockchip: Fix several DTB validation issues

This patch set fixes several DTB validation issues and consists of 2 parts:
1) dsi refactoring
2) various low-hanging fruit

ad 1) The display/rockchip/rockchip,dw-mipi-dsi.yaml binding had:
- #address-cells
- #size-cells

My guess is that those properties were added for panel(s) which could be connected. While convenient, it caused DTB validation issues when a panel was not defined on a board. So add the #address/#size-cells properties to the board dts[i] file where there is a panel and then remove the properties from the SoC dtsi file.
Also remove the properties from this binding as they were already defined in "dsi-controller.yaml".

ad 2) There were a number of issues which were obvious to me how to fix, so I fixed those as well. One of those was the addition of port(s) or endpoints, but for that the context (ie parent nodes) got redefined ... to the same values they had in the SoC dsi node. The SoC dsi node already defined the structure where each port got a label/phandle. That allows for a simplification of the port/endpoint by referencing that label/phandle.

My changes were based Heiko's v6.17-armsoc/dts64 branch at commit 7f9509791507 ("arm64: dts: rockchip: add DTs for Firefly ROC-RK3588S-PC")

Then applied the following patches:
86491c2b99e5 ("dt-bindings: pinctrl: rockchip: increase max amount of device functions") 6f446bbe412a ("dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible") ab9be0b75af5 ("dt-bindings: display: himax-hx8394: Add Huiling hl055fhav028c") 8358102806c6 ("dt-bindings: power: rockchip: Add support for RK3528") 233eda069994 ("dt-bindings: rockchip: pmu: Add compatible for RK3528")

And then validated it with W=1 using dtschema-2025.6.1. The validation log file sizes:
- base: 99.9 KiB
- dsi: 82.2 KiB
- low-hanging-fruit: 69.0 KiB

I then checked whether dmesg wouldn't indicate problem on these boards:
- Rock64 (rk3328)
- RockPro64 (rk3399)
- PineTab2 (rk3566)

And I didn't find any. I don't have any px30 or rk3399-gru-* based boards, so I couldn't test with those.

Changes in v2:
- Move refactoring of port/endpoint definition to its own patch (Quentin)
- Move re-ordering of nodes to its own patch (Quentin) Link to v1:
https://lore.kernel.org/linux-rockchip/[email protected]/

Changes in v3:
- Fix syntax error in RP64 screen dtso (kernel test robot) Link to v2:
https://lore.kernel.org/linux-rockchip/[email protected]/

Changes in v4:
- Fix commit message in patch 3 wrt dt-bindings (Rob) Link to v3:
https://lore.kernel.org/linux-rockchip/[email protected]/

Cheers,
Diederik

Diederik de Haas (10):
arm64: dts: rockchip: Move dsi address+size-cells from SoC to px30
boards
arm64: dts: rockchip: Move dsi address+size-cells from SoC to rk3399
boards
dt-bindings: display: rockchip,dw-mipi-dsi: Drop address/size cells
arm64: dts: rockchip: Simplify VOP port definition on rk3328
arm64: dts: rockchip: Simplify edp endpoints on several rk3399 boards
arm64: dts: rockchip: Simplify mipi_out endpoint on rk3399 RP64 dtso
arm64: dts: rockchip: Move mipi_out node on rk3399 haikou demo dtso
arm64: dts: rockchip: Fix LCD panel port on rk3566-pinetab2
arm64: dts: rockchip: Drop unneeded address+size-cells on px30
arm64: dts: rockchip: Drop regulator-compatible property on rk3399

 .../rockchip/rockchip,dw-mipi-dsi.yaml        |  6 -----
 .../rockchip/px30-cobra-ltk050h3146w-a2.dts   |  2 ++
 .../dts/rockchip/px30-cobra-ltk050h3146w.dts  |  2 ++
 .../dts/rockchip/px30-cobra-ltk050h3148w.dts  |  2 ++
 .../dts/rockchip/px30-cobra-ltk500hd1829.dts  |  2 ++
 arch/arm64/boot/dts/rockchip/px30-evb.dts     |  2 ++
 .../rockchip/px30-pp1516-ltk050h3146w-a2.dts  |  2 ++
 .../dts/rockchip/px30-pp1516-ltk050h3148w.dts |  2 ++
 arch/arm64/boot/dts/rockchip/px30.dtsi        |  6 -----
 .../dts/rockchip/rk3326-anbernic-rg351m.dtsi  |  2 ++
 .../dts/rockchip/rk3326-gameforce-chi.dts     |  2 ++
 .../boot/dts/rockchip/rk3326-odroid-go.dtsi   |  2 ++
 arch/arm64/boot/dts/rockchip/rk3328.dtsi      |  6 +----
 arch/arm64/boot/dts/rockchip/rk3399-base.dtsi |  4 ----
 .../dts/rockchip/rk3399-gru-chromebook.dtsi   | 15 ++++---------
 .../boot/dts/rockchip/rk3399-gru-scarlet.dtsi |  4 +++-
 .../boot/dts/rockchip/rk3399-hugsun-x99.dts   |  2 --
 .../boot/dts/rockchip/rk3399-pinebook-pro.dts | 15 ++++---------
 .../dts/rockchip/rk3399-pinephone-pro.dts     |  2 ++
 .../rk3399-puma-haikou-video-demo.dtso        | 12 +++++-----
 .../boot/dts/rockchip/rk3399-rock-4c-plus.dts |  2 --
 .../dts/rockchip/rk3399-rockpro64-screen.dtso | 22 ++++++-------------
 .../rockchip/rk3399-sapphire-excavator.dts    | 16 ++++----------
 .../boot/dts/rockchip/rk3566-pinetab2.dtsi    |  6 ++---
 24 files changed, 54 insertions(+), 84 deletions(-)
Signature · 1 line
2.50.0