0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/apple,nco.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Apple SoCs' NCO block
0008
0009 maintainers:
0010 - Martin PoviĊĦer <povik+lin@cutebit.org>
0011
0012 description: |
0013 The NCO (Numerically Controlled Oscillator) block found on Apple SoCs
0014 such as the t8103 (M1) is a programmable clock generator performing
0015 fractional division of a high frequency input clock.
0016
0017 It carries a number of independent channels and is typically used for
0018 generation of audio bitclocks.
0019
0020 properties:
0021 compatible:
0022 items:
0023 - enum:
0024 - apple,t6000-nco
0025 - apple,t8103-nco
0026 - const: apple,nco
0027
0028 clocks:
0029 description:
0030 Specifies the reference clock from which the output clocks
0031 are derived through fractional division.
0032 maxItems: 1
0033
0034 '#clock-cells':
0035 const: 1
0036
0037 reg:
0038 maxItems: 1
0039
0040 required:
0041 - compatible
0042 - clocks
0043 - '#clock-cells'
0044 - reg
0045
0046 additionalProperties: false
0047
0048 examples:
0049 - |
0050 nco_clkref: clock-ref {
0051 compatible = "fixed-clock";
0052 #clock-cells = <0>;
0053 clock-frequency = <900000000>;
0054 clock-output-names = "nco-ref";
0055 };
0056
0057 nco: clock-controller@23b044000 {
0058 compatible = "apple,t8103-nco", "apple,nco";
0059 reg = <0x3b044000 0x14000>;
0060 #clock-cells = <1>;
0061 clocks = <&nco_clkref>;
0062 };