Pragnesh Patel | 2a449a3 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 | /* |
| 3 | * (C) Copyright 2019 SiFive, Inc |
| 4 | */ |
| 5 | |
Sagar Shrikant Kadam | b0357f4 | 2020-07-29 02:36:12 -0700 | [diff] [blame] | 6 | #include <dt-bindings/reset/sifive-fu540-prci.h> |
| 7 | |
Pragnesh Patel | 2a449a3 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 8 | / { |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 9 | cpus { |
| 10 | assigned-clocks = <&prci PRCI_CLK_COREPLL>; |
| 11 | assigned-clock-rates = <1000000000>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 12 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 13 | cpu0: cpu@0 { |
| 14 | clocks = <&prci PRCI_CLK_COREPLL>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 15 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 16 | status = "okay"; |
| 17 | cpu0_intc: interrupt-controller { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 18 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 19 | }; |
| 20 | }; |
| 21 | cpu1: cpu@1 { |
| 22 | clocks = <&prci PRCI_CLK_COREPLL>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 23 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 24 | cpu1_intc: interrupt-controller { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 25 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 26 | }; |
| 27 | }; |
| 28 | cpu2: cpu@2 { |
| 29 | clocks = <&prci PRCI_CLK_COREPLL>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 30 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 31 | cpu2_intc: interrupt-controller { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 33 | }; |
| 34 | }; |
| 35 | cpu3: cpu@3 { |
| 36 | clocks = <&prci PRCI_CLK_COREPLL>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 37 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 38 | cpu3_intc: interrupt-controller { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 39 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 40 | }; |
| 41 | }; |
| 42 | cpu4: cpu@4 { |
| 43 | clocks = <&prci PRCI_CLK_COREPLL>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 44 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 45 | cpu4_intc: interrupt-controller { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 46 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 47 | }; |
| 48 | }; |
| 49 | }; |
| 50 | |
Pragnesh Patel | 2a449a3 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 51 | soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 52 | bootph-pre-ram; |
Pragnesh Patel | 2a449a3 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 53 | otp: otp@10070000 { |
| 54 | compatible = "sifive,fu540-c000-otp"; |
Bin Meng | 3961e14 | 2020-06-08 20:28:26 -0700 | [diff] [blame] | 55 | reg = <0x0 0x10070000 0x0 0x1000>; |
Pragnesh Patel | 2a449a3 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 56 | fuse-count = <0x1000>; |
| 57 | }; |
Sean Anderson | 3d999194 | 2020-09-28 10:52:29 -0400 | [diff] [blame] | 58 | clint: clint@2000000 { |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 59 | compatible = "riscv,clint0"; |
Sean Anderson | 3d999194 | 2020-09-28 10:52:29 -0400 | [diff] [blame] | 60 | interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 |
| 61 | &cpu1_intc 3 &cpu1_intc 7 |
| 62 | &cpu2_intc 3 &cpu2_intc 7 |
| 63 | &cpu3_intc 3 &cpu3_intc 7 |
| 64 | &cpu4_intc 3 &cpu4_intc 7>; |
Pragnesh Patel | 2dc5984 | 2020-10-20 11:03:02 +0530 | [diff] [blame] | 65 | reg = <0x0 0x2000000 0x0 0x10000>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 66 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 67 | }; |
Sagar Shrikant Kadam | b0357f4 | 2020-07-29 02:36:12 -0700 | [diff] [blame] | 68 | prci: clock-controller@10000000 { |
| 69 | #reset-cells = <1>; |
| 70 | resets = <&prci PRCI_RST_DDR_CTRL_N>, |
| 71 | <&prci PRCI_RST_DDR_AXI_N>, |
| 72 | <&prci PRCI_RST_DDR_AHB_N>, |
| 73 | <&prci PRCI_RST_DDR_PHY_N>, |
| 74 | <&prci PRCI_RST_GEMGXL_N>; |
| 75 | reset-names = "ddr_ctrl", "ddr_axi", "ddr_ahb", |
| 76 | "ddr_phy", "gemgxl_reset"; |
| 77 | }; |
Pragnesh Patel | 45ffc91 | 2020-05-29 11:33:28 +0530 | [diff] [blame] | 78 | dmc: dmc@100b0000 { |
| 79 | compatible = "sifive,fu540-c000-ddr"; |
| 80 | reg = <0x0 0x100b0000 0x0 0x0800 |
| 81 | 0x0 0x100b2000 0x0 0x2000 |
Bin Meng | 3961e14 | 2020-06-08 20:28:26 -0700 | [diff] [blame] | 82 | 0x0 0x100b8000 0x0 0x1000>; |
Pragnesh Patel | 45ffc91 | 2020-05-29 11:33:28 +0530 | [diff] [blame] | 83 | clocks = <&prci PRCI_CLK_DDRPLL>; |
| 84 | clock-frequency = <933333324>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 85 | bootph-pre-ram; |
Pragnesh Patel | 45ffc91 | 2020-05-29 11:33:28 +0530 | [diff] [blame] | 86 | }; |
Pragnesh Patel | 2a449a3 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 87 | }; |
| 88 | }; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 89 | |
| 90 | &prci { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 91 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | &uart0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 95 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 96 | }; |
| 97 | |
| 98 | &qspi2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 99 | bootph-pre-ram; |
Pragnesh Patel | b65f19f | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 100 | }; |
Pragnesh Patel | bb337f9 | 2020-05-29 11:33:32 +0530 | [diff] [blame] | 101 | |
| 102 | ð0 { |
| 103 | assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>; |
| 104 | assigned-clock-rates = <125000000>; |
| 105 | }; |
Pragnesh Patel | 8a52128 | 2020-05-29 12:14:51 +0530 | [diff] [blame] | 106 | |
| 107 | &l2cache { |
| 108 | status = "okay"; |
| 109 | }; |