2014-02-27 16:27:27 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 STMicroelectronics R&D Limited
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
2014-08-25 18:44:00 +04:00
|
|
|
#include <dt-bindings/clock/stih407-clks.h>
|
2014-02-27 16:27:27 +04:00
|
|
|
/ {
|
|
|
|
clocks {
|
2014-08-25 18:44:00 +04:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
2014-02-27 16:27:27 +04:00
|
|
|
/*
|
|
|
|
* Fixed 30MHz oscillator inputs to SoC
|
|
|
|
*/
|
|
|
|
clk_sysin: clk-sysin {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <30000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ARM Peripheral clock for timers
|
|
|
|
*/
|
2014-08-25 18:44:00 +04:00
|
|
|
arm_periph_clk: clk-m-a9-periphs {
|
2014-02-27 16:27:27 +04:00
|
|
|
#clock-cells = <0>;
|
2014-08-25 18:44:00 +04:00
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
|
|
|
|
clocks = <&clk_m_a9>;
|
|
|
|
clock-div = <2>;
|
|
|
|
clock-mult = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A9 PLL.
|
|
|
|
*/
|
|
|
|
clockgen-a9@92b0000 {
|
|
|
|
compatible = "st,clkgen-c32";
|
|
|
|
reg = <0x92b0000 0xffff>;
|
|
|
|
|
|
|
|
clockgen_a9_pll: clockgen-a9-pll {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,stih407-clkgen-plla9";
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clockgen-a9-pll-odf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ARM CPU related clocks.
|
|
|
|
*/
|
|
|
|
clk_m_a9: clk-m-a9@92b0000 {
|
|
|
|
#clock-cells = <0>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,stih407-clkgen-a9-mux";
|
2014-08-25 18:44:00 +04:00
|
|
|
reg = <0x92b0000 0x10000>;
|
|
|
|
|
|
|
|
clocks = <&clockgen_a9_pll 0>,
|
|
|
|
<&clockgen_a9_pll 0>,
|
|
|
|
<&clk_s_c0_flexgen 13>,
|
|
|
|
<&clk_m_a9_ext2f_div2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ARM Peripheral clock for timers
|
|
|
|
*/
|
|
|
|
clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
|
|
|
|
clocks = <&clk_s_c0_flexgen 13>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-m-a9-ext2f-div2";
|
|
|
|
|
|
|
|
clock-div = <2>;
|
|
|
|
clock-mult = <1>;
|
2014-02-27 16:27:27 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Bootloader initialized system infrastructure clock for
|
|
|
|
* serial devices.
|
|
|
|
*/
|
|
|
|
clk_ext2f_a9: clockgen-c0@13 {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <200000000>;
|
|
|
|
clock-output-names = "clk-s-icn-reg-0";
|
|
|
|
};
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clockgen-a@090ff000 {
|
|
|
|
compatible = "st,clkgen-c32";
|
|
|
|
reg = <0x90ff000 0x1000>;
|
|
|
|
|
|
|
|
clk_s_a0_pll: clk-s-a0-pll {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,clkgen-pll0";
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-a0-pll-ofd-0";
|
2016-10-21 12:08:00 +03:00
|
|
|
clock-critical = <0>; /* clk-s-a0-pll-ofd-0 */
|
2014-08-25 18:44:00 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
clk_s_a0_flexgen: clk-s-a0-flexgen {
|
|
|
|
compatible = "st,flexgen";
|
|
|
|
|
|
|
|
#clock-cells = <1>;
|
|
|
|
|
|
|
|
clocks = <&clk_s_a0_pll 0>,
|
|
|
|
<&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-ic-lmi0";
|
2016-10-21 12:08:00 +03:00
|
|
|
clock-critical = <CLK_IC_LMI0>;
|
2014-08-25 18:44:00 +04:00
|
|
|
};
|
|
|
|
};
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clk_s_c0_quadfs: clk-s-c0-quadfs@9103000 {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,quadfs-pll";
|
2014-08-25 18:44:00 +04:00
|
|
|
reg = <0x9103000 0x1000>;
|
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-c0-fs0-ch0",
|
|
|
|
"clk-s-c0-fs0-ch1",
|
|
|
|
"clk-s-c0-fs0-ch2",
|
|
|
|
"clk-s-c0-fs0-ch3";
|
2016-10-21 12:08:00 +03:00
|
|
|
clock-critical = <0>; /* clk-s-c0-fs0-ch0 */
|
2014-08-25 18:44:00 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
clk_s_c0: clockgen-c@09103000 {
|
|
|
|
compatible = "st,clkgen-c32";
|
|
|
|
reg = <0x9103000 0x1000>;
|
|
|
|
|
|
|
|
clk_s_c0_pll0: clk-s-c0-pll0 {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,clkgen-pll0";
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-c0-pll0-odf-0";
|
2016-10-21 12:08:00 +03:00
|
|
|
clock-critical = <0>; /* clk-s-c0-pll0-odf-0 */
|
2014-08-25 18:44:00 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
clk_s_c0_pll1: clk-s-c0-pll1 {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,clkgen-pll1";
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-c0-pll1-odf-0";
|
|
|
|
};
|
|
|
|
|
|
|
|
clk_s_c0_flexgen: clk-s-c0-flexgen {
|
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "st,flexgen";
|
|
|
|
|
|
|
|
clocks = <&clk_s_c0_pll0 0>,
|
|
|
|
<&clk_s_c0_pll1 0>,
|
|
|
|
<&clk_s_c0_quadfs 0>,
|
|
|
|
<&clk_s_c0_quadfs 1>,
|
|
|
|
<&clk_s_c0_quadfs 2>,
|
|
|
|
<&clk_s_c0_quadfs 3>,
|
|
|
|
<&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-icn-gpu",
|
|
|
|
"clk-fdma",
|
|
|
|
"clk-nand",
|
|
|
|
"clk-hva",
|
|
|
|
"clk-proc-stfe",
|
|
|
|
"clk-proc-tp",
|
|
|
|
"clk-rx-icn-dmu",
|
|
|
|
"clk-rx-icn-hva",
|
|
|
|
"clk-icn-cpu",
|
|
|
|
"clk-tx-icn-dmu",
|
|
|
|
"clk-mmc-0",
|
|
|
|
"clk-mmc-1",
|
|
|
|
"clk-jpegdec",
|
|
|
|
"clk-ext2fa9",
|
|
|
|
"clk-ic-bdisp-0",
|
|
|
|
"clk-ic-bdisp-1",
|
|
|
|
"clk-pp-dmu",
|
|
|
|
"clk-vid-dmu",
|
|
|
|
"clk-dss-lpc",
|
|
|
|
"clk-st231-aud-0",
|
|
|
|
"clk-st231-gp-1",
|
|
|
|
"clk-st231-dmu",
|
|
|
|
"clk-icn-lmi",
|
|
|
|
"clk-tx-icn-disp-1",
|
|
|
|
"clk-icn-sbc",
|
|
|
|
"clk-stfe-frc2",
|
|
|
|
"clk-eth-phy",
|
|
|
|
"clk-eth-ref-phyclk",
|
|
|
|
"clk-flash-promip",
|
|
|
|
"clk-main-disp",
|
|
|
|
"clk-aux-disp",
|
|
|
|
"clk-compo-dvp";
|
2016-10-21 12:08:00 +03:00
|
|
|
clock-critical = <CLK_PROC_STFE>,
|
|
|
|
<CLK_ICN_CPU>,
|
|
|
|
<CLK_TX_ICN_DMU>,
|
|
|
|
<CLK_EXT2F_A9>,
|
|
|
|
<CLK_ICN_LMI>,
|
|
|
|
<CLK_ICN_SBC>;
|
2014-08-25 18:44:00 +04:00
|
|
|
};
|
|
|
|
};
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clk_s_d0_quadfs: clk-s-d0-quadfs@9104000 {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,quadfs";
|
2014-08-25 18:44:00 +04:00
|
|
|
reg = <0x9104000 0x1000>;
|
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-d0-fs0-ch0",
|
|
|
|
"clk-s-d0-fs0-ch1",
|
|
|
|
"clk-s-d0-fs0-ch2",
|
|
|
|
"clk-s-d0-fs0-ch3";
|
|
|
|
};
|
|
|
|
|
|
|
|
clockgen-d0@09104000 {
|
|
|
|
compatible = "st,clkgen-c32";
|
|
|
|
reg = <0x9104000 0x1000>;
|
|
|
|
|
|
|
|
clk_s_d0_flexgen: clk-s-d0-flexgen {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,flexgen-audio", "st,flexgen";
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clocks = <&clk_s_d0_quadfs 0>,
|
|
|
|
<&clk_s_d0_quadfs 1>,
|
|
|
|
<&clk_s_d0_quadfs 2>,
|
|
|
|
<&clk_s_d0_quadfs 3>,
|
|
|
|
<&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-pcm-0",
|
|
|
|
"clk-pcm-1",
|
|
|
|
"clk-pcm-2",
|
|
|
|
"clk-spdiff";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,quadfs";
|
2014-08-25 18:44:00 +04:00
|
|
|
reg = <0x9106000 0x1000>;
|
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-d2-fs0-ch0",
|
|
|
|
"clk-s-d2-fs0-ch1",
|
|
|
|
"clk-s-d2-fs0-ch2",
|
|
|
|
"clk-s-d2-fs0-ch3";
|
|
|
|
};
|
|
|
|
|
|
|
|
clk_tmdsout_hdmi: clk-tmdsout-hdmi {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
clockgen-d2@x9106000 {
|
|
|
|
compatible = "st,clkgen-c32";
|
|
|
|
reg = <0x9106000 0x1000>;
|
|
|
|
|
|
|
|
clk_s_d2_flexgen: clk-s-d2-flexgen {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:27:00 +03:00
|
|
|
compatible = "st,flexgen-video", "st,flexgen";
|
2014-08-25 18:44:00 +04:00
|
|
|
|
|
|
|
clocks = <&clk_s_d2_quadfs 0>,
|
|
|
|
<&clk_s_d2_quadfs 1>,
|
|
|
|
<&clk_s_d2_quadfs 2>,
|
|
|
|
<&clk_s_d2_quadfs 3>,
|
|
|
|
<&clk_sysin>,
|
|
|
|
<&clk_sysin>,
|
|
|
|
<&clk_tmdsout_hdmi>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-pix-main-disp",
|
|
|
|
"clk-pix-pip",
|
|
|
|
"clk-pix-gdp1",
|
|
|
|
"clk-pix-gdp2",
|
|
|
|
"clk-pix-gdp3",
|
|
|
|
"clk-pix-gdp4",
|
|
|
|
"clk-pix-aux-disp",
|
|
|
|
"clk-denc",
|
|
|
|
"clk-pix-hddac",
|
|
|
|
"clk-hddac",
|
|
|
|
"clk-sddac",
|
|
|
|
"clk-pix-dvo",
|
|
|
|
"clk-dvo",
|
|
|
|
"clk-pix-hdmi",
|
2014-09-04 16:59:00 +04:00
|
|
|
"clk-tmds-hdmi",
|
2014-08-25 18:44:00 +04:00
|
|
|
"clk-ref-hdmiphy";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
clk_s_d3_quadfs: clk-s-d3-quadfs@9107000 {
|
|
|
|
#clock-cells = <1>;
|
2016-08-29 15:26:00 +03:00
|
|
|
compatible = "st,quadfs";
|
2014-08-25 18:44:00 +04:00
|
|
|
reg = <0x9107000 0x1000>;
|
|
|
|
|
|
|
|
clocks = <&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-s-d3-fs0-ch0",
|
|
|
|
"clk-s-d3-fs0-ch1",
|
|
|
|
"clk-s-d3-fs0-ch2",
|
|
|
|
"clk-s-d3-fs0-ch3";
|
|
|
|
};
|
|
|
|
|
|
|
|
clockgen-d3@9107000 {
|
|
|
|
compatible = "st,clkgen-c32";
|
|
|
|
reg = <0x9107000 0x1000>;
|
|
|
|
|
|
|
|
clk_s_d3_flexgen: clk-s-d3-flexgen {
|
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "st,flexgen";
|
|
|
|
|
|
|
|
clocks = <&clk_s_d3_quadfs 0>,
|
|
|
|
<&clk_s_d3_quadfs 1>,
|
|
|
|
<&clk_s_d3_quadfs 2>,
|
|
|
|
<&clk_s_d3_quadfs 3>,
|
|
|
|
<&clk_sysin>;
|
|
|
|
|
|
|
|
clock-output-names = "clk-stfe-frc1",
|
|
|
|
"clk-tsout-0",
|
|
|
|
"clk-tsout-1",
|
|
|
|
"clk-mchi",
|
|
|
|
"clk-vsens-compo",
|
|
|
|
"clk-frc1-remote",
|
|
|
|
"clk-lpc-0",
|
|
|
|
"clk-lpc-1";
|
|
|
|
};
|
|
|
|
};
|
2014-02-27 16:27:27 +04:00
|
|
|
};
|
|
|
|
};
|