dt-bindings: gpu: mali-valhall: make mali-supply optional
Subsystems (6)
PATCH v2 1/2 dt-bindings: gpu: mali-valhall: make mali-supply optional
From: Rain Yang <[email protected]>
Not all platforms require the mali-supply regulator. This change removes it from the required list in the binding schema, and make mali-supply required for rk3588 only.
--- .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +2 -1
@@ -92,7 +92,6 @@ required: - interrupts - interrupt-names - clocks - - mali-supply additionalProperties: false
@@ -109,6 +108,8 @@ allOf: power-domains: maxItems: 1 power-domain-names: false + required: + - mali-supply examples: - |
Signature · 1 line
2.39.5
PATCH v2 2/2 drm/panthor: skip regulator setup if no such prop
From: Rain Yang <[email protected]>
The regulator is optional, skip the setup instead of returning an error if it is not present
--- drivers/gpu/drm/panthor/panthor_devfreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/panthor/panthor_devfreq.c +1 -2
@@ -146,10 +146,9 @@ int panthor_devfreq_init(struct panthor_device *ptdev) ptdev->devfreq = pdevfreq; ret =devm_pm_opp_set_regulators (dev, reg_names); -if (ret) { +if (ret && ret != -ENODEV ) {if (ret != -EPROBE_DEFER )DRM_DEV_ERROR (dev,"Couldn't set OPP regulators\n" ); -return ret; }
Signature · 1 line
2.39.5
Re: [PATCH v2 2/2] drm/panthor: skip regulator setup if no such prop
Quoted 6 lines · On Sun, 28 Sep 2025 17:03:34 +0800 Rain Yang <[email protected]> wrote:
From: Rain Yang <[email protected]>
The regulator is optional, skip the setup instead of returning an error if it is not present
Signed-off-by Rain Yang <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/panthor/panthor_devfreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/panthor/panthor_devfreq.c +1
-2@@ -146,10 +146,9 @@ int panthor_devfreq_init(struct panthor_device *ptdev) ptdev->devfreq = pdevfreq; ret =devm_pm_opp_set_regulators (dev, reg_names); -if (ret) { +if (ret && ret != -ENODEV ) {if (ret != -EPROBE_DEFER )DRM_DEV_ERROR (dev,"Couldn't set OPP regulators\n" ); -return ret; }
Re: [PATCH v2 2/2] drm/panthor: skip regulator setup if no such prop
In reply to Rain YangQuoted 6 lines · Rain Yang
From: Rain Yang <[email protected]>
The regulator is optional, skip the setup instead of returning an error if it is not present
Signed-off-by Rain Yang <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/panthor/panthor_devfreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/panthor/panthor_devfreq.c +1
-2@@ -146,10 +146,9 @@ int panthor_devfreq_init(struct panthor_device *ptdev) ptdev->devfreq = pdevfreq; ret =devm_pm_opp_set_regulators (dev, reg_names); -if (ret) { +if (ret && ret != -ENODEV ) {if (ret != -EPROBE_DEFER )DRM_DEV_ERROR (dev,"Couldn't set OPP regulators\n" ); -return ret; }
Quoted 11 lines · Rain Yang
From: Rain Yang <[email protected]>
Not all platforms require the mali-supply regulator. This change removes it from the required list in the binding schema, and make mali-supply required for rk3588 only.
Signed-off-by Rain Yang <[email protected]>--- .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 7 lines · On Sun, 28 Sep 2025 17:03:33 +0800 Rain Yang <[email protected]> wrote:
From: Rain Yang <[email protected]>
Not all platforms require the mali-supply regulator. This change removes it from the required list in the binding schema, and make mali-supply required for rk3588 only.
Signed-off-by Rain Yang <[email protected]>
Quoted 25 lines
--- .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +2
-1@@ -92,7 +92,6 @@ required: - interrupts - interrupt-names - clocks - - mali-supply additionalProperties: false@@ -109,6 +108,8 @@ allOf: power-domains: maxItems: 1 power-domain-names: false + required: + - mali-supply examples: - |
Steven Price
maintainerSeries applied to drm-misc-next.
Thanks,
Steve
Quoted 32 lines · Rain Yang
From: Rain Yang <[email protected]>
Not all platforms require the mali-supply regulator. This change removes it from the required list in the binding schema, and make mali-supply required for rk3588 only.
Signed-off-by Rain Yang <[email protected]>--- .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +2
-1@@ -92,7 +92,6 @@ required: - interrupts - interrupt-names - clocks - - mali-supply additionalProperties: false@@ -109,6 +108,8 @@ allOf: power-domains: maxItems: 1 power-domain-names: false + required: + - mali-supply examples: - |
Frank Li
maintainerQuoted 1 line · Steven Price
Series applied to drm-misc-next.
I have not seen DT team's acked tag for binding.
Frank
Quoted 38 lines
Thanks,
SteveQuoted 32 lines · Rain Yang
From: Rain Yang <[email protected]>
Not all platforms require the mali-supply regulator. This change removes it from the required list in the binding schema, and make mali-supply required for rk3588 only.
Signed-off-by Rain Yang <[email protected]>--- .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +2
-1@@ -92,7 +92,6 @@ required: - interrupts - interrupt-names - clocks - - mali-supply additionalProperties: false@@ -109,6 +108,8 @@ allOf: power-domains: maxItems: 1 power-domain-names: false + required: + - mali-supply examples: - |
Boris Brezillon
maintainerQuoted 4 lines · On Thu, 9 Oct 2025 10:43:25 -0400 Frank Li <[email protected]> wrote:
Quoted 1 line · Steven Price
Series applied to drm-misc-next.
I have not seen DT team's acked tag for binding.
Rob acked it.
Quoted 41 lines
Frank
Quoted 38 lines
Thanks,
SteveQuoted 32 lines · Rain Yang
From: Rain Yang <[email protected]>
Not all platforms require the mali-supply regulator. This change removes it from the required list in the binding schema, and make mali-supply required for rk3588 only.
Signed-off-by Rain Yang <[email protected]>--- .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +2
-1@@ -92,7 +92,6 @@ required: - interrupts - interrupt-names - clocks - - mali-supply additionalProperties: false@@ -109,6 +108,8 @@ allOf: power-domains: maxItems: 1 power-domain-names: false + required: + - mali-supply examples: - |