blob: 706224b384d22c1d74643e3cf73184df54e43cb5 [file] [log] [blame]
Green Wan06a3e402021-05-27 06:52:11 -07001// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * (C) Copyright 2020-2021 SiFive, Inc
4 */
5
6#include <dt-bindings/reset/sifive-fu740-prci.h>
7
8/ {
9 cpus {
Icenowy Zheng13d71702022-08-25 16:11:18 +080010 assigned-clocks = <&prci FU740_PRCI_CLK_COREPLL>;
Green Wan06a3e402021-05-27 06:52:11 -070011 assigned-clock-rates = <1200000000>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070012 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070013 cpu0: cpu@0 {
Icenowy Zheng13d71702022-08-25 16:11:18 +080014 clocks = <&prci FU740_PRCI_CLK_COREPLL>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070015 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070016 status = "okay";
17 cpu0_intc: interrupt-controller {
Simon Glassd3a98cb2023-02-13 08:56:33 -070018 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070019 };
20 };
21 cpu1: cpu@1 {
Icenowy Zheng13d71702022-08-25 16:11:18 +080022 clocks = <&prci FU740_PRCI_CLK_COREPLL>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070023 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070024 cpu1_intc: interrupt-controller {
Simon Glassd3a98cb2023-02-13 08:56:33 -070025 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070026 };
27 };
28 cpu2: cpu@2 {
Icenowy Zheng13d71702022-08-25 16:11:18 +080029 clocks = <&prci FU740_PRCI_CLK_COREPLL>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070030 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070031 cpu2_intc: interrupt-controller {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070033 };
34 };
35 cpu3: cpu@3 {
Icenowy Zheng13d71702022-08-25 16:11:18 +080036 clocks = <&prci FU740_PRCI_CLK_COREPLL>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070037 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070038 cpu3_intc: interrupt-controller {
Simon Glassd3a98cb2023-02-13 08:56:33 -070039 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070040 };
41 };
42 cpu4: cpu@4 {
Icenowy Zheng13d71702022-08-25 16:11:18 +080043 clocks = <&prci FU740_PRCI_CLK_COREPLL>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070044 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070045 cpu4_intc: interrupt-controller {
Simon Glassd3a98cb2023-02-13 08:56:33 -070046 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070047 };
48 };
49 };
50
51 soc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070052 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070053 clint: clint@2000000 {
54 compatible = "riscv,clint0";
55 interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7
56 &cpu1_intc 3 &cpu1_intc 7
57 &cpu2_intc 3 &cpu2_intc 7
58 &cpu3_intc 3 &cpu3_intc 7
59 &cpu4_intc 3 &cpu4_intc 7>;
60 reg = <0x0 0x2000000 0x0 0x10000>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070061 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070062 };
63 prci: clock-controller@10000000 {
64 #reset-cells = <1>;
65 resets = <&prci PRCI_RST_DDR_CTRL_N>,
66 <&prci PRCI_RST_DDR_AXI_N>,
67 <&prci PRCI_RST_DDR_AHB_N>,
68 <&prci PRCI_RST_DDR_PHY_N>,
69 <&prci PRCI_RST_GEMGXL_N>,
70 <&prci PRCI_RST_CLTX_N>;
71 reset-names = "ddr_ctrl", "ddr_axi", "ddr_ahb",
72 "ddr_phy", "gemgxl_reset", "cltx_reset";
73 };
74 dmc: dmc@100b0000 {
75 compatible = "sifive,fu740-c000-ddr";
76 reg = <0x0 0x100b0000 0x0 0x0800
77 0x0 0x100b2000 0x0 0x2000
78 0x0 0x100b8000 0x0 0x1000>;
Icenowy Zheng13d71702022-08-25 16:11:18 +080079 clocks = <&prci FU740_PRCI_CLK_DDRPLL>;
Green Wan06a3e402021-05-27 06:52:11 -070080 clock-frequency = <933333324>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070081 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070082 };
83 };
84};
85
86&prci {
Simon Glassd3a98cb2023-02-13 08:56:33 -070087 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070088};
89
90&uart0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070091 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070092};
93
94&spi0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070095 bootph-pre-ram;
Green Wan06a3e402021-05-27 06:52:11 -070096};
97
Zong Li9627a8e2021-06-30 23:23:47 +080098&i2c0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070099 bootph-pre-ram;
Zong Li9627a8e2021-06-30 23:23:47 +0800100};
101
Green Wan06a3e402021-05-27 06:52:11 -0700102&eth0 {
Icenowy Zheng13d71702022-08-25 16:11:18 +0800103 assigned-clocks = <&prci FU740_PRCI_CLK_GEMGXLPLL>;
Green Wan06a3e402021-05-27 06:52:11 -0700104 assigned-clock-rates = <125125000>;
105};
106
107&ccache {
108 status = "okay";
109};