Apple SoCs' NCO block

Schema identifier ($id): "http://devicetree.org/schemas/clock/apple,nco.yaml#"

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

Maintainers (maintainers): "Martin Povišer <povik+lin@cutebit.org>"

The NCO (Numerically Controlled Oscillator) block found on Apple SoCs such as the t8103 (M1) is a programmable clock generator performing fractional division of a high frequency input clock.

It carries a number of independent channels and is typically used for generation of audio bitclocks.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-nco"

Item 2

Exact value (const): "apple,t8103-nco"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "apple,t6000-nco", "apple,t8103-nco", "apple,t8112-nco"

Item 2

Exact value (const): "apple,nco"

clocks — required here #

Specifies the reference clock from which the output clocks are derived through fractional division.

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 1

reg — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

nco_clkref: clock-ref {
  compatible = "fixed-clock";
  #clock-cells = <0>;
  clock-frequency = <900000000>;
  clock-output-names = "nco-ref";
};

nco: clock-controller@23b044000 {
  compatible = "apple,t8103-nco", "apple,nco";
  reg = <0x3b044000 0x14000>;
  #clock-cells = <1>;
  clocks = <&nco_clkref>;
};

Source notes #

Annotations retained from the schema source

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

Line 28: Do not add additional SoC to this list.

Edit this page