diff mbox series

dt-bindings: soc/qcom: Add size constraints on "qcom,rpm-msg-ram"

Message ID 20240124190744.1554625-1-robh@kernel.org
State Accepted
Commit 8796fa0f9a08359bb87e859d6010350a9d7da38f
Headers show
Series dt-bindings: soc/qcom: Add size constraints on "qcom,rpm-msg-ram" | expand

Commit Message

Rob Herring (Arm) Jan. 24, 2024, 7:07 p.m. UTC
The 'phandle-array' type is a bit ambiguous. It can be either just an
array of phandles or an array of phandles plus args. "qcom,rpm-msg-ram" is
the former and needs to constrain each entry to a single phandle value.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml     | 2 ++
 1 file changed, 2 insertions(+)

Comments

Krzysztof Kozlowski Jan. 25, 2024, 10:24 a.m. UTC | #1
On 24/01/2024 20:07, Rob Herring wrote:
> The 'phandle-array' type is a bit ambiguous. It can be either just an
> array of phandles or an array of phandles plus args. "qcom,rpm-msg-ram" is
> the former and needs to constrain each entry to a single phandle value.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof
Bjorn Andersson Jan. 28, 2024, 2:17 a.m. UTC | #2
On Wed, 24 Jan 2024 13:07:44 -0600, Rob Herring wrote:
> The 'phandle-array' type is a bit ambiguous. It can be either just an
> array of phandles or an array of phandles plus args. "qcom,rpm-msg-ram" is
> the former and needs to constrain each entry to a single phandle value.
> 
> 

Applied, thanks!

[1/1] dt-bindings: soc/qcom: Add size constraints on "qcom,rpm-msg-ram"
      commit: 8796fa0f9a08359bb87e859d6010350a9d7da38f

Best regards,
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml
index 031800985b5e..9410404f87f1 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpm-master-stats.yaml
@@ -35,6 +35,8 @@  properties:
     description: Phandle to an RPM MSG RAM slice containing the master stats
     minItems: 1
     maxItems: 5
+    items:
+      maxItems: 1
 
   qcom,master-names:
     $ref: /schemas/types.yaml#/definitions/string-array