EN7523 Clock

Schema identifier ($id): "http://devicetree.org/schemas/clock/airoha,en7523-scu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Felix Fietkau <nbd@nbd.name>", "John Crispin <nbd@nbd.name>"

This node defines the System Control Unit of the EN7523 SoC, a collection of registers configuring many different aspects of the SoC.

The clock driver uses it to read and configure settings of the PLL controller, which provides clocks for the CPU, the bus and other SoC internal peripherals.

Each clock is assigned an identifier and client nodes use this identifier to specify which clock they consume.

All these identifiers can be found in: [1]: <include/dt-bindings/clock/en7523-clk.h>.

The clocks are provided inside a system controller node.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "airoha,en7523-scu", "airoha,en7581-scu"

reg — required here #

Array item rules (items) #

Item 1

scu base address

Item 2

misc scu base address

Minimum number of items (minItems): 1

#clock-cells — required here #

The first cell indicates the clock number, see [1] for available clocks.

Exact value (const): 1

#reset-cells — not listed as required here #

ID of the controller reset line

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#clock-cells"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "airoha,en7523-scu"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "airoha,en7581-scu"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/en7523-clk.h>
scu: system-controller@1fa20000 {
  compatible = "airoha,en7523-scu";
  reg = <0x1fa20000 0x400>,
        <0x1fb00000 0x1000>;
  #clock-cells = <1>;
  #reset-cells = <1>;
};
soc {
  #address-cells = <2>;
  #size-cells = <2>;

  scuclk: clock-controller@1fb00000 {
    compatible = "airoha,en7581-scu";
    reg = <0x0 0x1fb00000 0x0 0x970>;
          #clock-cells = <1>;
          #reset-cells = <1>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page