File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed
Documentation/devicetree/bindings/clock
include/dt-bindings/clock Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2
+ %YAML 1.2
3
+ ---
4
+ $id : http://devicetree.org/schemas/clock/starfive,jh7110-pll.yaml#
5
+ $schema : http://devicetree.org/meta-schemas/core.yaml#
6
+
7
+ title : StarFive JH7110 PLL Clock Generator
8
+
9
+ description :
10
+ These PLLs are high speed, low jitter frequency synthesizers in the JH7110.
11
+ Each PLL works in integer mode or fraction mode, with configuration
12
+ registers in the sys syscon. So the PLLs node should be a child of
13
+ SYS-SYSCON node.
14
+ The formula for calculating frequency is
15
+ Fvco = Fref * (NI + NF) / M / Q1
16
+
17
+ maintainers :
18
+ - Xingyu Wu <xingyu.wu@starfivetech.com>
19
+
20
+ properties :
21
+ compatible :
22
+ const : starfive,jh7110-pll
23
+
24
+ clocks :
25
+ maxItems : 1
26
+ description : Main Oscillator (24 MHz)
27
+
28
+ ' #clock-cells ' :
29
+ const : 1
30
+ description :
31
+ See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices.
32
+
33
+ required :
34
+ - compatible
35
+ - clocks
36
+ - ' #clock-cells'
37
+
38
+ additionalProperties : false
39
+
40
+ examples :
41
+ - |
42
+ clock-controller {
43
+ compatible = "starfive,jh7110-pll";
44
+ clocks = <&osc>;
45
+ #clock-cells = <1>;
46
+ };
Original file line number Diff line number Diff line change 6
6
#ifndef __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__
7
7
#define __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__
8
8
9
+ /* PLL clocks */
10
+ #define JH7110_PLLCLK_PLL0_OUT 0
11
+ #define JH7110_PLLCLK_PLL1_OUT 1
12
+ #define JH7110_PLLCLK_PLL2_OUT 2
13
+ #define JH7110_PLLCLK_END 3
14
+
9
15
/* SYSCRG clocks */
10
16
#define JH7110_SYSCLK_CPU_ROOT 0
11
17
#define JH7110_SYSCLK_CPU_CORE 1
You can’t perform that action at this time.
0 commit comments