Re: [PATCH v4] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller
From: Krzysztof Kozlowski
Date: Thu Dec 03 2026 - 09:57:49 EST
On 2026-12-03 11:03 +0530, Amit Kumar Mahapatra wrote:
> then:
> + properties:
> + resets:
> + maxItems: 1
> +
> + reset-names:
> + items:
> + - const: qspi
> +
> required:
> - power-domains
> + else:
> + properties:
> + resets:
> + minItems: 2
> +
> + reset-names:
> + minItems: 2
There is already other if:then: setting this to minItems: 1, so this is
all quite messy. You should not have multiple "if:then:else" each
setting the same property constraints. Which one applies?
Nesting if:then: is discouraged as well, so I suggest to list all device
compatibles in multiple if:then: cases to set the constraint for resets.
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>