Re: [PATCH net-next v3 2/6] dt-bindings: net: hisilicon-femac-mdio: convert to YAML

From: Krzysztof Kozlowski
Date: Wed Feb 21 2024 - 03:11:36 EST


On 19/02/2024 20:57, Yang Xiwen via B4 Relay wrote:
> From: Yang Xiwen <forbidden405@xxxxxxxxxxx>
>
> Also mark the clock optional
>

> +allOf:
> + - $ref: mdio.yaml#
> +
> +properties:
> + "#address-cells":
> + const: 1

Drop property.

> +
> + "#size-cells":
> + const: 0

Drop property.


> +
> + compatible:
> + const: hisilicon,hisi-femac-mdio

Put compatible as the first.

> +
> + reg:
> + maxItems: 1

Reg the second.

> +
> + clocks:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + mdio@10091100 {
> + compatible = "hisilicon,hisi-femac-mdio";
> + reg = <0x10091100 0x20>;
> + #address-cells = <1>;
> + #size-cells = <0>;

Add clocks to the example.



Best regards,
Krzysztof