[PATCH v2 0/2] drm/imagination: support GPU probe without power-domains

From: Sterling-Ash

Date: Sun Jul 26 2026 - 21:26:00 EST


This v2 reorders and extends the earlier standalone pvr_power.c change
per Alessio's review [1].

On the SpacemiT K3 SoC, the GPU power domain is enabled once by the bootloader
before Linux boots and is neither modelled nor switched by Linux at runtime.

As pointed out in review, img,powervr-rogue.yaml currently has no
compatible entry this platform's GPU can use, so patch 1 adds one
(spacemit,k3-gpu + img,img-bxm-4-64 + img,img-rogue) as its own oneOf
entry, distinct from thead,th1520-gpu since the two differ in clock
requirements. This new compatible doesn't match any of the schema's
existing per-compatible "if" blocks, so power-domains falls back to
the schema's default (optional) behaviour for it -- no additional
required/false override is needed.

Patch 2 is the previously-sent driver change: pvr_power_domains_init()
treats a missing "power-domains" property as "nothing to attach" instead of failing
probe with -ENOENT.

[1] https://lore.kernel.org/all/75c9382d2bda766aa459b00321153d715254d1a4.camel@xxxxxxxxxx/

Sterling-Ash (2):
dt-bindings: gpu: img,powervr-rogue: add spacemit,k3-gpu
drm/imagination: allow probe when no power-domains are described

.../devicetree/bindings/gpu/img,powervr-rogue.yaml | 5 +++++
drivers/gpu/drm/imagination/pvr_power.c | 9 +++++++++
2 files changed, 14 insertions(+)

--
2.34.1

This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not an intended recipient of this message, please delete it and any attachment from your system and notify the sender immediately by reply e-mail. Unintended recipients should not use, copy, disclose or take any action based on this message or any information contained in this message. Emails cannot be guaranteed to be secure or error free as they can be intercepted, amended, lost or destroyed, and you should take full responsibility for security checking.

本邮件及其任何附件具有保密性质,并可能受其他保护或不允许被披露给第三方。如阁下误收到本邮件,敬请立即以回复电子邮件的方式通知发件人,并将本邮件及其任何附件从阁下系统中予以删除。如阁下并非本邮件写明之收件人,敬请切勿使用、复制、披露本邮件或其任何内容,亦请切勿依本邮件或其任何内容而采取任何行动。电子邮件无法保证是一种安全和不会出现任何差错的通信方式,可能会被拦截、修改、丢失或损坏,收件人需自行负责做好安全检查。