Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/clock/airoha,en7523-scu.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: EN7523 Clock |
| 8 | |
| 9 | maintainers: |
| 10 | - Felix Fietkau <nbd@nbd.name> |
| 11 | - John Crispin <nbd@nbd.name> |
| 12 | |
| 13 | description: | |
| 14 | This node defines the System Control Unit of the EN7523 SoC, |
| 15 | a collection of registers configuring many different aspects of the SoC. |
| 16 | |
| 17 | The clock driver uses it to read and configure settings of the |
| 18 | PLL controller, which provides clocks for the CPU, the bus and |
| 19 | other SoC internal peripherals. |
| 20 | |
| 21 | Each clock is assigned an identifier and client nodes use this identifier |
| 22 | to specify which clock they consume. |
| 23 | |
| 24 | All these identifiers can be found in: |
| 25 | [1]: <include/dt-bindings/clock/en7523-clk.h>. |
| 26 | |
| 27 | The clocks are provided inside a system controller node. |
| 28 | |
| 29 | properties: |
| 30 | compatible: |
| 31 | items: |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 32 | - enum: |
| 33 | - airoha,en7523-scu |
| 34 | - airoha,en7581-scu |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 35 | |
| 36 | reg: |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 37 | minItems: 2 |
| 38 | maxItems: 3 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 39 | |
| 40 | "#clock-cells": |
| 41 | description: |
| 42 | The first cell indicates the clock number, see [1] for available |
| 43 | clocks. |
| 44 | const: 1 |
| 45 | |
| 46 | required: |
| 47 | - compatible |
| 48 | - reg |
| 49 | - '#clock-cells' |
| 50 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 51 | allOf: |
| 52 | - if: |
| 53 | properties: |
| 54 | compatible: |
| 55 | const: airoha,en7523-scu |
| 56 | then: |
| 57 | properties: |
| 58 | reg: |
| 59 | items: |
| 60 | - description: scu base address |
| 61 | - description: misc scu base address |
| 62 | |
| 63 | - if: |
| 64 | properties: |
| 65 | compatible: |
| 66 | const: airoha,en7581-scu |
| 67 | then: |
| 68 | properties: |
| 69 | reg: |
| 70 | items: |
| 71 | - description: scu base address |
| 72 | - description: misc scu base address |
| 73 | - description: pb scu base address |
| 74 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 75 | additionalProperties: false |
| 76 | |
| 77 | examples: |
| 78 | - | |
| 79 | #include <dt-bindings/clock/en7523-clk.h> |
| 80 | scu: system-controller@1fa20000 { |
| 81 | compatible = "airoha,en7523-scu"; |
| 82 | reg = <0x1fa20000 0x400>, |
| 83 | <0x1fb00000 0x1000>; |
| 84 | #clock-cells = <1>; |
| 85 | }; |