Axis ARTPEC-8 SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/axis,artpec8-clock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jesper Nilsson <jesper.nilsson@axis.com>"
ARTPEC-8 clock controller is comprised of several CMU (Clock Management Unit) units, generating clocks for different domains. Those CMU units are modeled as separate device tree nodes, and might depend on each other. The root clock in that root tree is an external clock: OSCCLK (25 MHz). This external clock must be defined as a fixed-rate clock in dts.
CMU_CMU is a top-level CMU, where all base clocks are prepared using PLLs and dividers; all other clocks of function blocks (other CMUs) are usually derived from CMU_CMU.
Each clock is assigned an identifier and client nodes can use this identifier to specify the clock which they consume. All clocks available for usage in clock consumer nodes are defined as preprocessor macros in 'include/dt-bindings/clock/axis,artpec8-clk.h' header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "axis,artpec8-cmu-cmu", "axis,artpec8-cmu-bus", "axis,artpec8-cmu-core", "axis,artpec8-cmu-cpucl", "axis,artpec8-cmu-fsys", "axis,artpec8-cmu-imem", "axis,artpec8-cmu-peri"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
#clock-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#clock-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-cmu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-bus"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
Item 2
CMU_BUS BUS clock (from CMU_CMU)
Item 3
CMU_BUS DLP clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"dlp"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-core"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
Item 2
CMU_CORE main clock (from CMU_CMU)
Item 3
CMU_CORE DLP clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"main"Item 3
Exact value (
const):"dlp"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-cpucl"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
Item 2
CMU_CPUCL switch clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"switch"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-fsys"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
Item 2
CMU_FSYS SCAN0 clock (from CMU_CMU)
Item 3
CMU_FSYS SCAN1 clock (from CMU_CMU)
Item 4
CMU_FSYS BUS clock (from CMU_CMU)
Item 5
CMU_FSYS IP clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"scan0"Item 3
Exact value (
const):"scan1"Item 4
Exact value (
const):"bus"Item 5
Exact value (
const):"ip"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-imem"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
Item 2
CMU_IMEM ACLK clock (from CMU_CMU)
Item 3
CMU_IMEM JPEG clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"aclk"Item 3
Exact value (
const):"jpeg"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"axis,artpec8-cmu-peri"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (25 MHz)
Item 2
CMU_PERI IP clock (from CMU_CMU)
Item 3
CMU_PERI AUDIO clock (from CMU_CMU)
Item 4
CMU_PERI DISP clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"ip"Item 3
Exact value (
const):"audio"Item 4
Exact value (
const):"disp"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/axis,artpec8-clk.h>
cmu_fsys: clock-controller@16c10000 {
compatible = "axis,artpec8-cmu-fsys";
reg = <0x16c10000 0x4000>;
#clock-cells = <1>;
clocks = <&fin_pll>,
<&cmu_cmu CLK_DOUT_CMU_FSYS_SCAN0>,
<&cmu_cmu CLK_DOUT_CMU_FSYS_SCAN1>,
<&cmu_cmu CLK_DOUT_CMU_FSYS_BUS>,
<&cmu_cmu CLK_DOUT_CMU_FSYS_IP>;
clock-names = "fin_pll", "scan0", "scan1", "bus", "ip";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 197: Clock controller node for CMU_FSYS