Re: [PATCH v2 1/2] dt-bindings: usb: Convert DWC2 bindings to json-schema

From: Krzysztof Kozlowski
Date: Mon Dec 30 2019 - 10:35:31 EST


On Thu, Dec 19, 2019 at 11:35:35AM +0100, Benjamin Gaignard wrote:
> Convert DWC2 bindings to DT schema format using json-schema.
> DWC2 is widely use but a couple of compatibles and properties
> (vusb_d-supply,vusb_a-supply) were missing in dwc2.txt, the
> patch add them.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@xxxxxx>
> ---
> CC: Minas Harutyunyan <hminas@xxxxxxxxxxxx>
>
> changes in version 2:
> - put Minas Harutyunyan <hminas@xxxxxxxxxxxx> as maintainer
> - remove type and description from phy property
> - remove description from compatible items
> - simplify samsung,s3c6400-hsotg compatible handling
>

(...)

> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - clock-names
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + usb@101c0000 {
> + compatible = "ralink,rt3050-usb, snps,dwc2";

Does it pass dtbs_check? Should be two strings.

Best regards,
Krzysztof