2019-12-04 23:35:54 -07:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
2020-01-31 08:27:12 -07:00
|
|
|
$id: http://devicetree.org/schemas/clock/xlnx,versal-clk.yaml#
|
2019-12-04 23:35:54 -07:00
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Xilinx Versal clock controller
|
|
|
|
|
|
|
|
maintainers:
|
2023-05-16 06:51:08 -07:00
|
|
|
- Michal Simek <michal.simek@amd.com>
|
2019-12-04 23:35:54 -07:00
|
|
|
|
|
|
|
description: |
|
|
|
|
The clock controller is a hardware block of Xilinx versal clock tree. It
|
|
|
|
reads required input clock frequencies from the devicetree and acts as clock
|
|
|
|
provider for all clock consumers of PS clocks.
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-06-20 04:01:37 -07:00
|
|
|
oneOf:
|
2023-08-01 21:35:57 -07:00
|
|
|
- enum:
|
|
|
|
- xlnx,versal-clk
|
|
|
|
- xlnx,zynqmp-clk
|
2023-06-20 04:01:37 -07:00
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- xlnx,versal-net-clk
|
|
|
|
- const: xlnx,versal-clk
|
2019-12-04 23:35:54 -07:00
|
|
|
|
|
|
|
"#clock-cells":
|
|
|
|
const: 1
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
description: List of clock specifiers which are external input
|
|
|
|
clocks to the given clock controller.
|
2023-11-28 03:43:48 -07:00
|
|
|
minItems: 2
|
2023-08-01 21:35:57 -07:00
|
|
|
maxItems: 8
|
2019-12-04 23:35:54 -07:00
|
|
|
|
|
|
|
clock-names:
|
2023-11-28 03:43:48 -07:00
|
|
|
minItems: 2
|
2023-08-01 21:35:57 -07:00
|
|
|
maxItems: 8
|
2019-12-04 23:35:54 -07:00
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- "#clock-cells"
|
|
|
|
- clocks
|
|
|
|
- clock-names
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
2023-08-01 21:35:57 -07:00
|
|
|
allOf:
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- xlnx,versal-clk
|
|
|
|
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
items:
|
|
|
|
- description: reference clock
|
|
|
|
- description: alternate reference clock for programmable logic
|
|
|
|
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: ref
|
|
|
|
- const: pl_alt_ref
|
|
|
|
|
2023-11-28 03:43:48 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- xlnx,versal-net-clk
|
|
|
|
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
items:
|
|
|
|
- description: reference clock
|
|
|
|
- description: alternate reference clock for programmable logic
|
|
|
|
- description: alternate reference clock
|
|
|
|
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: ref
|
|
|
|
- const: pl_alt_ref
|
|
|
|
- const: alt_ref
|
|
|
|
|
2023-08-01 21:35:57 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- xlnx,zynqmp-clk
|
|
|
|
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
minItems: 5
|
|
|
|
items:
|
|
|
|
- description: PS reference clock
|
|
|
|
- description: reference clock for video system
|
|
|
|
- description: alternative PS reference clock
|
|
|
|
- description: auxiliary reference clock
|
|
|
|
- description: transceiver reference clock
|
|
|
|
- description: (E)MIO clock source (Optional clock)
|
|
|
|
- description: GEM emio clock (Optional clock)
|
|
|
|
- description: Watchdog external clock (Optional clock)
|
|
|
|
|
|
|
|
clock-names:
|
|
|
|
minItems: 5
|
|
|
|
items:
|
|
|
|
- const: pss_ref_clk
|
|
|
|
- const: video_clk
|
|
|
|
- const: pss_alt_ref_clk
|
|
|
|
- const: aux_ref_clk
|
|
|
|
- const: gt_crx_ref_clk
|
|
|
|
- pattern: "^mio_clk[00-77]+.*$"
|
|
|
|
- pattern: "gem[0-3]+_emio_clk.*$"
|
|
|
|
- pattern: "swdt[0-1]+_ext_clk.*$"
|
|
|
|
|
2019-12-04 23:35:54 -07:00
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
firmware {
|
|
|
|
zynqmp_firmware: zynqmp-firmware {
|
|
|
|
compatible = "xlnx,zynqmp-firmware";
|
|
|
|
method = "smc";
|
|
|
|
versal_clk: clock-controller {
|
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "xlnx,versal-clk";
|
2023-11-28 03:43:48 -07:00
|
|
|
clocks = <&ref>, <&pl_alt_ref>;
|
|
|
|
clock-names = "ref", "pl_alt_ref";
|
2019-12-04 23:35:54 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-08-01 21:35:57 -07:00
|
|
|
|
|
|
|
clock-controller {
|
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "xlnx,zynqmp-clk";
|
|
|
|
clocks = <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>,
|
|
|
|
<&aux_ref_clk>, <>_crx_ref_clk>;
|
|
|
|
clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk",
|
|
|
|
"aux_ref_clk", "gt_crx_ref_clk";
|
|
|
|
};
|
2019-12-04 23:35:54 -07:00
|
|
|
...
|