cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

dm814x-clocks.dtsi (9243B)


      1// SPDX-License-Identifier: GPL-2.0-only
      2
      3&pllss {
      4	/*
      5	 * See TRM "2.6.10 Connected outputso DPLLS" and
      6	 * "2.6.11 Connected Outputs of DPLLJ". Only clkout is
      7	 * connected except for hdmi and usb.
      8	 */
      9	adpll_mpu_ck: adpll@40 {
     10		#clock-cells = <1>;
     11		compatible = "ti,dm814-adpll-s-clock";
     12		reg = <0x40 0x40>;
     13		clocks = <&devosc_ck &devosc_ck &devosc_ck>;
     14		clock-names = "clkinp", "clkinpulow", "clkinphif";
     15		clock-output-names = "481c5040.adpll.dcoclkldo",
     16				     "481c5040.adpll.clkout",
     17				     "481c5040.adpll.clkoutx2",
     18				     "481c5040.adpll.clkouthif";
     19	};
     20
     21	adpll_dsp_ck: adpll@80 {
     22		#clock-cells = <1>;
     23		compatible = "ti,dm814-adpll-lj-clock";
     24		reg = <0x80 0x30>;
     25		clocks = <&devosc_ck &devosc_ck>;
     26		clock-names = "clkinp", "clkinpulow";
     27		clock-output-names = "481c5080.adpll.dcoclkldo",
     28				     "481c5080.adpll.clkout",
     29				     "481c5080.adpll.clkoutldo";
     30	};
     31
     32	adpll_sgx_ck: adpll@b0 {
     33		#clock-cells = <1>;
     34		compatible = "ti,dm814-adpll-lj-clock";
     35		reg = <0xb0 0x30>;
     36		clocks = <&devosc_ck &devosc_ck>;
     37		clock-names = "clkinp", "clkinpulow";
     38		clock-output-names = "481c50b0.adpll.dcoclkldo",
     39				     "481c50b0.adpll.clkout",
     40				     "481c50b0.adpll.clkoutldo";
     41	};
     42
     43	adpll_hdvic_ck: adpll@e0 {
     44		#clock-cells = <1>;
     45		compatible = "ti,dm814-adpll-lj-clock";
     46		reg = <0xe0 0x30>;
     47		clocks = <&devosc_ck &devosc_ck>;
     48		clock-names = "clkinp", "clkinpulow";
     49		clock-output-names = "481c50e0.adpll.dcoclkldo",
     50				     "481c50e0.adpll.clkout",
     51				     "481c50e0.adpll.clkoutldo";
     52	};
     53
     54	adpll_l3_ck: adpll@110 {
     55		#clock-cells = <1>;
     56		compatible = "ti,dm814-adpll-lj-clock";
     57		reg = <0x110 0x30>;
     58		clocks = <&devosc_ck &devosc_ck>;
     59		clock-names = "clkinp", "clkinpulow";
     60		clock-output-names = "481c5110.adpll.dcoclkldo",
     61				     "481c5110.adpll.clkout",
     62				     "481c5110.adpll.clkoutldo";
     63	};
     64
     65	adpll_isp_ck: adpll@140 {
     66		#clock-cells = <1>;
     67		compatible = "ti,dm814-adpll-lj-clock";
     68		reg = <0x140 0x30>;
     69		clocks = <&devosc_ck &devosc_ck>;
     70		clock-names = "clkinp", "clkinpulow";
     71		clock-output-names = "481c5140.adpll.dcoclkldo",
     72				     "481c5140.adpll.clkout",
     73				     "481c5140.adpll.clkoutldo";
     74	};
     75
     76	adpll_dss_ck: adpll@170 {
     77		#clock-cells = <1>;
     78		compatible = "ti,dm814-adpll-lj-clock";
     79		reg = <0x170 0x30>;
     80		clocks = <&devosc_ck &devosc_ck>;
     81		clock-names = "clkinp", "clkinpulow";
     82		clock-output-names = "481c5170.adpll.dcoclkldo",
     83				     "481c5170.adpll.clkout",
     84				     "481c5170.adpll.clkoutldo";
     85	};
     86
     87	adpll_video0_ck: adpll@1a0 {
     88		#clock-cells = <1>;
     89		compatible = "ti,dm814-adpll-lj-clock";
     90		reg = <0x1a0 0x30>;
     91		clocks = <&devosc_ck &devosc_ck>;
     92		clock-names = "clkinp", "clkinpulow";
     93		clock-output-names = "481c51a0.adpll.dcoclkldo",
     94				     "481c51a0.adpll.clkout",
     95				     "481c51a0.adpll.clkoutldo";
     96	};
     97
     98	adpll_video1_ck: adpll@1d0 {
     99		#clock-cells = <1>;
    100		compatible = "ti,dm814-adpll-lj-clock";
    101		reg = <0x1d0 0x30>;
    102		clocks = <&devosc_ck &devosc_ck>;
    103		clock-names = "clkinp", "clkinpulow";
    104		clock-output-names = "481c51d0.adpll.dcoclkldo",
    105				     "481c51d0.adpll.clkout",
    106				     "481c51d0.adpll.clkoutldo";
    107	};
    108
    109	adpll_hdmi_ck: adpll@200 {
    110		#clock-cells = <1>;
    111		compatible = "ti,dm814-adpll-lj-clock";
    112		reg = <0x200 0x30>;
    113		clocks = <&devosc_ck &devosc_ck>;
    114		clock-names = "clkinp", "clkinpulow";
    115		clock-output-names = "481c5200.adpll.dcoclkldo",
    116				     "481c5200.adpll.clkout",
    117				     "481c5200.adpll.clkoutldo";
    118	};
    119
    120	adpll_audio_ck: adpll@230 {
    121		#clock-cells = <1>;
    122		compatible = "ti,dm814-adpll-lj-clock";
    123		reg = <0x230 0x30>;
    124		clocks = <&devosc_ck &devosc_ck>;
    125		clock-names = "clkinp", "clkinpulow";
    126		clock-output-names = "481c5230.adpll.dcoclkldo",
    127				     "481c5230.adpll.clkout",
    128				     "481c5230.adpll.clkoutldo";
    129	};
    130
    131	adpll_usb_ck: adpll@260 {
    132		#clock-cells = <1>;
    133		compatible = "ti,dm814-adpll-lj-clock";
    134		reg = <0x260 0x30>;
    135		clocks = <&devosc_ck &devosc_ck>;
    136		clock-names = "clkinp", "clkinpulow";
    137		clock-output-names = "481c5260.adpll.dcoclkldo",
    138				     "481c5260.adpll.clkout",
    139				     "481c5260.adpll.clkoutldo";
    140	};
    141
    142	adpll_ddr_ck: adpll@290 {
    143		#clock-cells = <1>;
    144		compatible = "ti,dm814-adpll-lj-clock";
    145		reg = <0x290 0x30>;
    146		clocks = <&devosc_ck &devosc_ck>;
    147		clock-names = "clkinp", "clkinpulow";
    148		clock-output-names = "481c5290.adpll.dcoclkldo",
    149				     "481c5290.adpll.clkout",
    150				     "481c5290.adpll.clkoutldo";
    151	};
    152};
    153
    154&pllss_clocks {
    155	timer1_fck: timer1_fck@2e0 {
    156		#clock-cells = <0>;
    157		compatible = "ti,mux-clock";
    158		clocks = <&sysclk18_ck &aud_clkin0_ck &aud_clkin1_ck
    159			  &aud_clkin2_ck &devosc_ck &auxosc_ck &tclkin_ck>;
    160		ti,bit-shift = <3>;
    161		reg = <0x2e0>;
    162	};
    163
    164	timer2_fck: timer2_fck@2e0 {
    165		#clock-cells = <0>;
    166		compatible = "ti,mux-clock";
    167		clocks = <&sysclk18_ck &aud_clkin0_ck &aud_clkin1_ck
    168			  &aud_clkin2_ck &devosc_ck &auxosc_ck &tclkin_ck>;
    169		ti,bit-shift = <6>;
    170		reg = <0x2e0>;
    171	};
    172
    173	/* CPTS_RFT_CLK in RMII_REFCLK_SRC, usually sourced from auiod */
    174	cpsw_cpts_rft_clk: cpsw_cpts_rft_clk {
    175		#clock-cells = <0>;
    176		compatible = "ti,mux-clock";
    177		clocks = <&adpll_video0_ck 1
    178			  &adpll_video1_ck 1
    179			  &adpll_audio_ck 1>;
    180		ti,bit-shift = <1>;
    181		reg = <0x2e8>;
    182	};
    183
    184	/* REVISIT: Set up with a proper mux using RMII_REFCLK_SRC */
    185	cpsw_125mhz_gclk: cpsw_125mhz_gclk {
    186		#clock-cells = <0>;
    187		compatible = "fixed-clock";
    188		clock-frequency = <125000000>;
    189	};
    190
    191	sysclk18_ck: sysclk18_ck@2f0 {
    192		#clock-cells = <0>;
    193		compatible = "ti,mux-clock";
    194		clocks = <&rtcosc_ck>, <&rtcdivider_ck>;
    195		ti,bit-shift = <0>;
    196		reg = <0x02f0>;
    197	};
    198};
    199
    200&scm_clocks {
    201	devosc_ck: devosc_ck@40 {
    202		#clock-cells = <0>;
    203		compatible = "ti,mux-clock";
    204		clocks = <&virt_20000000_ck>, <&virt_19200000_ck>;
    205		ti,bit-shift = <21>;
    206		reg = <0x0040>;
    207	};
    208
    209	/* Optional auxosc, 20 - 30 MHz range, assume 22.5729 MHz by default */
    210	auxosc_ck: auxosc_ck {
    211		#clock-cells = <0>;
    212		compatible = "fixed-clock";
    213		clock-frequency = <22572900>;
    214	};
    215
    216	/* Optional 32768Hz crystal or clock on RTCOSC pins */
    217	rtcosc_ck: rtcosc_ck {
    218		#clock-cells = <0>;
    219		compatible = "fixed-clock";
    220		clock-frequency = <32768>;
    221	};
    222
    223	/* Optional external clock on TCLKIN pin, set rate in baord dts file */
    224	tclkin_ck: tclkin_ck {
    225		#clock-cells = <0>;
    226		compatible = "fixed-clock";
    227		clock-frequency = <0>;
    228	};
    229
    230	virt_20000000_ck: virt_20000000_ck {
    231		#clock-cells = <0>;
    232		compatible = "fixed-clock";
    233		clock-frequency = <20000000>;
    234	};
    235
    236	virt_19200000_ck: virt_19200000_ck {
    237		#clock-cells = <0>;
    238		compatible = "fixed-clock";
    239		clock-frequency = <19200000>;
    240	};
    241
    242	mpu_ck: mpu_ck {
    243		#clock-cells = <0>;
    244		compatible = "fixed-clock";
    245		clock-frequency = <1000000000>;
    246	};
    247};
    248
    249&prcm_clocks {
    250	osc_src_ck: osc_src_ck {
    251		#clock-cells = <0>;
    252		compatible = "fixed-factor-clock";
    253		clocks = <&devosc_ck>;
    254		clock-mult = <1>;
    255		clock-div = <1>;
    256	};
    257
    258	mpu_clksrc_ck: mpu_clksrc_ck@40 {
    259		#clock-cells = <0>;
    260		compatible = "ti,mux-clock";
    261		clocks = <&devosc_ck>, <&rtcdivider_ck>;
    262		ti,bit-shift = <0>;
    263		reg = <0x0040>;
    264	};
    265
    266	/* Fixed divider clock 0.0016384 * devosc */
    267	rtcdivider_ck: rtcdivider_ck {
    268		#clock-cells = <0>;
    269		compatible = "fixed-factor-clock";
    270		clocks = <&devosc_ck>;
    271		clock-mult = <128>;
    272		clock-div = <78125>;
    273	};
    274
    275	/* L4_HS 220 MHz*/
    276	sysclk4_ck: sysclk4_ck {
    277		#clock-cells = <0>;
    278		compatible = "ti,fixed-factor-clock";
    279		clocks = <&adpll_l3_ck 1>;
    280		ti,clock-mult = <1>;
    281		ti,clock-div = <1>;
    282	};
    283
    284	/* L4_FWCFG */
    285	sysclk5_ck: sysclk5_ck {
    286		#clock-cells = <0>;
    287		compatible = "ti,fixed-factor-clock";
    288		clocks = <&adpll_l3_ck 1>;
    289		ti,clock-mult = <1>;
    290		ti,clock-div = <2>;
    291	};
    292
    293	/* L4_LS 110 MHz */
    294	sysclk6_ck: sysclk6_ck {
    295		#clock-cells = <0>;
    296		compatible = "ti,fixed-factor-clock";
    297		clocks = <&adpll_l3_ck 1>;
    298		ti,clock-mult = <1>;
    299		ti,clock-div = <2>;
    300	};
    301
    302	sysclk8_ck: sysclk8_ck {
    303		#clock-cells = <0>;
    304		compatible = "ti,fixed-factor-clock";
    305		clocks = <&adpll_usb_ck 1>;
    306		ti,clock-mult = <1>;
    307		ti,clock-div = <1>;
    308	};
    309
    310	sysclk10_ck: sysclk10_ck {
    311		compatible = "ti,divider-clock";
    312		reg = <0x324>;
    313		ti,max-div = <7>;
    314		#clock-cells = <0>;
    315		clocks = <&adpll_usb_ck 1>;
    316	};
    317
    318	aud_clkin0_ck: aud_clkin0_ck {
    319		#clock-cells = <0>;
    320		compatible = "fixed-clock";
    321		clock-frequency = <20000000>;
    322	};
    323
    324	aud_clkin1_ck: aud_clkin1_ck {
    325		#clock-cells = <0>;
    326		compatible = "fixed-clock";
    327		clock-frequency = <20000000>;
    328	};
    329
    330	aud_clkin2_ck: aud_clkin2_ck {
    331		#clock-cells = <0>;
    332		compatible = "fixed-clock";
    333		clock-frequency = <20000000>;
    334	};
    335};
    336
    337&prcm {
    338	default_cm: default_cm@500 {
    339		compatible = "ti,omap4-cm";
    340		reg = <0x500 0x100>;
    341		#address-cells = <1>;
    342		#size-cells = <1>;
    343		ranges = <0 0x500 0x100>;
    344
    345		default_clkctrl: clk@0 {
    346			compatible = "ti,clkctrl";
    347			reg = <0x0 0x5c>;
    348			#clock-cells = <2>;
    349		};
    350	};
    351
    352	alwon_cm: alwon_cm@1400 {
    353		compatible = "ti,omap4-cm";
    354		reg = <0x1400 0x300>;
    355		#address-cells = <1>;
    356		#size-cells = <1>;
    357		ranges = <0 0x1400 0x300>;
    358
    359		alwon_clkctrl: clk@0 {
    360			compatible = "ti,clkctrl";
    361			reg = <0x0 0x228>;
    362			#clock-cells = <2>;
    363		};
    364	};
    365
    366	alwon_ethernet_cm: alwon_ethernet_cm@15d4 {
    367		compatible = "ti,omap4-cm";
    368		reg = <0x15d4 0x4>;
    369		#address-cells = <1>;
    370		#size-cells = <1>;
    371		ranges = <0 0x15d4 0x4>;
    372
    373		alwon_ethernet_clkctrl: clk@0 {
    374			compatible = "ti,clkctrl";
    375			reg = <0 0x4>;
    376			#clock-cells = <2>;
    377		};
    378	};
    379};