Skip to contentSkip to conversation

drm/rockchip: Add MIPI DSI support for RK3368

PATCH Applied WeiHao Li 3 participants 24 messages Aug 31, 2025 – Sep 3, 2025

Subsystems (6)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

WeiHao Li

author
#0 lore raw

cover drm/rockchip: Add MIPI DSI support for RK3368

This series adds MIPI DSI support for the Rockchip RK3368 SoC, enabling native display connectivity through the MIPI DSI host controller and PHY. The changes span multiple subsystems, including clock control, DRM/VOP integration, DSI controller binding, and PHY driver updates.

Key changes:
- Update the Rockchip MIPI DSI PHY driver to preperly handle RK3368 phy initialization.
- Add missing lut_size of vop_data for RK3368.
- Add missing clock ID SCLK_MIPIDSI_24M to the RK3368 CRU driver, which is required for enabling the 24MHz reference clock.
- Add MIPI DSI node to rk3368.dtsi with correct clocks, resets, and register mappings.

These changes were tested on a RK3368-based board with a MIPI DSI panel [1]. The display boots successfully with console output.

[1] https://ieiao.github.io/wiki/embedded-dev/rockchip/rk3368

WeiHao Li (7):
drm/rockchip: dsi: Add support for RK3368 drm/rockchip: vop: add lut_size for RK3368 vop_data
dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M
clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368
ARM: dts: rockchip: Add display subsystem for RK3368
ARM: dts: rockchip: Add D-PHY for RK3368
ARM: dts: rockchip: Add DSI for RK3368

 arch/arm64/boot/dts/rockchip/rk3368.dtsi      | 79 +++++++++++++++++++
 drivers/clk/rockchip/clk-rk3368.c             |  2 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 20 +++++
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  1 +
 include/dt-bindings/clock/rk3368-cru.h        |  1 +
 5 files changed, 102 insertions(+), 1 deletion(-)
Signature · 1 line
2.47.2
author
#1 lore raw

PATCH 1/7 drm/rockchip: dsi: Add support for RK3368

RK3368 has DesignWare MIPI DSI controller and an external inno D-PHY.

---
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +20 -0
index 3398160ad..5d76e3e04 100644
@@ -162,6 +162,11 @@
 #define RK3288_DSI0_LCDC_SEL		BIT(6)
 #define RK3288_DSI1_LCDC_SEL		BIT(9)
 
+#define RK3368_GRF_SOC_CON7		0x41c
+#define RK3368_DSI_FORCETXSTOPMODE	(0xf << 7)
+#define RK3368_DSI_FORCERXMODE		BIT(6)
+#define RK3368_DSI_TURNDISABLE		BIT(5)
+
 #define RK3399_GRF_SOC_CON20		0x6250
 #define RK3399_DSI0_LCDC_SEL		BIT(0)
 #define RK3399_DSI1_LCDC_SEL		BIT(4)
@@ -1530,6 +1535,18 @@ static const struct rockchip_dw_dsi_chip_data rk3288_chip_data[] = {
 	{ /* sentinel */ }
 };
 
