Skip to contentSkip to conversation

Fix several DTB validation issues

PATCH Superseded Diederik de Haas 2 participants 13 messages Jun 29, 2025 – Jul 8, 2025

Subsystems (5)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover 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's not a property of the DSI controller (in the SoC). And caused DTB validation issues when a panel was not connected to the 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 ... and then from the binding file as well.

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 on yesterday's v6.17-armsoc/dts64 branch:
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]/

I also identified some other items which could reduce the DTB validation 'noise' substantially:

"failed to match any schema with compatible" errors:

- 'mps,mp8859': regulator/mp8859.txt
- 'realtek,rt5651': sound/rt5651.txt
- 'rockchip,rk3368-mailbox': mailbox/rockchip-mailbox.txt
- 'rockchip,rk3399-gru-sound': sound/rockchip,rk3399-gru-sound.txt
- 'ti,tsc2007': input/touchscreen/tsc2007.txt

Other issues where a (small?) fix may help a lot:

px30:
- /isp@ff4a0000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
- /syscon@ff140000/lvds/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
- /dsi@ff450000/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary

rk3399:
- /usb@fe800000: node has a unit name, but no reg or ranges property
- /usb@fe900000: node has a unit name, but no reg or ranges property

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
#1 lore raw

PATCH v3 1/10 arm64: dts: rockchip: Move dsi address+size-cells from SoC to px30 boards

The #address-cells and #size-cells properties are not useful on the DSI controller node; they are only useful/required on ports and panel(s). So remove them from the controller node and add them where actually needed on the various px30 based boards, which includes rk3326.

This fixes the following DTB validation warnings:

unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property

---
 arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3146w-a2.dts  | 2 ++
 arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3146w.dts     | 2 ++
 arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3148w.dts     | 2 ++
 arch/arm64/boot/dts/rockchip/px30-cobra-ltk500hd1829.dts     | 2 ++
 arch/arm64/boot/dts/rockchip/px30-evb.dts                    | 2 ++
 arch/arm64/boot/dts/rockchip/px30-pp1516-ltk050h3146w-a2.dts | 2 ++
 arch/arm64/boot/dts/rockchip/px30-pp1516-ltk050h3148w.dts    | 2 ++
 arch/arm64/boot/dts/rockchip/px30.dtsi                       | 2 --
 arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dtsi     | 2 ++
 arch/arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts        | 2 ++
 arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi           | 2 ++
 11 files changed, 20 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3146w-a2.dts +2 -0
