|
30 | 30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 | 31 | */ |
32 | 32 |
|
| 33 | +#include <dt-bindings/clock/bcm-sr.h> |
33 | 34 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
34 | 35 |
|
35 | 36 | / { |
|
159 | 160 | reg = <0 0x60401000 0 0x38c>; |
160 | 161 | }; |
161 | 162 |
|
| 163 | + osc: clock-50000000 { |
| 164 | + #clock-cells = <0>; |
| 165 | + compatible = "fixed-clock"; |
| 166 | + clock-frequency = <50000000>; |
| 167 | + }; |
| 168 | + |
| 169 | + crmu_ref25m: hsls_25m_clk: clock-25000000 { |
| 170 | + #clock-cells = <0>; |
| 171 | + compatible = "fixed-factor-clock"; |
| 172 | + clocks = <&osc>; |
| 173 | + clock-div = <2>; |
| 174 | + clock-mult = <1>; |
| 175 | + }; |
| 176 | + |
| 177 | + hsls_div2_clk: hsls_div2_clk { |
| 178 | + #clock-cells = <0>; |
| 179 | + compatible = "fixed-factor-clock"; |
| 180 | + clocks = <&genpll3 BCM_SR_GENPLL3_HSLS_CLK>; |
| 181 | + clock-div = <2>; |
| 182 | + clock-mult = <1>; |
| 183 | + |
| 184 | + }; |
| 185 | + |
| 186 | + hsls_div4_clk: hsls_div4_clk { |
| 187 | + #clock-cells = <0>; |
| 188 | + compatible = "fixed-factor-clock"; |
| 189 | + clocks = <&genpll3 BCM_SR_GENPLL3_HSLS_CLK>; |
| 190 | + clock-div = <4>; |
| 191 | + clock-mult = <1>; |
| 192 | + }; |
| 193 | + |
| 194 | + hsls_25m_div2_clk: clock-12500000 { |
| 195 | + #clock-cells = <0>; |
| 196 | + compatible = "fixed-factor-clock"; |
| 197 | + clocks = <&hsls_25m_clk>; |
| 198 | + clock-div = <2>; |
| 199 | + clock-mult = <1>; |
| 200 | + }; |
| 201 | + |
162 | 202 | scr { |
163 | 203 | compatible = "simple-bus"; |
164 | 204 | #address-cells = <1>; |
|
269 | 309 | #size-cells = <1>; |
270 | 310 | ranges = <0x0 0x0 0x66400000 0x100000>; |
271 | 311 |
|
272 | | - #include "stingray-clock.dtsi" |
273 | | - |
274 | 312 | otp: otp@1c400 { |
275 | 313 | compatible = "brcm,ocotp-v2"; |
276 | 314 | reg = <0x0001c400 0x68>; |
|
283 | 321 | reg = <0x0001d000 0x400>; |
284 | 322 | }; |
285 | 323 |
|
| 324 | + lcpll0: clock-controller@1d0c4 { |
| 325 | + #clock-cells = <1>; |
| 326 | + compatible = "brcm,sr-lcpll0"; |
| 327 | + reg = <0x0001d0c4 0x3c>, |
| 328 | + <0x0001c870 0x4>; |
| 329 | + clocks = <&osc>; |
| 330 | + clock-output-names = "lcpll0", "clk_sata_refp", |
| 331 | + "clk_sata_refn", "clk_sata_350", |
| 332 | + "clk_sata_500"; |
| 333 | + }; |
| 334 | + |
| 335 | + genpll0: clock-controller@1d104 { |
| 336 | + #clock-cells = <1>; |
| 337 | + compatible = "brcm,sr-genpll0"; |
| 338 | + reg = <0x0001d104 0x32>, |
| 339 | + <0x0001c854 0x4>; |
| 340 | + clocks = <&osc>; |
| 341 | + clock-output-names = "genpll0", "clk_125m", "clk_scr", |
| 342 | + "clk_250", "clk_pcie_axi", |
| 343 | + "clk_paxc_axi_x2", |
| 344 | + "clk_paxc_axi"; |
| 345 | + }; |
| 346 | + |
| 347 | + lcpll1: clock-controller@1d138 { |
| 348 | + #clock-cells = <1>; |
| 349 | + compatible = "brcm,sr-lcpll1"; |
| 350 | + reg = <0x0001d138 0x3c>, |
| 351 | + <0x0001c870 0x4>; |
| 352 | + clocks = <&osc>; |
| 353 | + clock-output-names = "lcpll1", "clk_wan", |
| 354 | + "clk_usb_ref", |
| 355 | + "clk_crmu_ts"; |
| 356 | + }; |
| 357 | + |
| 358 | + genpll2: clock-controller@1d1ac { |
| 359 | + #clock-cells = <1>; |
| 360 | + compatible = "brcm,sr-genpll2"; |
| 361 | + reg = <0x0001d1ac 0x32>, |
| 362 | + <0x0001c854 0x4>; |
| 363 | + clocks = <&osc>; |
| 364 | + clock-output-names = "genpll2", "clk_nic", |
| 365 | + "clk_ts_500_ref", "clk_125_nitro", |
| 366 | + "clk_chimp", "clk_nic_flash", |
| 367 | + "clk_fs"; |
| 368 | + }; |
| 369 | + |
| 370 | + genpll3: clock-controller@1d1e0 { |
| 371 | + #clock-cells = <1>; |
| 372 | + compatible = "brcm,sr-genpll3"; |
| 373 | + reg = <0x0001d1e0 0x32>, |
| 374 | + <0x0001c854 0x4>; |
| 375 | + clocks = <&osc>; |
| 376 | + clock-output-names = "genpll3", "clk_hsls", |
| 377 | + "clk_sdio"; |
| 378 | + }; |
| 379 | + |
| 380 | + genpll4: clock-controller@1d214 { |
| 381 | + #clock-cells = <1>; |
| 382 | + compatible = "brcm,sr-genpll4"; |
| 383 | + reg = <0x0001d214 0x32>, |
| 384 | + <0x0001c854 0x4>; |
| 385 | + clocks = <&osc>; |
| 386 | + clock-output-names = "genpll4", "clk_ccn", |
| 387 | + "clk_tpiu_pll", "clk_noc", |
| 388 | + "clk_chclk_fs4", |
| 389 | + "clk_bridge_fscpu"; |
| 390 | + }; |
| 391 | + |
| 392 | + genpll5: clock-controller@1d248 { |
| 393 | + #clock-cells = <1>; |
| 394 | + compatible = "brcm,sr-genpll5"; |
| 395 | + reg = <0x0001d248 0x32>, |
| 396 | + <0x0001c870 0x4>; |
| 397 | + clocks = <&osc>; |
| 398 | + clock-output-names = "genpll5", "clk_fs4_hf", |
| 399 | + "clk_crypto_ae", "clk_raid_ae"; |
| 400 | + }; |
| 401 | + |
286 | 402 | gpio_crmu: gpio@24800 { |
287 | 403 | compatible = "brcm,iproc-gpio"; |
288 | 404 | reg = <0x00024800 0x4c>; |
|
593 | 709 | reg = <0x003f1000 0x100>; |
594 | 710 | interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>; |
595 | 711 | bus-width = <8>; |
596 | | - clocks = <&sdio0_clk>; |
| 712 | + clocks = <&genpll3 BCM_SR_GENPLL3_SDIO_CLK>; |
597 | 713 | iommus = <&smmu 0x6002 0x0000>; |
598 | 714 | status = "disabled"; |
599 | 715 | }; |
|
603 | 719 | reg = <0x003f2000 0x100>; |
604 | 720 | interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>; |
605 | 721 | bus-width = <8>; |
606 | | - clocks = <&sdio1_clk>; |
| 722 | + clocks = <&genpll3 BCM_SR_GENPLL3_SDIO_CLK>; |
607 | 723 | iommus = <&smmu 0x6003 0x0000>; |
608 | 724 | status = "disabled"; |
609 | 725 | }; |
|
0 commit comments