* [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible
2025-05-18 22:54 [PATCH 0/3] rockchip: Add GPU support for RK3528 Jonas Karlman
@ 2025-05-18 22:54 ` Jonas Karlman
2025-05-19 16:10 ` Conor Dooley
2025-05-18 22:54 ` [PATCH 2/3] arm64: dts: rockchip: Add GPU node for RK3528 Jonas Karlman
` (3 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Jonas Karlman @ 2025-05-18 22:54 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter
Cc: Yao Zi, Chukun Pan, linux-rockchip, dri-devel, devicetree,
linux-arm-kernel, Jonas Karlman, linux-kernel
Rockchip RK3528 SoC has a Mali-450 MP2. Add a compatible for it.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
index 9318817ea135..c8d0d9192d92 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
@@ -47,6 +47,7 @@ properties:
- hisilicon,hi6220-mali
- mediatek,mt7623-mali
- rockchip,rk3328-mali
+ - rockchip,rk3528-mali
- const: arm,mali-450
# "arm,mali-300"
@@ -148,6 +149,7 @@ allOf:
- rockchip,rk3188-mali
- rockchip,rk3228-mali
- rockchip,rk3328-mali
+ - rockchip,rk3528-mali
then:
required:
- resets
--
2.49.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible
2025-05-18 22:54 ` [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible Jonas Karlman
@ 2025-05-19 16:10 ` Conor Dooley
0 siblings, 0 replies; 9+ messages in thread
From: Conor Dooley @ 2025-05-19 16:10 UTC (permalink / raw)
To: Jonas Karlman
Cc: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Yao Zi, Chukun Pan, linux-rockchip, dri-devel,
devicetree, linux-arm-kernel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 241 bytes --]
On Sun, May 18, 2025 at 10:54:11PM +0000, Jonas Karlman wrote:
> Rockchip RK3528 SoC has a Mali-450 MP2. Add a compatible for it.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/3] arm64: dts: rockchip: Add GPU node for RK3528
2025-05-18 22:54 [PATCH 0/3] rockchip: Add GPU support for RK3528 Jonas Karlman
2025-05-18 22:54 ` [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible Jonas Karlman
@ 2025-05-18 22:54 ` Jonas Karlman
2025-05-18 22:54 ` [PATCH 3/3] arm64: dts: rockchip: Enable GPU on Radxa E20C Jonas Karlman
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Jonas Karlman @ 2025-05-18 22:54 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Yao Zi, Chukun Pan, linux-rockchip, dri-devel, devicetree,
linux-arm-kernel, Jonas Karlman, linux-kernel
Add a GPU node and a opp-table for the Mali-450 MP2 in the RK3528 SoC.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
arch/arm64/boot/dts/rockchip/rk3528.dtsi | 58 ++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3528.dtsi b/arch/arm64/boot/dts/rockchip/rk3528.dtsi
index 791cb9b1e8f1..548ac6d4793f 100644
--- a/arch/arm64/boot/dts/rockchip/rk3528.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3528.dtsi
@@ -96,6 +96,36 @@ scmi_clk: protocol@14 {
};
};
+ gpu_opp_table: opp-table-gpu {
+ compatible = "operating-points-v2";
+
+ opp-300000000 {
+ opp-hz = /bits/ 64 <300000000>;
+ opp-microvolt = <875000 875000 1000000>;
+ opp-suspend;
+ };
+
+ opp-500000000 {
+ opp-hz = /bits/ 64 <500000000>;
+ opp-microvolt = <875000 875000 1000000>;
+ };
+
+ opp-600000000 {
+ opp-hz = /bits/ 64 <600000000>;
+ opp-microvolt = <875000 875000 1000000>;
+ };
+
+ opp-700000000 {
+ opp-hz = /bits/ 64 <700000000>;
+ opp-microvolt = <900000 900000 1000000>;
+ };
+
+ opp-800000000 {
+ opp-hz = /bits/ 64 <800000000>;
+ opp-microvolt = <950000 950000 1000000>;
+ };
+ };
+
psci {
compatible = "arm,psci-1.0", "arm,psci-0.2";
method = "smc";
@@ -433,6 +463,34 @@ power-domain@RK3528_PD_VPU {
};
};
+ gpu: gpu@ff700000 {
+ compatible = "rockchip,rk3528-mali", "arm,mali-450";
+ reg = <0x0 0xff700000 0x0 0x40000>;
+ assigned-clocks = <&cru ACLK_GPU_MALI>,
+ <&scmi_clk SCMI_CLK_GPU>;
+ assigned-clock-rates = <297000000>, <300000000>;
+ clocks = <&cru ACLK_GPU_MALI>, <&scmi_clk SCMI_CLK_GPU>;
+ clock-names = "bus", "core";
+ interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "gp",
+ "gpmmu",
+ "pp",
+ "pp0",
+ "ppmmu0",
+ "pp1",
+ "ppmmu1";
+ operating-points-v2 = <&gpu_opp_table>;
+ power-domains = <&power RK3528_PD_GPU>;
+ resets = <&cru SRST_A_GPU>;
+ status = "disabled";
+ };
+
uart0: serial@ff9f0000 {
compatible = "rockchip,rk3528-uart", "snps,dw-apb-uart";
reg = <0x0 0xff9f0000 0x0 0x100>;
--
2.49.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 3/3] arm64: dts: rockchip: Enable GPU on Radxa E20C
2025-05-18 22:54 [PATCH 0/3] rockchip: Add GPU support for RK3528 Jonas Karlman
2025-05-18 22:54 ` [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible Jonas Karlman
2025-05-18 22:54 ` [PATCH 2/3] arm64: dts: rockchip: Add GPU node for RK3528 Jonas Karlman
@ 2025-05-18 22:54 ` Jonas Karlman
2025-05-19 20:31 ` (subset) [PATCH 0/3] rockchip: Add GPU support for RK3528 Heiko Stuebner
2025-06-20 20:15 ` Heiko Stuebner
4 siblings, 0 replies; 9+ messages in thread
From: Jonas Karlman @ 2025-05-18 22:54 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Yao Zi, Chukun Pan, linux-rockchip, dri-devel, devicetree,
linux-arm-kernel, Jonas Karlman, linux-kernel
Enable the Mali-450 MP2 GPU on the Radxa E20C.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts b/arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts
index 9f6ccd9dd1f7..e4333674a0ec 100644
--- a/arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts
@@ -198,6 +198,11 @@ &gmac1 {
status = "okay";
};
+&gpu {
+ mali-supply = <&vdd_logic>;
+ status = "okay";
+};
+
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1m0_xfer>;
--
2.49.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: (subset) [PATCH 0/3] rockchip: Add GPU support for RK3528
2025-05-18 22:54 [PATCH 0/3] rockchip: Add GPU support for RK3528 Jonas Karlman
` (2 preceding siblings ...)
2025-05-18 22:54 ` [PATCH 3/3] arm64: dts: rockchip: Enable GPU on Radxa E20C Jonas Karlman
@ 2025-05-19 20:31 ` Heiko Stuebner
2025-06-20 20:15 ` Heiko Stuebner
4 siblings, 0 replies; 9+ messages in thread
From: Heiko Stuebner @ 2025-05-19 20:31 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jonas Karlman
Cc: Heiko Stuebner, Yao Zi, Chukun Pan, linux-rockchip, dri-devel,
devicetree, linux-arm-kernel
On Sun, 18 May 2025 22:54:10 +0000, Jonas Karlman wrote:
> This series adds support for the Mali-450 MP2 GPU in the RK3528 SoC.
>
> The clock used for the GPU can use normal PLL to support a rate of 100,
> 300 or 500 MHz. Or it can use PVTPLL to reach rates up to 800 MHz.
>
> The TF-A SCMI_CLK_GPU is used to switch use between normal PLL and
> PVTPLL. When a rate of up to 300 MHz is requested TF-A switch to use
> normal PLL, and for rates above 300 MHz the PVTPLL is used.
>
> [...]
Applied, thanks!
[1/3] dt-bindings: gpu: mali-utgard: Add Rockchip RK3528 compatible
commit: 6f446bbe412ab3d75651d1cc52e31aaf801dbea8
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: (subset) [PATCH 0/3] rockchip: Add GPU support for RK3528
2025-05-18 22:54 [PATCH 0/3] rockchip: Add GPU support for RK3528 Jonas Karlman
` (3 preceding siblings ...)
2025-05-19 20:31 ` (subset) [PATCH 0/3] rockchip: Add GPU support for RK3528 Heiko Stuebner
@ 2025-06-20 20:15 ` Heiko Stuebner
2025-06-21 9:00 ` Chukun Pan
4 siblings, 1 reply; 9+ messages in thread
From: Heiko Stuebner @ 2025-06-20 20:15 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jonas Karlman
Cc: Heiko Stuebner, Yao Zi, Chukun Pan, linux-rockchip, dri-devel,
devicetree, linux-arm-kernel
On Sun, 18 May 2025 22:54:10 +0000, Jonas Karlman wrote:
> This series adds support for the Mali-450 MP2 GPU in the RK3528 SoC.
>
> The clock used for the GPU can use normal PLL to support a rate of 100,
> 300 or 500 MHz. Or it can use PVTPLL to reach rates up to 800 MHz.
>
> The TF-A SCMI_CLK_GPU is used to switch use between normal PLL and
> PVTPLL. When a rate of up to 300 MHz is requested TF-A switch to use
> normal PLL, and for rates above 300 MHz the PVTPLL is used.
>
> [...]
Applied, thanks!
[2/3] arm64: dts: rockchip: Add GPU node for RK3528
commit: 6b88b8a640fa5d2169e0ce47b88dc30727fc1105
[3/3] arm64: dts: rockchip: Enable GPU on Radxa E20C
commit: 669080eb7f7c4720aa4e640a49f7490cd928cfcc
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 0/3] rockchip: Add GPU support for RK3528
2025-06-20 20:15 ` Heiko Stuebner
@ 2025-06-21 9:00 ` Chukun Pan
2025-06-21 18:44 ` Heiko Stuebner
0 siblings, 1 reply; 9+ messages in thread
From: Chukun Pan @ 2025-06-21 9:00 UTC (permalink / raw)
To: heiko; +Cc: amadeus, ziyao, devicetree, linux-rockchip, linux-arm-kernel
Hi,
> Applied, thanks!
>
> [2/3] arm64: dts: rockchip: Add GPU node for RK3528
> commit: 6b88b8a640fa5d2169e0ce47b88dc30727fc1105
> [3/3] arm64: dts: rockchip: Enable GPU on Radxa E20C
> commit: 669080eb7f7c4720aa4e640a49f7490cd928cfcc
https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/commit/?id=6b88b8a640fa5d2169e0ce47b88dc30727fc1105
Should the gpu_opp_table node be above the pinctrl node?
Thanks,
Chukun
--
2.25.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/3] rockchip: Add GPU support for RK3528
2025-06-21 9:00 ` Chukun Pan
@ 2025-06-21 18:44 ` Heiko Stuebner
0 siblings, 0 replies; 9+ messages in thread
From: Heiko Stuebner @ 2025-06-21 18:44 UTC (permalink / raw)
To: Chukun Pan; +Cc: amadeus, ziyao, devicetree, linux-rockchip, linux-arm-kernel
Am Samstag, 21. Juni 2025, 11:00:26 Mitteleuropäische Sommerzeit schrieb Chukun Pan:
> Hi,
>
> > Applied, thanks!
> >
> > [2/3] arm64: dts: rockchip: Add GPU node for RK3528
> > commit: 6b88b8a640fa5d2169e0ce47b88dc30727fc1105
> > [3/3] arm64: dts: rockchip: Enable GPU on Radxa E20C
> > commit: 669080eb7f7c4720aa4e640a49f7490cd928cfcc
>
> https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/commit/?id=6b88b8a640fa5d2169e0ce47b88dc30727fc1105
>
> Should the gpu_opp_table node be above the pinctrl node?
yes it should. "o" before "p" :-) .
As tht commit was just from yesterday, I've amended it to move the
table to its correct position now.
Thanks for catching that.
Heiko
^ permalink raw reply [flat|nested] 9+ messages in thread