On Wed, 27 May 2020 01:20:54 +0300, Serge Semin wrote: > After being gained by the CCU PLLs the signals must be transformed to > be suitable for the clock-consumers. This is done by a set of dividers > embedded into the CCU. A first block of dividers is used to create > reference clocks for AXI-bus of high-speed peripheral IP-cores of the > chip. The second block dividers alter the PLLs output signals to be then > consumed by SoC peripheral devices. Both block DT nodes are ordinary > clock-providers with standard set of properties supported. But in addition > to that each clock provider can be used to reset the corresponding clock > domain. This makes the AXI-bus and System Devices CCU DT nodes to be also > reset-providers. > > Signed-off-by: Serge Semin <Sergey.Semin@xxxxxxxxxxxxxxxxxxxx> > Cc: Alexey Malahov <Alexey.Malahov@xxxxxxxxxxxxxxxxxxxx> > Cc: Arnd Bergmann <arnd@xxxxxxxx> > Cc: linux-mips@xxxxxxxxxxxxxxx > > --- > > Changelog v2: > - Rearrange the SoBs. > - Combine AXI-bus and System Devices CCU bindings into a single file. > - Discard comments in the bindings file header. > - Add dual GPL/BSD license. > - Add spaces around the ASCII-graphics in the binding description. > - Remove reference to Documentation/devicetree/bindings/clock/clock-bindings.txt > file. > - Discard redundant object check against "/schemas/clock/clock.yaml#" schema. > - Discard redundant descriptions of "#clock-cells" and "#reset-cells" > properties. > - Discard "reg" property since the CCU dividers DT nodes are supposed be > children of the syscon-compatible system controller node. > - Remove "clock-output-names" property support. > - Replace "additionalProperties: false" with "unevaluatedProperties: false". > - Lowercase the nodes name in the examples. > - Use "clock-controller" node name suffix in the examples. > - Remove unnecessary comments in the clocks and resets dt-binding header > files. > - Discard label definitions in the examples. > > Changelog v3: > - Get the reg property back even though the driver is using the parental > syscon regmap. > - The DT schema will live separately from the system controller, but the > corresponding sub-node of the later DT schema will $ref this one. > --- > .../bindings/clock/baikal,bt1-ccu-div.yaml | 188 ++++++++++++++++++ > include/dt-bindings/clock/bt1-ccu.h | 32 +++ > include/dt-bindings/reset/bt1-ccu.h | 25 +++ > 3 files changed, 245 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/baikal,bt1-ccu-div.yaml > create mode 100644 include/dt-bindings/reset/bt1-ccu.h > Reviewed-by: Rob Herring <robh@xxxxxxxxxx>