xref: /linux/arch/arm/boot/dts/ti/omap/dm816x-clocks.dtsi (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring
3*724ba675SRob Herring&scrm {
4*724ba675SRob Herring	main_fapll: main_fapll {
5*724ba675SRob Herring		#clock-cells = <1>;
6*724ba675SRob Herring		compatible = "ti,dm816-fapll-clock";
7*724ba675SRob Herring		reg = <0x400 0x40>;
8*724ba675SRob Herring		clocks = <&sys_clkin_ck &sys_clkin_ck>;
9*724ba675SRob Herring		clock-indices = <1>, <2>, <3>, <4>, <5>,
10*724ba675SRob Herring				<6>, <7>;
11*724ba675SRob Herring		clock-output-names = "main_pll_clk1",
12*724ba675SRob Herring				     "main_pll_clk2",
13*724ba675SRob Herring				     "main_pll_clk3",
14*724ba675SRob Herring				     "main_pll_clk4",
15*724ba675SRob Herring				     "main_pll_clk5",
16*724ba675SRob Herring				     "main_pll_clk6",
17*724ba675SRob Herring				     "main_pll_clk7";
18*724ba675SRob Herring	};
19*724ba675SRob Herring
20*724ba675SRob Herring	ddr_fapll: ddr_fapll {
21*724ba675SRob Herring		#clock-cells = <1>;
22*724ba675SRob Herring		compatible = "ti,dm816-fapll-clock";
23*724ba675SRob Herring		reg = <0x440 0x30>;
24*724ba675SRob Herring		clocks = <&sys_clkin_ck &sys_clkin_ck>;
25*724ba675SRob Herring		clock-indices = <1>, <2>, <3>, <4>;
26*724ba675SRob Herring		clock-output-names = "ddr_pll_clk1",
27*724ba675SRob Herring				     "ddr_pll_clk2",
28*724ba675SRob Herring				     "ddr_pll_clk3",
29*724ba675SRob Herring				     "ddr_pll_clk4";
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	video_fapll: video_fapll {
33*724ba675SRob Herring		#clock-cells = <1>;
34*724ba675SRob Herring		compatible = "ti,dm816-fapll-clock";
35*724ba675SRob Herring		reg = <0x470 0x30>;
36*724ba675SRob Herring		clocks = <&sys_clkin_ck &sys_clkin_ck>;
37*724ba675SRob Herring		clock-indices = <1>, <2>, <3>;
38*724ba675SRob Herring		clock-output-names = "video_pll_clk1",
39*724ba675SRob Herring				     "video_pll_clk2",
40*724ba675SRob Herring				     "video_pll_clk3";
41*724ba675SRob Herring	};
42*724ba675SRob Herring
43*724ba675SRob Herring	audio_fapll: audio_fapll {
44*724ba675SRob Herring		#clock-cells = <1>;
45*724ba675SRob Herring		compatible = "ti,dm816-fapll-clock";
46*724ba675SRob Herring		reg = <0x4a0 0x30>;
47*724ba675SRob Herring		clocks = <&main_fapll 7>, < &sys_clkin_ck>;
48*724ba675SRob Herring		clock-indices = <1>, <2>, <3>, <4>, <5>;
49*724ba675SRob Herring		clock-output-names = "audio_pll_clk1",
50*724ba675SRob Herring				     "audio_pll_clk2",
51*724ba675SRob Herring				     "audio_pll_clk3",
52*724ba675SRob Herring				     "audio_pll_clk4",
53*724ba675SRob Herring				     "audio_pll_clk5";
54*724ba675SRob Herring	};
55*724ba675SRob Herring};
56*724ba675SRob Herring
57*724ba675SRob Herring&scrm_clocks {
58*724ba675SRob Herring	secure_32k_ck: secure_32k_ck {
59*724ba675SRob Herring		#clock-cells = <0>;
60*724ba675SRob Herring		compatible = "fixed-clock";
61*724ba675SRob Herring		clock-frequency = <32768>;
62*724ba675SRob Herring	};
63*724ba675SRob Herring
64*724ba675SRob Herring	sys_32k_ck: sys_32k_ck {
65*724ba675SRob Herring		#clock-cells = <0>;
66*724ba675SRob Herring		compatible = "fixed-clock";
67*724ba675SRob Herring		clock-frequency = <32768>;
68*724ba675SRob Herring	};
69*724ba675SRob Herring
70*724ba675SRob Herring	tclkin_ck: tclkin_ck {
71*724ba675SRob Herring		#clock-cells = <0>;
72*724ba675SRob Herring		compatible = "fixed-clock";
73*724ba675SRob Herring		clock-frequency = <32768>;
74*724ba675SRob Herring	};
75*724ba675SRob Herring
76*724ba675SRob Herring	sys_clkin_ck: sys_clkin_ck {
77*724ba675SRob Herring		#clock-cells = <0>;
78*724ba675SRob Herring		compatible = "fixed-clock";
79*724ba675SRob Herring		clock-frequency = <27000000>;
80*724ba675SRob Herring	};
81*724ba675SRob Herring};
82*724ba675SRob Herring
83*724ba675SRob Herring/* 0x48180000 */
84*724ba675SRob Herring&prcm_clocks {
85*724ba675SRob Herring	clkout_pre_ck: clkout_pre_ck@100 {
86*724ba675SRob Herring		#clock-cells = <0>;
87*724ba675SRob Herring		compatible = "ti,mux-clock";
88*724ba675SRob Herring		clocks = <&main_fapll 5 &ddr_fapll 1 &video_fapll 1
89*724ba675SRob Herring			  &audio_fapll 1>;
90*724ba675SRob Herring		reg = <0x100>;
91*724ba675SRob Herring	};
92*724ba675SRob Herring
93*724ba675SRob Herring	clkout_div_ck: clkout_div_ck@100 {
94*724ba675SRob Herring		#clock-cells = <0>;
95*724ba675SRob Herring		compatible = "ti,divider-clock";
96*724ba675SRob Herring		clocks = <&clkout_pre_ck>;
97*724ba675SRob Herring		ti,bit-shift = <3>;
98*724ba675SRob Herring		ti,max-div = <8>;
99*724ba675SRob Herring		reg = <0x100>;
100*724ba675SRob Herring	};
101*724ba675SRob Herring
102*724ba675SRob Herring	clkout_ck: clkout_ck@100 {
103*724ba675SRob Herring		#clock-cells = <0>;
104*724ba675SRob Herring		compatible = "ti,gate-clock";
105*724ba675SRob Herring		clocks = <&clkout_div_ck>;
106*724ba675SRob Herring		ti,bit-shift = <7>;
107*724ba675SRob Herring		reg = <0x100>;
108*724ba675SRob Herring	};
109*724ba675SRob Herring
110*724ba675SRob Herring	/* CM_DPLL clocks p1795 */
111*724ba675SRob Herring	sysclk1_ck: sysclk1_ck@300 {
112*724ba675SRob Herring		#clock-cells = <0>;
113*724ba675SRob Herring		compatible = "ti,divider-clock";
114*724ba675SRob Herring		clocks = <&main_fapll 1>;
115*724ba675SRob Herring		ti,max-div = <7>;
116*724ba675SRob Herring		reg = <0x0300>;
117*724ba675SRob Herring	};
118*724ba675SRob Herring
119*724ba675SRob Herring	sysclk2_ck: sysclk2_ck@304 {
120*724ba675SRob Herring		#clock-cells = <0>;
121*724ba675SRob Herring		compatible = "ti,divider-clock";
122*724ba675SRob Herring		clocks = <&main_fapll 2>;
123*724ba675SRob Herring		ti,max-div = <7>;
124*724ba675SRob Herring		reg = <0x0304>;
125*724ba675SRob Herring	};
126*724ba675SRob Herring
127*724ba675SRob Herring	sysclk3_ck: sysclk3_ck@308 {
128*724ba675SRob Herring		#clock-cells = <0>;
129*724ba675SRob Herring		compatible = "ti,divider-clock";
130*724ba675SRob Herring		clocks = <&main_fapll 3>;
131*724ba675SRob Herring		ti,max-div = <7>;
132*724ba675SRob Herring		reg = <0x0308>;
133*724ba675SRob Herring	};
134*724ba675SRob Herring
135*724ba675SRob Herring	sysclk4_ck: sysclk4_ck@30c {
136*724ba675SRob Herring		#clock-cells = <0>;
137*724ba675SRob Herring		compatible = "ti,divider-clock";
138*724ba675SRob Herring		clocks = <&main_fapll 4>;
139*724ba675SRob Herring		ti,max-div = <1>;
140*724ba675SRob Herring		reg = <0x030c>;
141*724ba675SRob Herring	};
142*724ba675SRob Herring
143*724ba675SRob Herring	sysclk5_ck: sysclk5_ck@310 {
144*724ba675SRob Herring		#clock-cells = <0>;
145*724ba675SRob Herring		compatible = "ti,divider-clock";
146*724ba675SRob Herring		clocks = <&sysclk4_ck>;
147*724ba675SRob Herring		ti,max-div = <1>;
148*724ba675SRob Herring		reg = <0x0310>;
149*724ba675SRob Herring	};
150*724ba675SRob Herring
151*724ba675SRob Herring	sysclk6_ck: sysclk6_ck@314 {
152*724ba675SRob Herring		#clock-cells = <0>;
153*724ba675SRob Herring		compatible = "ti,divider-clock";
154*724ba675SRob Herring		clocks = <&main_fapll 4>;
155*724ba675SRob Herring		ti,dividers = <2>, <4>;
156*724ba675SRob Herring		reg = <0x0314>;
157*724ba675SRob Herring	};
158*724ba675SRob Herring
159*724ba675SRob Herring	sysclk10_ck: sysclk10_ck@324 {
160*724ba675SRob Herring		#clock-cells = <0>;
161*724ba675SRob Herring		compatible = "ti,divider-clock";
162*724ba675SRob Herring		clocks = <&ddr_fapll 2>;
163*724ba675SRob Herring		ti,max-div = <7>;
164*724ba675SRob Herring		reg = <0x0324>;
165*724ba675SRob Herring	};
166*724ba675SRob Herring
167*724ba675SRob Herring	sysclk24_ck: sysclk24_ck@3b4 {
168*724ba675SRob Herring		#clock-cells = <0>;
169*724ba675SRob Herring		compatible = "ti,divider-clock";
170*724ba675SRob Herring		clocks = <&main_fapll 5>;
171*724ba675SRob Herring		ti,max-div = <7>;
172*724ba675SRob Herring		reg = <0x03b4>;
173*724ba675SRob Herring	};
174*724ba675SRob Herring
175*724ba675SRob Herring	mpu_ck: mpu_ck@15dc {
176*724ba675SRob Herring		#clock-cells = <0>;
177*724ba675SRob Herring		compatible = "ti,gate-clock";
178*724ba675SRob Herring		clocks = <&sysclk2_ck>;
179*724ba675SRob Herring		ti,bit-shift = <1>;
180*724ba675SRob Herring                reg = <0x15dc>;
181*724ba675SRob Herring	};
182*724ba675SRob Herring
183*724ba675SRob Herring	audio_pll_a_ck: audio_pll_a_ck@35c {
184*724ba675SRob Herring		#clock-cells = <0>;
185*724ba675SRob Herring		compatible = "ti,divider-clock";
186*724ba675SRob Herring		clocks = <&audio_fapll 1>;
187*724ba675SRob Herring		ti,max-div = <7>;
188*724ba675SRob Herring		reg = <0x035c>;
189*724ba675SRob Herring	};
190*724ba675SRob Herring
191*724ba675SRob Herring	sysclk18_ck: sysclk18_ck@378 {
192*724ba675SRob Herring		#clock-cells = <0>;
193*724ba675SRob Herring		compatible = "ti,mux-clock";
194*724ba675SRob Herring		clocks = <&sys_32k_ck>, <&audio_pll_a_ck>;
195*724ba675SRob Herring		reg = <0x0378>;
196*724ba675SRob Herring	};
197*724ba675SRob Herring
198*724ba675SRob Herring	timer1_fck: timer1_fck@390 {
199*724ba675SRob Herring		#clock-cells = <0>;
200*724ba675SRob Herring		compatible = "ti,mux-clock";
201*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
202*724ba675SRob Herring		reg = <0x0390>;
203*724ba675SRob Herring	};
204*724ba675SRob Herring
205*724ba675SRob Herring	timer2_fck: timer2_fck@394 {
206*724ba675SRob Herring		#clock-cells = <0>;
207*724ba675SRob Herring		compatible = "ti,mux-clock";
208*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
209*724ba675SRob Herring		reg = <0x0394>;
210*724ba675SRob Herring	};
211*724ba675SRob Herring
212*724ba675SRob Herring	timer3_fck: timer3_fck@398 {
213*724ba675SRob Herring		#clock-cells = <0>;
214*724ba675SRob Herring		compatible = "ti,mux-clock";
215*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
216*724ba675SRob Herring		reg = <0x0398>;
217*724ba675SRob Herring	};
218*724ba675SRob Herring
219*724ba675SRob Herring	timer4_fck: timer4_fck@39c {
220*724ba675SRob Herring		#clock-cells = <0>;
221*724ba675SRob Herring		compatible = "ti,mux-clock";
222*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
223*724ba675SRob Herring		reg = <0x039c>;
224*724ba675SRob Herring	};
225*724ba675SRob Herring
226*724ba675SRob Herring	timer5_fck: timer5_fck@3a0 {
227*724ba675SRob Herring		#clock-cells = <0>;
228*724ba675SRob Herring		compatible = "ti,mux-clock";
229*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
230*724ba675SRob Herring		reg = <0x03a0>;
231*724ba675SRob Herring	};
232*724ba675SRob Herring
233*724ba675SRob Herring	timer6_fck: timer6_fck@3a4 {
234*724ba675SRob Herring		#clock-cells = <0>;
235*724ba675SRob Herring		compatible = "ti,mux-clock";
236*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
237*724ba675SRob Herring		reg = <0x03a4>;
238*724ba675SRob Herring	};
239*724ba675SRob Herring
240*724ba675SRob Herring	timer7_fck: timer7_fck@3a8 {
241*724ba675SRob Herring		#clock-cells = <0>;
242*724ba675SRob Herring		compatible = "ti,mux-clock";
243*724ba675SRob Herring		clocks = <&tclkin_ck>, <&sysclk18_ck>, <&sys_clkin_ck>;
244*724ba675SRob Herring		reg = <0x03a8>;
245*724ba675SRob Herring	};
246*724ba675SRob Herring};
247*724ba675SRob Herring
248*724ba675SRob Herring&prcm {
249*724ba675SRob Herring	default_cm: default_cm@500 {
250*724ba675SRob Herring		compatible = "ti,omap4-cm";
251*724ba675SRob Herring		reg = <0x500 0x100>;
252*724ba675SRob Herring		#address-cells = <1>;
253*724ba675SRob Herring		#size-cells = <1>;
254*724ba675SRob Herring		ranges = <0 0x500 0x100>;
255*724ba675SRob Herring
256*724ba675SRob Herring		default_clkctrl: clk@0 {
257*724ba675SRob Herring			compatible = "ti,clkctrl";
258*724ba675SRob Herring			reg = <0x0 0x5c>;
259*724ba675SRob Herring			#clock-cells = <2>;
260*724ba675SRob Herring		};
261*724ba675SRob Herring	};
262*724ba675SRob Herring
263*724ba675SRob Herring	alwon_cm: alwon_cm@1400 {
264*724ba675SRob Herring		compatible = "ti,omap4-cm";
265*724ba675SRob Herring		reg = <0x1400 0x300>;
266*724ba675SRob Herring		#address-cells = <1>;
267*724ba675SRob Herring		#size-cells = <1>;
268*724ba675SRob Herring		ranges = <0 0x1400 0x300>;
269*724ba675SRob Herring
270*724ba675SRob Herring		alwon_clkctrl: clk@0 {
271*724ba675SRob Herring			compatible = "ti,clkctrl";
272*724ba675SRob Herring			reg = <0x0 0x208>;
273*724ba675SRob Herring			#clock-cells = <2>;
274*724ba675SRob Herring		};
275*724ba675SRob Herring	};
276*724ba675SRob Herring};
277