Skip to contentSkip to conversation

Enable PowerVR driver for TI AM62x

PATCH Applied Donald Robson 4 participants 6 messages Dec 5, 2023 – Dec 13, 2023

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

v2 cover Enable PowerVR driver for TI AM62x

These patches enable the new open source PowerVR driver for TI AM62x SoCs, currently the only one supported.

Changes since v1:
- Added patch 1 for arm64 defconfig (requested by Nishanth Menon)

Donald Robson (1):
arm64: defconfig: enable DRM_POWERVR

Sarah Walker (1):
arm64: dts: ti: k3-am62-main: Add GPU device node

 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 9 +++++++++
 arch/arm64/configs/defconfig             | 1 +
 2 files changed, 10 insertions(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 arm64: defconfig: enable DRM_POWERVR

Enable the PowerVR DRM driver, as it's used for the GPU in platforms using the TI AM62x SoCs, such as the TI SK-AM62 and BeaglePlay (2023).

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index b60aa1f89343..85e55b13b114 100644
@@ -885,6 +885,7 @@ CONFIG_DRM_PL111=m
 CONFIG_DRM_LIMA=m
 CONFIG_DRM_PANFROST=m
 CONFIG_DRM_TIDSS=m
+CONFIG_DRM_POWERVR=m
 CONFIG_FB=y
 CONFIG_FB_MODE_HELPERS=y
 CONFIG_FB_EFI=y
Signature · 1 line
2.25.1
#2 lore raw

PATCH v2 2/2 arm64: dts: ti: k3-am62-main: Add GPU device node

In reply to Donald Robson

From: Sarah Walker <[email protected]>

Add the Series AXE GPU node to the AM62 device tree.

---
 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/ti/k3-am62-main.dtsi +9 -0
index e5c64c86d1d5..4338fd8ab2d7 100644
@@ -965,4 +965,13 @@ mcasp2: audio-controller@2b20000 {
 		power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
 		status = "disabled";
 	};
+
+	gpu: gpu@fd00000 {
+		compatible = "ti,am62-gpu", "img,img-axe";
+		reg = <0x00 0x0fd00000 0x00 0x20000>;
+		clocks = <&k3_clks 187 0>;
+		clock-names = "core";
+		interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 187 TI_SCI_PD_EXCLUSIVE>;
+	};
 };
Signature · 1 line
2.25.1
Acked-by on the v2 series
#3 lore raw
In reply to Donald Robson
Quoted 12 lines · Donald Robson

These patches enable the new open source PowerVR driver for TI AM62x SoCs, currently the only one supported.

Changes since v1:
- Added patch 1 for arm64 defconfig (requested by Nishanth Menon)

Donald Robson (1):
arm64: defconfig: enable DRM_POWERVR

Sarah Walker (1):
arm64: dts: ti: k3-am62-main: Add GPU device node

For the series:

Thanks,
Darren

#4 lore raw
In reply to Donald Robson

Hi Nishanth, Tero, Vignesh,

Quoted 11 lines · Donald Robson

These patches enable the new open source PowerVR driver for TI AM62x SoCs, currently the only one supported.

Changes since v1:
- Added patch 1 for arm64 defconfig (requested by Nishanth Menon)

Donald Robson (1):
arm64: defconfig: enable DRM_POWERVR

Sarah Walker (1):
arm64: dts: ti: k3-am62-main: Add GPU device node

Any chance we can get that in 6.8?

Since the driver will reach 6.8 as well, it would be a bit of a bummer to not have it enabled anywhere.

Maxime

maintainer Applied
#5 lore raw
In reply to Donald Robson

Hi Donald Robson,

Quoted 10 lines · Donald Robson

These patches enable the new open source PowerVR driver for TI AM62x SoCs, currently the only one supported.

Changes since v1:
- Added patch 1 for arm64 defconfig (requested by Nishanth Menon)

Donald Robson (1):
arm64: defconfig: enable DRM_POWERVR

[...]

NOTE: This series creates checkpatch warnings against v6.7-rc1 and complains that it cannot find ti,am62-gpu or img,img-axe which has been merged in drm tree for next. This is clean in linux-next for a few weeks now. Given the number of people who would really like to see it in v6.8-rc1 to continue the work towards enabling a opensource graphics support in the tree without carried patches and work on next set of features on display and graphics, and given the real low risk of this NOT making to linus-master, we are making an specific exception here for this time around. So, please keep a watch on drm-next and if for any reason the support is dropped going to linus's tree in the merge window or before, let this chain know with appropriate maintainers so that we can take corrective actions.

I have applied the following to branch ti-k3-config-next on [1].

[1/2] arm64: defconfig: enable DRM_POWERVR

      commit: e8779517788fa0f3d04840cb7d4121d3df8dfd54

And the following to branch ti-k3-dts-next on [1].

[2/2] arm64: dts: ti: k3-am62-main: Add GPU device node

      commit: a5683d26e09e46362fb3fa87e834cf7073b6a2ec

Thank you!

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D