]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: cache: add QiLai compatible to ax45mp
authorBen Zong-You Xie <ben717@andestech.com>
Wed, 14 May 2025 09:53:47 +0000 (17:53 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 14 May 2025 15:53:02 +0000 (16:53 +0100)
Add a new compatible string for ax45mp-cache on QiLai SoC.

Also, add allOf constraints to enforce specific cache-sets and cache-size
values for qilai-ax45mp-cache.

Signed-off-by: Ben Zong-You Xie <ben717@andestech.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml

index 82668d327344efb41ea86692d8bda1f27f055c0b..4de5bb2e5f246950d1253f4ad7f040bd5efb71be 100644 (file)
@@ -28,7 +28,9 @@ select:
 properties:
   compatible:
     items:
-      - const: renesas,r9a07g043f-ax45mp-cache
+      - enum:
+          - andestech,qilai-ax45mp-cache
+          - renesas,r9a07g043f-ax45mp-cache
       - const: andestech,ax45mp-cache
       - const: cache
 
@@ -66,6 +68,20 @@ required:
   - cache-size
   - cache-unified
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: andestech,qilai-ax45mp-cache
+
+    then:
+      properties:
+        cache-sets:
+          const: 2048
+        cache-size:
+          const: 2097152
+
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>