Allwinner H6 Mali GPU support
Subsystems (2)
v7 cover Allwinner H6 Mali GPU support
Hi,
Proper iommu patches has been merged[0].
There is still work to do to make it works with panfrost but all modules can be probed and removed smoothly.
These bindings could be used also for out-of-tree modules.
[0]: https://lore.kernel.org/linux-iommu/[email protected]/
Change since v6:
- Remove iommu patches
- Rebase on 5.4-rc4
Clément Péron (2):
arm64: dts: allwinner: Add ARM Mali GPU node for H6
arm64: dts: allwinner: Add mali GPU supply for H6 boards
.../boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 6 ++++++ .../boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 6 ++++++ .../boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 6 ++++++ .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 6 ++++++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++++++++++++++ 5 files changed, 38 insertions(+)
Signature · 1 line
2.20.1
PATCH v7 1/2 arm64: dts: allwinner: Add ARM Mali GPU node for H6
Add the mali gpu node to the H6 device-tree.
--- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +14 -0
@@ -149,6 +149,20 @@ allwinner,sram = <&ve_sram 1>; }; + gpu: gpu@1800000 { + compatible = "allwinner,sun50i-h6-mali", + "arm,mali-t720"; + reg = <0x01800000 0x4000>; + interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; + clock-names = "core", "bus"; + resets = <&ccu RST_BUS_GPU>; + status = "disabled"; + }; + syscon: syscon@3000000 { compatible = "allwinner,sun50i-h6-system-control", "allwinner,sun50i-a64-system-control";
Signature · 1 line
2.20.1
PATCH v7 2/2 arm64: dts: allwinner: Add mali GPU supply for H6 boards
In reply to Clément PéronEnable and add supply to the Mali GPU node on all the H6 boards.
Regarding the datasheet the maximum time for supply to reach its voltage is 32ms.
--- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 6 ++++++ arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 6 ++++++ arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 6 ++++++ arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 6 ++++++ 4 files changed, 24 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +6 -0
@@ -89,6 +89,11 @@ status = "okay"; }; +&gpu { + mali-supply = <®_dcdcc>; + status = "okay"; +}; + &hdmi { status = "okay"; };
@@ -225,6 +230,7 @@ }; reg_dcdcc: dcdcc { + regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; regulator-name = "vdd-gpu";
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +6 -0
@@ -102,6 +102,11 @@ status = "okay"; }; +&gpu { + mali-supply = <®_dcdcc>; + status = "okay"; +}; + &hdmi { status = "okay"; };
@@ -237,6 +242,7 @@ }; reg_dcdcc: dcdcc { + regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; regulator-name = "vdd-gpu";
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +6 -0
@@ -55,6 +55,11 @@ status = "okay"; }; +&gpu { + mali-supply = <®_dcdcc>; + status = "okay"; +}; + &mmc0 { vmmc-supply = <®_cldo1>; cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
@@ -163,6 +168,7 @@ }; reg_dcdcc: dcdcc { + regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; regulator-name = "vdd-gpu";
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +6 -0
@@ -85,6 +85,11 @@ status = "okay"; }; +&gpu { + mali-supply = <®_dcdcc>; + status = "okay"; +}; + &hdmi { status = "okay"; };
@@ -221,6 +226,7 @@ }; reg_dcdcc: dcdcc { + regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; regulator-name = "vdd-gpu";
Signature · 1 line
2.20.1
Maxime Ripard
AppliedQuoted 8 lines · Clément Péron
Hi,
Proper iommu patches has been merged[0].
There is still work to do to make it works with panfrost but all modules can be probed and removed smoothly.
These bindings could be used also for out-of-tree modules.
Applied both, thanks
Maxime