@@ -9,20 +9,120 @@ title: Altera SOCFPGA Clock Manager
9
9
maintainers :
10
10
11
11
12
- description : test
12
+ description :
13
+ This binding describes the Altera SOCFGPA Clock Manager and its associated
14
+ tree of clocks, pll's, and clock gates for the Cyclone5, Arria5 and Arria10
15
+ chip families.
13
16
14
17
properties :
15
18
compatible :
16
19
items :
17
20
- const : altr,clk-mgr
21
+
18
22
reg :
19
23
maxItems : 1
20
24
25
+ clocks :
26
+ type : object
27
+ additionalProperties : false
28
+
29
+ properties :
30
+ " #address-cells " :
31
+ const : 1
32
+
33
+ " #size-cells " :
34
+ const : 0
35
+
36
+ patternProperties :
37
+ " ^osc[0-9]$ " :
38
+ type : object
39
+
40
+ " ^[a-z0-9,_]+(clk|pll|clk_gate|clk_divided)(@[a-f0-9]+)?$ " :
41
+ type : object
42
+ $ref : ' #/$defs/clock-props'
43
+ unevaluatedProperties : false
44
+
45
+ properties :
46
+ compatible :
47
+ enum :
48
+ - altr,socfpga-pll-clock
49
+ - altr,socfpga-perip-clk
50
+ - altr,socfpga-gate-clk
51
+ - altr,socfpga-a10-pll-clock
52
+ - altr,socfpga-a10-perip-clk
53
+ - altr,socfpga-a10-gate-clk
54
+ - fixed-clock
55
+
56
+ clocks :
57
+ description : one or more phandles to input clock
58
+ minItems : 1
59
+ maxItems : 5
60
+
61
+ " #address-cells " :
62
+ const : 1
63
+
64
+ " #size-cells " :
65
+ const : 0
66
+
67
+ patternProperties :
68
+ " ^[a-z0-9,_]+(clk|pll)(@[a-f0-9]+)?$ " :
69
+ type : object
70
+ $ref : ' #/$defs/clock-props'
71
+ unevaluatedProperties : false
72
+
73
+ properties :
74
+ compatible :
75
+ enum :
76
+ - altr,socfpga-perip-clk
77
+ - altr,socfpga-gate-clk
78
+ - altr,socfpga-a10-perip-clk
79
+ - altr,socfpga-a10-gate-clk
80
+
81
+ clocks :
82
+ description : one or more phandles to input clock
83
+ minItems : 1
84
+ maxItems : 4
85
+
86
+ required :
87
+ - compatible
88
+ - clocks
89
+ - " #clock-cells"
90
+
91
+ required :
92
+ - compatible
93
+ - " #clock-cells"
94
+
21
95
required :
22
96
- compatible
97
+ - reg
23
98
24
99
additionalProperties : false
25
100
101
+ $defs :
102
+ clock-props :
103
+ properties :
104
+ reg :
105
+ maxItems : 1
106
+
107
+ " #clock-cells " :
108
+ const : 0
109
+
110
+ clk-gate :
111
+ $ref : /schemas/types.yaml#/definitions/uint32-array
112
+ items :
113
+ - description : gating register offset
114
+ - description : bit index
115
+
116
+ div-reg :
117
+ $ref : /schemas/types.yaml#/definitions/uint32-array
118
+ items :
119
+ - description : divider register offset
120
+ - description : bit shift
121
+ - description : bit width
122
+
123
+ fixed-divider :
124
+ $ref : /schemas/types.yaml#/definitions/uint32
125
+
26
126
examples :
27
127
- |
28
128
clkmgr@ffd04000 {
0 commit comments