Re: [PATCH v3 1/5] dt-bindings: gpio: Add HPE GXP GPIO

From: Krzysztof Kozlowski
Date: Tue Jun 06 2023 - 05:30:14 EST


On 06/06/2023 03:42, nick.hawkins@xxxxxxx wrote:
> From: Nick Hawkins <nick.hawkins@xxxxxxx>
>
> Provide access to the register regions and interrupt for GPIO. There
> will be two drivers available. The first driver under the hpe,gxp-gpio
> binding will provide GPIO information for the VUHC, CSM, and FN2
> host interfaces. The second driver under the hpe,gxp-gpio-pl will
> provide GPIO information from the CPLD interface. The main difference
> and need for two separate bindings is they have different interrupt
> parents. The other is hpe,gxp-gpio is a combination of physical
> and virtual GPIOs where as hpe,gxp-gpio-pl are all physical
> GPIOs from the CPLD.
>
> Signed-off-by: Nick Hawkins <nick.hawkins@xxxxxxx>

Thank you for your patch. There is something to discuss/improve.

> +
> +properties:
> + compatible:
> + enum:
> + - hpe,gxp-gpio
> + - hpe,gxp-gpio-pl
> +
> + reg:
> + minItems: 2
> + maxItems: 6

Why 6? You have 4 items in allOf:if:then.

> +
> + reg-names:
> + minItems: 2
> + maxItems: 6
> +
> + gpio-controller: true
> +
> + "#gpio-cells":
> + const: 2
> +
> + gpio-line-names:
> + minItems: 80
> + maxItems: 300
> +
> + interrupts:
> + maxItems: 1
> +

Best regards,
Krzysztof