Skip to contentSkip to conversation

dt-bindings: gpu: Allow Hi6220 Mali resets

PATCH Applied Rob Herring (Arm) 1 participant 2 messages Sep 21 – Sep 25

Subsystems (3)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: gpu: Allow Hi6220 Mali resets

Hi6220 Mali nodes provide both ao_g3d and media_g3d resets. Require those two resets and their names for the Hi6220 compatible. Other Mali Utgard nodes have at most one reset and do not use reset names.

Assisted-by LLM
---
 .../bindings/gpu/arm,mali-utgard.yaml         | 25 ++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +24 -1
index c8d0d9192d92..d68fe8c7d010 100644
@@ -112,7 +112,13 @@ properties:
     maxItems: 1
 
   resets:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
+
+  reset-names:
+    items:
+      - const: ao_g3d
+      - const: media_g3d
 
   operating-points-v2: true
 
@@ -130,6 +136,23 @@ required:
 additionalProperties: false
 
 allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: hisilicon,hi6220-mali
+    then:
+      properties:
+        resets:
+          minItems: 2
+      required:
+        - reset-names
+    else:
+      properties:
+        resets:
+          maxItems: 1
+        reset-names: false
+
   - if:
       properties:
         compatible:
Signature · 1 line
2.53.0
author maintainer Applied
#1 lore raw
Quoted 10 lines · Rob Herring (Arm)

Hi6220 Mali nodes provide both ao_g3d and media_g3d resets. Require those two resets and their names for the Hi6220 compatible. Other Mali Utgard nodes have at most one reset and do not use reset names.

Assisted-by LLM
---
 .../bindings/gpu/arm,mali-utgard.yaml         | 25 ++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

Applied, thanks!