Skip to content

Commit 3b1db05

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: renesas: Make example 'clocks' parsable
'clocks' in the example is not parsable with the 0 phandle value because the number of #clock-cells is unknown in the previous entry. Solve this by adding the clock provider node. Only 'cpg_clocks' is needed as the examples are built with fixups which can be used to identify phandles. This is in preparation to support schema validation on .dtb files. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220301190400.1644150-1-robh@kernel.org Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 892e0dd commit 3b1db05

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/devicetree/bindings/clock/renesas,cpg-div6-clock.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ additionalProperties: false
5151
examples:
5252
- |
5353
#include <dt-bindings/clock/r8a73a4-clock.h>
54+
55+
cpg_clocks: cpg_clocks@e6150000 {
56+
compatible = "renesas,r8a73a4-cpg-clocks";
57+
reg = <0xe6150000 0x10000>;
58+
clocks = <&extal1_clk>, <&extal2_clk>;
59+
#clock-cells = <1>;
60+
clock-output-names = "main", "pll0", "pll1", "pll2",
61+
"pll2s", "pll2h", "z", "z2",
62+
"i", "m3", "b", "m1", "m2",
63+
"zx", "zs", "hp";
64+
};
65+
5466
sdhi2_clk: sdhi2_clk@e615007c {
5567
compatible = "renesas,r8a73a4-div6-clock", "renesas,cpg-div6-clock";
5668
reg = <0xe615007c 4>;

0 commit comments

Comments
 (0)