]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: cache: ax45mp: add 2048 as a supported cache-sets value
authorConor Dooley <conor.dooley@microchip.com>
Wed, 27 Aug 2025 18:03:44 +0000 (19:03 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 28 Aug 2025 16:34:45 +0000 (17:34 +0100)
The QiLai implementation of this cache controller uses a cache-sets of
2048, and mandates it in an if/else block - but the definition of the
property only permits 1024. Add 2048 as an option, and deny its use
outside of the QiLai.

Fixes: 51b081cdb9237 ("dt-bindings: cache: add QiLai compatible to ax45mp")
Reviewed-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 4de5bb2e5f246950d1253f4ad7f040bd5efb71be..b135ffa4ab6b8df8ebc0319869a5f1c650538a69 100644 (file)
@@ -47,7 +47,7 @@ properties:
     const: 2
 
   cache-sets:
-    const: 1024
+    enum: [1024, 2048]
 
   cache-size:
     enum: [131072, 262144, 524288, 1048576, 2097152]
@@ -81,6 +81,10 @@ allOf:
           const: 2048
         cache-size:
           const: 2097152
+    else:
+      properties:
+        cache-sets:
+          const: 1024
 
 examples:
   - |