ARM: dts: st: add and enable MALI400 on stih410/stih410-b2260
Subsystems (4)
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]>
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
@@ -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
Re: [PATCH v2 1/3] dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible
Quoted 6 lines · Alain Volmat
ST STiH410 SoC has a Mali400. Add a compatible for it.
Signed-off-by Alain Volmat <[email protected]>--- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
Re: [PATCH v2 1/3] dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible
In reply to Alain VolmatQuoted 13 lines · Alain Volmat
ST STiH410 SoC has a Mali400. Add a compatible for it.
Signed-off-by Alain Volmat <[email protected]>--- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +0
-0
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
Patrice CHOTARD
maintainerRe: [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.
Signed-off-by Alain Volmat <[email protected]>--- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +0
-0Documentation/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-400Hi Alain
Quoted 3 lines
Reviewed-by Patrice Chotard <[email protected]>Thanks
Applied on sti-next
PATCH v2 2/3 ARM: dts: st: add node for the MALI gpu on stih410.dtsi
In reply to Alain VolmatAdd 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
@@ -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
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.dtsiSigned-off-by Alain Volmat <[email protected]>--- arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+)arch/arm/boot/dts/st/stih410.dtsi +26
-0@@ -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
Patrice CHOTARD
maintainerRe: [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.dtsiSigned-off-by Alain Volmat <[email protected]>--- arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+)arch/arm/boot/dts/st/stih410.dtsi +26
-0@@ -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
Reviewed-by Patrice Chotard <[email protected]>Thanks
PAtrice
Applied on sti-next
PATCH v2 3/3 ARM: dts: st: enable the MALI gpu on the stih410-b2260
In reply to Alain VolmatEnable 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
@@ -206,5 +206,9 @@ hdmiddc: i2c@9541000 { sata1: sata@9b28000 { status = "okay"; }; + + gpu: gpu@9f00000 { + status = "okay"; + }; }; };
Signature · 1 line
2.43.0
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.
Signed-off-by Alain Volmat <[email protected]>--- arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/st/stih410-b2260.dts +0
-0
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
Patrice CHOTARD
maintainerRe: [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.
Signed-off-by Alain Volmat <[email protected]>--- arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/st/stih410-b2260.dts +0
-0arch/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
Reviewed-by Patrice Chotard <[email protected]>Thanks
Applied on sti-next