index 1d26164be7b8..a31c61c8f148 100644
@@ -12,6 +12,8 @@ / {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3146w.dts +2 -0
index 82c6acdb4fae..a3c6edfdb37c 100644
@@ -12,6 +12,8 @@ / {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/px30-cobra-ltk050h3148w.dts +2 -0
index 94449132df38..9b5eff392dfa 100644
@@ -12,6 +12,8 @@ / {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/px30-cobra-ltk500hd1829.dts +2 -0
index d7b639e7ccab..36b7cae49e31 100644
@@ -16,6 +16,8 @@ aliases {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/px30-evb.dts +2 -0
index bfd724b73c9a..85d1642eb9be 100644
@@ -124,6 +124,8 @@ &display_subsystem {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	ports {
arch/arm64/boot/dts/rockchip/px30-pp1516-ltk050h3146w-a2.dts +2 -0
index b71929bcb33e..932721ffd470 100644
@@ -12,6 +12,8 @@ / {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/px30-pp1516-ltk050h3148w.dts +2 -0
index a9bd5936c701..70adf091371c 100644
@@ -12,6 +12,8 @@ / {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/px30.dtsi +0 -2
index 0cad83c5d5fe..5034ad8019a8 100644
@@ -1137,8 +1137,6 @@ dsi: dsi@ff450000 {
 		resets = <&cru SRST_MIPIDSI_HOST_P>;
 		reset-names = "apb";
 		rockchip,grf = <&grf>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 		status = "disabled";
 
 		ports {
arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dtsi +2 -0
index 150fadcb0b3c..54395a40b087 100644
@@ -118,6 +118,8 @@ &display_subsystem {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	ports {
arch/arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts +2 -0
index 10e6ab724ac4..4d306085646c 100644
@@ -322,6 +322,8 @@ &display_subsystem {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	internal_display: panel@0 {
arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi +2 -0
index 446a1a6c12e7..bf4554eff47d 100644
@@ -220,6 +220,8 @@ &display_subsystem {
 };
 
 &dsi {
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	ports {
Signature · 1 line
2.50.0
#2 lore raw

PATCH v3 2/10 arm64: dts: rockchip: Move dsi address+size-cells from SoC to rk3399 boards

In reply to Diederik de Haas

The #address-cells and #size-cells properties are not useful on the DSI controller node; they are only useful/required on ports and panel(s). So remove them from the controller node and add them where actually needed on the various rk3399 based boards.

This fixes the following DTB validation warnings:

unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property

---
 arch/arm64/boot/dts/rockchip/rk3399-base.dtsi             | 4 ----
 arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi      | 4 +++-
 arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts     | 2 ++
 arch/arm64/boot/dts/rockchip/rk3399-rockpro64-screen.dtso | 3 +--
 4 files changed, 6 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +0 -4
index 9d5f5b083e3c..4dcceb9136b7 100644
@@ -2071,8 +2071,6 @@ mipi_dsi: dsi@ff960000 {
 		resets = <&cru SRST_P_MIPI_DSI0>;
 		reset-names = "apb";
 		rockchip,grf = <&grf>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 		status = "disabled";
 
 		ports {
@@ -2112,8 +2110,6 @@ mipi_dsi1: dsi@ff968000 {
 		resets = <&cru SRST_P_MIPI_DSI1>;
 		reset-names = "apb";
 		rockchip,grf = <&grf>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 		#phy-cells = <0>;
 		status = "disabled";
 
arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi +3 -1
index 5e068377a0a2..6aaaf0f7f73f 100644
@@ -627,8 +627,10 @@ &mipi_dphy_rx0 {
 };
 
 &mipi_dsi {
-	status = "okay";
 	clock-master;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
 
 	ports {
 		mipi_out: port@1 {
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +2 -0
index 909ed14035f7..fe32937a2d16 100644
@@ -464,6 +464,8 @@ &io_domains {
 
 &mipi_dsi {
 	clock-master;
+	#address-cells = <1>;
+	#size-cells = <0>;
 	status = "okay";
 
 	panel@0 {
arch/arm64/boot/dts/rockchip/rk3399-rockpro64-screen.dtso +1 -2
index b1f4ab22b99c..a26c8e05c13b 100644
@@ -47,10 +47,9 @@ touch: touchscreen@5d {
 };
 
 &mipi_dsi {
+	clock-master;
 	#address-cells = <1>;
 	#size-cells = <0>;
-
-	clock-master;
 	status = "okay";
 
 	ports {
Signature · 1 line
2.50.0
#3 lore raw

PATCH v3 3/10 dt-bindings: display: rockchip,dw-mipi-dsi: Drop address/size cells

In reply to Diederik de Haas

When the dw-mipi-dsi binding was initially added in commit
a20d86e7f964 ("Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver") the #address-cells and #size-cells were added as required properties.

When the binding was converted to yaml format in commit
0dac2102cf6b ("dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml") those properties were demoted to optional and removed from the binding example.

As for the compatibles:

- rockchip,px30-mipi-dsi      removed in this patch set
- rockchip,rk3128-mipi-dsi    never used
- rockchip,rk3288-mipi-dsi    added (invalid); later removed [1]
- rockchip,rk3399-mipi-dsi    removed in this patch set
- rockchip,rk3568-mipi-dsi    never used
- rockchip,rv1126-mipi-dsi    proposed (invalid); never accepted [2]

[1] 282e2e078ba5 ("ARM: dts: rockchip: Remove #address/#size-cells from rk3288 mipi_dsi")
[2] https://lore.kernel.org/all/[email protected]/

The #address-cells and #size-cells are useful (and required) in the ports node and for panel(s), but those properties are declared in their schemas already. Now that there are no remaining users, remove these properties from the Rockchip specific extensions of the Synopsys DesignWare MIPI DSI host controller.

---
 .../bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml     | 6 ------
 1 file changed, 6 deletions(-)
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml +0 -6
index ccd71c5324af..0881e82deb11 100644
@@ -58,12 +58,6 @@ properties:
   power-domains:
     maxItems: 1
 
-  "#address-cells":
-    const: 1
-
-  "#size-cells":
-    const: 0
-
 required:
   - compatible
   - clocks
Signature · 1 line
2.50.0
maintainer
#4 lore raw

Re: [PATCH v3 03/10] dt-bindings: display: rockchip,dw-mipi-dsi: Drop address/size cells

Quoted 17 lines · Diederik de Haas

When the dw-mipi-dsi binding was initially added in commit
a20d86e7f964 ("Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver") the #address-cells and #size-cells were added as required properties.

When the binding was converted to yaml format in commit
0dac2102cf6b ("dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml") those properties were demoted to optional and removed from the binding example.

As for the compatibles:

- rockchip,px30-mipi-dsi      removed in this patch set
- rockchip,rk3128-mipi-dsi    never used
- rockchip,rk3288-mipi-dsi    added (invalid); later removed [1]
- rockchip,rk3399-mipi-dsi    removed in this patch set
- rockchip,rk3568-mipi-dsi    never used
- rockchip,rv1126-mipi-dsi    proposed (invalid); never accepted [2]
Quoted 8 lines

[1] 282e2e078ba5 ("ARM: dts: rockchip: Remove #address/#size-cells from rk3288 mipi_dsi")
[2] https://lore.kernel.org/all/[email protected]/

The #address-cells and #size-cells are useful (and required) in the ports node and for panel(s), but those properties are declared in their schemas already. Now that there are no remaining users, remove these properties from the Rockchip specific extensions of the Synopsys DesignWare MIPI DSI host controller.

The change is fine, but your reasoning is flawed. These properties are used if you define DSI devices on the "DSI bus" where the address of the child devices are the DSI virtual channel. Often though that's just 0 and not really used, so you don't need it.

The change is fine because these properties are defined in dsi-controller.yaml, so specifying them here is redundant.

Quoted 26 lines
---
 .../bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml     | 6 ------
 1 file changed, 6 deletions(-)
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml +0 -6
index ccd71c5324af..0881e82deb11 100644
@@ -58,12 +58,6 @@ properties:
   power-domains:
     maxItems: 1
 
-  "#address-cells":
-    const: 1
-
-  "#size-cells":
-    const: 0
-
 required:
   - compatible
   - clocks
Signature · 1 line
2.50.0
#5 lore raw

Re: [PATCH v3 03/10] dt-bindings: display: rockchip,dw-mipi-dsi: Drop address/size cells

Quoted 27 lines · Rob Herring
Quoted 17 lines · Diederik de Haas

When the dw-mipi-dsi binding was initially added in commit
a20d86e7f964 ("Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver") the #address-cells and #size-cells were added as required properties.

When the binding was converted to yaml format in commit
0dac2102cf6b ("dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml") those properties were demoted to optional and removed from the binding example.

As for the compatibles:

- rockchip,px30-mipi-dsi      removed in this patch set
- rockchip,rk3128-mipi-dsi    never used
- rockchip,rk3288-mipi-dsi    added (invalid); later removed [1]
- rockchip,rk3399-mipi-dsi    removed in this patch set
- rockchip,rk3568-mipi-dsi    never used
- rockchip,rv1126-mipi-dsi    proposed (invalid); never accepted [2]
Quoted 8 lines

[1] 282e2e078ba5 ("ARM: dts: rockchip: Remove #address/#size-cells from rk3288 mipi_dsi")
[2] https://lore.kernel.org/all/[email protected]/

The #address-cells and #size-cells are useful (and required) in the ports node and for panel(s), but those properties are declared in their schemas already. Now that there are no remaining users, remove these properties from the Rockchip specific extensions of the Synopsys DesignWare MIPI DSI host controller.

Quoted 4 lines

The change is fine, but your reasoning is flawed. These properties are used if you define DSI devices on the "DSI bus" where the address of the child devices are the DSI virtual channel. Often though that's just 0 and not really used, so you don't need it.

Thanks for the explanation :-)

Quoted 2 lines

The change is fine because these properties are defined in dsi-controller.yaml, so specifying them here is redundant.

Indeed. Will fix in the next version.

Cheers,
Diederik

Quoted 26 lines
Quoted 26 lines
---
 .../bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml     | 6 ------
 1 file changed, 6 deletions(-)
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml +0 -6
index ccd71c5324af..0881e82deb11 100644
@@ -58,12 +58,6 @@ properties:
   power-domains:
     maxItems: 1
 
-  "#address-cells":
-    const: 1
-
-  "#size-cells":
-    const: 0
-
 required:
   - compatible
   - clocks
Signature · 1 line
2.50.0
#6 lore raw

PATCH v3 4/10 arm64: dts: rockchip: Simplify VOP port definition on rk3328

In reply to Diederik de Haas

When there's only 1 endpoint, there is no need for a unit-address and removing that allows removing of related properties as well.

This fixes the following DTB validation warnings:

graph node has single child node 'endpoint@0',
#address-cells/#size-cells are not necessary

---
 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
arch/arm64/boot/dts/rockchip/rk3328.dtsi +1 -5
index 7d992c3c01ce..6438c969f9d7 100644
@@ -731,11 +731,7 @@ vop: vop@ff370000 {
 		status = "disabled";
 
 		vop_out: port {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			vop_out_hdmi: endpoint@0 {
-				reg = <0>;
+			vop_out_hdmi: endpoint {
 				remote-endpoint = <&hdmi_in_vop>;
 			};
 		};
Signature · 1 line
2.50.0
#7 lore raw

PATCH v3 5/10 arm64: dts: rockchip: Simplify edp endpoints on several rk3399 boards

In reply to Diederik de Haas

The only thing actually added here is a single endpoint on edp_out, which is already defined in rk3399-base.dtsi, so it's simpler to just reference that phandle, which allows the removal of several properties.

This fixes the following DTB validation warnings:

graph node has single child node 'endpoint@0',
#address-cells/#size-cells are not necessary

---
 .../boot/dts/rockchip/rk3399-gru-chromebook.dtsi | 15 ++++-----------
 .../boot/dts/rockchip/rk3399-pinebook-pro.dts    | 15 ++++-----------
 .../dts/rockchip/rk3399-sapphire-excavator.dts   | 16 ++++------------
 3 files changed, 12 insertions(+), 34 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi +4 -11
index a9ea4b0daa04..9d07353df52c 100644
@@ -250,18 +250,11 @@ &edp {
 	 */
 	assigned-clocks = <&cru PCLK_EDP>;
 	assigned-clock-rates = <24000000>;
+};
 
-	ports {
-		edp_out: port@1 {
-			reg = <1>;
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			edp_out_panel: endpoint@0 {
-				reg = <0>;
-				remote-endpoint = <&panel_in_edp>;
-			};
-		};
+&edp_out {
+	edp_out_panel: endpoint {
+		remote-endpoint = <&panel_in_edp>;
 	};
 };
 
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +4 -11
index 5473070823cb..5a8551d9ffe4 100644
@@ -404,18 +404,11 @@ &edp {
 	pinctrl-names = "default";
 	pinctrl-0 = <&edp_hpd>;
 	status = "okay";
+};
 
-	ports {
-		edp_out: port@1 {
-			reg = <1>;
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			edp_out_panel: endpoint@0 {
-				reg = <0>;
-				remote-endpoint = <&panel_in_edp>;
-			};
-		};
+&edp_out {
+	edp_out_panel: endpoint {
+		remote-endpoint = <&panel_in_edp>;
 	};
 };
 
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts +4 -12
index fdaa8472b7a7..a4ceafe6dd7a 100644
@@ -142,21 +142,13 @@ sdio_pwrseq: sdio-pwrseq {
 
 &edp {
 	status = "okay";
+};
 
-	ports {
-		edp_out: port@1 {
-			reg = <1>;
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			edp_out_panel: endpoint@0 {
-				reg = <0>;
-				remote-endpoint = <&panel_in_edp>;
-			};
-		};
+&edp_out {
+	edp_out_panel: endpoint {
+		remote-endpoint = <&panel_in_edp>;
 	};
 };
-
 &i2c1 {
 	i2c-scl-rising-time-ns = <300>;
 	i2c-scl-falling-time-ns = <15>;
Signature · 1 line
2.50.0
#8 lore raw

PATCH v3 6/10 arm64: dts: rockchip: Simplify mipi_out endpoint on rk3399 RP64 dtso

In reply to Diederik de Haas

The only thing actually added here is a single endpoint on mipi_out, which is already defined in rk3399-base.dtsi, so it's simpler to just reference that phandle, which allows the removal of several properties.

---
 .../dts/rockchip/rk3399-rockpro64-screen.dtso | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-rockpro64-screen.dtso +6 -13
index a26c8e05c13b..dabe535f2111 100644
@@ -52,19 +52,6 @@ &mipi_dsi {
 	#size-cells = <0>;
 	status = "okay";
 
-	ports {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
-		mipi_out: port@1 {
-			reg = <1>;
-
-			mipi_out_panel: endpoint {
-				remote-endpoint = <&mipi_in_panel>;
-			};
-		};
-	};
-
 	mipi_panel: panel@0 {
 		compatible = "feiyang,fy07024di26a30d";
 		reg = <0>;
@@ -80,6 +67,12 @@ mipi_in_panel: endpoint {
 	};
 };
 
+&mipi_out {
+	mipi_out_panel: endpoint {
+		remote-endpoint = <&mipi_in_panel>;
+	};
+};
+
 &pwm0 {
 	status = "okay";
 };
Signature · 1 line
2.50.0
#9 lore raw

PATCH v3 7/10 arm64: dts: rockchip: Move mipi_out node on rk3399 haikou demo dtso

In reply to Diederik de Haas

According to the DTS coding style [1] referenced nodes should be sorted alpha-numerically so move mipi_out to be after mipi_in_panel.

[1] https://www.kernel.org/doc/html/latest/devicetree/bindings/dts-coding-style.html#order-of-nodes

---
 .../dts/rockchip/rk3399-puma-haikou-video-demo.dtso  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-puma-haikou-video-demo.dtso +6 -6
index 0377ec860d35..d28880b8dd44 100644
@@ -124,12 +124,6 @@ pca9670: gpio@27 {
 	};
 };
 
-&mipi_out {
-	mipi_out_panel: endpoint {
-		remote-endpoint = <&mipi_in_panel>;
-	};
-};
-
 &mipi_dsi {
 	#address-cells = <1>;
 	#size-cells = <0>;
@@ -151,6 +145,12 @@ mipi_in_panel: endpoint {
 	};
 };
 
+&mipi_out {
+	mipi_out_panel: endpoint {
+		remote-endpoint = <&mipi_in_panel>;
+	};
+};
+
 &pinctrl {
 	pca9670 {
 		pca9670_resetn: pca9670-resetn {
Signature · 1 line
2.50.0
#10 lore raw

PATCH v3 8/10 arm64: dts: rockchip: Fix LCD panel port on rk3566-pinetab2

In reply to Diederik de Haas

The MIPI DSI connector on the PineTab2 only has 1 port with 1 endpoint, so drop the unit-address properties.

While at it, move 'rotation' property to its proper sorting position.

This fixes the following DTB validation warnings:

node has a unit name, but no reg or ranges property

---
 arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi +3 -3
index 3473b1eef5cd..d0e38412d56a 100644
@@ -282,11 +282,11 @@ lcd: panel@0 {
 		reg = <0>;
 		backlight = <&backlight>;
 		enable-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
-		rotation = <90>;
 		power-supply = <&vcc_3v3>;
+		rotation = <90>;
 
-		port@0 {
-			panel_in_dsi: endpoint@0 {
+		port {
+			panel_in_dsi: endpoint {
 				remote-endpoint = <&dsi0_out_con>;
 			};
 		};
Signature · 1 line
2.50.0
#11 lore raw

PATCH v3 9/10 arm64: dts: rockchip: Drop unneeded address+size-cells on px30

In reply to Diederik de Haas

On nodes with compatible "rockchip,px30-usb2phy-grf", the #address-cells and #size-cells are required and consequently their child nodes should have unit addresses. That is not the case for the px30-pmugrf and px30-grf nodes, so remove them there.

This fixes the following DTB validation warnings:

unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property

---
 arch/arm64/boot/dts/rockchip/px30.dtsi | 4 ----
 1 file changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/px30.dtsi +0 -4
index 5034ad8019a8..46f64cd33b9b 100644
@@ -351,8 +351,6 @@ power-domain@PX30_PD_GPU {
 	pmugrf: syscon@ff010000 {
 		compatible = "rockchip,px30-pmugrf", "syscon", "simple-mfd";
 		reg = <0x0 0xff010000 0x0 0x1000>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
 		pmu_io_domains: io-domains {
 			compatible = "rockchip,px30-pmu-io-voltage-domain";
@@ -453,8 +451,6 @@ gic: interrupt-controller@ff131000 {
 	grf: syscon@ff140000 {
 		compatible = "rockchip,px30-grf", "syscon", "simple-mfd";
 		reg = <0x0 0xff140000 0x0 0x1000>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
 		io_domains: io-domains {
 			compatible = "rockchip,px30-io-voltage-domain";
Signature · 1 line
2.50.0
#12 lore raw

PATCH v3 10/10 arm64: dts: rockchip: Drop regulator-compatible property on rk3399

In reply to Diederik de Haas

The regulator-compatible property has never existed in the regulator/fcs,fan53555.yaml binding, so drop it.

This fixes the following DTB validation warnings:

Unevaluated properties are not allowed
('regulator-compatible' was unexpected)

---
 arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts   | 2 --
 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 2 --
 2 files changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts +0 -2
index 81c4fcb30f39..352c8efb37e0 100644
@@ -211,7 +211,6 @@ &i2c0 {
 	vdd_cpu_b: syr827@40 {
 		compatible = "silergy,syr827";
 		reg = <0x40>;
-		regulator-compatible = "fan53555-reg";
 		pinctrl-0 = <&vsel1_pin>;
 		regulator-name = "vdd_cpu_b";
 		regulator-min-microvolt = <712500>;
@@ -229,7 +228,6 @@ regulator-state-mem {
 	vdd_gpu: syr828@41 {
 		compatible = "silergy,syr828";
 		reg = <0x41>;
-		regulator-compatible = "fan53555-reg";
 		pinctrl-0 = <&vsel2_pin>;
 		regulator-name = "vdd_gpu";
 		regulator-min-microvolt = <712500>;
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts +0 -2
index 15da5c80d25d..962b8b231c96 100644
@@ -421,7 +421,6 @@ vdd_cpu_b: regulator@40 {
 		compatible = "silergy,syr827";
 		reg = <0x40>;
 		fcs,suspend-voltage-selector = <1>;
-		regulator-compatible = "fan53555-reg";
 		pinctrl-0 = <&vsel1_gpio>;
 		vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
 		regulator-name = "vdd_cpu_b";
@@ -440,7 +439,6 @@ vdd_gpu: regulator@41 {
 		compatible = "silergy,syr828";
 		reg = <0x41>;
 		fcs,suspend-voltage-selector = <1>;
-		regulator-compatible = "fan53555-reg";
 		pinctrl-0 = <&vsel2_gpio>;
 		vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
 		regulator-name = "vdd_gpu";
Signature · 1 line
2.50.0