Pragnesh Patel | 88eec61 | 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 | ea4e957 | 2020-07-29 02:36:12 -0700 | [diff] [blame^] | 6 | #include <dt-bindings/reset/sifive-fu540-prci.h> |
| 7 | |
Pragnesh Patel | 88eec61 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 8 | / { |
Pragnesh Patel | 0eed87e | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 9 | cpus { |
| 10 | assigned-clocks = <&prci PRCI_CLK_COREPLL>; |
| 11 | assigned-clock-rates = <1000000000>; |
| 12 | u-boot,dm-spl; |
| 13 | cpu0: cpu@0 { |
| 14 | clocks = <&prci PRCI_CLK_COREPLL>; |
| 15 | u-boot,dm-spl; |
| 16 | status = "okay"; |
| 17 | cpu0_intc: interrupt-controller { |
| 18 | u-boot,dm-spl; |
| 19 | }; |
| 20 | }; |
| 21 | cpu1: cpu@1 { |
| 22 | clocks = <&prci PRCI_CLK_COREPLL>; |
| 23 | u-boot,dm-spl; |
| 24 | cpu1_intc: interrupt-controller { |
| 25 | u-boot,dm-spl; |
| 26 | }; |
| 27 | }; |
| 28 | cpu2: cpu@2 { |
| 29 | clocks = <&prci PRCI_CLK_COREPLL>; |
| 30 | u-boot,dm-spl; |
| 31 | cpu2_intc: interrupt-controller { |
Bin Meng | 6c6a29c | 2020-06-08 20:28:25 -0700 | [diff] [blame] | 32 | u-boot,dm-spl; |
Pragnesh Patel | 0eed87e | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 33 | }; |
| 34 | }; |
| 35 | cpu3: cpu@3 { |
| 36 | clocks = <&prci PRCI_CLK_COREPLL>; |
| 37 | u-boot,dm-spl; |
| 38 | cpu3_intc: interrupt-controller { |
| 39 | u-boot,dm-spl; |
| 40 | }; |
| 41 | }; |
| 42 | cpu4: cpu@4 { |
| 43 | clocks = <&prci PRCI_CLK_COREPLL>; |
| 44 | u-boot,dm-spl; |
| 45 | cpu4_intc: interrupt-controller { |
| 46 | u-boot,dm-spl; |
| 47 | }; |
| 48 | }; |
| 49 | }; |
| 50 | |
Pragnesh Patel | 88eec61 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 51 | soc { |
Pragnesh Patel | 0eed87e | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 52 | u-boot,dm-spl; |
Pragnesh Patel | 88eec61 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 53 | otp: otp@10070000 { |
| 54 | compatible = "sifive,fu540-c000-otp"; |
Bin Meng | 76585c9 | 2020-06-08 20:28:26 -0700 | [diff] [blame] | 55 | reg = <0x0 0x10070000 0x0 0x1000>; |
Pragnesh Patel | 88eec61 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 56 | fuse-count = <0x1000>; |
| 57 | }; |
Pragnesh Patel | 0eed87e | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 58 | clint@2000000 { |
| 59 | compatible = "riscv,clint0"; |
| 60 | interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7 &cpu2_intc 3 &cpu2_intc 7 &cpu3_intc 3 &cpu3_intc 7 &cpu4_intc 3 &cpu4_intc 7>; |
| 61 | reg = <0x0 0x2000000 0x0 0xc0000>; |
| 62 | u-boot,dm-spl; |
| 63 | }; |
Sagar Shrikant Kadam | ea4e957 | 2020-07-29 02:36:12 -0700 | [diff] [blame^] | 64 | prci: clock-controller@10000000 { |
| 65 | #reset-cells = <1>; |
| 66 | resets = <&prci PRCI_RST_DDR_CTRL_N>, |
| 67 | <&prci PRCI_RST_DDR_AXI_N>, |
| 68 | <&prci PRCI_RST_DDR_AHB_N>, |
| 69 | <&prci PRCI_RST_DDR_PHY_N>, |
| 70 | <&prci PRCI_RST_GEMGXL_N>; |
| 71 | reset-names = "ddr_ctrl", "ddr_axi", "ddr_ahb", |
| 72 | "ddr_phy", "gemgxl_reset"; |
| 73 | }; |
Pragnesh Patel | fdf5dba | 2020-05-29 11:33:28 +0530 | [diff] [blame] | 74 | dmc: dmc@100b0000 { |
| 75 | compatible = "sifive,fu540-c000-ddr"; |
| 76 | reg = <0x0 0x100b0000 0x0 0x0800 |
| 77 | 0x0 0x100b2000 0x0 0x2000 |
Bin Meng | 76585c9 | 2020-06-08 20:28:26 -0700 | [diff] [blame] | 78 | 0x0 0x100b8000 0x0 0x1000>; |
Pragnesh Patel | fdf5dba | 2020-05-29 11:33:28 +0530 | [diff] [blame] | 79 | clocks = <&prci PRCI_CLK_DDRPLL>; |
| 80 | clock-frequency = <933333324>; |
| 81 | u-boot,dm-spl; |
| 82 | }; |
Pragnesh Patel | 88eec61 | 2020-05-29 11:33:22 +0530 | [diff] [blame] | 83 | }; |
| 84 | }; |
Pragnesh Patel | 0eed87e | 2020-05-29 11:33:25 +0530 | [diff] [blame] | 85 | |
| 86 | &prci { |
| 87 | u-boot,dm-spl; |
| 88 | }; |
| 89 | |
| 90 | &uart0 { |
| 91 | u-boot,dm-spl; |
| 92 | }; |
| 93 | |
| 94 | &qspi2 { |
| 95 | u-boot,dm-spl; |
| 96 | }; |
Pragnesh Patel | 329e023 | 2020-05-29 11:33:32 +0530 | [diff] [blame] | 97 | |
| 98 | ð0 { |
| 99 | assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>; |
| 100 | assigned-clock-rates = <125000000>; |
| 101 | }; |
Pragnesh Patel | 5ce5020 | 2020-05-29 12:14:51 +0530 | [diff] [blame] | 102 | |
| 103 | &l2cache { |
| 104 | status = "okay"; |
| 105 | }; |