mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 19:43:43 -04:00
There are four clock controllers in the A523 SoC. The existing binding already covers two of them that are critical for basic operation. The remaining ones are the MCU clock controller and CPU PLL clock controller. Add a description for the MCU CCU. This unit controls and provides clocks to the MCU (RISC-V) subsystem and peripherals meant to operate under low power conditions. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20250911174710.3149589-3-wens@kernel.org Signed-off-by: Chen-Yu Tsai <wens@csie.org>
137 lines
3.1 KiB
YAML
137 lines
3.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/clock/allwinner,sun55i-a523-ccu.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Allwinner A523 Clock Control Unit
|
|
|
|
maintainers:
|
|
- Andre Przywara <andre.przywara@arm.com>
|
|
|
|
properties:
|
|
"#clock-cells":
|
|
const: 1
|
|
|
|
"#reset-cells":
|
|
const: 1
|
|
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun55i-a523-ccu
|
|
- allwinner,sun55i-a523-mcu-ccu
|
|
- allwinner,sun55i-a523-r-ccu
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
minItems: 4
|
|
maxItems: 9
|
|
|
|
clock-names:
|
|
minItems: 4
|
|
maxItems: 9
|
|
|
|
required:
|
|
- "#clock-cells"
|
|
- "#reset-cells"
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- clock-names
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun55i-a523-ccu
|
|
|
|
then:
|
|
properties:
|
|
clocks:
|
|
items:
|
|
- description: High Frequency Oscillator (usually at 24MHz)
|
|
- description: Low Frequency Oscillator (usually at 32kHz)
|
|
- description: Internal Oscillator
|
|
- description: Low Frequency Oscillator fanout
|
|
|
|
clock-names:
|
|
items:
|
|
- const: hosc
|
|
- const: losc
|
|
- const: iosc
|
|
- const: losc-fanout
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun55i-a523-mcu-ccu
|
|
|
|
then:
|
|
properties:
|
|
clocks:
|
|
items:
|
|
- description: High Frequency Oscillator (usually at 24MHz)
|
|
- description: Low Frequency Oscillator (usually at 32kHz)
|
|
- description: Internal Oscillator
|
|
- description: Audio PLL (4x)
|
|
- description: Peripherals PLL 0 (300 MHz output)
|
|
- description: DSP module clock
|
|
- description: MBUS clock
|
|
- description: PRCM AHB clock
|
|
- description: PRCM APB0 clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: hosc
|
|
- const: losc
|
|
- const: iosc
|
|
- const: pll-audio0-4x
|
|
- const: pll-periph0-300m
|
|
- const: dsp
|
|
- const: mbus
|
|
- const: r-ahb
|
|
- const: r-apb0
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- allwinner,sun55i-a523-r-ccu
|
|
|
|
then:
|
|
properties:
|
|
clocks:
|
|
items:
|
|
- description: High Frequency Oscillator (usually at 24MHz)
|
|
- description: Low Frequency Oscillator (usually at 32kHz)
|
|
- description: Internal Oscillator
|
|
- description: Peripherals PLL
|
|
- description: Audio PLL
|
|
|
|
clock-names:
|
|
items:
|
|
- const: hosc
|
|
- const: losc
|
|
- const: iosc
|
|
- const: pll-periph
|
|
- const: pll-audio
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
clock-controller@2001000 {
|
|
compatible = "allwinner,sun55i-a523-ccu";
|
|
reg = <0x02001000 0x1000>;
|
|
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&r_ccu 1>;
|
|
clock-names = "hosc", "losc", "iosc", "losc-fanout";
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
...
|