Re: [PATCH] dt-bindings: Improve phandle-array schemas

From
Viresh Kumar <viresh.kumar@linaro.org>
Date
2022-01-19 07:44:09
Also in
alsa-devel, dmaengine, dri-devel, linux-can, linux-crypto, linux-devicetree, linux-gpio, linux-ide, linux-iommu, linux-leds, linux-media, linux-phy, linux-pm, linux-remoteproc, linux-riscv, linux-usb, lkml, netdev
Reply to
Rob Herring, 2022-01-19
On 18-01-22, 19:50, 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. Many schemas for
phandle-array properties aren't clear in the schema which case applies
though the description usually describes it.

The array of phandles case boils down to needing:

items:
  maxItems: 1

The phandle plus args cases should typically take this form:

items:
  - items:
      - description: A phandle
      - description: 1st arg cell
      - description: 2nd arg cell

With this change, some examples need updating so that the bracketing of
property values matches the schema.
 .../devicetree/bindings/opp/opp-v2-base.yaml  |  2 +
 .../bindings/power/power-domain.yaml          |  4 +
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh
Thread (13 messages) 13 messages, 11 authors, last reply 2022-01-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help