Xilinx Versal clock controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/xlnx,versal-clk.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"

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 and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "xlnx,versal-clk", "xlnx,zynqmp-clk"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "xlnx,versal-net-clk"

Item 2

Exact value (const): "xlnx,versal-clk"

#clock-cells — required here #

Exact value (const): 1

clocks — required here #

List of clock specifiers which are external input clocks to the given clock controller.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 8

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 8

Required in this object (required): "compatible", "#clock-cells", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "xlnx,versal-clk"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

reference clock

Item 2

alternate reference clock for programmable logic

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "pl_alt_ref"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "xlnx,versal-net-clk"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

reference clock

Item 2

alternate reference clock for programmable logic

Item 3

alternate reference clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "pl_alt_ref"

Item 3

Exact value (const): "alt_ref"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "xlnx,zynqmp-clk"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

PS reference clock

Item 2

reference clock for video system

Item 3

alternative PS reference clock

Item 4

auxiliary reference clock

Item 5

transceiver reference clock

Item 6

(E)MIO clock source (Optional clock)

Item 7

GEM emio clock (Optional clock)

Item 8

Watchdog external clock (Optional clock)

clock-names — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

Exact value (const): "pss_ref_clk"

Item 2

Exact value (const): "video_clk"

Item 3

Exact value (const): "pss_alt_ref_clk"

Item 4

Exact value (const): "aux_ref_clk"

Item 5

Exact value (const): "gt_crx_ref_clk"

Item 6

String pattern (pattern): "^mio_clk[00-77]+.*$"

Item 7

String pattern (pattern): "gem[0-3]+_emio_clk.*$"

Item 8

String pattern (pattern): "swdt[0-1]+_ext_clk.*$"

Examples (examples) #

firmware {
  zynqmp_firmware: zynqmp-firmware {
    compatible = "xlnx,zynqmp-firmware";
    method = "smc";
    versal_clk: clock-controller {
      #clock-cells = <1>;
      compatible = "xlnx,versal-clk";
      clocks = <&ref>,  <&pl_alt_ref>;
      clock-names = "ref", "pl_alt_ref";
    };
  };
};

clock-controller {
    #clock-cells = <1>;
    compatible = "xlnx,zynqmp-clk";
    clocks = <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>,
             <&aux_ref_clk>, <&gt_crx_ref_clk>;
    clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk",
                  "aux_ref_clk", "gt_crx_ref_clk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page