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

dt-bindings: More dropping redundant minItems/maxItems

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.

This condition is partially checked with the meta-schema already, but
only if both 'minItems' and 'maxItems' are equal to the 'items' length.
An improved meta-schema is pending.

Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Kamal Dasu <kdasu.kdev@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-clk@vger.kernel.org
Cc: iommu@lists.linux-foundation.org
Cc: linux-mtd@lists.infradead.org
Cc: linux-rtc@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20210713193453.690290-1-robh@kernel.org

-15
-1
Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
··· 50 50 51 51 reg: 52 52 minItems: 1 53 - maxItems: 3 54 53 items: 55 54 - description: base register 56 55 - description: power register
-2
Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml
··· 28 28 - description: configuration registers for MMU instance 0 29 29 - description: configuration registers for MMU instance 1 30 30 minItems: 1 31 - maxItems: 2 32 31 33 32 interrupts: 34 33 items: 35 34 - description: interruption for MMU instance 0 36 35 - description: interruption for MMU instance 1 37 36 minItems: 1 38 - maxItems: 2 39 37 40 38 clocks: 41 39 items:
-1
Documentation/devicetree/bindings/memory-controllers/arm,pl353-smc.yaml
··· 57 57 58 58 ranges: 59 59 minItems: 1 60 - maxItems: 3 61 60 description: | 62 61 Memory bus areas for interacting with the devices. Reflects 63 62 the memory layout with four integer values following:
-8
Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml
··· 84 84 85 85 interrupts: 86 86 minItems: 1 87 - maxItems: 3 88 87 items: 89 88 - description: NAND CTLRDY interrupt 90 89 - description: FLASH_DMA_DONE if flash DMA is available ··· 91 92 92 93 interrupt-names: 93 94 minItems: 1 94 - maxItems: 3 95 95 items: 96 96 - const: nand_ctlrdy 97 97 - const: flash_dma_done ··· 146 148 then: 147 149 properties: 148 150 reg-names: 149 - minItems: 2 150 - maxItems: 2 151 151 items: 152 152 - const: nand 153 153 - const: nand-int-base ··· 157 161 then: 158 162 properties: 159 163 reg-names: 160 - minItems: 3 161 - maxItems: 3 162 164 items: 163 165 - const: nand 164 166 - const: nand-int-base ··· 169 175 then: 170 176 properties: 171 177 reg-names: 172 - minItems: 3 173 - maxItems: 3 174 178 items: 175 179 - const: nand 176 180 - const: iproc-idm
-1
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml
··· 30 30 maxItems: 1 31 31 32 32 clocks: 33 - minItems: 2 34 33 items: 35 34 - description: PCLK clocks 36 35 - description: EXTCLK clocks. Faraday calls it CLK1HZ and says the clock
-2
Documentation/devicetree/bindings/usb/nxp,isp1760.yaml
··· 25 25 26 26 interrupts: 27 27 minItems: 1 28 - maxItems: 2 29 28 items: 30 29 - description: Host controller interrupt 31 30 - description: Device controller interrupt in isp1761 32 31 33 32 interrupt-names: 34 33 minItems: 1 35 - maxItems: 2 36 34 items: 37 35 - const: host 38 36 - const: peripheral