Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI
@ 2026-11-26 14:52 Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 1/6] dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks Sebastian Reichel
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

When RK3588 DFI support was added, support for the clocks was missed.
This series fixes that and also adds the clocks for RK3576 as well as
RK3576 DFI node itself.

The DT binding for the DFI side already got merged together with the
driver changes today, so there is no dependencies for this series:

https://lore.kernel.org/linux-pm/20261119-rockchip-dfi-rk3588-cleanups-and-rk3576-support-v4-0-517a68c008fe@collabora.com/

I expect all patches in this series to be handled by Heiko and kept
them together in one series for simplicity even though they go through
different trees.

Changes in v3:
 * Link to v2 (part 1): https://lore.kernel.org/linux-rockchip/20260921-rockchip-dfi-cleanup-v2-0-43ff34ac8599@collabora.com/
 * Link to v2 (part 2): https://lore.kernel.org/linux-rockchip/20260921-b4-rockchip-dfi-rk3576-support-v2-0-04f847016321@collabora.com/
- Split out clock and DTS patches from two DFI series; the DFI driver
  patches got their own v3 (and v4 got applied as mentioned above)
- None of the patches in this series changed compared to v2

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
Nicolas Frattaroli (6):
      dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks
      dt-bindings: clock: rk3576: add more DFI clocks
      clk: rockchip: rk3588: add PCLK_DDR_MON_CH gate branches
      clk: rockchip: rk3576: add missing DFI clock branch
      arm64: dts: rockchip: add dfi clocks on RK3588
      arm64: dts: rockchip: add DFI node to RK3576

 arch/arm64/boot/dts/rockchip/rk3576.dtsi        | 11 +++++++++++
 arch/arm64/boot/dts/rockchip/rk3588-base.dtsi   |  4 ++++
 drivers/clk/rockchip/clk-rk3576.c               |  4 +++-
 drivers/clk/rockchip/clk-rk3588.c               |  8 ++++++++
 include/dt-bindings/clock/rockchip,rk3576-cru.h |  6 ++++++
 include/dt-bindings/clock/rockchip,rk3588-cru.h |  4 ++++
 6 files changed, 36 insertions(+), 1 deletion(-)
---
base-commit: 0202125a80af9dad6d762dfe52572b95ca7699db
change-id: 20261126-dfi-clocks-and-rk3576-support-fcdd2d3eab1b

Best regards,
--  
Sebastian Reichel <sebastian.reichel@collabora.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 1/6] dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks
  2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
@ 2026-11-26 14:52 ` Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 2/6] dt-bindings: clock: rk3576: add more DFI clocks Sebastian Reichel
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

On RK3588, each memory channel has its own DDR bandwidth monitor
silicon, and each instance of that has its own clock gate that drives
the monitor logic.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 include/dt-bindings/clock/rockchip,rk3588-cru.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/dt-bindings/clock/rockchip,rk3588-cru.h b/include/dt-bindings/clock/rockchip,rk3588-cru.h
index 7528034cff56..6ea25019ebb4 100644
--- a/include/dt-bindings/clock/rockchip,rk3588-cru.h
+++ b/include/dt-bindings/clock/rockchip,rk3588-cru.h
@@ -738,6 +738,10 @@
 #define I2S1_8CH_MCLKOUT_TO_IO		723
 #define I2S2_2CH_MCLKOUT_TO_IO		724
 #define I2S3_2CH_MCLKOUT_TO_IO		725
+#define PCLK_DDR_MON_CH0		726
+#define PCLK_DDR_MON_CH1		727
+#define PCLK_DDR_MON_CH2		728
+#define PCLK_DDR_MON_CH3		729
 
 /* scmi-clocks indices */
 

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 2/6] dt-bindings: clock: rk3576: add more DFI clocks
  2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 1/6] dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks Sebastian Reichel
@ 2026-11-26 14:52 ` Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 3/6] clk: rockchip: rk3588: add PCLK_DDR_MON_CH gate branches Sebastian Reichel
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

When the RK3576 CRU DT binding got upstreamed, some DFI clocks
were missed. Add identifiers for them.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 include/dt-bindings/clock/rockchip,rk3576-cru.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/dt-bindings/clock/rockchip,rk3576-cru.h b/include/dt-bindings/clock/rockchip,rk3576-cru.h
index ded5ce42e62a..c5b74f2d8926 100644
--- a/include/dt-bindings/clock/rockchip,rk3576-cru.h
+++ b/include/dt-bindings/clock/rockchip,rk3576-cru.h
@@ -604,4 +604,10 @@
 #define CLK_FSPI0_TO_IO			576
 #define CLK_FSPI1_TO_IO			577
 
