mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 17:51:23 +00:00

Add definition for the PLL found on SpacemiT K1 SoC, which takes the external 24MHz oscillator as input and generates clocks in various frequencies for the system. Signed-off-by: Haylen Chu <heylenay@4d2.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Alex Elder <elder@riscstar.com> Reviewed-by: Yixun Lan <dlan@gentoo.org> Link: https://lore.kernel.org/r/20250416135406.16284-3-heylenay@4d2.org Signed-off-by: Yixun Lan <dlan@gentoo.org>
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/clock/spacemit,k1-pll.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: SpacemiT K1 PLL
|
|
|
|
maintainers:
|
|
- Haylen Chu <heylenay@4d2.org>
|
|
|
|
properties:
|
|
compatible:
|
|
const: spacemit,k1-pll
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
description: External 24MHz oscillator
|
|
|
|
spacemit,mpmu:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description:
|
|
Phandle to the "Main PMU (MPMU)" syscon. It is used to check PLL
|
|
lock status.
|
|
|
|
"#clock-cells":
|
|
const: 1
|
|
description:
|
|
See <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices.
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- spacemit,mpmu
|
|
- "#clock-cells"
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
clock-controller@d4090000 {
|
|
compatible = "spacemit,k1-pll";
|
|
reg = <0xd4090000 0x1000>;
|
|
clocks = <&vctcxo_24m>;
|
|
spacemit,mpmu = <&sysctl_mpmu>;
|
|
#clock-cells = <1>;
|
|
};
|