Re: [PATCH v3] dt-bindings: phy: rockchip-emmc-phy: Convert to dtschema

From: Krzysztof Kozlowski
Date: Thu Jun 13 2024 - 06:15:20 EST


On 13/06/2024 10:58, Shresth Prasad wrote:
> Convert txt bindings of Rockchip EMMC PHY to dtschema to allow
> for validation.
>
> Signed-off-by: Shresth Prasad <shresthprasad7@xxxxxxxxx>
> ---
> Changes in v3:
> - fix `reg` in example being too long
>
> Tested against `rockchip/rk3399-firefly.dtb`, `rockchip/rk3399-orangepi.dtb`
> and `rockchip/rk3399-pinebook-pro.dtb`.



>
> .../bindings/phy/rockchip,emmc-phy.yaml | 79 +++++++++++++++++++
> .../bindings/phy/rockchip-emmc-phy.txt | 43 ----------
> .../devicetree/bindings/soc/rockchip/grf.yaml | 2 +-
> 3 files changed, 80 insertions(+), 44 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/phy/rockchip,emmc-phy.yaml

Filename matching compatible.

...

Please look at other bindings how the conversion works and get it
reviewed/acked through your mentors before you post.

> -};
> diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> index 79798c747476..1f88416657cc 100644
> --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> @@ -178,7 +178,7 @@ allOf:
> patternProperties:
> "phy@[0-9a-f]+$":
> description:
> - Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt
> + Documentation/devicetree/bindings/phy/rockchip,emmc-phy.yaml

Nope, look at the rest of the file and do not implement things differently.

Best regards,
Krzysztof