[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0b6bf7b9-f9c6-40c4-a166-7bdd4984b023@kernel.org>
Date: Mon, 22 Apr 2024 13:49:17 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Mohammad Shehar Yaar Tausif <sheharyaar48@...il.com>,
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
 Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
 Conor Dooley <conor+dt@...nel.org>
Cc: linux-usb@...r.kernel.org, devicetree@...r.kernel.org,
 linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] dt-bindings: usb: uhci: convert to dt schema
On 22/04/2024 11:37, Mohammad Shehar Yaar Tausif wrote:
> Convert USB UHCI bindings to DT schema.
Please mention changes from pure conversion, so documenting aspeed
compatibles and missing properties.
> 
> Signed-off-by: Mohammad Shehar Yaar Tausif <sheharyaar48@...il.com>
> ---
..
..
> +
> +  interrupts:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +if:
This should be under allOf
> +  properties:
> +    compatible:
> +      contains:
> +        const: generic-uhci
> +then:
> +  allOf:
> +    - $ref: usb-hcd.yaml
This is confusing. Aspeed is not different here.
> +  if:
> +    properties:
> +      compatible:
> +        contains:
> +          enum:
> +            - aspeed,ast2400-uhci
> +            - aspeed,ast2500-uhci
> +            - aspeed,ast2600-uhci
> +  then:
> +    properties:
> +      '#ports':
> +        $ref: /schemas/types.yaml#/definitions/uint32
And the #ports property looks valid for generic-ahci. Why do you think
it is not valid?
> +      clocks:
> +        maxItems: 1
Define properties top-level.
> +    required:
> +      - clocks
This looks required for generic-uhci as well. Why did you put it only
for aspeed?
Best regards,
Krzysztof
Powered by blists - more mailing lists