2021-05-27 13:52:11 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
|
/*
|
|
|
|
* (C) Copyright 2020-2021 SiFive, Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/reset/sifive-fu740-prci.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
2022-08-25 08:11:18 +00:00
|
|
|
assigned-clocks = <&prci FU740_PRCI_CLK_COREPLL>;
|
2021-05-27 13:52:11 +00:00
|
|
|
assigned-clock-rates = <1200000000>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
cpu0: cpu@0 {
|
2022-08-25 08:11:18 +00:00
|
|
|
clocks = <&prci FU740_PRCI_CLK_COREPLL>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
status = "okay";
|
|
|
|
cpu0_intc: interrupt-controller {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
cpu1: cpu@1 {
|
2022-08-25 08:11:18 +00:00
|
|
|
clocks = <&prci FU740_PRCI_CLK_COREPLL>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
cpu1_intc: interrupt-controller {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
cpu2: cpu@2 {
|
2022-08-25 08:11:18 +00:00
|
|
|
clocks = <&prci FU740_PRCI_CLK_COREPLL>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
cpu2_intc: interrupt-controller {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
cpu3: cpu@3 {
|
2022-08-25 08:11:18 +00:00
|
|
|
clocks = <&prci FU740_PRCI_CLK_COREPLL>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
cpu3_intc: interrupt-controller {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
cpu4: cpu@4 {
|
2022-08-25 08:11:18 +00:00
|
|
|
clocks = <&prci FU740_PRCI_CLK_COREPLL>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
cpu4_intc: interrupt-controller {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
clint: clint@2000000 {
|
|
|
|
compatible = "riscv,clint0";
|
|
|
|
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>;
|
|
|
|
reg = <0x0 0x2000000 0x0 0x10000>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
prci: clock-controller@10000000 {
|
|
|
|
#reset-cells = <1>;
|
|
|
|
resets = <&prci PRCI_RST_DDR_CTRL_N>,
|
|
|
|
<&prci PRCI_RST_DDR_AXI_N>,
|
|
|
|
<&prci PRCI_RST_DDR_AHB_N>,
|
|
|
|
<&prci PRCI_RST_DDR_PHY_N>,
|
|
|
|
<&prci PRCI_RST_GEMGXL_N>,
|
|
|
|
<&prci PRCI_RST_CLTX_N>;
|
|
|
|
reset-names = "ddr_ctrl", "ddr_axi", "ddr_ahb",
|
|
|
|
"ddr_phy", "gemgxl_reset", "cltx_reset";
|
|
|
|
};
|
|
|
|
dmc: dmc@100b0000 {
|
|
|
|
compatible = "sifive,fu740-c000-ddr";
|
|
|
|
reg = <0x0 0x100b0000 0x0 0x0800
|
|
|
|
0x0 0x100b2000 0x0 0x2000
|
|
|
|
0x0 0x100b8000 0x0 0x1000>;
|
2022-08-25 08:11:18 +00:00
|
|
|
clocks = <&prci FU740_PRCI_CLK_DDRPLL>;
|
2021-05-27 13:52:11 +00:00
|
|
|
clock-frequency = <933333324>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&prci {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-05-27 13:52:11 +00:00
|
|
|
};
|
|
|
|
|
2021-06-30 15:23:47 +00:00
|
|
|
&i2c0 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-pre-ram;
|
2021-06-30 15:23:47 +00:00
|
|
|
};
|
|
|
|
|
2021-05-27 13:52:11 +00:00
|
|
|
ð0 {
|
2022-08-25 08:11:18 +00:00
|
|
|
assigned-clocks = <&prci FU740_PRCI_CLK_GEMGXLPLL>;
|
2021-05-27 13:52:11 +00:00
|
|
|
assigned-clock-rates = <125125000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&ccache {
|
|
|
|
status = "okay";
|
|
|
|
};
|