Analog Devices AXI clkgen pcore clock generator

Schema identifier ($id): "http://devicetree.org/schemas/clock/adi,axi-clkgen.yaml#"

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

Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Michael Hennerich <michael.hennerich@analog.com>"

The axi_clkgen IP core is a software programmable clock generator, that can be synthesized on various FPGA platforms.

Link: https://wiki.analog.com/resources/fpga/docs/axi_clkgen

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,axi-clkgen-2.00.a", "adi,zynqmp-axi-clkgen-2.00.a"

clocks — required here #

Specifies the reference clock(s) from which the output frequency is derived. This must either reference one clock if only the first clock input is connected or two if both clock inputs are connected. The last clock is the AXI bus clock that needs to be enabled so we can access the core registers.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "clkin1"

Item 2

Exact value (const): "s_axi_aclk"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "clkin1"

Item 2

Exact value (const): "clkin2"

Item 3

Exact value (const): "s_axi_aclk"

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

clock-controller@ff000000 {
  compatible = "adi,axi-clkgen-2.00.a";
  #clock-cells = <0>;
  reg = <0xff000000 0x1000>;
  clocks = <&osc 1>, <&clkc 15>;
  clock-names = "clkin1", "s_axi_aclk";
  clock-output-names = "spi_sclk";
};

Source notes #

Annotations retained from the schema source

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

Edit this page