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

dt-bindings: clock: versaclock3: Add description for #clock-cells property

Add description for "#clock-cells" property to map indexes to the clock
output in the Table 3. ("Output Source") in the 5P35023 datasheet
(ie: {REF,SE1,SE2,SE3,DIFF1,DIFF2}. Also update the "assigned-clock-rates"
in the example.

While at it, replace clocks phandle in the example from x1_x2->x1 as
X2 is a different 32768 kHz crystal.

Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230824104812.147775-2-biju.das.jz@bp.renesas.com
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Biju Das and committed by
Stephen Boyd
1aa2a9f2 0bb80ecc

+7 -4
+7 -4
Documentation/devicetree/bindings/clock/renesas,5p35023.yaml
··· 37 37 maxItems: 1 38 38 39 39 '#clock-cells': 40 + description: 41 + The index in the assigned-clocks is mapped to the output clock as below 42 + 0 - REF, 1 - SE1, 2 - SE2, 3 - SE3, 4 - DIFF1, 5 - DIFF2. 40 43 const: 1 41 44 42 45 clocks: ··· 71 68 reg = <0x68>; 72 69 #clock-cells = <1>; 73 70 74 - clocks = <&x1_x2>; 71 + clocks = <&x1>; 75 72 76 73 renesas,settings = [ 77 74 80 00 11 19 4c 02 23 7f 83 19 08 a9 5f 25 24 bf ··· 82 79 assigned-clocks = <&versa3 0>, <&versa3 1>, 83 80 <&versa3 2>, <&versa3 3>, 84 81 <&versa3 4>, <&versa3 5>; 85 - assigned-clock-rates = <12288000>, <25000000>, 86 - <12000000>, <11289600>, 87 - <11289600>, <24000000>; 82 + assigned-clock-rates = <24000000>, <11289600>, 83 + <11289600>, <12000000>, 84 + <25000000>, <12288000>; 88 85 }; 89 86 };