diff mbox series

[v2,5/7] dt-bindings: soc: qcom,apr: correct qcom,intents type

Message ID 20230208101545.45711-5-krzysztof.kozlowski@linaro.org (mailing list archive)
State Not Applicable
Headers show
Series [v2,1/7] arm64: dts: qcom: ipq6018: align RPM G-Link node with bindings | expand

Commit Message

Krzysztof Kozlowski Feb. 8, 2023, 10:15 a.m. UTC
The qcom,intents property is a list of pairs, thus it should be defined
as uint32-matrix.

Fixes: b2d7616e13c4 ("dt-bindings: soc: qcom: apr: add missing properties")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Changes since v1:
1. New patch
---
 Documentation/devicetree/bindings/soc/qcom/qcom,apr.yaml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Rob Herring (Arm) Feb. 9, 2023, 6:02 p.m. UTC | #1
On Wed, 08 Feb 2023 11:15:43 +0100, Krzysztof Kozlowski wrote:
> The qcom,intents property is a list of pairs, thus it should be defined
> as uint32-matrix.
> 
> Fixes: b2d7616e13c4 ("dt-bindings: soc: qcom: apr: add missing properties")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Changes since v1:
> 1. New patch
> ---
>  Documentation/devicetree/bindings/soc/qcom/qcom,apr.yaml | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,apr.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,apr.yaml
index 6026c21736d8..4502458b0669 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,apr.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,apr.yaml
@@ -62,7 +62,14 @@  properties:
     maxItems: 1
 
   qcom,intents:
-    $ref: /schemas/types.yaml#/definitions/uint32-array
+    $ref: /schemas/types.yaml#/definitions/uint32-matrix
+    minItems: 1
+    maxItems: 32
+    items:
+      items:
+        - description: size of each intent to preallocate
+        - description: amount of intents to preallocate
+          minimum: 1
     description:
       List of (size, amount) pairs describing what intents should be
       preallocated for this virtual channel. This can be used to tweak the