xref: /freebsd/sys/contrib/device-tree/Bindings/clock/marvell,berlin.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotDevice Tree Clock bindings for Marvell Berlin
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis binding uses the common clock binding[1].
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotClock related registers are spread among the chip control registers. Berlin
8*c66ec88fSEmmanuel Vadotclock node should be a sub-node of the chip controller node. Marvell Berlin2
9*c66ec88fSEmmanuel Vadot(BG2, BG2CD, BG2Q) SoCs share the same IP for PLLs and clocks, with some
10*c66ec88fSEmmanuel Vadotminor differences in features and register layout.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotRequired properties:
13*c66ec88fSEmmanuel Vadot- compatible: must be "marvell,berlin2-clk" or "marvell,berlin2q-clk"
14*c66ec88fSEmmanuel Vadot- #clock-cells: must be 1
15*c66ec88fSEmmanuel Vadot- clocks: must be the input parent clock phandle
16*c66ec88fSEmmanuel Vadot- clock-names: name of the input parent clock
17*c66ec88fSEmmanuel Vadot	Allowed clock-names for the reference clocks are
18*c66ec88fSEmmanuel Vadot	"refclk" for the SoCs oscillator input on all SoCs,
19*c66ec88fSEmmanuel Vadot	and SoC-specific input clocks for
20*c66ec88fSEmmanuel Vadot	BG2/BG2CD: "video_ext0" for the external video clock input
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadotchip_clk: clock {
26*c66ec88fSEmmanuel Vadot	compatible = "marvell,berlin2q-clk";
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot	#clock-cells = <1>;
29*c66ec88fSEmmanuel Vadot	clocks = <&refclk>;
30*c66ec88fSEmmanuel Vadot	clock-names = "refclk";
31*c66ec88fSEmmanuel Vadot};
32