| 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 |
|
| 7 |
title: SpacemiT K1/K3 PLL |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Haylen Chu <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
enum: |
| 15 |
- spacemit,k1-pll |
| 16 |
- spacemit,k3-pll |
| 17 |
|
| 18 |
reg: |
| 19 |
maxItems: 1 |
| 20 |
|
| 21 |
clocks: |
| 22 |
description: External 24MHz oscillator |
| 23 |
|
| 24 |
spacemit,mpmu: |
| 25 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 26 |
description: |
| 27 |
Phandle to the "Main PMU (MPMU)" syscon. It is used to check PLL |
| 28 |
lock status. |
| 29 |
|
| 30 |
"#clock-cells": |
| 31 |
const: 1 |
| 32 |
description: |
| 33 |
For K1 SoC, check <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices. |
| 34 |
For K3 SoC, check <dt-bindings/clock/spacemit,k3-clocks.h> for valid indices. |
| 35 |
|
| 36 |
required: |
| 37 |
- compatible |
| 38 |
- reg |
| 39 |
- clocks |
| 40 |
- spacemit,mpmu |
| 41 |
- "#clock-cells" |
| 42 |
|
| 43 |
additionalProperties: false |
| 44 |
|
| 45 |
examples: |
| 46 |
- | |
| 47 |
clock-controller@d4090000 { |
| 48 |
compatible = "spacemit,k1-pll"; |
| 49 |
reg = <0xd4090000 0x1000>; |
| 50 |
clocks = <&vctcxo_24m>; |
| 51 |
spacemit,mpmu = <&sysctl_mpmu>; |
| 52 |
#clock-cells = <1>; |
| 53 |
}; |