Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: Drop more redundant 'maxItems/minItems'

Another round of removing redundant minItems/maxItems from new schema in
the recent merge window.

If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
same size as the list is redundant and can be dropped. Note that is DT
schema specific behavior and not standard json-schema behavior. The tooling
will fixup the final schema adding any unspecified minItems/maxItems.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Marek Vasut <marex@denx.de>
Cc: Joakim Zhang <qiangqing.zhang@nxp.com>
Cc: dri-devel@lists.freedesktop.org
Cc: netdev@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210928222920.2204761-1-robh@kernel.org

+1 -7
-2
Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml
··· 50 50 data-lanes: 51 51 description: array of physical DSI data lane indexes. 52 52 minItems: 1 53 - maxItems: 4 54 53 items: 55 54 - const: 1 56 55 - const: 2 ··· 70 71 data-lanes: 71 72 description: array of physical DSI data lane indexes. 72 73 minItems: 1 73 - maxItems: 4 74 74 items: 75 75 - const: 1 76 76 - const: 2
+1 -3
Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
··· 20 20 - snps,dwcmshc-sdhci 21 21 22 22 reg: 23 - minItems: 1 24 - items: 25 - - description: Offset and length of the register set for the device 23 + maxItems: 1 26 24 27 25 interrupts: 28 26 maxItems: 1
-1
Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
··· 34 34 35 35 clocks: 36 36 minItems: 3 37 - maxItems: 5 38 37 items: 39 38 - description: MAC host clock 40 39 - description: MAC apb clock
-1
Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml
··· 41 41 - description: builtin MSI controller. 42 42 43 43 interrupt-names: 44 - minItems: 1 45 44 items: 46 45 - const: msi 47 46