xref: /linux/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml (revision 0a382be005cf8e7ac1b6ed25f47c2f599b1ff6af)
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
7dd3cb467SAndrew 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:
32*0a382be0SLorenzo Bianconi      - enum:
33*0a382be0SLorenzo Bianconi          - airoha,en7523-scu
34*0a382be0SLorenzo Bianconi          - airoha,en7581-scu
35038010bbSJohn Crispin
36038010bbSJohn Crispin  reg:
37*0a382be0SLorenzo Bianconi    minItems: 2
38*0a382be0SLorenzo Bianconi    maxItems: 3
39038010bbSJohn Crispin
40038010bbSJohn Crispin  "#clock-cells":
41038010bbSJohn Crispin    description:
42038010bbSJohn Crispin      The first cell indicates the clock number, see [1] for available
43038010bbSJohn Crispin      clocks.
44038010bbSJohn Crispin    const: 1
45038010bbSJohn Crispin
46038010bbSJohn Crispinrequired:
47038010bbSJohn Crispin  - compatible
48038010bbSJohn Crispin  - reg
49038010bbSJohn Crispin  - '#clock-cells'
50038010bbSJohn Crispin
51*0a382be0SLorenzo BianconiallOf:
52*0a382be0SLorenzo Bianconi  - if:
53*0a382be0SLorenzo Bianconi      properties:
54*0a382be0SLorenzo Bianconi        compatible:
55*0a382be0SLorenzo Bianconi          const: airoha,en7523-scu
56*0a382be0SLorenzo Bianconi    then:
57*0a382be0SLorenzo Bianconi      properties:
58*0a382be0SLorenzo Bianconi        reg:
59*0a382be0SLorenzo Bianconi          items:
60*0a382be0SLorenzo Bianconi            - description: scu base address
61*0a382be0SLorenzo Bianconi            - description: misc scu base address
62*0a382be0SLorenzo Bianconi
63*0a382be0SLorenzo Bianconi  - if:
64*0a382be0SLorenzo Bianconi      properties:
65*0a382be0SLorenzo Bianconi        compatible:
66*0a382be0SLorenzo Bianconi          const: airoha,en7581-scu
67*0a382be0SLorenzo Bianconi    then:
68*0a382be0SLorenzo Bianconi      properties:
69*0a382be0SLorenzo Bianconi        reg:
70*0a382be0SLorenzo Bianconi          items:
71*0a382be0SLorenzo Bianconi            - description: scu base address
72*0a382be0SLorenzo Bianconi            - description: misc scu base address
73*0a382be0SLorenzo Bianconi            - description: pb scu base address
74*0a382be0SLorenzo Bianconi
75038010bbSJohn CrispinadditionalProperties: false
76038010bbSJohn Crispin
77038010bbSJohn Crispinexamples:
78038010bbSJohn Crispin  - |
79038010bbSJohn Crispin    #include <dt-bindings/clock/en7523-clk.h>
80038010bbSJohn Crispin    scu: system-controller@1fa20000 {
81038010bbSJohn Crispin      compatible = "airoha,en7523-scu";
82038010bbSJohn Crispin      reg = <0x1fa20000 0x400>,
83038010bbSJohn Crispin            <0x1fb00000 0x1000>;
84038010bbSJohn Crispin      #clock-cells = <1>;
85038010bbSJohn Crispin    };
86