[PATCH v3 0/7] Add initial GPU support for CIX Sky1
From: Cunyuan Liu
Date: Thu Nov 19 2026 - 07:39:24 EST
This series adds initial support for the Mali GPU on CIX Sky1 and
enables it on the Radxa Orion O6 board.
The GPU requires an external reset before the driver first accesses
the hardware. Add optional reset support to Panthor to perform this reset
during initialization.
This initial version keeps the PM firmware default clock settings and
skips devfreq. It does not read OPPs or request a performance level.
The firmware sets the default GPU frequency to 1 GHz. No devfreq
governor or GPU cooling device is registered.
Without an OPP table, the driver can only run when neither mali-supply
nor sram-supply is present and the platform provides working clocks and
power.
Configure the system-level cache before L2 power-on using the policies
from the working CIX Sky1 driver. On Sky1, devices on the MMHUB bus
cannot access the system-level cache, so buffers shared between the GPU
and MMHUB devices require a specific system-level cache policy. Without
this configuration, the GPU display output is corrupted.
The system-cache support is a separate patch and reads the policies from
DT. The proposed format is <source-id read-policy write-policy>, so the
DT only lists sources with nonzero policies. When the property is absent,
the driver leaves the registers unchanged. The format and zero-default
semantics are included for review.
The series contains seven patches:
[1/7] drm/panthor: Add optional external reset support
[2/7] drm/panthor: Allow operation without an OPP table
[3/7] dt-bindings: gpu: arm,mali-valhall-csf: Add system-cache policies
[4/7] drm/panthor: Add system-cache allocation policy support
[5/7] dt-bindings: gpu: Add CIX Sky1 Mali support
[6/7] drm/panthor: Add CIX Sky1 compatible
[7/7] arm64: dts: cix: Add GPU support for Sky1 Orion O6
Tested on Radxa Orion O6:
- Offscreen rendering with pixel readback
- kmscube
- glmark2 at 1080p
- Runtime suspend and resume with a retained EGL context
- Reset-worker operations
- Module unload and reload
Changes in v3:
- Split optional reset, no-OPP operation and system-cache support into
separate patches, as suggested by Liviu Dudau.
- Remove the Sky1-specific skip_devfreq flag. Use the generic no-OPP
path.
Limit this fallback to configurations without GPU supply properties,
retaining probe failure for supplies without an OPP table.
- Move system-cache policies to DT and use separate read/write values,
as suggested by Liviu Dudau and Daniel Stone. Add explicit source IDs
so that unused entries can be omitted.
- Validate the architecture, source IDs and policies. Restore the
configuration through the common L2 power-on entry.
- Drop Conor Dooley's Acked-by because the Sky1 binding now requires
the new arm,sysc-alloc property. Please review the updated binding.
Changes in v2:
- Use devm_reset_control_get_optional_exclusive() unconditionally,
remove the redundant NULL check before reset_control_reset(), and
drop needs_external_reset, as suggested by Philipp Zabel.
- Add Conor Dooley's Acked-by to the then-unchanged binding patch.
Link to v2:
https://lore.kernel.org/all/20261109120902.125242-1-cunyuan.liu@xxxxxxxxxxx/
Link to v1:
https://lore.kernel.org/all/20261106104735.1651267-1-cunyuan.liu@xxxxxxxxxxx/
Best regards,
Cunyuan
Cunyuan Liu (7):
drm/panthor: Add optional external reset support
drm/panthor: Allow operation without an OPP table
dt-bindings: gpu: arm,mali-valhall-csf: Add system-cache policies
drm/panthor: Add system-cache allocation policy support
dt-bindings: gpu: Add CIX Sky1 Mali support
drm/panthor: Add CIX Sky1 compatible
arm64: dts: cix: Add GPU support for Sky1 Orion O6
.../bindings/gpu/arm,mali-valhall-csf.yaml | 79 ++++++++
arch/arm64/boot/dts/cix/sky1-orion-o6.dts | 4 +
arch/arm64/boot/dts/cix/sky1.dtsi | 19 ++
drivers/gpu/drm/panthor/panthor_devfreq.c | 13 +-
drivers/gpu/drm/panthor/panthor_device.c | 13 ++
drivers/gpu/drm/panthor/panthor_device.h | 7 +-
drivers/gpu/drm/panthor/panthor_drv.c | 1 +
drivers/gpu/drm/panthor/panthor_gpu.c | 187 ++++++++++++++++++
drivers/gpu/drm/panthor/panthor_gpu.h | 1 +
drivers/gpu/drm/panthor/panthor_gpu_regs.h | 58 ++++++
drivers/gpu/drm/panthor/panthor_hw.c | 13 ++
drivers/gpu/drm/panthor/panthor_hw.h | 5 +-
12 files changed, 394 insertions(+), 6 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.53.0