2 * Copyright (C) 2013 STMicroelectronics R&D Limited
3 * <stlinux-devel@stlinux.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
10 #include <dt-bindings/clock/stih416-clks.h>
19 * Fixed 30MHz oscillator inputs to SoC
21 clk_sysin: clk-sysin {
23 compatible = "fixed-clock";
24 clock-frequency = <30000000>;
31 reg = <0xfee62000 0xb48>;
33 clk_s_a0_pll: clk-s-a0-pll {
35 compatible = "st,clkgena-plls-c65";
37 clocks = <&clk_sysin>;
39 clock-output-names = "clk-s-a0-pll0-hs",
44 clk_s_a0_osc_prediv: clk-s-a0-osc-prediv {
46 compatible = "st,clkgena-prediv-c65",
49 clocks = <&clk_sysin>;
51 clock-output-names = "clk-s-a0-osc-prediv";
54 clk_s_a0_hs: clk-s-a0-hs {
56 compatible = "st,clkgena-divmux-c65-hs",
59 clocks = <&clk_s_a0_osc_prediv>,
60 <&clk_s_a0_pll 0>, /* PLL0 HS */
61 <&clk_s_a0_pll 2>; /* PLL1 */
63 clock-output-names = "clk-s-fdma-0",
65 ""; /* clk-s-jit-sense */
66 /* Fourth output unused */
69 clk_s_a0_ls: clk-s-a0-ls {
71 compatible = "st,clkgena-divmux-c65-ls",
74 clocks = <&clk_s_a0_osc_prediv>,
75 <&clk_s_a0_pll 1>, /* PLL0 LS */
76 <&clk_s_a0_pll 2>; /* PLL1 */
78 clock-output-names = "clk-s-icn-reg-0",
84 /* Remaining outputs unused */
89 reg = <0xfee81000 0xb48>;
91 clk_s_a1_pll: clk-s-a1-pll {
93 compatible = "st,clkgena-plls-c65";
95 clocks = <&clk_sysin>;
97 clock-output-names = "clk-s-a1-pll0-hs",
102 clk_s_a1_osc_prediv: clk-s-a1-osc-prediv {
104 compatible = "st,clkgena-prediv-c65",
107 clocks = <&clk_sysin>;
109 clock-output-names = "clk-s-a1-osc-prediv";
112 clk_s_a1_hs: clk-s-a1-hs {
114 compatible = "st,clkgena-divmux-c65-hs",
117 clocks = <&clk_s_a1_osc_prediv>,
118 <&clk_s_a1_pll 0>, /* PLL0 HS */
119 <&clk_s_a1_pll 2>; /* PLL1 */
121 clock-output-names = "", /* Reserved */
127 clk_s_a1_ls: clk-s-a1-ls {
129 compatible = "st,clkgena-divmux-c65-ls",
132 clocks = <&clk_s_a1_osc_prediv>,
133 <&clk_s_a1_pll 1>, /* PLL0 LS */
134 <&clk_s_a1_pll 2>; /* PLL1 */
136 clock-output-names = "clk-s-icn-if-2",
142 "clk-s-mii0-ref-out",
145 /* Remaining outputs unused */
150 * ClockGenAs on MPE42
152 clockgen-a@fde12000 {
153 reg = <0xfde12000 0xb50>;
155 clk_m_a0_pll0: clk-m-a0-pll0 {
157 compatible = "st,plls-c32-a1x-0", "st,clkgen-plls-c32";
159 clocks = <&clk_sysin>;
161 clock-output-names = "clk-m-a0-pll0-phi0",
162 "clk-m-a0-pll0-phi1",
163 "clk-m-a0-pll0-phi2",
164 "clk-m-a0-pll0-phi3";
167 clk_m_a0_pll1: clk-m-a0-pll1 {
169 compatible = "st,plls-c32-a1x-1", "st,clkgen-plls-c32";
171 clocks = <&clk_sysin>;
173 clock-output-names = "clk-m-a0-pll1-phi0",
174 "clk-m-a0-pll1-phi1",
175 "clk-m-a0-pll1-phi2",
176 "clk-m-a0-pll1-phi3";
179 clk_m_a0_osc_prediv: clk-m-a0-osc-prediv {
181 compatible = "st,clkgena-prediv-c32",
184 clocks = <&clk_sysin>;
186 clock-output-names = "clk-m-a0-osc-prediv";
189 clk_m_a0_div0: clk-m-a0-div0 {
191 compatible = "st,clkgena-divmux-c32-odf0",
194 clocks = <&clk_m_a0_osc_prediv>,
195 <&clk_m_a0_pll0 0>, /* PLL0 PHI0 */
196 <&clk_m_a0_pll1 0>; /* PLL1 PHI0 */
198 clock-output-names = "", /* Unused */
208 clk_m_a0_div1: clk-m-a0-div1 {
210 compatible = "st,clkgena-divmux-c32-odf1",
213 clocks = <&clk_m_a0_osc_prediv>,
214 <&clk_m_a0_pll0 1>, /* PLL0 PHI1 */
215 <&clk_m_a0_pll1 1>; /* PLL1 PHI1 */
217 clock-output-names = "clk-m-vid-dmu-1",
227 clk_m_a0_div2: clk-m-a0-div2 {
229 compatible = "st,clkgena-divmux-c32-odf2",
232 clocks = <&clk_m_a0_osc_prediv>,
233 <&clk_m_a0_pll0 2>, /* PLL0 PHI2 */
234 <&clk_m_a0_pll1 2>; /* PLL1 PHI2 */
236 clock-output-names = "clk-m-st231-gp-1",
239 "clk-m-tx-icn-dmu-0",
240 "clk-m-tx-icn-dmu-1",
246 clk_m_a0_div3: clk-m-a0-div3 {
248 compatible = "st,clkgena-divmux-c32-odf3",
251 clocks = <&clk_m_a0_osc_prediv>,
252 <&clk_m_a0_pll0 3>, /* PLL0 PHI3 */
253 <&clk_m_a0_pll1 3>; /* PLL1 PHI3 */
255 clock-output-names = "", /* Unused */
266 clockgen-a@fd6db000 {
267 reg = <0xfd6db000 0xb50>;
269 clk_m_a1_pll0: clk-m-a1-pll0 {
271 compatible = "st,plls-c32-a1x-0", "st,clkgen-plls-c32";
273 clocks = <&clk_sysin>;
275 clock-output-names = "clk-m-a1-pll0-phi0",
276 "clk-m-a1-pll0-phi1",
277 "clk-m-a1-pll0-phi2",
278 "clk-m-a1-pll0-phi3";
281 clk_m_a1_pll1: clk-m-a1-pll1 {
283 compatible = "st,plls-c32-a1x-1", "st,clkgen-plls-c32";
285 clocks = <&clk_sysin>;
287 clock-output-names = "clk-m-a1-pll1-phi0",
288 "clk-m-a1-pll1-phi1",
289 "clk-m-a1-pll1-phi2",
290 "clk-m-a1-pll1-phi3";
293 clk_m_a1_osc_prediv: clk-m-a1-osc-prediv {
295 compatible = "st,clkgena-prediv-c32",
298 clocks = <&clk_sysin>;
300 clock-output-names = "clk-m-a1-osc-prediv";
303 clk_m_a1_div0: clk-m-a1-div0 {
305 compatible = "st,clkgena-divmux-c32-odf0",
308 clocks = <&clk_m_a1_osc_prediv>,
309 <&clk_m_a1_pll0 0>, /* PLL0 PHI0 */
310 <&clk_m_a1_pll1 0>; /* PLL1 PHI0 */
312 clock-output-names = "", /* Unused */
318 "clk-m-rx-icn-dmu-0",
319 "clk-m-rx-icn-dmu-1";
322 clk_m_a1_div1: clk-m-a1-div1 {
324 compatible = "st,clkgena-divmux-c32-odf1",
327 clocks = <&clk_m_a1_osc_prediv>,
328 <&clk_m_a1_pll0 1>, /* PLL0 PHI1 */
329 <&clk_m_a1_pll1 1>; /* PLL1 PHI1 */
331 clock-output-names = "clk-m-rx-icn-ts",
332 "clk-m-rx-icn-vdp-0",
341 clk_m_a1_div2: clk-m-a1-div2 {
343 compatible = "st,clkgena-divmux-c32-odf2",
346 clocks = <&clk_m_a1_osc_prediv>,
347 <&clk_m_a1_pll0 2>, /* PLL0 PHI2 */
348 <&clk_m_a1_pll1 2>; /* PLL1 PHI2 */
350 clock-output-names = "clk-m-fvdp-proc-alt",
356 "", /* clk-m-apb-pm-12 */
360 clk_m_a1_div3: clk-m-a1-div3 {
362 compatible = "st,clkgena-divmux-c32-odf3",
365 clocks = <&clk_m_a1_osc_prediv>,
366 <&clk_m_a1_pll0 3>, /* PLL0 PHI3 */
367 <&clk_m_a1_pll1 3>; /* PLL1 PHI3 */
369 clock-output-names = "", /* Unused */
376 ""; /* clk-m-gpu-alt */
380 clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2 {
382 compatible = "fixed-factor-clock";
383 clocks = <&clk_m_a0_div1 2>;
388 clockgen-a@fd345000 {
389 reg = <0xfd345000 0xb50>;
391 clk_m_a2_pll0: clk-m-a2-pll0 {
393 compatible = "st,plls-c32-a1x-0", "st,clkgen-plls-c32";
395 clocks = <&clk_sysin>;
397 clock-output-names = "clk-m-a2-pll0-phi0",
398 "clk-m-a2-pll0-phi1",
399 "clk-m-a2-pll0-phi2",
400 "clk-m-a2-pll0-phi3";
403 clk_m_a2_pll1: clk-m-a2-pll1 {
405 compatible = "st,plls-c32-a1x-1", "st,clkgen-plls-c32";
407 clocks = <&clk_sysin>;
409 clock-output-names = "clk-m-a2-pll1-phi0",
410 "clk-m-a2-pll1-phi1",
411 "clk-m-a2-pll1-phi2",
412 "clk-m-a2-pll1-phi3";
415 clk_m_a2_osc_prediv: clk-m-a2-osc-prediv {
417 compatible = "st,clkgena-prediv-c32",
420 clocks = <&clk_sysin>;
422 clock-output-names = "clk-m-a2-osc-prediv";
425 clk_m_a2_div0: clk-m-a2-div0 {
427 compatible = "st,clkgena-divmux-c32-odf0",
430 clocks = <&clk_m_a2_osc_prediv>,
431 <&clk_m_a2_pll0 0>, /* PLL0 PHI0 */
432 <&clk_m_a2_pll1 0>; /* PLL1 PHI0 */
434 clock-output-names = "clk-m-vtac-main-phy",
435 "clk-m-vtac-aux-phy",
438 "", /* clk-m-mpestac-pg */
439 "", /* clk-m-mpestac-wc */
440 "", /* clk-m-mpevtacaux-pg*/
441 ""; /* clk-m-mpevtacmain-pg*/
444 clk_m_a2_div1: clk-m-a2-div1 {
446 compatible = "st,clkgena-divmux-c32-odf1",
449 clocks = <&clk_m_a2_osc_prediv>,
450 <&clk_m_a2_pll0 1>, /* PLL0 PHI1 */
451 <&clk_m_a2_pll1 1>; /* PLL1 PHI1 */
453 clock-output-names = "", /* clk-m-mpevtacrx0-wc */
454 "", /* clk-m-mpevtacrx1-wc */
463 clk_m_a2_div2: clk-m-a2-div2 {
465 compatible = "st,clkgena-divmux-c32-odf2",
468 clocks = <&clk_m_a2_osc_prediv>,
469 <&clk_m_a2_pll0 2>, /* PLL0 PHI2 */
470 <&clk_m_a2_pll1 2>; /* PLL1 PHI2 */
472 clock-output-names = "clk-m-icn-vdp-2",
478 "clk-m-dcephy-impctrl",
482 clk_m_a2_div3: clk-m-a2-div3 {
484 compatible = "st,clkgena-divmux-c32-odf3",
487 clocks = <&clk_m_a2_osc_prediv>,
488 <&clk_m_a2_pll0 3>, /* PLL0 PHI3 */
489 <&clk_m_a2_pll1 3>; /* PLL1 PHI3 */
491 clock-output-names = "", /* Unused */
492 ""; /* clk-m-apb-pm-11 */
493 /* Remaining outputs unused */
500 clockgen-a9@fdde08b0 {
501 reg = <0xfdde08b0 0x70>;
503 clockgen_a9_pll: clockgen-a9-pll {
505 compatible = "st,stih416-plls-c32-a9", "st,clkgen-plls-c32";
507 clocks = <&clk_sysin>;
508 clock-output-names = "clockgen-a9-pll-odf";
513 * ARM CPU related clocks
515 clk_m_a9: clk-m-a9@fdde08ac {
517 compatible = "st,stih416-clkgen-a9-mux", "st,clkgen-mux";
518 reg = <0xfdde08ac 0x4>;
519 clocks = <&clockgen_a9_pll 0>,
520 <&clockgen_a9_pll 0>,
522 <&clk_m_a9_ext2f_div2>;
526 * ARM Peripheral clock for timers
528 arm_periph_clk: clk-m-a9-periphs {
530 compatible = "fixed-factor-clock";
531 clocks = <&clk_m_a9>;
537 * Frequency synthesizers on the SASG2
539 clockgen_b0: clockgen-b0@fee108b4 {
541 compatible = "st,stih416-quadfs216", "st,quadfs";
542 reg = <0xfee108b4 0x44>;
544 clocks = <&clk_sysin>;
545 clock-output-names = "clk-s-usb48",
548 "clk-s-thsens-scard";
551 clockgen_b1: clockgen-b1@fe8308c4 {
553 compatible = "st,stih416-quadfs216", "st,quadfs";
554 reg = <0xfe8308c4 0x44>;
556 clocks = <&clk_sysin>;
557 clock-output-names = "clk-s-pcm-0",
563 clockgen_c: clockgen-c@fe8307d0 {
565 compatible = "st,stih416-quadfs432", "st,quadfs";
566 reg = <0xfe8307d0 0x44>;
568 clocks = <&clk_sysin>;
569 clock-output-names = "clk-s-c-fs0-ch0",
574 clk_s_vcc_hd: clk-s-vcc-hd@fe8308b8 {
576 compatible = "st,stih416-clkgenc-vcc-hd", "st,clkgen-mux";
577 reg = <0xfe8308b8 0x4>; /* SYSCFG2558 */
579 clocks = <&clk_sysin>,
584 * Add a dummy clock for the HDMI PHY for the VCC input mux
586 clk_s_tmds_fromphy: clk-s-tmds-fromphy {
588 compatible = "fixed-clock";
589 clock-frequency = <0>;
592 clockgen_c_vcc: clockgen-c-vcc@fe8308ac {
594 compatible = "st,stih416-clkgenc", "st,clkgen-vcc";
595 reg = <0xfe8308ac 0xc>; /* SYSCFG2555,2556,2557 */
597 clocks = <&clk_s_vcc_hd>,
599 <&clk_s_tmds_fromphy>,
602 clock-output-names = "clk-s-pix-hdmi",
615 "clk-s-hdmi-reject-pll",
619 clockgen_d: clockgen-d@fee107e0 {
621 compatible = "st,stih416-quadfs216", "st,quadfs";
622 reg = <0xfee107e0 0x44>;
624 clocks = <&clk_sysin>;
625 clock-output-names = "clk-s-ccsc",
632 * Frequency synthesizers on the MPE42
634 clockgen_e: clockgen-e@fd3208bc {
636 compatible = "st,stih416-quadfs660-E", "st,quadfs";
637 reg = <0xfd3208bc 0xb0>;
639 clocks = <&clk_sysin>;
640 clock-output-names = "clk-m-pix-mdtp-0",
646 clockgen_f: clockgen-f@fd320878 {
648 compatible = "st,stih416-quadfs660-F", "st,quadfs";
649 reg = <0xfd320878 0xf0>;
651 clocks = <&clk_sysin>;
652 clock-output-names = "clk-m-main-vidfs",
655 "clk-m-fvdp-proc-fs";
658 clk_m_fvdp_proc: clk-m-fvdp-proc@fd320910 {
660 compatible = "st,stih416-clkgenf-vcc-fvdp", "st,clkgen-mux";
661 reg = <0xfd320910 0x4>; /* SYSCFG8580 */
663 clocks = <&clk_m_a1_div2 0>,
667 clk_m_hva: clk-m-hva@fd690868 {
669 compatible = "st,stih416-clkgenf-vcc-hva", "st,clkgen-mux";
670 reg = <0xfd690868 0x4>; /* SYSCFG9538 */
672 clocks = <&clockgen_f 1>,
676 clk_m_f_vcc_hd: clk-m-f-vcc-hd@fd32086c {
678 compatible = "st,stih416-clkgenf-vcc-hd", "st,clkgen-mux";
679 reg = <0xfd32086c 0x4>; /* SYSCFG8539 */
681 clocks = <&clockgen_c_vcc 7>,
685 clk_m_f_vcc_sd: clk-m-f-vcc-sd@fd32086c {
687 compatible = "st,stih416-clkgenf-vcc-sd", "st,clkgen-mux";
688 reg = <0xfd32086c 0x4>; /* SYSCFG8539 */
690 clocks = <&clockgen_c_vcc 8>,
695 * Add a dummy clock for the HDMIRx external signal clock
697 clk_m_pix_hdmirx_sas: clk-m-pix-hdmirx-sas {
699 compatible = "fixed-clock";
700 clock-frequency = <0>;
703 clockgen_f_vcc: clockgen-f-vcc@fd32086c {
705 compatible = "st,stih416-clkgenf", "st,clkgen-vcc";
706 reg = <0xfd32086c 0xc>; /* SYSCFG8539,8540,8541 */
708 clocks = <&clk_m_f_vcc_hd>,
711 <&clk_m_pix_hdmirx_sas>;
713 clock-output-names = "clk-m-pix-main-pipe",
714 "clk-m-pix-aux-pipe",
715 "clk-m-pix-main-cru",
717 "clk-m-xfer-be-compo",
718 "clk-m-xfer-pip-compo",
719 "clk-m-xfer-aux-compo",
721 "clk-m-pix-hdmirx-0",
722 "clk-m-pix-hdmirx-1";
728 clockgen-ddr@0xfdde07d8 {
729 reg = <0xfdde07d8 0x110>;
731 clockgen_ddr_pll: clockgen-ddr-pll {
733 compatible = "st,stih416-plls-c32-ddr", "st,clkgen-plls-c32";
735 clocks = <&clk_sysin>;
736 clock-output-names = "clockgen-ddr0",
744 clockgen-gpu@fd68ff00 {
745 reg = <0xfd68ff00 0x910>;
747 clockgen_gpu_pll: clockgen-gpu-pll {
749 compatible = "st,stih416-gpu-pll-c32", "st,clkgengpu-pll-c32";
751 clocks = <&clk_sysin>;
752 clock-output-names = "clockgen-gpu-pll";