+/* Clocks that were missed initially */
+#define PCLK_DDR_MON_CH1		578
+#define TMCLK_DDR_MON_CH1		579
+#define CLK_DFI_CH0			580
+#define CLK_DFI_CH1			581
+
 #endif

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 3/6] clk: rockchip: rk3588: add PCLK_DDR_MON_CH gate branches
  2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 1/6] dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 2/6] dt-bindings: clock: rk3576: add more DFI clocks Sebastian Reichel
@ 2026-11-26 14:52 ` Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 4/6] clk: rockchip: rk3576: add missing DFI clock branch Sebastian Reichel
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

On the Rockchip RK3588, each memory channel has some bandwidth
monitoring silicon (hence the "DDR_MON"), which is driven by a clock
gated by PCLK_DDR_MON_CH0/1/2/3.

These clock branches were left out of the mainline clock tree until now.

Add them, with the proper CRU reg bits, and the proper parent.  They are
given the "CLK_IGNORE_UNUSED" flag, so that older device trees with
newer kernels don't turn off the clocks because they're seen as not in
use.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 drivers/clk/rockchip/clk-rk3588.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/clk/rockchip/clk-rk3588.c b/drivers/clk/rockchip/clk-rk3588.c
index 24baa0ef9bf3..0485faf27163 100644
--- a/drivers/clk/rockchip/clk-rk3588.c
+++ b/drivers/clk/rockchip/clk-rk3588.c
@@ -1349,6 +1349,14 @@ static struct rockchip_clk_branch rk3588_early_clk_branches[] __initdata = {
 	COMPOSITE(CLK_DDR_CM0_RTC, "clk_ddr_cm0_rtc", mux_24m_32k_p, CLK_IS_CRITICAL,
 			RK3588_CLKSEL_CON(166), 5, 1, MFLAGS, 0, 5, DFLAGS,
 			RK3588_CLKGATE_CON(70), 4, GFLAGS),
+	GATE(PCLK_DDR_MON_CH0, "pclk_ddr_mon_ch0", "pclk_center_root", CLK_IGNORE_UNUSED,
+			RK3588_CLKGATE_CON(20), 1, GFLAGS),
+	GATE(PCLK_DDR_MON_CH1, "pclk_ddr_mon_ch1", "pclk_center_root", CLK_IGNORE_UNUSED,
+			RK3588_CLKGATE_CON(20), 14, GFLAGS),
+	GATE(PCLK_DDR_MON_CH2, "pclk_ddr_mon_ch2", "pclk_center_root", CLK_IGNORE_UNUSED,
+			RK3588_CLKGATE_CON(23), 1, GFLAGS),
+	GATE(PCLK_DDR_MON_CH3, "pclk_ddr_mon_ch3", "pclk_center_root", CLK_IGNORE_UNUSED,
+			RK3588_CLKGATE_CON(23), 14, GFLAGS),
 	GATE(PCLK_WDT, "pclk_wdt", "pclk_center_root", 0,
 			RK3588_CLKGATE_CON(70), 7, GFLAGS),
 	GATE(PCLK_TIMER, "pclk_timer", "pclk_center_root", 0,

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 4/6] clk: rockchip: rk3576: add missing DFI clock branch
  2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
                   ` (2 preceding siblings ...)
  2026-11-26 14:52 ` [PATCH v3 3/6] clk: rockchip: rk3588: add PCLK_DDR_MON_CH gate branches Sebastian Reichel
@ 2026-11-26 14:52 ` Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588 Sebastian Reichel
  2026-11-26 14:52 ` [PATCH v3 6/6] arm64: dts: rockchip: add DFI node to RK3576 Sebastian Reichel
  5 siblings, 0 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

RK3576 DFI has one pclk for each channel's monitor. However, mainline's
clock tree does not model this second DDRMON PCLK gate, and got away
with it so far because they both default to ungated and there is no
upstream RK3576 DFI driver.

Add a clock gate branch for it, and remove the CLK_IGNORE_UNUSED flag
from its sibling. In opposite to RK3588 we can add a mandatory
requirement for a clock reference to the RK3576 DFI DT binding.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 drivers/clk/rockchip/clk-rk3576.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/rockchip/clk-rk3576.c b/drivers/clk/rockchip/clk-rk3576.c
index 577100659593..a48b7556df52 100644
--- a/drivers/clk/rockchip/clk-rk3576.c
+++ b/drivers/clk/rockchip/clk-rk3576.c
@@ -883,8 +883,10 @@ static struct rockchip_clk_branch rk3576_clk_branches[] __initdata = {
 	COMPOSITE(PCLK_DDR_ROOT, "pclk_ddr_root", gpll_cpll_24m_p, CLK_IS_CRITICAL,
 			RK3576_CLKSEL_CON(76), 5, 2, MFLAGS, 0, 5, DFLAGS,
 			RK3576_CLKGATE_CON(21), 0, GFLAGS),
-	GATE(PCLK_DDR_MON_CH0, "pclk_ddr_mon_ch0", "pclk_ddr_root", CLK_IGNORE_UNUSED,
+	GATE(PCLK_DDR_MON_CH0, "pclk_ddr_mon_ch0", "pclk_ddr_root", 0,
 			RK3576_CLKGATE_CON(21), 1, GFLAGS),
+	GATE(PCLK_DDR_MON_CH1, "pclk_ddr_mon_ch1", "pclk_ddr_root", 0,
+			RK3576_CLKGATE_CON(21), 14, GFLAGS),
 	COMPOSITE(HCLK_DDR_ROOT, "hclk_ddr_root", gpll_cpll_p, CLK_IGNORE_UNUSED,
 			RK3576_CLKSEL_CON(77), 5, 1, MFLAGS, 0, 5, DFLAGS,
 			RK3576_CLKGATE_CON(22), 11, GFLAGS),

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588
  2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
                   ` (3 preceding siblings ...)
  2026-11-26 14:52 ` [PATCH v3 4/6] clk: rockchip: rk3576: add missing DFI clock branch Sebastian Reichel
@ 2026-11-26 14:52 ` Sebastian Reichel
  2026-11-26 15:01   ` sashiko-bot
  2026-11-26 14:52 ` [PATCH v3 6/6] arm64: dts: rockchip: add DFI node to RK3576 Sebastian Reichel
  5 siblings, 1 reply; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

