Re: [PATCHv2] dt-bindings: bus: ti-sysc: Update to use yaml binding

From: Rob Herring
Date: Tue Oct 26 2021 - 17:33:33 EST


On Fri, 15 Oct 2021 14:33:50 +0300, Tony Lindgren wrote:
> Update the binding for ti-sysc interconnect target module driver to yaml
> format.
>
> Note that the old binding was never updated for the need to always specify
> also the generic compatible "ti,sysc". This is needed for the auxdata
> for platform clockdomain autoidle related functions.
>
> Cc: Rob Herring <robh@xxxxxxxxxx>
> Cc: Suman Anna <s-anna@xxxxxx>
> Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>
> ---
>
> Changes since v1:
>
> - Update based on comments from Rob
>
> ---
> .../devicetree/bindings/bus/ti-sysc.txt | 139 ----------
> .../devicetree/bindings/bus/ti-sysc.yaml | 242 ++++++++++++++++++
> 2 files changed, 242 insertions(+), 139 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/bus/ti-sysc.txt
> create mode 100644 Documentation/devicetree/bindings/bus/ti-sysc.yaml
>

I reworked the reg-names and clock-names to be more concise and applied.
Like this:

clock-names:
description:
Target module clock names like "fck", "ick", "optck1", "optck2"
if the clocks are configurable.
oneOf:
- enum: [ ick, fck, sys_clk ]
- items:
- const: fck
- enum: [ ick. dbclk, osc, sys_clk, dss_clk, ahclkx ]
- items:
- const: fck
- const: phy-clk
- const: phy-clk-div
- items:
- const: fck
- const: hdmi_clk
- const: sys_clk
- const: tv_clk
- items:
- const: fck
- const: ahclkx
- const: ahclkr