Skip to contentSkip to conversation

ARM: dts: st: add and enable MALI400 on stih410/stih410-b2260

PATCH In review Alain Volmat 3 participants 11 messages Oct 6, 2024 – Jan 6, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: st: add and enable MALI400 on stih410/stih410-b2260

This series adds necessary node within the stih410.dtsi for the MALI400 GPU and enable the GPU on the stih410-b2260 board.
For that purpose and since the MALI400 GPU is available on the STi platform (stih410 / stih418), a new st,sti-mali compatible is also added within the mali bindings.

---
Changes in v2:
- rename compatible from st,sti-mali to st,stih410-mali
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alain Volmat (3):
dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible
ARM: dts: st: add node for the MALI gpu on stih410.dtsi
ARM: dts: st: enable the MALI gpu on the stih410-b2260

 .../devicetree/bindings/gpu/arm,mali-utgard.yaml   |  1 +
 arch/arm/boot/dts/st/stih410-b2260.dts             |  4 +++
 arch/arm/boot/dts/st/stih410.dtsi                  | 34 ++++++++++++++++++++++
 3 files changed, 39 insertions(+)

---
base-commit: 98f7e32f20d28ec452afb208f9cffc08448a2652
change-id: 20241005-sti-gpu-851d0a720e6c

Best regards,

Signature · 1 line
Alain Volmat <[email protected]>
#1 lore raw

PATCH v2 1/3 dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible

ST STiH410 SoC has a Mali400. Add a compatible for it.

---
 Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +1 -0
index abd4aa335fbcebafc9164bd4963f9db60f0450c4..9318817ea1357d4d66db951513d9bc033b222190 100644
@@ -33,6 +33,7 @@ properties:
               - rockchip,rk3188-mali
               - rockchip,rk3228-mali
               - samsung,exynos4210-mali
+              - st,stih410-mali
               - stericsson,db8500-mali
               - xlnx,zynqmp-mali
           - const: arm,mali-400
Signature · 1 line
2.43.0
maintainer Reviewed-by on v2 1/3
#3 lore raw

Re: [PATCH v2 1/3] dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible

In reply to Alain Volmat
Quoted 13 lines · Alain Volmat

ST STiH410 SoC has a Mali400. Add a compatible for it.

---
 Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +0 -0
index abd4aa335fbcebafc9164bd4963f9db60f0450c4..9318817ea1357d4d66db951513d9bc033b222190 100644

Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml properties: · line 39

Quoted 7 lines
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +1 -0
@@ -33,6 +33,7 @@ properties:
               - rockchip,rk3188-mali
               - rockchip,rk3228-mali
               - samsung,exynos4210-mali
+              - st,stih410-mali
               - stericsson,db8500-mali
               - xlnx,zynqmp-mali
           - const: arm,mali-400

Hi Alain

Thanks

maintainer
#4 lore raw

Re: [PATCH v2 1/3] dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible

Quoted 26 lines · Patrice CHOTARD
Quoted 13 lines · Alain Volmat

ST STiH410 SoC has a Mali400. Add a compatible for it.

---
 Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +0 -0
index abd4aa335fbcebafc9164bd4963f9db60f0450c4..9318817ea1357d4d66db951513d9bc033b222190 100644

Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml properties: · line 39

Quoted 7 lines
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +1 -0
@@ -33,6 +33,7 @@ properties:
               - rockchip,rk3188-mali
               - rockchip,rk3228-mali
               - samsung,exynos4210-mali
+              - st,stih410-mali
               - stericsson,db8500-mali
               - xlnx,zynqmp-mali
           - const: arm,mali-400

Hi Alain

Quoted 3 lines

Thanks

Applied on sti-next

#5 lore raw

PATCH v2 2/3 ARM: dts: st: add node for the MALI gpu on stih410.dtsi

In reply to Alain Volmat

Add the entry for the GPU (Mali400) on the stih410.dtsi

---
 arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm/boot/dts/st/stih410.dtsi +34 -0
index a69231854f783b1b9fd685ba2822eb406e0ffdf5..d56343f44fda4e9e1de2e5efc86e2d984bad14b4 100644
@@ -285,5 +285,39 @@ cec@94a087c {
 			resets = <&softreset STIH407_LPM_SOFTRESET>;
 			hdmi-phandle = <&sti_hdmi>;
 		};
+
+		gpu: gpu@9f00000 {
+			compatible = "st,stih410-mali", "arm,mali-400";
+			reg = <0x9f00000 0x10000>;
+			/* LIMA driver needs 2 clocks, use the same for both */
+			clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>,
+				 <&clk_s_c0_flexgen CLK_ICN_GPU>;
+			clock-names = "bus", "core";
+			assigned-clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>;
+			assigned-clock-rates = <400000000>;
+			resets = <&softreset STIH407_GPU_SOFTRESET>;
+			interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "gp",
+					  "gpmmu",
+					  "pp0",
+					  "ppmmu0",
+					  "pp1",
+					  "ppmmu1",
+					  "pp2",
+					  "ppmmu2",
+					  "pp3",
+					  "ppmmu3";
+
+			status = "disabled";
+		};
 	};
 };
Signature · 1 line
2.43.0
maintainer Reviewed-by on v2 2/3
#6 lore raw

