Skip to content

Commit 923a77a

Browse files
Yu Tujbrun3t
authored andcommitted
dt-bindings: clock: document Amlogic S4 SoC PLL clock controller
Add the S4 PLL clock controller dt-bindings in the S4 SoC family. Signed-off-by: Yu Tu <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jerome Brunet <[email protected]>
1 parent 0bb80ec commit 923a77a

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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,s4-pll-clkc.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Amlogic S4 PLL Clock Controller
9+
10+
maintainers:
11+
12+
13+
properties:
14+
compatible:
15+
const: amlogic,s4-pll-clkc
16+
17+
reg:
18+
maxItems: 1
19+
20+
clocks:
21+
maxItems: 1
22+
23+
clock-names:
24+
items:
25+
- const: xtal
26+
27+
"#clock-cells":
28+
const: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- clocks
34+
- clock-names
35+
- "#clock-cells"
36+
37+
additionalProperties: false
38+
39+
examples:
40+
- |
41+
clkc_pll: clock-controller@fe008000 {
42+
compatible = "amlogic,s4-pll-clkc";
43+
reg = <0xfe008000 0x1e8>;
44+
clocks = <&xtal>;
45+
clock-names = "xtal";
46+
#clock-cells = <1>;
47+
};
48+
49+
...
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2+
/*
3+
* Copyright (c) 2022-2023 Amlogic, Inc. All rights reserved.
4+
* Author: Yu Tu <[email protected]>
5+
*/
6+
7+
#ifndef _DT_BINDINGS_CLOCK_AMLOGIC_S4_PLL_CLKC_H
8+
#define _DT_BINDINGS_CLOCK_AMLOGIC_S4_PLL_CLKC_H
9+
10+
#define CLKID_FIXED_PLL_DCO 0
11+
#define CLKID_FIXED_PLL 1
12+
#define CLKID_FCLK_DIV2_DIV 2
13+
#define CLKID_FCLK_DIV2 3
14+
#define CLKID_FCLK_DIV3_DIV 4
15+
#define CLKID_FCLK_DIV3 5
16+
#define CLKID_FCLK_DIV4_DIV 6
17+
#define CLKID_FCLK_DIV4 7
18+
#define CLKID_FCLK_DIV5_DIV 8
19+
#define CLKID_FCLK_DIV5 9
20+
#define CLKID_FCLK_DIV7_DIV 10
21+
#define CLKID_FCLK_DIV7 11
22+
#define CLKID_FCLK_DIV2P5_DIV 12
23+
#define CLKID_FCLK_DIV2P5 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_HDMI_PLL_DCO 18
29+
#define CLKID_HDMI_PLL_OD 19
30+
#define CLKID_HDMI_PLL 20
31+
#define CLKID_MPLL_50M_DIV 21
32+
#define CLKID_MPLL_50M 22
33+
#define CLKID_MPLL_PREDIV 23
34+
#define CLKID_MPLL0_DIV 24
35+
#define CLKID_MPLL0 25
36+
#define CLKID_MPLL1_DIV 26
37+
#define CLKID_MPLL1 27
38+
#define CLKID_MPLL2_DIV 28
39+
#define CLKID_MPLL2 29
40+
#define CLKID_MPLL3_DIV 30
41+
#define CLKID_MPLL3 31
42+
43+
#endif /* _DT_BINDINGS_CLOCK_AMLOGIC_S4_PLL_CLKC_H */

0 commit comments

Comments
 (0)