1038010bbSJohn Crispin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2038010bbSJohn Crispin%YAML 1.2
3038010bbSJohn Crispin---
4038010bbSJohn Crispin$id: http://devicetree.org/schemas/clock/airoha,en7523-scu.yaml#
5038010bbSJohn Crispin$schema: http://devicetree.org/meta-schemas/core.yaml#
6038010bbSJohn Crispin
7*dd3cb467SAndrew Lunntitle: EN7523 Clock
8038010bbSJohn Crispin
9038010bbSJohn Crispinmaintainers:
10038010bbSJohn Crispin  - Felix Fietkau <nbd@nbd.name>
11038010bbSJohn Crispin  - John Crispin <nbd@nbd.name>
12038010bbSJohn Crispin
13038010bbSJohn Crispindescription: |
14038010bbSJohn Crispin  This node defines the System Control Unit of the EN7523 SoC,
15038010bbSJohn Crispin  a collection of registers configuring many different aspects of the SoC.
16038010bbSJohn Crispin
17038010bbSJohn Crispin  The clock driver uses it to read and configure settings of the
18038010bbSJohn Crispin  PLL controller, which provides clocks for the CPU, the bus and
19038010bbSJohn Crispin  other SoC internal peripherals.
20038010bbSJohn Crispin
21038010bbSJohn Crispin  Each clock is assigned an identifier and client nodes use this identifier
22038010bbSJohn Crispin  to specify which clock they consume.
23038010bbSJohn Crispin
24038010bbSJohn Crispin  All these identifiers can be found in:
25038010bbSJohn Crispin  [1]: <include/dt-bindings/clock/en7523-clk.h>.
26038010bbSJohn Crispin
27038010bbSJohn Crispin  The clocks are provided inside a system controller node.
28038010bbSJohn Crispin
29038010bbSJohn Crispinproperties:
30038010bbSJohn Crispin  compatible:
31038010bbSJohn Crispin    items:
32038010bbSJohn Crispin      - const: airoha,en7523-scu
33038010bbSJohn Crispin
34038010bbSJohn Crispin  reg:
35038010bbSJohn Crispin    maxItems: 2
36038010bbSJohn Crispin
37038010bbSJohn Crispin  "#clock-cells":
38038010bbSJohn Crispin    description:
39038010bbSJohn Crispin      The first cell indicates the clock number, see [1] for available
40038010bbSJohn Crispin      clocks.
41038010bbSJohn Crispin    const: 1
42038010bbSJohn Crispin
43038010bbSJohn Crispinrequired:
44038010bbSJohn Crispin  - compatible
45038010bbSJohn Crispin  - reg
46038010bbSJohn Crispin  - '#clock-cells'
47038010bbSJohn Crispin
48038010bbSJohn CrispinadditionalProperties: false
49038010bbSJohn Crispin
50038010bbSJohn Crispinexamples:
51038010bbSJohn Crispin  - |
52038010bbSJohn Crispin    #include <dt-bindings/clock/en7523-clk.h>
53038010bbSJohn Crispin    scu: system-controller@1fa20000 {
54038010bbSJohn Crispin      compatible = "airoha,en7523-scu";
55038010bbSJohn Crispin      reg = <0x1fa20000 0x400>,
56038010bbSJohn Crispin            <0x1fb00000 0x1000>;
57038010bbSJohn Crispin      #clock-cells = <1>;
58038010bbSJohn Crispin    };
59