Skip to content

Commit 03d4a10

Browse files
shubhraamdbebarino
authored andcommitted
dt-bindings: clock: versal: Convert the xlnx,zynqmp-clk.txt to yaml
Convert the xlnx,zynqmp-clk.txt to yaml. versal-clk.yaml already exists that's why ZynqMP is converted and merged. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com> Link: https://lore.kernel.org/r/20230802043557.26478-1-shubhrajyoti.datta@amd.com Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 172044e commit 03d4a10

File tree

2 files changed

+71
-72
lines changed

2 files changed

+71
-72
lines changed

Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml

Lines changed: 71 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ description: |
1717
properties:
1818
compatible:
1919
oneOf:
20-
- const: xlnx,versal-clk
20+
- enum:
21+
- xlnx,versal-clk
22+
- xlnx,zynqmp-clk
2123
- items:
2224
- enum:
2325
- xlnx,versal-net-clk
@@ -29,16 +31,12 @@ properties:
2931
clocks:
3032
description: List of clock specifiers which are external input
3133
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
3636

3737
clock-names:
38-
items:
39-
- const: ref
40-
- const: alt_ref
41-
- const: pl_alt_ref
38+
minItems: 3
39+
maxItems: 8
4240

4341
required:
4442
- compatible
@@ -48,6 +46,61 @@ required:
4846

4947
additionalProperties: false
5048

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+
51104
examples:
52105
- |
53106
firmware {
@@ -62,4 +115,13 @@ examples:
62115
};
63116
};
64117
};
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>, <&gt_crx_ref_clk>;
124+
clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk",
125+
"aux_ref_clk", "gt_crx_ref_clk";
126+
};
65127
...

Documentation/devicetree/bindings/clock/xlnx,zynqmp-clk.txt

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)