xref: /freebsd/sys/contrib/device-tree/src/arm/broadcom/bcm-cygnus-clock.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot/*
2*f126890aSEmmanuel Vadot *  BSD LICENSE
3*f126890aSEmmanuel Vadot *
4*f126890aSEmmanuel Vadot *  Copyright(c) 2014 Broadcom Corporation.  All rights reserved.
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot *  Redistribution and use in source and binary forms, with or without
7*f126890aSEmmanuel Vadot *  modification, are permitted provided that the following conditions
8*f126890aSEmmanuel Vadot *  are met:
9*f126890aSEmmanuel Vadot *
10*f126890aSEmmanuel Vadot *    * Redistributions of source code must retain the above copyright
11*f126890aSEmmanuel Vadot *      notice, this list of conditions and the following disclaimer.
12*f126890aSEmmanuel Vadot *    * Redistributions in binary form must reproduce the above copyright
13*f126890aSEmmanuel Vadot *      notice, this list of conditions and the following disclaimer in
14*f126890aSEmmanuel Vadot *      the documentation and/or other materials provided with the
15*f126890aSEmmanuel Vadot *      distribution.
16*f126890aSEmmanuel Vadot *    * Neither the name of Broadcom Corporation nor the names of its
17*f126890aSEmmanuel Vadot *      contributors may be used to endorse or promote products derived
18*f126890aSEmmanuel Vadot *      from this software without specific prior written permission.
19*f126890aSEmmanuel Vadot *
20*f126890aSEmmanuel Vadot *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21*f126890aSEmmanuel Vadot *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*f126890aSEmmanuel Vadot *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23*f126890aSEmmanuel Vadot *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24*f126890aSEmmanuel Vadot *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25*f126890aSEmmanuel Vadot *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26*f126890aSEmmanuel Vadot *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27*f126890aSEmmanuel Vadot *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28*f126890aSEmmanuel Vadot *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*f126890aSEmmanuel Vadot *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30*f126890aSEmmanuel Vadot * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*f126890aSEmmanuel Vadot */
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadotclocks {
34*f126890aSEmmanuel Vadot	#address-cells = <1>;
35*f126890aSEmmanuel Vadot	#size-cells = <1>;
36*f126890aSEmmanuel Vadot	ranges;
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot	osc: oscillator {
39*f126890aSEmmanuel Vadot		#clock-cells = <0>;
40*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
41*f126890aSEmmanuel Vadot		clock-frequency = <25000000>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	/* Cygnus ARM PLL */
45*f126890aSEmmanuel Vadot	armpll: armpll@19000000 {
46*f126890aSEmmanuel Vadot		#clock-cells = <0>;
47*f126890aSEmmanuel Vadot		compatible = "brcm,cygnus-armpll";
48*f126890aSEmmanuel Vadot		clocks = <&osc>;
49*f126890aSEmmanuel Vadot		reg = <0x19000000 0x1000>;
50*f126890aSEmmanuel Vadot	};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot	/* peripheral clock for system timer */
53*f126890aSEmmanuel Vadot	periph_clk: arm_periph_clk {
54*f126890aSEmmanuel Vadot		#clock-cells = <0>;
55*f126890aSEmmanuel Vadot		compatible = "fixed-factor-clock";
56*f126890aSEmmanuel Vadot		clocks = <&armpll>;
57*f126890aSEmmanuel Vadot		clock-div = <2>;
58*f126890aSEmmanuel Vadot		clock-mult = <1>;
59*f126890aSEmmanuel Vadot	};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot	/* APB bus clock */
62*f126890aSEmmanuel Vadot	apb_clk: apb_clk {
63*f126890aSEmmanuel Vadot		#clock-cells = <0>;
64*f126890aSEmmanuel Vadot		compatible = "fixed-factor-clock";
65*f126890aSEmmanuel Vadot		clocks = <&armpll>;
66*f126890aSEmmanuel Vadot		clock-div = <4>;
67*f126890aSEmmanuel Vadot		clock-mult = <1>;
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot	genpll: genpll@301d000 {
71*f126890aSEmmanuel Vadot		#clock-cells = <1>;
72*f126890aSEmmanuel Vadot		compatible = "brcm,cygnus-genpll";
73*f126890aSEmmanuel Vadot		reg = <0x0301d000 0x2c>, <0x0301c020 0x4>;
74*f126890aSEmmanuel Vadot		clocks = <&osc>;
75*f126890aSEmmanuel Vadot		clock-output-names = "genpll", "axi21", "250mhz", "ihost_sys",
76*f126890aSEmmanuel Vadot				     "enet_sw", "audio_125", "can";
77*f126890aSEmmanuel Vadot	};
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot	/* always 1/2 of the axi21 clock */
80*f126890aSEmmanuel Vadot	axi41_clk: axi41_clk {
81*f126890aSEmmanuel Vadot		#clock-cells = <0>;
82*f126890aSEmmanuel Vadot		compatible = "fixed-factor-clock";
83*f126890aSEmmanuel Vadot		clocks = <&genpll 1>;
84*f126890aSEmmanuel Vadot		clock-div = <2>;
85*f126890aSEmmanuel Vadot		clock-mult = <1>;
86*f126890aSEmmanuel Vadot	};
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot	/* always 1/4 of the axi21 clock */
89*f126890aSEmmanuel Vadot	axi81_clk: axi81_clk {
90*f126890aSEmmanuel Vadot		#clock-cells = <0>;
91*f126890aSEmmanuel Vadot		compatible = "fixed-factor-clock";
92*f126890aSEmmanuel Vadot		clocks = <&genpll 1>;
93*f126890aSEmmanuel Vadot		clock-div = <4>;
94*f126890aSEmmanuel Vadot		clock-mult = <1>;
95*f126890aSEmmanuel Vadot	};
96*f126890aSEmmanuel Vadot
97*f126890aSEmmanuel Vadot	lcpll0: lcpll0@301d02c {
98*f126890aSEmmanuel Vadot		#clock-cells = <1>;
99*f126890aSEmmanuel Vadot		compatible = "brcm,cygnus-lcpll0";
100*f126890aSEmmanuel Vadot		reg = <0x0301d02c 0x1c>, <0x0301c020 0x4>;
101*f126890aSEmmanuel Vadot		clocks = <&osc>;
102*f126890aSEmmanuel Vadot		clock-output-names = "lcpll0", "pcie_phy", "ddr_phy", "sdio",
103*f126890aSEmmanuel Vadot				     "usb_phy", "smart_card", "ch5";
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot	mipipll: mipipll@180a9800 {
107*f126890aSEmmanuel Vadot		#clock-cells = <1>;
108*f126890aSEmmanuel Vadot		compatible = "brcm,cygnus-mipipll";
109*f126890aSEmmanuel Vadot		reg = <0x180a9800 0x2c>, <0x0301c020 0x4>, <0x180aa024 0x4>;
110*f126890aSEmmanuel Vadot		clocks = <&osc>;
111*f126890aSEmmanuel Vadot		clock-output-names = "mipipll", "ch0_unused", "ch1_lcd",
112*f126890aSEmmanuel Vadot				     "ch2_v3d", "ch3_unused", "ch4_unused",
113*f126890aSEmmanuel Vadot				     "ch5_unused";
114*f126890aSEmmanuel Vadot	};
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot	asiu_clks: asiu_clks@301d048 {
117*f126890aSEmmanuel Vadot		#clock-cells = <1>;
118*f126890aSEmmanuel Vadot		compatible = "brcm,cygnus-asiu-clk";
119*f126890aSEmmanuel Vadot		reg = <0x0301d048 0xc>, <0x180aa024 0x4>;
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot		clocks = <&osc>;
122*f126890aSEmmanuel Vadot		clock-output-names = "keypad", "adc/touch", "pwm";
123*f126890aSEmmanuel Vadot	};
124*f126890aSEmmanuel Vadot
125*f126890aSEmmanuel Vadot	audiopll: audiopll@180aeb00 {
126*f126890aSEmmanuel Vadot		#clock-cells = <1>;
127*f126890aSEmmanuel Vadot		compatible = "brcm,cygnus-audiopll";
128*f126890aSEmmanuel Vadot		reg = <0x180aeb00 0x68>;
129*f126890aSEmmanuel Vadot		clocks = <&osc>;
130*f126890aSEmmanuel Vadot		clock-output-names = "audiopll", "ch0_audio",
131*f126890aSEmmanuel Vadot					"ch1_audio", "ch2_audio";
132*f126890aSEmmanuel Vadot	};
133*f126890aSEmmanuel Vadot};
134