xref: /freebsd/sys/contrib/device-tree/src/mips/mobileye/eyeq5-fixed-clocks.dtsi (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*01950c46SEmmanuel Vadot/*
3*01950c46SEmmanuel Vadot * Copyright 2023 Mobileye Vision Technologies Ltd.
4*01950c46SEmmanuel Vadot */
5*01950c46SEmmanuel Vadot
6*01950c46SEmmanuel Vadot/ {
7*01950c46SEmmanuel Vadot	/* Fixed clock */
8*01950c46SEmmanuel Vadot	pll_cpu: pll-cpu {
9*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
10*01950c46SEmmanuel Vadot		#clock-cells = <0>;
11*01950c46SEmmanuel Vadot		clock-frequency = <1500000000>;
12*01950c46SEmmanuel Vadot	};
13*01950c46SEmmanuel Vadot
14*01950c46SEmmanuel Vadot	pll_vdi: pll-vdi {
15*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
16*01950c46SEmmanuel Vadot		#clock-cells = <0>;
17*01950c46SEmmanuel Vadot		clock-frequency = <1280000000>;
18*01950c46SEmmanuel Vadot	};
19*01950c46SEmmanuel Vadot
20*01950c46SEmmanuel Vadot	pll_per: pll-per {
21*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
22*01950c46SEmmanuel Vadot		#clock-cells = <0>;
23*01950c46SEmmanuel Vadot		clock-frequency = <2000000000>;
24*01950c46SEmmanuel Vadot	};
25*01950c46SEmmanuel Vadot
26*01950c46SEmmanuel Vadot	pll_ddr0: pll-ddr0 {
27*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
28*01950c46SEmmanuel Vadot		#clock-cells = <0>;
29*01950c46SEmmanuel Vadot		clock-frequency = <1857210000>;
30*01950c46SEmmanuel Vadot	};
31*01950c46SEmmanuel Vadot
32*01950c46SEmmanuel Vadot	pll_ddr1: pll-ddr1 {
33*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
34*01950c46SEmmanuel Vadot		#clock-cells = <0>;
35*01950c46SEmmanuel Vadot		clock-frequency = <1857210000>;
36*01950c46SEmmanuel Vadot	};
37*01950c46SEmmanuel Vadot
38*01950c46SEmmanuel Vadot/* PLL_CPU derivatives */
39*01950c46SEmmanuel Vadot	occ_cpu: occ-cpu {
40*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
41*01950c46SEmmanuel Vadot		clocks = <&pll_cpu>;
42*01950c46SEmmanuel Vadot		#clock-cells = <0>;
43*01950c46SEmmanuel Vadot		clock-div = <1>;
44*01950c46SEmmanuel Vadot		clock-mult = <1>;
45*01950c46SEmmanuel Vadot	};
46*01950c46SEmmanuel Vadot	si_css0_ref_clk: si-css0-ref-clk { /* gate ClkRstGen_si_css0_ref */
47*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
48*01950c46SEmmanuel Vadot		clocks = <&occ_cpu>;
49*01950c46SEmmanuel Vadot		#clock-cells = <0>;
50*01950c46SEmmanuel Vadot		clock-div = <1>;
51*01950c46SEmmanuel Vadot		clock-mult = <1>;
52*01950c46SEmmanuel Vadot	};
53*01950c46SEmmanuel Vadot	cpc_clk: cpc-clk {
54*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
55*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
56*01950c46SEmmanuel Vadot		#clock-cells = <0>;
57*01950c46SEmmanuel Vadot		clock-div = <1>;
58*01950c46SEmmanuel Vadot		clock-mult = <1>;
59*01950c46SEmmanuel Vadot	};
60*01950c46SEmmanuel Vadot	core0_clk: core0-clk {
61*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
62*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
63*01950c46SEmmanuel Vadot		#clock-cells = <0>;
64*01950c46SEmmanuel Vadot		clock-div = <1>;
65*01950c46SEmmanuel Vadot		clock-mult = <1>;
66*01950c46SEmmanuel Vadot	};
67*01950c46SEmmanuel Vadot	core1_clk: core1-clk {
68*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
69*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
70*01950c46SEmmanuel Vadot		#clock-cells = <0>;
71*01950c46SEmmanuel Vadot		clock-div = <1>;
72*01950c46SEmmanuel Vadot		clock-mult = <1>;
73*01950c46SEmmanuel Vadot	};
74*01950c46SEmmanuel Vadot	core2_clk: core2-clk {
75*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
76*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
77*01950c46SEmmanuel Vadot		#clock-cells = <0>;
78*01950c46SEmmanuel Vadot		clock-div = <1>;
79*01950c46SEmmanuel Vadot		clock-mult = <1>;
80*01950c46SEmmanuel Vadot	};
81*01950c46SEmmanuel Vadot	core3_clk: core3-clk {
82*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
83*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
84*01950c46SEmmanuel Vadot		#clock-cells = <0>;
85*01950c46SEmmanuel Vadot		clock-div = <1>;
86*01950c46SEmmanuel Vadot		clock-mult = <1>;
87*01950c46SEmmanuel Vadot	};
88*01950c46SEmmanuel Vadot	cm_clk: cm-clk {
89*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
90*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
91*01950c46SEmmanuel Vadot		#clock-cells = <0>;
92*01950c46SEmmanuel Vadot		clock-div = <1>;
93*01950c46SEmmanuel Vadot		clock-mult = <1>;
94*01950c46SEmmanuel Vadot	};
95*01950c46SEmmanuel Vadot	mem_clk: mem-clk {
96*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
97*01950c46SEmmanuel Vadot		clocks = <&si_css0_ref_clk>;
98*01950c46SEmmanuel Vadot		#clock-cells = <0>;
99*01950c46SEmmanuel Vadot		clock-div = <1>;
100*01950c46SEmmanuel Vadot		clock-mult = <1>;
101*01950c46SEmmanuel Vadot	};
102*01950c46SEmmanuel Vadot	occ_isram: occ-isram {
103*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
104*01950c46SEmmanuel Vadot		clocks = <&pll_cpu>;
105*01950c46SEmmanuel Vadot		#clock-cells = <0>;
106*01950c46SEmmanuel Vadot		clock-div = <2>;
107*01950c46SEmmanuel Vadot		clock-mult = <1>;
108*01950c46SEmmanuel Vadot	};
109*01950c46SEmmanuel Vadot	isram_clk: isram-clk { /* gate ClkRstGen_isram */
110*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
111*01950c46SEmmanuel Vadot		clocks = <&occ_isram>;
112*01950c46SEmmanuel Vadot		#clock-cells = <0>;
113*01950c46SEmmanuel Vadot		clock-div = <1>;
114*01950c46SEmmanuel Vadot		clock-mult = <1>;
115*01950c46SEmmanuel Vadot	};
116*01950c46SEmmanuel Vadot	occ_dbu: occ-dbu {
117*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
118*01950c46SEmmanuel Vadot		clocks = <&pll_cpu>;
119*01950c46SEmmanuel Vadot		#clock-cells = <0>;
120*01950c46SEmmanuel Vadot		clock-div = <10>;
121*01950c46SEmmanuel Vadot		clock-mult = <1>;
122*01950c46SEmmanuel Vadot	};
123*01950c46SEmmanuel Vadot	si_dbu_tp_pclk: si-dbu-tp-pclk { /* gate ClkRstGen_dbu */
124*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
125*01950c46SEmmanuel Vadot		clocks = <&occ_dbu>;
126*01950c46SEmmanuel Vadot		#clock-cells = <0>;
127*01950c46SEmmanuel Vadot		clock-div = <1>;
128*01950c46SEmmanuel Vadot		clock-mult = <1>;
129*01950c46SEmmanuel Vadot	};
130*01950c46SEmmanuel Vadot/* PLL_VDI derivatives */
131*01950c46SEmmanuel Vadot	occ_vdi: occ-vdi {
132*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
133*01950c46SEmmanuel Vadot		clocks = <&pll_vdi>;
134*01950c46SEmmanuel Vadot		#clock-cells = <0>;
135*01950c46SEmmanuel Vadot		clock-div = <2>;
136*01950c46SEmmanuel Vadot		clock-mult = <1>;
137*01950c46SEmmanuel Vadot	};
138*01950c46SEmmanuel Vadot	vdi_clk: vdi-clk { /* gate ClkRstGen_vdi */
139*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
140*01950c46SEmmanuel Vadot		clocks = <&occ_vdi>;
141*01950c46SEmmanuel Vadot		#clock-cells = <0>;
142*01950c46SEmmanuel Vadot		clock-div = <1>;
143*01950c46SEmmanuel Vadot		clock-mult = <1>;
144*01950c46SEmmanuel Vadot	};
145*01950c46SEmmanuel Vadot	occ_can_ser: occ-can-ser {
146*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
147*01950c46SEmmanuel Vadot		clocks = <&pll_vdi>;
148*01950c46SEmmanuel Vadot		#clock-cells = <0>;
149*01950c46SEmmanuel Vadot		clock-div = <16>;
150*01950c46SEmmanuel Vadot		clock-mult = <1>;
151*01950c46SEmmanuel Vadot	};
152*01950c46SEmmanuel Vadot	can_ser_clk: can-ser-clk { /* gate ClkRstGen_can_ser */
153*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
154*01950c46SEmmanuel Vadot		clocks = <&occ_can_ser>;
155*01950c46SEmmanuel Vadot		#clock-cells = <0>;
156*01950c46SEmmanuel Vadot		clock-div = <1>;
157*01950c46SEmmanuel Vadot		clock-mult = <1>;
158*01950c46SEmmanuel Vadot	};
159*01950c46SEmmanuel Vadot	i2c_ser_clk: i2c-ser-clk {
160*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
161*01950c46SEmmanuel Vadot		clocks = <&pll_vdi>;
162*01950c46SEmmanuel Vadot		#clock-cells = <0>;
163*01950c46SEmmanuel Vadot		clock-div = <20>;
164*01950c46SEmmanuel Vadot		clock-mult = <1>;
165*01950c46SEmmanuel Vadot	};
166*01950c46SEmmanuel Vadot/* PLL_PER derivatives */
167*01950c46SEmmanuel Vadot	occ_periph: occ-periph {
168*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
169*01950c46SEmmanuel Vadot		clocks = <&pll_per>;
170*01950c46SEmmanuel Vadot		#clock-cells = <0>;
171*01950c46SEmmanuel Vadot		clock-div = <16>;
172*01950c46SEmmanuel Vadot		clock-mult = <1>;
173*01950c46SEmmanuel Vadot	};
174*01950c46SEmmanuel Vadot	periph_clk: periph-clk {
175*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
176*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
177*01950c46SEmmanuel Vadot		#clock-cells = <0>;
178*01950c46SEmmanuel Vadot		clock-div = <1>;
179*01950c46SEmmanuel Vadot		clock-mult = <1>;
180*01950c46SEmmanuel Vadot	};
181*01950c46SEmmanuel Vadot	can_clk: can-clk {
182*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
183*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
184*01950c46SEmmanuel Vadot		#clock-cells = <0>;
185*01950c46SEmmanuel Vadot		clock-div = <1>;
186*01950c46SEmmanuel Vadot		clock-mult = <1>;
187*01950c46SEmmanuel Vadot	};
188*01950c46SEmmanuel Vadot	spi_clk: spi-clk {
189*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
190*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
191*01950c46SEmmanuel Vadot		#clock-cells = <0>;
192*01950c46SEmmanuel Vadot		clock-div = <1>;
193*01950c46SEmmanuel Vadot		clock-mult = <1>;
194*01950c46SEmmanuel Vadot	};
195*01950c46SEmmanuel Vadot	uart_clk: uart-clk {
196*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
197*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
198*01950c46SEmmanuel Vadot		#clock-cells = <0>;
199*01950c46SEmmanuel Vadot		clock-div = <1>;
200*01950c46SEmmanuel Vadot		clock-mult = <1>;
201*01950c46SEmmanuel Vadot	};
202*01950c46SEmmanuel Vadot	i2c_clk: i2c-clk {
203*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
204*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
205*01950c46SEmmanuel Vadot		#clock-cells = <0>;
206*01950c46SEmmanuel Vadot		clock-div = <1>;
207*01950c46SEmmanuel Vadot		clock-mult = <1>;
208*01950c46SEmmanuel Vadot		clock-output-names = "i2c_clk";
209*01950c46SEmmanuel Vadot	};
210*01950c46SEmmanuel Vadot	timer_clk: timer-clk {
211*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
212*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
213*01950c46SEmmanuel Vadot		#clock-cells = <0>;
214*01950c46SEmmanuel Vadot		clock-div = <1>;
215*01950c46SEmmanuel Vadot		clock-mult = <1>;
216*01950c46SEmmanuel Vadot		clock-output-names = "timer_clk";
217*01950c46SEmmanuel Vadot	};
218*01950c46SEmmanuel Vadot	gpio_clk: gpio-clk {
219*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
220*01950c46SEmmanuel Vadot		clocks = <&occ_periph>;
221*01950c46SEmmanuel Vadot		#clock-cells = <0>;
222*01950c46SEmmanuel Vadot		clock-div = <1>;
223*01950c46SEmmanuel Vadot		clock-mult = <1>;
224*01950c46SEmmanuel Vadot		clock-output-names = "gpio_clk";
225*01950c46SEmmanuel Vadot	};
226*01950c46SEmmanuel Vadot	emmc_sys_clk: emmc-sys-clk {
227*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
228*01950c46SEmmanuel Vadot		clocks = <&pll_per>;
229*01950c46SEmmanuel Vadot		#clock-cells = <0>;
230*01950c46SEmmanuel Vadot		clock-div = <10>;
231*01950c46SEmmanuel Vadot		clock-mult = <1>;
232*01950c46SEmmanuel Vadot		clock-output-names = "emmc_sys_clk";
233*01950c46SEmmanuel Vadot	};
234*01950c46SEmmanuel Vadot	ccf_ctrl_clk: ccf-ctrl-clk {
235*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
236*01950c46SEmmanuel Vadot		clocks = <&pll_per>;
237*01950c46SEmmanuel Vadot		#clock-cells = <0>;
238*01950c46SEmmanuel Vadot		clock-div = <4>;
239*01950c46SEmmanuel Vadot		clock-mult = <1>;
240*01950c46SEmmanuel Vadot		clock-output-names = "ccf_ctrl_clk";
241*01950c46SEmmanuel Vadot	};
242*01950c46SEmmanuel Vadot	occ_mjpeg_core: occ-mjpeg-core {
243*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
244*01950c46SEmmanuel Vadot		clocks = <&pll_per>;
245*01950c46SEmmanuel Vadot		#clock-cells = <0>;
246*01950c46SEmmanuel Vadot		clock-div = <2>;
247*01950c46SEmmanuel Vadot		clock-mult = <1>;
248*01950c46SEmmanuel Vadot		clock-output-names = "occ_mjpeg_core";
249*01950c46SEmmanuel Vadot	};
250*01950c46SEmmanuel Vadot	hsm_clk: hsm-clk { /* gate ClkRstGen_hsm */
251*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
252*01950c46SEmmanuel Vadot		clocks = <&occ_mjpeg_core>;
253*01950c46SEmmanuel Vadot		#clock-cells = <0>;
254*01950c46SEmmanuel Vadot		clock-div = <1>;
255*01950c46SEmmanuel Vadot		clock-mult = <1>;
256*01950c46SEmmanuel Vadot		clock-output-names = "hsm_clk";
257*01950c46SEmmanuel Vadot	};
258*01950c46SEmmanuel Vadot	mjpeg_core_clk: mjpeg-core-clk { /* gate ClkRstGen_mjpeg_gen */
259*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
260*01950c46SEmmanuel Vadot		clocks = <&occ_mjpeg_core>;
261*01950c46SEmmanuel Vadot		#clock-cells = <0>;
262*01950c46SEmmanuel Vadot		clock-div = <1>;
263*01950c46SEmmanuel Vadot		clock-mult = <1>;
264*01950c46SEmmanuel Vadot		clock-output-names = "mjpeg_core_clk";
265*01950c46SEmmanuel Vadot	};
266*01950c46SEmmanuel Vadot	fcmu_a_clk: fcmu-a-clk {
267*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
268*01950c46SEmmanuel Vadot		clocks = <&pll_per>;
269*01950c46SEmmanuel Vadot		#clock-cells = <0>;
270*01950c46SEmmanuel Vadot		clock-div = <20>;
271*01950c46SEmmanuel Vadot		clock-mult = <1>;
272*01950c46SEmmanuel Vadot		clock-output-names = "fcmu_a_clk";
273*01950c46SEmmanuel Vadot	};
274*01950c46SEmmanuel Vadot	occ_pci_sys: occ-pci-sys {
275*01950c46SEmmanuel Vadot		compatible = "fixed-factor-clock";
276*01950c46SEmmanuel Vadot		clocks = <&pll_per>;
277*01950c46SEmmanuel Vadot		#clock-cells = <0>;
278*01950c46SEmmanuel Vadot		clock-div = <8>;
279*01950c46SEmmanuel Vadot		clock-mult = <1>;
280*01950c46SEmmanuel Vadot		clock-output-names = "occ_pci_sys";
281*01950c46SEmmanuel Vadot	};
282*01950c46SEmmanuel Vadot	pclk: pclk {
283*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
284*01950c46SEmmanuel Vadot		#clock-cells = <0>;
285*01950c46SEmmanuel Vadot		clock-frequency = <250000000>;  /* 250MHz */
286*01950c46SEmmanuel Vadot	};
287*01950c46SEmmanuel Vadot	tsu_clk: tsu-clk {
288*01950c46SEmmanuel Vadot		compatible = "fixed-clock";
289*01950c46SEmmanuel Vadot		#clock-cells = <0>;
290*01950c46SEmmanuel Vadot		clock-frequency = <125000000>;  /* 125MHz */
291*01950c46SEmmanuel Vadot	};
292*01950c46SEmmanuel Vadot};
293