Skip to content

Commit ae80d51

Browse files
greentimeLorenzo Pieralisi
authored andcommitted
riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC
Link: https://lore.kernel.org/r/20210504105940.100004-7-greentime.hu@sifive.com Signed-off-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
1 parent e7e21b3 commit ae80d51

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

arch/riscv/boot/dts/sifive/fu740-c000.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
reg = <0x0 0x10000000 0x0 0x1000>;
160160
clocks = <&hfclk>, <&rtcclk>;
161161
#clock-cells = <1>;
162+
#reset-cells = <1>;
162163
};
163164
uart0: serial@10010000 {
164165
compatible = "sifive,fu740-c000-uart", "sifive,uart0";
@@ -289,5 +290,37 @@
289290
clocks = <&prci PRCI_CLK_PCLK>;
290291
status = "disabled";
291292
};
293+
pcie@e00000000 {
294+
compatible = "sifive,fu740-pcie";
295+
#address-cells = <3>;
296+
#size-cells = <2>;
297+
#interrupt-cells = <1>;
298+
reg = <0xe 0x00000000 0x0 0x80000000>,
299+
<0xd 0xf0000000 0x0 0x10000000>,
300+
<0x0 0x100d0000 0x0 0x1000>;
301+
reg-names = "dbi", "config", "mgmt";
302+
device_type = "pci";
303+
dma-coherent;
304+
bus-range = <0x0 0xff>;
305+
ranges = <0x81000000 0x0 0x60080000 0x0 0x60080000 0x0 0x10000>, /* I/O */
306+
<0x82000000 0x0 0x60090000 0x0 0x60090000 0x0 0xff70000>, /* mem */
307+
<0x82000000 0x0 0x70000000 0x0 0x70000000 0x0 0x1000000>, /* mem */
308+
<0xc3000000 0x20 0x00000000 0x20 0x00000000 0x20 0x00000000>; /* mem prefetchable */
309+
num-lanes = <0x8>;
310+
interrupts = <56>, <57>, <58>, <59>, <60>, <61>, <62>, <63>, <64>;
311+
interrupt-names = "msi", "inta", "intb", "intc", "intd";
312+
interrupt-parent = <&plic0>;
313+
interrupt-map-mask = <0x0 0x0 0x0 0x7>;
314+
interrupt-map = <0x0 0x0 0x0 0x1 &plic0 57>,
315+
<0x0 0x0 0x0 0x2 &plic0 58>,
316+
<0x0 0x0 0x0 0x3 &plic0 59>,
317+
<0x0 0x0 0x0 0x4 &plic0 60>;
318+
clock-names = "pcie_aux";
319+
clocks = <&prci PRCI_CLK_PCIE_AUX>;
320+
pwren-gpios = <&gpio 5 0>;
321+
reset-gpios = <&gpio 8 0>;
322+
resets = <&prci 4>;
323+
status = "okay";
324+
};
292325
};
293326
};

0 commit comments

Comments
 (0)