The DFI clocks weren't modelled before and the binding didn't know about
them either. That has changed though, and now we actually need to
specify these clocks.

Add all four clocks for all four channels of monitoring.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
index d0f364547ae5..ef0ff6555fba 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
@@ -2190,6 +2190,10 @@ qos_vop_m1: qos@fdf82200 {
 	dfi: dfi@fe060000 {
 		reg = <0x00 0xfe060000 0x00 0x10000>;
 		compatible = "rockchip,rk3588-dfi";
+		clocks = <&cru PCLK_DDR_MON_CH0>, <&cru PCLK_DDR_MON_CH1>,
+			 <&cru PCLK_DDR_MON_CH2>, <&cru PCLK_DDR_MON_CH3>;
+		clock-names = "pclk_ddr_mon_ch0", "pclk_ddr_mon_ch1",
+			      "pclk_ddr_mon_ch2", "pclk_ddr_mon_ch3";
 		interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>,
 			     <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>,
 			     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH 0>,

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 6/6] arm64: dts: rockchip: add DFI node to RK3576
  2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
                   ` (4 preceding siblings ...)
  2026-11-26 14:52 ` [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588 Sebastian Reichel
@ 2026-11-26 14:52 ` Sebastian Reichel
  5 siblings, 0 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 14:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Stephen Boyd, Brian Masney, Jerome Brunet, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chanwoo Choi,
	Nicolas Frattaroli, linux-clk, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, kernel, Sebastian Reichel

From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

Like previous Rockchip SoCs RK3576 has DFI hardware to measure DDR
bandwidth utilisation. Add the node for it to the SoC's DT.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3576.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
index 6f5780af4192..f8bc79ac47ac 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
@@ -2057,6 +2057,17 @@ qos_npu_m1ro: qos@27f22100 {
 			reg = <0x0 0x27f22100 0x0 0x20>;
 		};
 
+		dfi: dfi@2a000000 {
+			compatible = "rockchip,rk3576-dfi";
+			reg = <0x0 0x2a000000 0x0 0x20000>;
+			clocks = <&cru PCLK_DDR_MON_CH0>,
+				 <&cru PCLK_DDR_MON_CH1>;
+			clock-names = "pclk_ddr_mon_ch0", "pclk_ddr_mon_ch1";
+			interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
+			rockchip,pmu = <&pmu1_grf>;
+		};
+
 		gmac0: ethernet@2a220000 {
 			compatible = "rockchip,rk3576-gmac", "snps,dwmac-4.20a";
 			reg = <0x0 0x2a220000 0x0 0x10000>;

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588
  2026-11-26 14:52 ` [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588 Sebastian Reichel
@ 2026-11-26 15:01   ` sashiko-bot
  2026-11-26 15:41     ` Sebastian Reichel
  0 siblings, 1 reply; 9+ messages in thread
From: sashiko-bot @ 2026-11-26 15:01 UTC (permalink / raw)
  To: Sebastian Reichel; +Cc: linux-clk, devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: rockchip: rk3588 dfi clocks violate
  rockchip,dfi.yaml binding
--

commit 01f5bc0587cdc7770b7d81ff68f46ba8e1c4c5c1
Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

arm64: dts: rockchip: add dfi clocks on RK3588

This commit adds four per-channel DFI monitor clocks to the dfi@fe060000
node in rk3588-base.dtsi.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> index d0f364547ae55..ef0ff6555fba3 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> @@ -2190,6 +2190,10 @@ qos_vop_m1: qos@fdf82200 {
>  	dfi: dfi@fe060000 {
>  		reg = <0x00 0xfe060000 0x00 0x10000>;
>  		compatible = "rockchip,rk3588-dfi";
> +		clocks = <&cru PCLK_DDR_MON_CH0>, <&cru PCLK_DDR_MON_CH1>,
> +			 <&cru PCLK_DDR_MON_CH2>, <&cru PCLK_DDR_MON_CH3>;
> +		clock-names = "pclk_ddr_mon_ch0", "pclk_ddr_mon_ch1",
> +			      "pclk_ddr_mon_ch2", "pclk_ddr_mon_ch3";

[Severity: Medium]
Does this violate Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml?

The schema currently allows only a single clock named pclk_ddr_mon:

Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml {
    ...
  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: pclk_ddr_mon
    ...
}

Without the corresponding binding update, dtbs_check fails for all RK3588
device trees that include rk3588-base.dtsi.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-dfi-clocks-and-rk3576-support-v3-0-0f33c1b8df48@collabora.com?part=5

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588
  2026-11-26 15:01   ` sashiko-bot
@ 2026-11-26 15:41     ` Sebastian Reichel
  0 siblings, 0 replies; 9+ messages in thread
From: Sebastian Reichel @ 2026-11-26 15:41 UTC (permalink / raw)
  To: sashiko-reviews; +Cc: linux-clk, devicetree, robh, conor+dt

[-- Attachment #1: Type: text/plain, Size: 1930 bytes --]

Hi,

On Thu, Nov 26, 2026 at 03:01:57PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Medium] arm64: dts: rockchip: rk3588 dfi clocks violate
>   rockchip,dfi.yaml binding
> --
> 
> commit 01f5bc0587cdc7770b7d81ff68f46ba8e1c4c5c1
> Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
> 
> arm64: dts: rockchip: add dfi clocks on RK3588
> 
> This commit adds four per-channel DFI monitor clocks to the dfi@fe060000
> node in rk3588-base.dtsi.
> 
> > diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> > index d0f364547ae55..ef0ff6555fba3 100644
> > --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> > +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> > @@ -2190,6 +2190,10 @@ qos_vop_m1: qos@fdf82200 {
> >  	dfi: dfi@fe060000 {
> >  		reg = <0x00 0xfe060000 0x00 0x10000>;
> >  		compatible = "rockchip,rk3588-dfi";
> > +		clocks = <&cru PCLK_DDR_MON_CH0>, <&cru PCLK_DDR_MON_CH1>,
> > +			 <&cru PCLK_DDR_MON_CH2>, <&cru PCLK_DDR_MON_CH3>;
> > +		clock-names = "pclk_ddr_mon_ch0", "pclk_ddr_mon_ch1",
> > +			      "pclk_ddr_mon_ch2", "pclk_ddr_mon_ch3";
> 
> [Severity: Medium]
> Does this violate Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml?
> 
> The schema currently allows only a single clock named pclk_ddr_mon:
> 
> Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml {
>     ...
>   clocks:
>     maxItems: 1
> 
>   clock-names:
>     items:
>       - const: pclk_ddr_mon
>     ...
> }
> 
> Without the corresponding binding update, dtbs_check fails for all RK3588
> device trees that include rk3588-base.dtsi.

This is a false positive. Sashiko is missing the DFI patch series,
which just got merged today as mentioned in the cover letter.

Greetings,

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-26 15:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 14:52 [PATCH v3 0/6] arm64: dts: rockchip: add RK3588 DFI clocks and RK3576 DFI Sebastian Reichel
2026-11-26 14:52 ` [PATCH v3 1/6] dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks Sebastian Reichel
2026-11-26 14:52 ` [PATCH v3 2/6] dt-bindings: clock: rk3576: add more DFI clocks Sebastian Reichel
2026-11-26 14:52 ` [PATCH v3 3/6] clk: rockchip: rk3588: add PCLK_DDR_MON_CH gate branches Sebastian Reichel
2026-11-26 14:52 ` [PATCH v3 4/6] clk: rockchip: rk3576: add missing DFI clock branch Sebastian Reichel
2026-11-26 14:52 ` [PATCH v3 5/6] arm64: dts: rockchip: add dfi clocks on RK3588 Sebastian Reichel
2026-11-26 15:01   ` sashiko-bot
2026-11-26 15:41     ` Sebastian Reichel
2026-11-26 14:52 ` [PATCH v3 6/6] arm64: dts: rockchip: add DFI node to RK3576 Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox