162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * BSD LICENSE 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Copyright(c) 2014 Broadcom Corporation. All rights reserved. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 762306a36Sopenharmony_ci * modification, are permitted provided that the following conditions 862306a36Sopenharmony_ci * are met: 962306a36Sopenharmony_ci * 1062306a36Sopenharmony_ci * * Redistributions of source code must retain the above copyright 1162306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 1262306a36Sopenharmony_ci * * Redistributions in binary form must reproduce the above copyright 1362306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer in 1462306a36Sopenharmony_ci * the documentation and/or other materials provided with the 1562306a36Sopenharmony_ci * distribution. 1662306a36Sopenharmony_ci * * Neither the name of Broadcom Corporation nor the names of its 1762306a36Sopenharmony_ci * contributors may be used to endorse or promote products derived 1862306a36Sopenharmony_ci * from this software without specific prior written permission. 1962306a36Sopenharmony_ci * 2062306a36Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2162306a36Sopenharmony_ci * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2262306a36Sopenharmony_ci * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2362306a36Sopenharmony_ci * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2462306a36Sopenharmony_ci * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2562306a36Sopenharmony_ci * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2662306a36Sopenharmony_ci * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2762306a36Sopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2862306a36Sopenharmony_ci * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2962306a36Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3062306a36Sopenharmony_ci * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3162306a36Sopenharmony_ci */ 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciclocks { 3462306a36Sopenharmony_ci #address-cells = <1>; 3562306a36Sopenharmony_ci #size-cells = <1>; 3662306a36Sopenharmony_ci ranges; 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci osc: oscillator { 3962306a36Sopenharmony_ci #clock-cells = <0>; 4062306a36Sopenharmony_ci compatible = "fixed-clock"; 4162306a36Sopenharmony_ci clock-frequency = <25000000>; 4262306a36Sopenharmony_ci }; 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci /* Cygnus ARM PLL */ 4562306a36Sopenharmony_ci armpll: armpll@19000000 { 4662306a36Sopenharmony_ci #clock-cells = <0>; 4762306a36Sopenharmony_ci compatible = "brcm,cygnus-armpll"; 4862306a36Sopenharmony_ci clocks = <&osc>; 4962306a36Sopenharmony_ci reg = <0x19000000 0x1000>; 5062306a36Sopenharmony_ci }; 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci /* peripheral clock for system timer */ 5362306a36Sopenharmony_ci periph_clk: arm_periph_clk { 5462306a36Sopenharmony_ci #clock-cells = <0>; 5562306a36Sopenharmony_ci compatible = "fixed-factor-clock"; 5662306a36Sopenharmony_ci clocks = <&armpll>; 5762306a36Sopenharmony_ci clock-div = <2>; 5862306a36Sopenharmony_ci clock-mult = <1>; 5962306a36Sopenharmony_ci }; 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ci /* APB bus clock */ 6262306a36Sopenharmony_ci apb_clk: apb_clk { 6362306a36Sopenharmony_ci #clock-cells = <0>; 6462306a36Sopenharmony_ci compatible = "fixed-factor-clock"; 6562306a36Sopenharmony_ci clocks = <&armpll>; 6662306a36Sopenharmony_ci clock-div = <4>; 6762306a36Sopenharmony_ci clock-mult = <1>; 6862306a36Sopenharmony_ci }; 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ci genpll: genpll@301d000 { 7162306a36Sopenharmony_ci #clock-cells = <1>; 7262306a36Sopenharmony_ci compatible = "brcm,cygnus-genpll"; 7362306a36Sopenharmony_ci reg = <0x0301d000 0x2c>, <0x0301c020 0x4>; 7462306a36Sopenharmony_ci clocks = <&osc>; 7562306a36Sopenharmony_ci clock-output-names = "genpll", "axi21", "250mhz", "ihost_sys", 7662306a36Sopenharmony_ci "enet_sw", "audio_125", "can"; 7762306a36Sopenharmony_ci }; 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ci /* always 1/2 of the axi21 clock */ 8062306a36Sopenharmony_ci axi41_clk: axi41_clk { 8162306a36Sopenharmony_ci #clock-cells = <0>; 8262306a36Sopenharmony_ci compatible = "fixed-factor-clock"; 8362306a36Sopenharmony_ci clocks = <&genpll 1>; 8462306a36Sopenharmony_ci clock-div = <2>; 8562306a36Sopenharmony_ci clock-mult = <1>; 8662306a36Sopenharmony_ci }; 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci /* always 1/4 of the axi21 clock */ 8962306a36Sopenharmony_ci axi81_clk: axi81_clk { 9062306a36Sopenharmony_ci #clock-cells = <0>; 9162306a36Sopenharmony_ci compatible = "fixed-factor-clock"; 9262306a36Sopenharmony_ci clocks = <&genpll 1>; 9362306a36Sopenharmony_ci clock-div = <4>; 9462306a36Sopenharmony_ci clock-mult = <1>; 9562306a36Sopenharmony_ci }; 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ci lcpll0: lcpll0@301d02c { 9862306a36Sopenharmony_ci #clock-cells = <1>; 9962306a36Sopenharmony_ci compatible = "brcm,cygnus-lcpll0"; 10062306a36Sopenharmony_ci reg = <0x0301d02c 0x1c>, <0x0301c020 0x4>; 10162306a36Sopenharmony_ci clocks = <&osc>; 10262306a36Sopenharmony_ci clock-output-names = "lcpll0", "pcie_phy", "ddr_phy", "sdio", 10362306a36Sopenharmony_ci "usb_phy", "smart_card", "ch5"; 10462306a36Sopenharmony_ci }; 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ci mipipll: mipipll@180a9800 { 10762306a36Sopenharmony_ci #clock-cells = <1>; 10862306a36Sopenharmony_ci compatible = "brcm,cygnus-mipipll"; 10962306a36Sopenharmony_ci reg = <0x180a9800 0x2c>, <0x0301c020 0x4>, <0x180aa024 0x4>; 11062306a36Sopenharmony_ci clocks = <&osc>; 11162306a36Sopenharmony_ci clock-output-names = "mipipll", "ch0_unused", "ch1_lcd", 11262306a36Sopenharmony_ci "ch2_v3d", "ch3_unused", "ch4_unused", 11362306a36Sopenharmony_ci "ch5_unused"; 11462306a36Sopenharmony_ci }; 11562306a36Sopenharmony_ci 11662306a36Sopenharmony_ci asiu_clks: asiu_clks@301d048 { 11762306a36Sopenharmony_ci #clock-cells = <1>; 11862306a36Sopenharmony_ci compatible = "brcm,cygnus-asiu-clk"; 11962306a36Sopenharmony_ci reg = <0x0301d048 0xc>, <0x180aa024 0x4>; 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci clocks = <&osc>; 12262306a36Sopenharmony_ci clock-output-names = "keypad", "adc/touch", "pwm"; 12362306a36Sopenharmony_ci }; 12462306a36Sopenharmony_ci 12562306a36Sopenharmony_ci audiopll: audiopll@180aeb00 { 12662306a36Sopenharmony_ci #clock-cells = <1>; 12762306a36Sopenharmony_ci compatible = "brcm,cygnus-audiopll"; 12862306a36Sopenharmony_ci reg = <0x180aeb00 0x68>; 12962306a36Sopenharmony_ci clocks = <&osc>; 13062306a36Sopenharmony_ci clock-output-names = "audiopll", "ch0_audio", 13162306a36Sopenharmony_ci "ch1_audio", "ch2_audio"; 13262306a36Sopenharmony_ci }; 13362306a36Sopenharmony_ci}; 134