xref: /freebsd/sys/contrib/device-tree/Bindings/clock/st/st,clkgen.txt (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1Binding for a Clockgen hardware block found on
2certain STMicroelectronics consumer electronics SoC devices.
3
4A Clockgen node can contain pll, diviser or multiplexer nodes.
5
6We will find only the base address of the Clockgen, this base
7address is common of all subnode.
8
9	clockgen_node {
10		reg = <>;
11
12		pll_node {
13			...
14		};
15
16		quadfs_node {
17			...
18		};
19
20		mux_node {
21			...
22		};
23
24		flexgen_node {
25			...
26		};
27		...
28	};
29
30This binding uses the common clock binding[1].
31Each subnode should use the binding described in [2]..[7]
32
33[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
34[3] Documentation/devicetree/bindings/clock/st/st,clkgen-mux.txt
35[4] Documentation/devicetree/bindings/clock/st/st,clkgen-pll.txt
36[7] Documentation/devicetree/bindings/clock/st/st,quadfs.txt
37[8] Documentation/devicetree/bindings/clock/st/st,flexgen.txt
38
39
40Required properties:
41- reg : A Base address and length of the register set.
42
43Example:
44
45	clockgen-a@90ff000 {
46		compatible = "st,clkgen-c32";
47		reg = <0x90ff000 0x1000>;
48
49		clk_s_a0_pll: clk-s-a0-pll {
50			#clock-cells = <1>;
51			compatible = "st,clkgen-pll0";
52
53			clocks = <&clk_sysin>;
54
55			clock-output-names = "clk-s-a0-pll-ofd-0";
56		};
57
58		clk_s_a0_flexgen: clk-s-a0-flexgen {
59			compatible = "st,flexgen";
60
61			#clock-cells = <1>;
62
63			clocks = <&clk_s_a0_pll 0>,
64				 <&clk_sysin>;
65
66			clock-output-names = "clk-ic-lmi0";
67		};
68	};
69