xref: /linux/Documentation/devicetree/bindings/clock/moxa,moxart-clock.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*c7bb4fc1SJonas JensenDevice Tree Clock bindings for arch-moxart
2*c7bb4fc1SJonas Jensen
3*c7bb4fc1SJonas JensenThis binding uses the common clock binding[1].
4*c7bb4fc1SJonas Jensen
5*c7bb4fc1SJonas Jensen[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6*c7bb4fc1SJonas Jensen
7*c7bb4fc1SJonas JensenMOXA ART SoCs allow to determine PLL output and APB frequencies
8*c7bb4fc1SJonas Jensenby reading registers holding multiplier and divisor information.
9*c7bb4fc1SJonas Jensen
10*c7bb4fc1SJonas Jensen
11*c7bb4fc1SJonas JensenPLL:
12*c7bb4fc1SJonas Jensen
13*c7bb4fc1SJonas JensenRequired properties:
14*c7bb4fc1SJonas Jensen- compatible : Must be "moxa,moxart-pll-clock"
15*c7bb4fc1SJonas Jensen- #clock-cells : Should be 0
16*c7bb4fc1SJonas Jensen- reg : Should contain registers location and length
17*c7bb4fc1SJonas Jensen- clocks : Should contain phandle + clock-specifier for the parent clock
18*c7bb4fc1SJonas Jensen
19*c7bb4fc1SJonas JensenOptional properties:
20*c7bb4fc1SJonas Jensen- clock-output-names : Should contain clock name
21*c7bb4fc1SJonas Jensen
22*c7bb4fc1SJonas Jensen
23*c7bb4fc1SJonas JensenAPB:
24*c7bb4fc1SJonas Jensen
25*c7bb4fc1SJonas JensenRequired properties:
26*c7bb4fc1SJonas Jensen- compatible : Must be "moxa,moxart-apb-clock"
27*c7bb4fc1SJonas Jensen- #clock-cells : Should be 0
28*c7bb4fc1SJonas Jensen- reg : Should contain registers location and length
29*c7bb4fc1SJonas Jensen- clocks : Should contain phandle + clock-specifier for the parent clock
30*c7bb4fc1SJonas Jensen
31*c7bb4fc1SJonas JensenOptional properties:
32*c7bb4fc1SJonas Jensen- clock-output-names : Should contain clock name
33*c7bb4fc1SJonas Jensen
34*c7bb4fc1SJonas Jensen
35*c7bb4fc1SJonas JensenFor example:
36*c7bb4fc1SJonas Jensen
37*c7bb4fc1SJonas Jensen	clk_pll: clk_pll@98100000 {
38*c7bb4fc1SJonas Jensen		compatible = "moxa,moxart-pll-clock";
39*c7bb4fc1SJonas Jensen		#clock-cells = <0>;
40*c7bb4fc1SJonas Jensen		reg = <0x98100000 0x34>;
41*c7bb4fc1SJonas Jensen	};
42*c7bb4fc1SJonas Jensen
43*c7bb4fc1SJonas Jensen	clk_apb: clk_apb@98100000 {
44*c7bb4fc1SJonas Jensen		compatible = "moxa,moxart-apb-clock";
45*c7bb4fc1SJonas Jensen		#clock-cells = <0>;
46*c7bb4fc1SJonas Jensen		reg = <0x98100000 0x34>;
47*c7bb4fc1SJonas Jensen		clocks = <&clk_pll>;
48*c7bb4fc1SJonas Jensen	};
49