Skip to contentSkip to conversation

dt-bindings: gpu: mali-valhall: make mali-supply optional

PATCH In review Rain Yang 5 participants 9 messages Sep 28, 2025 – Oct 9, 2025

Subsystems (6)
lore
Share & tools
lore

Rain Yang

author
#0 lore raw

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
index b220cbd5362f..ef9791d8ed95 100644
@@ -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
author
#1 lore raw

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
index 3686515d368d..2df1d76d84a0 100644
@@ -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
maintainer Reviewed-by on v2 2/2
#2 lore raw

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

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
index 3686515d368d..2df1d76d84a0 100644
@@ -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;
 	}
 
maintainer Reviewed-by on v2 2/2
#3 lore raw

Re: [PATCH v2 2/2] drm/panthor: skip regulator setup if no such prop

In reply to Rain Yang
Quoted 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

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
index 3686515d368d..2df1d76d84a0 100644
@@ -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;
 	}
 
maintainer Acked-by on v2 1/2
#4 lore raw
In reply to Rain Yang
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.

---
 .../devicetree/bindings/gpu/arm,mali-valhall-csf.yaml          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
maintainer Reviewed-by on v2 1/2
#5 lore raw
In reply to Rain Yang
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.

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
index b220cbd5362f..ef9791d8ed95 100644
@@ -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:
   - |
maintainer
#6 lore raw
In reply to Rain Yang

Series 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.

---
 .../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
index b220cbd5362f..ef9791d8ed95 100644
@@ -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:
   - |
maintainer
#7 lore raw
Quoted 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,
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.

---
 .../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
index b220cbd5362f..ef9791d8ed95 100644
@@ -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:
   - |
maintainer
#8 lore raw
Quoted 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,
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.

---
 .../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
index b220cbd5362f..ef9791d8ed95 100644
@@ -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:
   - |