xref: /freebsd/sys/contrib/device-tree/Bindings/clock/moxa,moxart-clock.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotDevice Tree Clock bindings for arch-moxart
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 VadotMOXA ART SoCs allow to determine PLL output and APB frequencies
8*c66ec88fSEmmanuel Vadotby reading registers holding multiplier and divisor information.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotPLL:
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotRequired properties:
14*c66ec88fSEmmanuel Vadot- compatible : Must be "moxa,moxart-pll-clock"
15*c66ec88fSEmmanuel Vadot- #clock-cells : Should be 0
16*c66ec88fSEmmanuel Vadot- reg : Should contain registers location and length
17*c66ec88fSEmmanuel Vadot- clocks : Should contain phandle + clock-specifier for the parent clock
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotOptional properties:
20*c66ec88fSEmmanuel Vadot- clock-output-names : Should contain clock name
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotAPB:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel VadotRequired properties:
26*c66ec88fSEmmanuel Vadot- compatible : Must be "moxa,moxart-apb-clock"
27*c66ec88fSEmmanuel Vadot- #clock-cells : Should be 0
28*c66ec88fSEmmanuel Vadot- reg : Should contain registers location and length
29*c66ec88fSEmmanuel Vadot- clocks : Should contain phandle + clock-specifier for the parent clock
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel VadotOptional properties:
32*c66ec88fSEmmanuel Vadot- clock-output-names : Should contain clock name
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotFor example:
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot	clk_pll: clk_pll@98100000 {
38*c66ec88fSEmmanuel Vadot		compatible = "moxa,moxart-pll-clock";
39*c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
40*c66ec88fSEmmanuel Vadot		reg = <0x98100000 0x34>;
41*c66ec88fSEmmanuel Vadot	};
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot	clk_apb: clk_apb@98100000 {
44*c66ec88fSEmmanuel Vadot		compatible = "moxa,moxart-apb-clock";
45*c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
46*c66ec88fSEmmanuel Vadot		reg = <0x98100000 0x34>;
47*c66ec88fSEmmanuel Vadot		clocks = <&clk_pll>;
48*c66ec88fSEmmanuel Vadot	};
49