| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
# Copyright (C) 2024-2025 Amlogic, Inc. All rights reserved |
| 3 |
%YAML 1.2 |
| 4 |
--- |
| 5 |
$id: http://devicetree.org/schemas/clock/amlogic,t7-pll-clkc.yaml# |
| 6 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 |
|
| 8 |
title: Amlogic T7 PLL Clock Control Controller |
| 9 |
|
| 10 |
maintainers: |
| 11 |
- Neil Armstrong <[email protected]> |
| 12 |
- Jerome Brunet <[email protected]> |
| 13 |
- Jian Hu <[email protected]> |
| 14 |
- Xianwei Zhao <[email protected]> |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
enum: |
| 19 |
- amlogic,t7-gp0-pll |
| 20 |
- amlogic,t7-gp1-pll |
| 21 |
- amlogic,t7-hifi-pll |
| 22 |
- amlogic,t7-pcie-pll |
| 23 |
- amlogic,t7-mpll |
| 24 |
- amlogic,t7-hdmi-pll |
| 25 |
- amlogic,t7-mclk-pll |
| 26 |
|
| 27 |
reg: |
| 28 |
maxItems: 1 |
| 29 |
|
| 30 |
'#clock-cells': |
| 31 |
const: 1 |
| 32 |
|
| 33 |
clocks: |
| 34 |
items: |
| 35 |
- description: mclk pll input oscillator gate |
| 36 |
- description: oscillator input clock source for mclk_sel_0 |
| 37 |
- description: fixed input clock source for mclk_sel_0 |
| 38 |
minItems: 1 |
| 39 |
|
| 40 |
clock-names: |
| 41 |
items: |
| 42 |
- const: in0 |
| 43 |
- const: in1 |
| 44 |
- const: in2 |
| 45 |
minItems: 1 |
| 46 |
|
| 47 |
required: |
| 48 |
- compatible |
| 49 |
- '#clock-cells' |
| 50 |
- reg |
| 51 |
- clocks |
| 52 |
- clock-names |
| 53 |
|
| 54 |
allOf: |
| 55 |
- if: |
| 56 |
properties: |
| 57 |
compatible: |
| 58 |
contains: |
| 59 |
const: amlogic,t7-mclk-pll |
| 60 |
|
| 61 |
then: |
| 62 |
properties: |
| 63 |
clocks: |
| 64 |
minItems: 3 |
| 65 |
|
| 66 |
clock-names: |
| 67 |
minItems: 3 |
| 68 |
|
| 69 |
- if: |
| 70 |
properties: |
| 71 |
compatible: |
| 72 |
contains: |
| 73 |
enum: |
| 74 |
- amlogic,t7-gp0-pll |
| 75 |
- amlogic,t7-gp1--pll |
| 76 |
- amlogic,t7-hifi-pll |
| 77 |
- amlogic,t7-pcie-pll |
| 78 |
- amlogic,t7-mpll |
| 79 |
- amlogic,t7-hdmi-pll |
| 80 |
|
| 81 |
then: |
| 82 |
properties: |
| 83 |
clocks: |
| 84 |
maxItems: 1 |
| 85 |
|
| 86 |
clock-names: |
| 87 |
maxItems: 1 |
| 88 |
|
| 89 |
additionalProperties: false |
| 90 |
|
| 91 |
examples: |
| 92 |
- | |
| 93 |
apb { |
| 94 |
#address-cells = <2>; |
| 95 |
#size-cells = <2>; |
| 96 |
|
| 97 |
clock-controller@8080 { |
| 98 |
compatible = "amlogic,t7-gp0-pll"; |
| 99 |
reg = <0 0x8080 0 0x20>; |
| 100 |
clocks = <&scmi_clk 2>; |
| 101 |
clock-names = "in0"; |
| 102 |
#clock-cells = <1>; |
| 103 |
}; |
| 104 |
|
| 105 |
clock-controller@8300 { |
| 106 |
compatible = "amlogic,t7-mclk-pll"; |
| 107 |
reg = <0 0x8300 0 0x18>; |
| 108 |
clocks = <&scmi_clk 2>, |
| 109 |
<&xtal>, |
| 110 |
<&scmi_clk 31>; |
| 111 |
clock-names = "in0", "in1", "in2"; |
| 112 |
#clock-cells = <1>; |
| 113 |
}; |
| 114 |
}; |