Skip to content

RFC drm/imagination: add AM62P/AM67A/J722S support

Michael Walle dri-devel linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: gpu: img: Add AM62P SoC specific compatibleDocumentation/devicetree/bindings/gpu/img,powervr-rogue.yaml+1 -02 replies
2/3drm/imagination: fix clock control on the J722Sdrivers/gpu/drm/imagination/pvr_device.c+9 -01 reply
3/3arm64: dts: ti: add GPU nodearch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] drm/imagination: add AM62P/AM67A/J722S support

The AM62P and AM67A/J722S feature the same BXS-4 GPU as the J721S2. In theory, one have to just add the DT node. But it turns out, that the clock handling is not working. If I understood Nishan Menon correct, it is working on the J721S2 because there, the clock is shared, while on the AM62P the GPU has its own PLL.
In the latter case, the '#assigned-clocks' property of the GPU node doesn't work properly. Linux will try to set the clock frequency before probing the GPU. The clock handling firmware on the SoC won't allow that if there is no user for it. To work around that limitation, set the clock again in the .probe() of the GPU driver after turning the device on.

This was tested on an AM67A.

Michael Walle (3):
dt-bindings: gpu: img: Add AM62P SoC specific compatible drm/imagination: fix clock control on the J722S
arm64: dts: ti: add GPU node

 .../devicetree/bindings/gpu/img,powervr-rogue.yaml  |  1 +
 .../boot/dts/ti/k3-am62p-j722s-common-main.dtsi     | 13 +++++++++++++
 drivers/gpu/drm/imagination/pvr_device.c            |  9 +++++++++
 3 files changed, 23 insertions(+)
Signature · 1 line
2.39.5