+static const struct rockchip_dw_dsi_chip_data rk3368_chip_data[] = {
+	{
+		.reg = 0xff960000,
+		.lanecfg1_grf_reg = RK3368_GRF_SOC_CON7,
+		.lanecfg1 = HIWORD_UPDATE(0, RK3368_DSI_TURNDISABLE |
+						RK3368_DSI_FORCETXSTOPMODE |
+						RK3368_DSI_FORCERXMODE),
+		.max_data_lanes = 4,
+	},
+	{ /* sentinel */ }
+};
+
 static int rk3399_dphy_tx1rx1_init(struct phy *phy)
 {
 	struct dw_mipi_dsi_rockchip *dsi = phy_get_drvdata(phy);
@@ -1693,6 +1710,9 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
 	}, {
 	 .compatible = "rockchip,rk3288-mipi-dsi",
 	 .data = &rk3288_chip_data,
+	}, {
+	 .compatible = "rockchip,rk3368-mipi-dsi",
+	 .data = &rk3368_chip_data,
 	}, {
 	 .compatible = "rockchip,rk3399-mipi-dsi",
 	 .data = &rk3399_chip_data,
Signature · 1 line
2.47.2
author
#4 lore raw

PATCH 2/7 drm/rockchip: vop: add lut_size for RK3368 vop_data

In reply to WeiHao Li

VOP driver need a correct lut_size to work normally.

---
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +1 -0
index d1f788763..219f8c2fa 100644
@@ -880,6 +880,7 @@ static const struct vop_data rk3368_vop = {
 	.win = rk3368_vop_win_data,
 	.win_size = ARRAY_SIZE(rk3368_vop_win_data),
 	.max_output = { 4096, 2160 },
+	.lut_size = 1024,
 };
 
 static const struct vop_intr rk3366_vop_intr = {
Signature · 1 line
2.47.2
author
#6 lore raw

PATCH 3/7 dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M

In reply to WeiHao Li

Add a clock id for mipi dsi reference clock, mipi dsi node used it.

---
 include/dt-bindings/clock/rk3368-cru.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3368-cru.h +1 -0
index ebae3cbf8..b951e2906 100644
@@ -72,6 +72,7 @@
 #define SCLK_SFC		126
 #define SCLK_MAC		127
 #define SCLK_MACREF_OUT		128
+#define SCLK_MIPIDSI_24M	129
 #define SCLK_TIMER10		133
 #define SCLK_TIMER11		134
 #define SCLK_TIMER12		135
Signature · 1 line
2.47.2
author
#12 lore raw

PATCH 4/7 clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368

In reply to WeiHao Li

Export the clocks via the newly added clock-ids.

---
 drivers/clk/rockchip/clk-rk3368.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk-rk3368.c +1 -1
index 04391e4e2..95e6996ad 100644
@@ -526,7 +526,7 @@ static struct rockchip_clk_branch rk3368_clk_branches[] __initdata = {
 	GATE(ACLK_PERI, "aclk_peri", "aclk_peri_src", CLK_IGNORE_UNUSED,
 			RK3368_CLKGATE_CON(3), 1, GFLAGS),
 
-	GATE(0, "sclk_mipidsi_24m", "xin24m", 0, RK3368_CLKGATE_CON(4), 14, GFLAGS),
+	GATE(SCLK_MIPIDSI_24M, "sclk_mipidsi_24m", "xin24m", 0, RK3368_CLKGATE_CON(4), 14, GFLAGS),
 
 	/*
 	 * Clock-Architecture Diagram 4
Signature · 1 line
2.47.2
author
#13 lore raw

PATCH 5/7 ARM: dts: rockchip: Add display subsystem for RK3368

In reply to WeiHao Li

Add vop and display-subsystem nodes to RK3368's device tree.

---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +26 -0
index 73618df7a..0e47bf59a 100644
@@ -858,6 +858,32 @@ vop_mmu: iommu@ff930300 {
 		status = "disabled";
 	};
 
+	vop: vop@ff930000 {
+		compatible = "rockchip,rk3368-vop";
+		reg = <0x0 0xff930000 0x0 0x2fc>, <0x0 0xff931000 0x0 0x400>;
+		reg-names = "regs", "gamma_lut";
+		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
+		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
+		assigned-clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
+		assigned-clock-rates = <400000000>, <200000000>;
+		resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
+		reset-names = "axi", "ahb", "dclk";
+		iommus = <&vop_mmu>;
+		status = "disabled";
+
+		vop_out: port {
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+	};
+
+	display_subsystem: display-subsystem {
+		compatible = "rockchip,display-subsystem";
+		ports = <&vop_out>;
+		status = "disabled";
+	};
+
 	hevc_mmu: iommu@ff9a0440 {
 		compatible = "rockchip,iommu";
 		reg = <0x0 0xff9a0440 0x0 0x40>,
Signature · 1 line
2.47.2
author
#16 lore raw

PATCH 6/7 ARM: dts: rockchip: Add D-PHY for RK3368

In reply to WeiHao Li

RK3368 has a InnoSilicon D-PHY which supports DSI/LVDS/TTL with maximum trasnfer rate of 1 Gbps per lane.

---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +14 -0
index 0e47bf59a..674a3676d 100644
@@ -884,6 +884,20 @@ display_subsystem: display-subsystem {
 		status = "disabled";
 	};
 
+	video_phy: video-phy@ff968000 {
+		compatible = "rockchip,rk3368-dsi-dphy";
+		reg = <0x0 0xff968000 0x0 0x4000>,
+		      <0x0 0xff960000 0x0 0x4000>;
+		clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>,
+			 <&cru PCLK_MIPI_DSI0>;
+		clock-names = "ref", "pclk", "pclk_host";
+		#clock-cells = <0>;
+		resets = <&cru SRST_MIPIDPHYTX>;
+		reset-names = "apb";
+		#phy-cells = <0>;
+		status = "disabled";
+	};
+
 	hevc_mmu: iommu@ff9a0440 {
 		compatible = "rockchip,iommu";
 		reg = <0x0 0xff9a0440 0x0 0x40>,
Signature · 1 line
2.47.2
author
#19 lore raw

PATCH 7/7 ARM: dts: rockchip: Add DSI for RK3368

In reply to WeiHao Li

Add the Designware MIPI DSI controller and it's port nodes.

---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 39 ++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +39 -0
index 674a3676d..5226b7e6f 100644
@@ -875,6 +875,11 @@ vop: vop@ff930000 {
 		vop_out: port {
 			#address-cells = <1>;
 			#size-cells = <0>;
+
+			vop_out_dsi: endpoint@0 {
+				reg = <0>;
+				remote-endpoint = <&dsi_in_vop>;
+			};
 		};
 	};
 
@@ -884,6 +889,40 @@ display_subsystem: display-subsystem {
 		status = "disabled";
 	};
 
+	mipi_dsi: mipi-dsi@ff960000 {
+		compatible = "rockchip,rk3368-mipi-dsi", "snps,dw-mipi-dsi";
+		reg = <0x0 0xff960000 0x0 0x4000>;
+		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru PCLK_MIPI_DSI0>;
+		clock-names = "pclk";
+		resets = <&cru SRST_MIPIDSI0>;
+		reset-names = "apb";
+		phys = <&video_phy>;
+		phy-names = "dphy";
+		rockchip,grf = <&grf>;
+		status = "disabled";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			mipi_in: port@0 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				dsi_in_vop: endpoint@0 {
+					reg = <0>;
+					remote-endpoint = <&vop_out_dsi>;
+				};
+			};
+
+			mipi_out: port@1 {
+				reg = <1>;
+			};
+
+		};
+	};
+
 	video_phy: video-phy@ff968000 {
 		compatible = "rockchip,rk3368-dsi-dphy";
 		reg = <0x0 0xff968000 0x0 0x4000>,
Signature · 1 line
2.47.2
maintainer
#7 lore raw

Re: [PATCH v1 3/7] dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M

In reply to WeiHao Li

Hi,
Am Sonntag, 31. August 2025, 12:48:51 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 3 lines

Add a clock id for mipi dsi reference clock, mipi dsi node used it.

you missed a number of devicetree maintainers, Rob thankfully does not need to do this on his own anymore.

so please get the appropriate list of maintainers via scripts/get_maintainer.pl

Change itself looks fine though.

Heiko

Quoted 17 lines
---
 include/dt-bindings/clock/rk3368-cru.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3368-cru.h +1 -0
index ebae3cbf8..b951e2906 100644
@@ -72,6 +72,7 @@
 #define SCLK_SFC		126
 #define SCLK_MAC		127
 #define SCLK_MACREF_OUT		128
+#define SCLK_MIPIDSI_24M	129
 #define SCLK_TIMER10		133
 #define SCLK_TIMER11		134
 #define SCLK_TIMER12		135
maintainer
#14 lore raw

Re: [PATCH v1 5/7] ARM: dts: rockchip: Add display subsystem for RK3368

In reply to WeiHao Li

Hi,

Am Sonntag, 31. August 2025, 12:48:53 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 3 lines

Add vop and display-subsystem nodes to RK3368's device tree.

please use the appropriate patch prefix. For arm64 this should be
arm64: dts: rockchip:

The one you're using is from the arm32 side.

Also please sort things appropriately both node-position and order of properties inside nodes, see
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/dts-coding-style.rst

Heiko

Quoted 42 lines
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +26 -0
index 73618df7a..0e47bf59a 100644
@@ -858,6 +858,32 @@ vop_mmu: iommu@ff930300 {
 		status = "disabled";
 	};
 
+	vop: vop@ff930000 {
+		compatible = "rockchip,rk3368-vop";
+		reg = <0x0 0xff930000 0x0 0x2fc>, <0x0 0xff931000 0x0 0x400>;
+		reg-names = "regs", "gamma_lut";
+		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
+		clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
+		assigned-clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
+		assigned-clock-rates = <400000000>, <200000000>;
+		resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
+		reset-names = "axi", "ahb", "dclk";
+		iommus = <&vop_mmu>;
+		status = "disabled";
+
+		vop_out: port {
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+	};
+
+	display_subsystem: display-subsystem {
+		compatible = "rockchip,display-subsystem";
+		ports = <&vop_out>;
+		status = "disabled";
+	};
+
 	hevc_mmu: iommu@ff9a0440 {
 		compatible = "rockchip,iommu";
 		reg = <0x0 0xff9a0440 0x0 0x40>,
maintainer
#17 lore raw

Re: [PATCH v1 6/7] ARM: dts: rockchip: Add D-PHY for RK3368

In reply to WeiHao Li

Am Sonntag, 31. August 2025, 12:48:54 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 13 lines

RK3368 has a InnoSilicon D-PHY which supports DSI/LVDS/TTL with maximum trasnfer rate of 1 Gbps per lane.

---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +0 -0
index 0e47bf59a..674a3676d 100644

arch/arm64/boot/dts/rockchip/rk3368.dtsi display_subsystem: display-subsystem { · line 887

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3368.dtsi +1 -0
@@ -884,6 +884,20 @@ display_subsystem: display-subsystem {
 		status = "disabled";
 	};
 
+	video_phy: video-phy@ff968000 {

I think the node should be something like
dsi_dphy: phy@ff968000

Quoted 17 lines
arch/arm64/boot/dts/rockchip/rk3368.dtsi +13 -0
+		compatible = "rockchip,rk3368-dsi-dphy";
+		reg = <0x0 0xff968000 0x0 0x4000>,
+		      <0x0 0xff960000 0x0 0x4000>;
+		clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>,
+			 <&cru PCLK_MIPI_DSI0>;
+		clock-names = "ref", "pclk", "pclk_host";
+		#clock-cells = <0>;
+		resets = <&cru SRST_MIPIDPHYTX>;
+		reset-names = "apb";
+		#phy-cells = <0>;
+		status = "disabled";
+	};
+
 	hevc_mmu: iommu@ff9a0440 {
 		compatible = "rockchip,iommu";
 		reg = <0x0 0xff9a0440 0x0 0x40>,
maintainer
#20 lore raw
In reply to WeiHao Li

Hi,

Am Sonntag, 31. August 2025, 12:48:48 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 8 lines

This series adds MIPI DSI support for the Rockchip RK3368 SoC, enabling native display connectivity through the MIPI DSI host controller and PHY. The changes span multiple subsystems, including clock control, DRM/VOP integration, DSI controller binding, and PHY driver updates.

Key changes:
- Update the Rockchip MIPI DSI PHY driver to preperly handle RK3368 phy initialization.

which patch is doing this, because I don't see any phy-related change

Quoted 10 lines

- Add missing lut_size of vop_data for RK3368.
- Add missing clock ID SCLK_MIPIDSI_24M to the RK3368 CRU driver, which is required for enabling the 24MHz reference clock.
- Add MIPI DSI node to rk3368.dtsi with correct clocks, resets, and register mappings.

These changes were tested on a RK3368-based board with a MIPI DSI panel [1]. The display boots successfully with console output.

[1] https://ieiao.github.io/wiki/embedded-dev/rockchip/rk3368

Do you plan on submitting this board to mainline? Because having an actual user of the code you're adding would be really really nice.

Thanks
Heiko

Quoted 21 lines

WeiHao Li (7):
drm/rockchip: dsi: Add support for RK3368 drm/rockchip: vop: add lut_size for RK3368 vop_data
dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M
clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368
ARM: dts: rockchip: Add display subsystem for RK3368
ARM: dts: rockchip: Add D-PHY for RK3368
ARM: dts: rockchip: Add DSI for RK3368

 arch/arm64/boot/dts/rockchip/rk3368.dtsi      | 79 +++++++++++++++++++
 drivers/clk/rockchip/clk-rk3368.c             |  2 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 20 +++++
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  1 +
 include/dt-bindings/clock/rk3368-cru.h        |  1 +
 5 files changed, 102 insertions(+), 1 deletion(-)
author
#8 lore raw

Re: [PATCH v1 3/7] dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M

In reply to Heiko Stübner

Hi Heiko,

Thanks for your review.

I actually used script to get the maintainer list, but I was not sure whether I should send-to or cc every maintainer, so I consulted the AI, and the AI said to try not to do so because it might be considered noise email, and only send it to the main maintainers.

Should I cc all the devicetree maintainers with the next patches?

Best regards,
WeiHao

Quoted 37 lines · Heiko Stübner <[email protected]> 于2025年8月31日周日 23:00写道:

Hi,
Am Sonntag, 31. August 2025, 12:48:51 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 3 lines

Add a clock id for mipi dsi reference clock, mipi dsi node used it.

you missed a number of devicetree maintainers, Rob thankfully does not need to do this on his own anymore.

so please get the appropriate list of maintainers via scripts/get_maintainer.pl

Change itself looks fine though.

Heiko

Quoted 17 lines
---
 include/dt-bindings/clock/rk3368-cru.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3368-cru.h +1 -0
index ebae3cbf8..b951e2906 100644
@@ -72,6 +72,7 @@
 #define SCLK_SFC             126
 #define SCLK_MAC             127
 #define SCLK_MACREF_OUT              128
+#define SCLK_MIPIDSI_24M     129
 #define SCLK_TIMER10         133
 #define SCLK_TIMER11         134
 #define SCLK_TIMER12         135
author
#15 lore raw

Re: [PATCH v1 5/7] ARM: dts: rockchip: Add display subsystem for RK3368

In reply to Heiko Stübner

Hi

Sorry about that, I didn't notice this before, I will adjust it according to the documentation.

Best regards,
WeiHao

Quoted 66 lines · Heiko Stübner <[email protected]> 于2025年8月31日周日 23:04写道:

Hi,

Am Sonntag, 31. August 2025, 12:48:53 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 3 lines

Add vop and display-subsystem nodes to RK3368's device tree.

please use the appropriate patch prefix. For arm64 this should be
arm64: dts: rockchip:

The one you're using is from the arm32 side.

Also please sort things appropriately both node-position and order of properties inside nodes, see
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/dts-coding-style.rst

Heiko

Quoted 42 lines
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +26 -0
index 73618df7a..0e47bf59a 100644
@@ -858,6 +858,32 @@ vop_mmu: iommu@ff930300 {
              status = "disabled";
      };
 
+     vop: vop@ff930000 {
+             compatible = "rockchip,rk3368-vop";
+             reg = <0x0 0xff930000 0x0 0x2fc>, <0x0 0xff931000 0x0 0x400>;
+             reg-names = "regs", "gamma_lut";
+             interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+             clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
+             clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
+             assigned-clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
+             assigned-clock-rates = <400000000>, <200000000>;
+             resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
+             reset-names = "axi", "ahb", "dclk";
+             iommus = <&vop_mmu>;
+             status = "disabled";
+
+             vop_out: port {
+                     #address-cells = <1>;
+                     #size-cells = <0>;
+             };
+     };
+
+     display_subsystem: display-subsystem {
+             compatible = "rockchip,display-subsystem";
+             ports = <&vop_out>;
+             status = "disabled";
+     };
+
      hevc_mmu: iommu@ff9a0440 {
              compatible = "rockchip,iommu";
              reg = <0x0 0xff9a0440 0x0 0x40>,
author
#18 lore raw

Re: [PATCH v1 6/7] ARM: dts: rockchip: Add D-PHY for RK3368

In reply to Heiko Stübner

Hi,

This phy is a MIPI_DSI/LVDS/TTL combo phy.

maybe it be better to use dphy: phy@ff968000?

Best regards,
WeiHao

Quoted 45 lines · Heiko Stübner <[email protected]> 于2025年8月31日周日 23:06写道:

Am Sonntag, 31. August 2025, 12:48:54 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 13 lines

RK3368 has a InnoSilicon D-PHY which supports DSI/LVDS/TTL with maximum trasnfer rate of 1 Gbps per lane.

---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/rockchip/rk3368.dtsi +0 -0
index 0e47bf59a..674a3676d 100644

arch/arm64/boot/dts/rockchip/rk3368.dtsi display_subsystem: display-subsystem { · line 887

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3368.dtsi +1 -0
@@ -884,6 +884,20 @@ display_subsystem: display-subsystem {
              status = "disabled";
      };
 
+     video_phy: video-phy@ff968000 {

I think the node should be something like
dsi_dphy: phy@ff968000

Quoted 17 lines
arch/arm64/boot/dts/rockchip/rk3368.dtsi +13 -0
+             compatible = "rockchip,rk3368-dsi-dphy";
+             reg = <0x0 0xff968000 0x0 0x4000>,
+                   <0x0 0xff960000 0x0 0x4000>;
+             clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>,
+                      <&cru PCLK_MIPI_DSI0>;
+             clock-names = "ref", "pclk", "pclk_host";
+             #clock-cells = <0>;
+             resets = <&cru SRST_MIPIDPHYTX>;
+             reset-names = "apb";
+             #phy-cells = <0>;
+             status = "disabled";
+     };
+
      hevc_mmu: iommu@ff9a0440 {
              compatible = "rockchip,iommu";
              reg = <0x0 0xff9a0440 0x0 0x40>,
author
#21 lore raw
In reply to Heiko Stübner

Hi,

Quoted 9 lines · Heiko Stübner <[email protected]> 于2025年8月31日周日 23:10写道:

Hi,

Am Sonntag, 31. August 2025, 12:48:48 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 5 lines

This series adds MIPI DSI support for the Rockchip RK3368 SoC, enabling native display connectivity through the MIPI DSI host controller and PHY. The changes span multiple subsystems, including clock control, DRM/VOP integration, DSI controller binding, and PHY driver updates.

Quoted 6 lines
Quoted 3 lines

Key changes:
- Update the Rockchip MIPI DSI PHY driver to preperly handle RK3368 phy initialization.

which patch is doing this, because I don't see any phy-related change

The first patch, changes for dw-mipi-dsi-rockchip.c, some settings for mipi dphy.

Maybe I should adjust the description, it's a bit unclear.

Quoted 6 lines
Quoted 6 lines

- Add missing lut_size of vop_data for RK3368.
- Add missing clock ID SCLK_MIPIDSI_24M to the RK3368 CRU driver, which is required for enabling the 24MHz reference clock.
- Add MIPI DSI node to rk3368.dtsi with correct clocks, resets, and register mappings.

Quoted 9 lines
Quoted 4 lines

These changes were tested on a RK3368-based board with a MIPI DSI panel [1]. The display boots successfully with console output.

[1] https://ieiao.github.io/wiki/embedded-dev/rockchip/rk3368

Do you plan on submitting this board to mainline? Because having an actual user of the code you're adding would be really really nice.

I'd be happy to submit this board support.

However, after searching for a while, I couldn't find the manufacturer information of this device and mipi dsi panel. I am not sure whether the devicetree support of unknown manufacturers allows submission to mainline.

Quoted 28 lines

Thanks
Heiko

Quoted 21 lines

WeiHao Li (7):
drm/rockchip: dsi: Add support for RK3368 drm/rockchip: vop: add lut_size for RK3368 vop_data
dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M
clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368
ARM: dts: rockchip: Add display subsystem for RK3368
ARM: dts: rockchip: Add D-PHY for RK3368
ARM: dts: rockchip: Add DSI for RK3368

 arch/arm64/boot/dts/rockchip/rk3368.dtsi      | 79 +++++++++++++++++++
 drivers/clk/rockchip/clk-rk3368.c             |  2 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 20 +++++
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  1 +
 include/dt-bindings/clock/rk3368-cru.h        |  1 +
 5 files changed, 102 insertions(+), 1 deletion(-)

Best regards,
WeiHao

maintainer
#9 lore raw

Re: [PATCH v1 3/7] dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M

In reply to 李维豪

Hi,

Am Montag, 1. September 2025, 02:17:00 Mitteleuropäische Sommerzeit schrieb 李维豪:

Quoted 4 lines

I actually used script to get the maintainer list, but I was not sure whether I should send-to or cc every maintainer, so I consulted the AI, and the AI said to try not to do so because it might be considered noise email, and only send it to the main maintainers.

please don't top-post :-)
https://docs.kernel.org/process/submitting-patches.html#use-trimmed-interleaved-replies-in-email-discussions

Quoted 1 line

Should I cc all the devicetree maintainers with the next patches?

Looks like we did get an Ack still with even only one maintainer listed, so don't need a resend ... but yeah, please include people listed as direct maintainers in the future.

Workflows differ, so when submitting a patch you can't know if maintainers work from patchwork or directly from their inbox.

So it's safer to include more people than not enough :-)

Some trimming of the list can be done though, for example your drm patches would list the core drm maintainers who most likely do not really care about individual driver patches ;-) .

get_maintainers.pl thankfully does list the role, so you can decide based on that.

Heiko

Quoted 42 lines

Best regards,
WeiHao

Quoted 37 lines · Heiko Stübner <[email protected]> 于2025年8月31日周日 23:00写道:

Hi,
Am Sonntag, 31. August 2025, 12:48:51 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 3 lines

Add a clock id for mipi dsi reference clock, mipi dsi node used it.

you missed a number of devicetree maintainers, Rob thankfully does not need to do this on his own anymore.

so please get the appropriate list of maintainers via scripts/get_maintainer.pl

Change itself looks fine though.

Heiko

Quoted 17 lines
---
 include/dt-bindings/clock/rk3368-cru.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3368-cru.h +1 -0
index ebae3cbf8..b951e2906 100644
@@ -72,6 +72,7 @@
 #define SCLK_SFC             126
 #define SCLK_MAC             127
 #define SCLK_MACREF_OUT              128
+#define SCLK_MIPIDSI_24M     129
 #define SCLK_TIMER10         133
 #define SCLK_TIMER11         134
 #define SCLK_TIMER12         135
#22 lore raw
In reply to WeiHao Li
Quoted 38 lines · WeiHao Li

This series adds MIPI DSI support for the Rockchip RK3368 SoC, enabling native display connectivity through the MIPI DSI host controller and PHY. The changes span multiple subsystems, including clock control, DRM/VOP integration, DSI controller binding, and PHY driver updates.

Key changes:
- Update the Rockchip MIPI DSI PHY driver to preperly handle RK3368 phy initialization.
- Add missing lut_size of vop_data for RK3368.
- Add missing clock ID SCLK_MIPIDSI_24M to the RK3368 CRU driver, which is required for enabling the 24MHz reference clock.
- Add MIPI DSI node to rk3368.dtsi with correct clocks, resets, and register mappings.

These changes were tested on a RK3368-based board with a MIPI DSI panel [1]. The display boots successfully with console output.

[1] https://ieiao.github.io/wiki/embedded-dev/rockchip/rk3368

WeiHao Li (7):
drm/rockchip: dsi: Add support for RK3368 drm/rockchip: vop: add lut_size for RK3368 vop_data
dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M
clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368
ARM: dts: rockchip: Add display subsystem for RK3368
ARM: dts: rockchip: Add D-PHY for RK3368
ARM: dts: rockchip: Add DSI for RK3368

 arch/arm64/boot/dts/rockchip/rk3368.dtsi      | 79 +++++++++++++++++++
 drivers/clk/rockchip/clk-rk3368.c             |  2 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 20 +++++
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  1 +
 include/dt-bindings/clock/rk3368-cru.h        |  1 +
 5 files changed, 102 insertions(+), 1 deletion(-)
Quoted 5 lines

--
2.47.2

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20250829 (exact match)

If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/rockchip/' for [email protected]:

arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[10, 129], [10, 371], [10, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-r88.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[10, 129], [10, 371], [10, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[10, 129], [10, 371], [10, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[11, 129], [11, 371], [11, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[10, 129], [10, 371], [10, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[10, 129], [10, 371], [10, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: vop@ff930000 (rockchip,rk3368-vop): 'reg-names' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): $nodename:0: 'mipi-dsi@ff960000' does not match '^dsi(@.*)?$'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: mipi-dsi@ff960000 (rockchip,rk3368-mipi-dsi): compatible:0: 'rockchip,rk3368-mipi-dsi' is not one of ['rockchip,px30-mipi-dsi', 'rockchip,rk3128-mipi-dsi', 'rockchip,rk3288-mipi-dsi', 'rockchip,rk3399-mipi-dsi', 'rockchip,rk3568-mipi-dsi', 'rockchip,rv1126-mipi-dsi']
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: /mipi-dsi@ff960000: failed to match any schema with compatible: ['rockchip,rk3368-mipi-dsi', 'snps,dw-mipi-dsi']
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): '#clock-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clock-names: ['ref', 'pclk', 'pclk_host'] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): clocks: [[11, 129], [11, 371], [11, 356]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#
arch/arm64/boot/dts/rockchip/rk3368-lba3368.dtb: video-phy@ff968000 (rockchip,rk3368-dsi-dphy): reg: [[0, 4288053248, 0, 16384], [0, 4288020480, 0, 16384]] is too long
from schema $id: http://devicetree.org/schemas/phy/rockchip,px30-dsi-dphy.yaml#

maintainer
#2 lore raw

Re: [PATCH v1 1/7] drm/rockchip: dsi: Add support for RK3368

In reply to WeiHao Li

Hi,

Am Sonntag, 31. August 2025, 12:48:49 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 3 lines

RK3368 has DesignWare MIPI DSI controller and an external inno D-PHY.

as a general remark, this patch will likely need to wait for 6.18-rc1, because a big update of the HIWORD_MASK macros was merged [0].

So introducing a new user now would cause havok :-) .

Also when sending a v2, please base it on top of that changeset, or just take linux-next [1] as a base.

Also in a separate patch, please add the needed rk3368 entry to the devicetree binding [2], this will pacify the bot that checked your devicetree changes :-) .

Please also make sure that relevant additions to the lists below are made (the binding contains specific settings for some controllers furter below) .

Heiko

[0] https://lore.kernel.org/linux-rockchip/[email protected]/
[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml

Quoted 50 lines
---
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +20 -0
index 3398160ad..5d76e3e04 100644
@@ -162,6 +162,11 @@
 #define RK3288_DSI0_LCDC_SEL		BIT(6)
 #define RK3288_DSI1_LCDC_SEL		BIT(9)
 
+#define RK3368_GRF_SOC_CON7		0x41c
+#define RK3368_DSI_FORCETXSTOPMODE	(0xf << 7)
+#define RK3368_DSI_FORCERXMODE		BIT(6)
+#define RK3368_DSI_TURNDISABLE		BIT(5)
+
 #define RK3399_GRF_SOC_CON20		0x6250
 #define RK3399_DSI0_LCDC_SEL		BIT(0)
 #define RK3399_DSI1_LCDC_SEL		BIT(4)
@@ -1530,6 +1535,18 @@ static const struct rockchip_dw_dsi_chip_data rk3288_chip_data[] = {
 	{ /* sentinel */ }
 };
 
+static const struct rockchip_dw_dsi_chip_data rk3368_chip_data[] = {
+	{
+		.reg = 0xff960000,
+		.lanecfg1_grf_reg = RK3368_GRF_SOC_CON7,
+		.lanecfg1 = HIWORD_UPDATE(0, RK3368_DSI_TURNDISABLE |
+						RK3368_DSI_FORCETXSTOPMODE |
+						RK3368_DSI_FORCERXMODE),
+		.max_data_lanes = 4,
+	},
+	{ /* sentinel */ }
+};
+
 static int rk3399_dphy_tx1rx1_init(struct phy *phy)
 {
 	struct dw_mipi_dsi_rockchip *dsi = phy_get_drvdata(phy);
@@ -1693,6 +1710,9 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
 	}, {
 	 .compatible = "rockchip,rk3288-mipi-dsi",
 	 .data = &rk3288_chip_data,
+	}, {
+	 .compatible = "rockchip,rk3368-mipi-dsi",
+	 .data = &rk3368_chip_data,
 	}, {
 	 .compatible = "rockchip,rk3399-mipi-dsi",
 	 .data = &rk3399_chip_data,
maintainer
#5 lore raw

Re: [PATCH v1 2/7] drm/rockchip: vop: add lut_size for RK3368 vop_data

In reply to WeiHao Li

Hi,

Am Sonntag, 31. August 2025, 12:48:50 Mitteleuropäische Sommerzeit schrieb WeiHao Li:

Quoted 1 line

VOP driver need a correct lut_size to work normally.

please add a comment where that value is coming from. Because the vop in the vendor kernel is so vastly different.

Thanks
Heiko

Quoted 19 lines
---
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +1 -0
index d1f788763..219f8c2fa 100644
@@ -880,6 +880,7 @@ static const struct vop_data rk3368_vop = {
 	.win = rk3368_vop_win_data,
 	.win_size = ARRAY_SIZE(rk3368_vop_win_data),
 	.max_output = { 4096, 2160 },
+	.lut_size = 1024,
 };
 
 static const struct vop_intr rk3366_vop_intr = {
maintainer Applied
#23 lore raw

Re: (subset) [PATCH v1 0/7] drm/rockchip: Add MIPI DSI support for RK3368

In reply to WeiHao Li
Quoted 14 lines · WeiHao Li

This series adds MIPI DSI support for the Rockchip RK3368 SoC, enabling native display connectivity through the MIPI DSI host controller and PHY. The changes span multiple subsystems, including clock control, DRM/VOP integration, DSI controller binding, and PHY driver updates.

Key changes:
- Update the Rockchip MIPI DSI PHY driver to preperly handle RK3368 phy initialization.
- Add missing lut_size of vop_data for RK3368.
- Add missing clock ID SCLK_MIPIDSI_24M to the RK3368 CRU driver, which is required for enabling the 24MHz reference clock.
- Add MIPI DSI node to rk3368.dtsi with correct clocks, resets, and register mappings.

Quoted 1 line

[...]

Applied, thanks!

[3/7] dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M

      commit: 4a76a0a889cef284327f265f97edc4ff2f3e11cc
[4/7] clk: rockchip: use clock ids for SCLK_MIPIDSI_24M on rk3368
      commit: 77111b2c22ef5b368da5c833175b6f7806b39ccb

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>
author
#10 lore raw

Re: [PATCH v1 3/7] dt-bindings: clock: rk3368: Add SCLK_MIPIDSI_24M

In reply to Heiko Stuebner

Hi,

Quoted 4 lines · Heiko Stuebner <[email protected]> 于2025年9月2日周二 14:49写道:

Workflows differ, so when submitting a patch you can't know if maintainers work from patchwork or directly from their inbox.

Quoted 9 lines

So it's safer to include more people than not enough :-)

Some trimming of the list can be done though, for example your drm patches would list the core drm maintainers who most likely do not really care about individual driver patches ;-) .

get_maintainers.pl thankfully does list the role, so you can decide based on that.

Thank you for your patient reply. I understand now, and I'll try to do better next time.

yours,
WeiHao

author
#3 lore raw

Re: [PATCH v1 1/7] drm/rockchip: dsi: Add support for RK3368

In reply to Heiko Stuebner

Hi,

Quoted 9 lines · Heiko Stuebner <[email protected]> 于2025年9月3日周三 20:07写道:

as a general remark, this patch will likely need to wait for 6.18-rc1, because a big update of the HIWORD_MASK macros was merged [0].

So introducing a new user now would cause havok :-) .

Also when sending a v2, please base it on top of that changeset, or just take linux-next [1] as a base.

Quoted 8 lines

Also in a separate patch, please add the needed rk3368 entry to the devicetree binding [2], this will pacify the bot that checked your devicetree changes :-) .

Please also make sure that relevant additions to the lists below are made (the binding contains specific settings for some controllers furter below) .

Got it. I'll rebase my patch serial to linux-next tree and test it before sending v2, and I will also add the necessary commit description and device tree binding information.

Yours,
Weihao