Path: blob/master/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/clock/airoha,en7523-scu.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: EN7523 Clock78maintainers:9- Felix Fietkau <nbd@nbd.name>10- John Crispin <nbd@nbd.name>1112description: |13This node defines the System Control Unit of the EN7523 SoC,14a collection of registers configuring many different aspects of the SoC.1516The clock driver uses it to read and configure settings of the17PLL controller, which provides clocks for the CPU, the bus and18other SoC internal peripherals.1920Each clock is assigned an identifier and client nodes use this identifier21to specify which clock they consume.2223All these identifiers can be found in:24[1]: <include/dt-bindings/clock/en7523-clk.h>.2526The clocks are provided inside a system controller node.2728properties:29compatible:30items:31- enum:32- airoha,en7523-scu33- airoha,en7581-scu3435reg:36items:37- description: scu base address38- description: misc scu base address39minItems: 14041"#clock-cells":42description:43The first cell indicates the clock number, see [1] for available44clocks.45const: 14647'#reset-cells':48description: ID of the controller reset line49const: 15051required:52- compatible53- reg54- '#clock-cells'5556allOf:57- if:58properties:59compatible:60const: airoha,en7523-scu61then:62properties:63reg:64minItems: 26566'#reset-cells': false6768- if:69properties:70compatible:71const: airoha,en7581-scu72then:73properties:74reg:75maxItems: 17677additionalProperties: false7879examples:80- |81#include <dt-bindings/clock/en7523-clk.h>82scu: system-controller@1fa20000 {83compatible = "airoha,en7523-scu";84reg = <0x1fa20000 0x400>,85<0x1fb00000 0x1000>;86#clock-cells = <1>;87};8889- |90soc {91#address-cells = <2>;92#size-cells = <2>;9394scuclk: clock-controller@1fb00000 {95compatible = "airoha,en7581-scu";96reg = <0x0 0x1fb00000 0x0 0x970>;97#clock-cells = <1>;98#reset-cells = <1>;99};100};101102103