Path: blob/main/sys/contrib/device-tree/Bindings/clock/airoha,en7523-scu.yaml
48377 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:36minItems: 237maxItems: 43839"#clock-cells":40description:41The first cell indicates the clock number, see [1] for available42clocks.43const: 14445'#reset-cells':46description: ID of the controller reset line47const: 14849required:50- compatible51- reg52- '#clock-cells'5354allOf:55- if:56properties:57compatible:58const: airoha,en7523-scu59then:60properties:61reg:62items:63- description: scu base address64- description: misc scu base address6566'#reset-cells': false6768- if:69properties:70compatible:71const: airoha,en7581-scu72then:73properties:74reg:75items:76- description: scu base address77- description: misc scu base address78- description: reset base address79- description: pb scu base address8081additionalProperties: false8283examples:84- |85#include <dt-bindings/clock/en7523-clk.h>86scu: system-controller@1fa20000 {87compatible = "airoha,en7523-scu";88reg = <0x1fa20000 0x400>,89<0x1fb00000 0x1000>;90#clock-cells = <1>;91};9293- |94soc {95#address-cells = <2>;96#size-cells = <2>;9798scuclk: clock-controller@1fa20000 {99compatible = "airoha,en7581-scu";100reg = <0x0 0x1fa20000 0x0 0x400>,101<0x0 0x1fb00000 0x0 0x90>,102<0x0 0x1fb00830 0x0 0x8>,103<0x0 0x1fbe3400 0x0 0xfc>;104#clock-cells = <1>;105#reset-cells = <1>;106};107};108109110