@@ -17,7 +17,9 @@ description: |
17
17
properties :
18
18
compatible :
19
19
oneOf :
20
- - const : xlnx,versal-clk
20
+ - enum :
21
+ - xlnx,versal-clk
22
+ - xlnx,zynqmp-clk
21
23
- items :
22
24
- enum :
23
25
- xlnx,versal-net-clk
@@ -29,16 +31,12 @@ properties:
29
31
clocks :
30
32
description : List of clock specifiers which are external input
31
33
clocks to the given clock controller.
32
- items :
33
- - description : reference clock
34
- - description : alternate reference clock
35
- - description : alternate reference clock for programmable logic
34
+ minItems : 3
35
+ maxItems : 8
36
36
37
37
clock-names :
38
- items :
39
- - const : ref
40
- - const : alt_ref
41
- - const : pl_alt_ref
38
+ minItems : 3
39
+ maxItems : 8
42
40
43
41
required :
44
42
- compatible
@@ -48,6 +46,61 @@ required:
48
46
49
47
additionalProperties : false
50
48
49
+ allOf :
50
+ - if :
51
+ properties :
52
+ compatible :
53
+ contains :
54
+ enum :
55
+ - xlnx,versal-clk
56
+
57
+ then :
58
+ properties :
59
+ clocks :
60
+ items :
61
+ - description : reference clock
62
+ - description : alternate reference clock
63
+ - description : alternate reference clock for programmable logic
64
+
65
+ clock-names :
66
+ items :
67
+ - const : ref
68
+ - const : alt_ref
69
+ - const : pl_alt_ref
70
+
71
+ - if :
72
+ properties :
73
+ compatible :
74
+ contains :
75
+ enum :
76
+ - xlnx,zynqmp-clk
77
+
78
+ then :
79
+ properties :
80
+ clocks :
81
+ minItems : 5
82
+ items :
83
+ - description : PS reference clock
84
+ - description : reference clock for video system
85
+ - description : alternative PS reference clock
86
+ - description : auxiliary reference clock
87
+ - description : transceiver reference clock
88
+ - description : (E)MIO clock source (Optional clock)
89
+ - description : GEM emio clock (Optional clock)
90
+ - description : Watchdog external clock (Optional clock)
91
+
92
+ clock-names :
93
+ minItems : 5
94
+ items :
95
+ - const : pss_ref_clk
96
+ - const : video_clk
97
+ - const : pss_alt_ref_clk
98
+ - const : aux_ref_clk
99
+ - const : gt_crx_ref_clk
100
+ - pattern : " ^mio_clk[00-77]+.*$"
101
+ - pattern : " gem[0-3]+_emio_clk.*$"
102
+ - pattern : " swdt[0-1]+_ext_clk.*$"
103
+
51
104
examples :
52
105
- |
53
106
firmware {
@@ -62,4 +115,13 @@ examples:
62
115
};
63
116
};
64
117
};
118
+
119
+ clock-controller {
120
+ #clock-cells = <1>;
121
+ compatible = "xlnx,zynqmp-clk";
122
+ clocks = <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>,
123
+ <&aux_ref_clk>, <>_crx_ref_clk>;
124
+ clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk",
125
+ "aux_ref_clk", "gt_crx_ref_clk";
126
+ };
65
127
...
0 commit comments