Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: Remove alt_ref from versal

The alt_ref is present only in Versal-net devices.
Other versal devices do not have it. So remove alt_ref
for versal.

Fixes: 352546805a44 ("dt-bindings: clock: Add bindings for versal clock driver")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>

Link: https://lore.kernel.org/r/20231128104348.16372-1-shubhrajyoti.datta@amd.com
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Shubhrajyoti Datta and committed by
Stephen Boyd
39118392 b85ea95d

+27 -8
+25 -6
Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml
··· 31 31 clocks: 32 32 description: List of clock specifiers which are external input 33 33 clocks to the given clock controller. 34 - minItems: 3 34 + minItems: 2 35 35 maxItems: 8 36 36 37 37 clock-names: 38 - minItems: 3 38 + minItems: 2 39 39 maxItems: 8 40 40 41 41 required: ··· 59 59 clocks: 60 60 items: 61 61 - description: reference clock 62 - - description: alternate reference clock 63 62 - description: alternate reference clock for programmable logic 64 63 65 64 clock-names: 66 65 items: 67 66 - const: ref 68 - - const: alt_ref 69 67 - const: pl_alt_ref 68 + 69 + - if: 70 + properties: 71 + compatible: 72 + contains: 73 + enum: 74 + - xlnx,versal-net-clk 75 + 76 + then: 77 + properties: 78 + clocks: 79 + items: 80 + - description: reference clock 81 + - description: alternate reference clock for programmable logic 82 + - description: alternate reference clock 83 + 84 + clock-names: 85 + items: 86 + - const: ref 87 + - const: pl_alt_ref 88 + - const: alt_ref 70 89 71 90 - if: 72 91 properties: ··· 129 110 versal_clk: clock-controller { 130 111 #clock-cells = <1>; 131 112 compatible = "xlnx,versal-clk"; 132 - clocks = <&ref>, <&alt_ref>, <&pl_alt_ref>; 133 - clock-names = "ref", "alt_ref", "pl_alt_ref"; 113 + clocks = <&ref>, <&pl_alt_ref>; 114 + clock-names = "ref", "pl_alt_ref"; 134 115 }; 135 116 }; 136 117 };
+2 -2
Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
··· 95 95 versal_clk: clock-controller { 96 96 #clock-cells = <1>; 97 97 compatible = "xlnx,versal-clk"; 98 - clocks = <&ref>, <&alt_ref>, <&pl_alt_ref>; 99 - clock-names = "ref", "alt_ref", "pl_alt_ref"; 98 + clocks = <&ref>, <&pl_alt_ref>; 99 + clock-names = "ref", "pl_alt_ref"; 100 100 }; 101 101 }; 102 102