Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clock: add Amlogic C3 PLL clock controller

Add the PLL clock controller dt-bindings for Amlogic C3 SoC family.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Co-developed-by: Chuan Liu <chuan.liu@amlogic.com>
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://lore.kernel.org/r/20240522082727.3029656-2-xianwei.zhao@amlogic.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>

authored by

Xianwei Zhao and committed by
Jerome Brunet
0e6be855 23dc5f7e

+99
+59
Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/clock/amlogic,c3-pll-clkc.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Amlogic C3 series PLL Clock Controller 9 + 10 + maintainers: 11 + - Neil Armstrong <neil.armstrong@linaro.org> 12 + - Jerome Brunet <jbrunet@baylibre.com> 13 + - Chuan Liu <chuan.liu@amlogic.com> 14 + - Xianwei Zhao <xianwei.zhao@amlogic.com> 15 + 16 + properties: 17 + compatible: 18 + const: amlogic,c3-pll-clkc 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + clocks: 24 + items: 25 + - description: input top pll 26 + - description: input mclk pll 27 + 28 + clock-names: 29 + items: 30 + - const: top 31 + - const: mclk 32 + 33 + "#clock-cells": 34 + const: 1 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - clocks 40 + - clock-names 41 + - "#clock-cells" 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + apb { 48 + #address-cells = <2>; 49 + #size-cells = <2>; 50 + 51 + clock-controller@8000 { 52 + compatible = "amlogic,c3-pll-clkc"; 53 + reg = <0x0 0x8000 0x0 0x1a4>; 54 + clocks = <&scmi_clk 2>, 55 + <&scmi_clk 5>; 56 + clock-names = "top", "mclk"; 57 + #clock-cells = <1>; 58 + }; 59 + };
+40
include/dt-bindings/clock/amlogic,c3-pll-clkc.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ 2 + /* 3 + * Copyright (c) 2023 Amlogic, Inc. All rights reserved. 4 + * Author: Chuan Liu <chuan.liu@amlogic.com> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_CLOCK_AMLOGIC_C3_PLL_CLKC_H 8 + #define _DT_BINDINGS_CLOCK_AMLOGIC_C3_PLL_CLKC_H 9 + 10 + #define CLKID_FCLK_50M_EN 0 11 + #define CLKID_FCLK_50M 1 12 + #define CLKID_FCLK_DIV2_DIV 2 13 + #define CLKID_FCLK_DIV2 3 14 + #define CLKID_FCLK_DIV2P5_DIV 4 15 + #define CLKID_FCLK_DIV2P5 5 16 + #define CLKID_FCLK_DIV3_DIV 6 17 + #define CLKID_FCLK_DIV3 7 18 + #define CLKID_FCLK_DIV4_DIV 8 19 + #define CLKID_FCLK_DIV4 9 20 + #define CLKID_FCLK_DIV5_DIV 10 21 + #define CLKID_FCLK_DIV5 11 22 + #define CLKID_FCLK_DIV7_DIV 12 23 + #define CLKID_FCLK_DIV7 13 24 + #define CLKID_GP0_PLL_DCO 14 25 + #define CLKID_GP0_PLL 15 26 + #define CLKID_HIFI_PLL_DCO 16 27 + #define CLKID_HIFI_PLL 17 28 + #define CLKID_MCLK_PLL_DCO 18 29 + #define CLKID_MCLK_PLL_OD 19 30 + #define CLKID_MCLK_PLL 20 31 + #define CLKID_MCLK0_SEL 21 32 + #define CLKID_MCLK0_SEL_EN 22 33 + #define CLKID_MCLK0_DIV 23 34 + #define CLKID_MCLK0 24 35 + #define CLKID_MCLK1_SEL 25 36 + #define CLKID_MCLK1_SEL_EN 26 37 + #define CLKID_MCLK1_DIV 27 38 + #define CLKID_MCLK1 28 39 + 40 + #endif /* _DT_BINDINGS_CLOCK_AMLOGIC_C3_PLL_CLKC_H */