Re: [PATCH v2 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi

Quoted 42 lines · Alain Volmat

Add the entry for the GPU (Mali400) on the stih410.dtsi

---
 arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm/boot/dts/st/stih410.dtsi +26 -0
index a69231854f783b1b9fd685ba2822eb406e0ffdf5..d56343f44fda4e9e1de2e5efc86e2d984bad14b4 100644
@@ -285,5 +285,39 @@ cec@94a087c {
 			resets = <&softreset STIH407_LPM_SOFTRESET>;
 			hdmi-phandle = <&sti_hdmi>;
 		};
+
+		gpu: gpu@9f00000 {
+			compatible = "st,stih410-mali", "arm,mali-400";
+			reg = <0x9f00000 0x10000>;
+			/* LIMA driver needs 2 clocks, use the same for both */
+			clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>,
+				 <&clk_s_c0_flexgen CLK_ICN_GPU>;
+			clock-names = "bus", "core";
+			assigned-clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>;
+			assigned-clock-rates = <400000000>;
+			resets = <&softreset STIH407_GPU_SOFTRESET>;
+			interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "gp",
+					  "gpmmu",
+					  "pp0",
+					  "ppmmu0",
+					  "pp1",

arch/arm/boot/dts/st/stih410.dtsi cec@94a087c { · line 323

Quoted 10 lines
arch/arm/boot/dts/st/stih410.dtsi +8 -0
+					  "ppmmu1",
+					  "pp2",
+					  "ppmmu2",
+					  "pp3",
+					  "ppmmu3";
+
+			status = "disabled";
+		};
 	};
 };

Hi Alain

Thanks
PAtrice

maintainer
#7 lore raw

Re: [PATCH v2 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi

Quoted 57 lines · Patrice CHOTARD
Quoted 42 lines · Alain Volmat

Add the entry for the GPU (Mali400) on the stih410.dtsi

---
 arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm/boot/dts/st/stih410.dtsi +26 -0
index a69231854f783b1b9fd685ba2822eb406e0ffdf5..d56343f44fda4e9e1de2e5efc86e2d984bad14b4 100644
@@ -285,5 +285,39 @@ cec@94a087c {
 			resets = <&softreset STIH407_LPM_SOFTRESET>;
 			hdmi-phandle = <&sti_hdmi>;
 		};
+
+		gpu: gpu@9f00000 {
+			compatible = "st,stih410-mali", "arm,mali-400";
+			reg = <0x9f00000 0x10000>;
+			/* LIMA driver needs 2 clocks, use the same for both */
+			clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>,
+				 <&clk_s_c0_flexgen CLK_ICN_GPU>;
+			clock-names = "bus", "core";
+			assigned-clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>;
+			assigned-clock-rates = <400000000>;
+			resets = <&softreset STIH407_GPU_SOFTRESET>;
+			interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "gp",
+					  "gpmmu",
+					  "pp0",
+					  "ppmmu0",
+					  "pp1",

arch/arm/boot/dts/st/stih410.dtsi cec@94a087c { · line 323

Quoted 10 lines
arch/arm/boot/dts/st/stih410.dtsi +8 -0
+					  "ppmmu1",
+					  "pp2",
+					  "ppmmu2",
+					  "pp3",
+					  "ppmmu3";
+
+			status = "disabled";
+		};
 	};
 };

Hi Alain

Quoted 4 lines

Thanks
PAtrice

Applied on sti-next

#8 lore raw

PATCH v2 3/3 ARM: dts: st: enable the MALI gpu on the stih410-b2260

In reply to Alain Volmat

Enable the GPU on the stih410-b2260 board.

---
 arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/st/stih410-b2260.dts +4 -0
index 240b62040000b8c0357d39504d3475186958bf31..736b1e059b0a8f122d1b824e1f4e5db0a668ec2c 100644
@@ -206,5 +206,9 @@ hdmiddc: i2c@9541000 {
 		sata1: sata@9b28000 {
 			status = "okay";
 		};
+
+		gpu: gpu@9f00000 {
+			status = "okay";
+		};
 	};
 };
Signature · 1 line
2.43.0
maintainer Reviewed-by on v2 3/3
#9 lore raw

Re: [PATCH v2 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260

Quoted 13 lines · Alain Volmat

Enable the GPU on the stih410-b2260 board.

---
 arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/st/stih410-b2260.dts +0 -0
index 240b62040000b8c0357d39504d3475186958bf31..736b1e059b0a8f122d1b824e1f4e5db0a668ec2c 100644

arch/arm/boot/dts/st/stih410-b2260.dts hdmiddc: i2c@9541000 { · line 214

Quoted 9 lines
arch/arm/boot/dts/st/stih410-b2260.dts +4 -0
@@ -206,5 +206,9 @@ hdmiddc: i2c@9541000 {
 		sata1: sata@9b28000 {
 			status = "okay";
 		};
+
+		gpu: gpu@9f00000 {
+			status = "okay";
+		};
 	};
 };

Hi Alain

Thanks

maintainer
#10 lore raw

Re: [PATCH v2 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260

Quoted 28 lines · Patrice CHOTARD
Quoted 13 lines · Alain Volmat

Enable the GPU on the stih410-b2260 board.

---
 arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/st/stih410-b2260.dts +0 -0
index 240b62040000b8c0357d39504d3475186958bf31..736b1e059b0a8f122d1b824e1f4e5db0a668ec2c 100644

arch/arm/boot/dts/st/stih410-b2260.dts hdmiddc: i2c@9541000 { · line 214

Quoted 9 lines
arch/arm/boot/dts/st/stih410-b2260.dts +4 -0
@@ -206,5 +206,9 @@ hdmiddc: i2c@9541000 {
 		sata1: sata@9b28000 {
 			status = "okay";
 		};
+
+		gpu: gpu@9f00000 {
+			status = "okay";
+		};
 	};
 };

Hi Alain

Quoted 3 lines

Thanks

Applied on sti-next