* [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible
2024-10-05 18:07 [PATCH 0/3] ARM: dts: st: add and enable MALI400 on stih410/stih410-b2260 Alain Volmat
@ 2024-10-05 18:07 ` Alain Volmat
2024-10-06 12:45 ` Krzysztof Kozlowski
2024-10-05 18:08 ` [PATCH 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi Alain Volmat
2024-10-05 18:08 ` [PATCH 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260 Alain Volmat
2 siblings, 1 reply; 6+ messages in thread
From: Alain Volmat @ 2024-10-05 18:07 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Patrice Chotard
Cc: dri-devel, devicetree, linux-kernel, linux-arm-kernel,
Alain Volmat
ST STi SoC family (stih410, stih418) has a Mali400.
Add a compatible for it.
Signed-off-by: Alain Volmat <avolmat@me.com>
---
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
index abd4aa335fbcebafc9164bd4963f9db60f0450c4..97a7ef0fea1a10df0ff485b9eb4468f44c92da39 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
@@ -33,6 +33,7 @@ properties:
- rockchip,rk3188-mali
- rockchip,rk3228-mali
- samsung,exynos4210-mali
+ - st,sti-mali
- stericsson,db8500-mali
- xlnx,zynqmp-mali
- const: arm,mali-400
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible
2024-10-05 18:07 ` [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible Alain Volmat
@ 2024-10-06 12:45 ` Krzysztof Kozlowski
2024-10-06 20:39 ` Alain Volmat
0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-06 12:45 UTC (permalink / raw)
To: Alain Volmat
Cc: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Patrice Chotard, dri-devel, devicetree,
linux-kernel, linux-arm-kernel
On Sat, Oct 05, 2024 at 06:07:59PM +0000, Alain Volmat wrote:
> ST STi SoC family (stih410, stih418) has a Mali400.
> Add a compatible for it.
>
> Signed-off-by: Alain Volmat <avolmat@me.com>
> ---
> Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
> index abd4aa335fbcebafc9164bd4963f9db60f0450c4..97a7ef0fea1a10df0ff485b9eb4468f44c92da39 100644
> --- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
> +++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
> @@ -33,6 +33,7 @@ properties:
> - rockchip,rk3188-mali
> - rockchip,rk3228-mali
> - samsung,exynos4210-mali
> + - st,sti-mali
That's quite generic compatible. I would expect here per-soc.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible
2024-10-06 12:45 ` Krzysztof Kozlowski
@ 2024-10-06 20:39 ` Alain Volmat
0 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2024-10-06 20:39 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Patrice Chotard, dri-devel, devicetree,
linux-kernel, linux-arm-kernel
Hi Krzysztof,
On Sun, Oct 06, 2024 at 02:45:43PM +0200, Krzysztof Kozlowski wrote:
> On Sat, Oct 05, 2024 at 06:07:59PM +0000, Alain Volmat wrote:
> > ST STi SoC family (stih410, stih418) has a Mali400.
> > Add a compatible for it.
> >
> > Signed-off-by: Alain Volmat <avolmat@me.com>
> > ---
> > Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
> > index abd4aa335fbcebafc9164bd4963f9db60f0450c4..97a7ef0fea1a10df0ff485b9eb4468f44c92da39 100644
> > --- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
> > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
> > @@ -33,6 +33,7 @@ properties:
> > - rockchip,rk3188-mali
> > - rockchip,rk3228-mali
> > - samsung,exynos4210-mali
> > + - st,sti-mali
>
> That's quite generic compatible. I would expect here per-soc.
Ok, right, I change this into st,stih410-mali in a v2.
Thanks,
Alain
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi
2024-10-05 18:07 [PATCH 0/3] ARM: dts: st: add and enable MALI400 on stih410/stih410-b2260 Alain Volmat
2024-10-05 18:07 ` [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible Alain Volmat
@ 2024-10-05 18:08 ` Alain Volmat
2024-10-05 18:08 ` [PATCH 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260 Alain Volmat
2 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2024-10-05 18:08 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Patrice Chotard
Cc: dri-devel, devicetree, linux-kernel, linux-arm-kernel,
Alain Volmat
Add the entry for the GPU (Mali400) on the stih410.dtsi
Signed-off-by: Alain Volmat <avolmat@me.com>
---
arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/st/stih410.dtsi b/arch/arm/boot/dts/st/stih410.dtsi
index a69231854f783b1b9fd685ba2822eb406e0ffdf5..be34de10bbcb0d1f2d527568878e3ed1ff297954 100644
--- a/arch/arm/boot/dts/st/stih410.dtsi
+++ b/arch/arm/boot/dts/st/stih410.dtsi
@@ -285,5 +285,39 @@ cec@94a087c {
resets = <&softreset STIH407_LPM_SOFTRESET>;
hdmi-phandle = <&sti_hdmi>;
};
+
+ gpu: gpu@9f00000 {
+ compatible = "st,sti-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";
+ };
};
};
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260
2024-10-05 18:07 [PATCH 0/3] ARM: dts: st: add and enable MALI400 on stih410/stih410-b2260 Alain Volmat
2024-10-05 18:07 ` [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible Alain Volmat
2024-10-05 18:08 ` [PATCH 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi Alain Volmat
@ 2024-10-05 18:08 ` Alain Volmat
2 siblings, 0 replies; 6+ messages in thread
From: Alain Volmat @ 2024-10-05 18:08 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Patrice Chotard
Cc: dri-devel, devicetree, linux-kernel, linux-arm-kernel,
Alain Volmat
Enable the GPU on the stih410-b2260 board.
Signed-off-by: Alain Volmat <avolmat@me.com>
---
arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/st/stih410-b2260.dts b/arch/arm/boot/dts/st/stih410-b2260.dts
index 240b62040000b8c0357d39504d3475186958bf31..736b1e059b0a8f122d1b824e1f4e5db0a668ec2c 100644
--- a/arch/arm/boot/dts/st/stih410-b2260.dts
+++ b/arch/arm/boot/dts/st/stih410-b2260.dts
@@ -206,5 +206,9 @@ hdmiddc: i2c@9541000 {
sata1: sata@9b28000 {
status = "okay";
};
+
+ gpu: gpu@9f00000 {
+ status = "okay";
+ };
};
};
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread