xref: /linux/Documentation/devicetree/bindings/clock/spacemit,k1-pll.yaml (revision 9f32a03e3e0d372c520d829dd4da6022fe88832a)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/spacemit,k1-pll.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: SpacemiT K1 PLL
8
9maintainers:
10  - Haylen Chu <heylenay@4d2.org>
11
12properties:
13  compatible:
14    const: spacemit,k1-pll
15
16  reg:
17    maxItems: 1
18
19  clocks:
20    description: External 24MHz oscillator
21
22  spacemit,mpmu:
23    $ref: /schemas/types.yaml#/definitions/phandle
24    description:
25      Phandle to the "Main PMU (MPMU)" syscon. It is used to check PLL
26      lock status.
27
28  "#clock-cells":
29    const: 1
30    description:
31      See <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices.
32
33required:
34  - compatible
35  - reg
36  - clocks
37  - spacemit,mpmu
38  - "#clock-cells"
39
40additionalProperties: false
41
42examples:
43  - |
44    clock-controller@d4090000 {
45        compatible = "spacemit,k1-pll";
46        reg = <0xd4090000 0x1000>;
47        clocks = <&vctcxo_24m>;
48        spacemit,mpmu = <&sysctl_mpmu>;
49        #clock-cells = <1>;
50    };
51