Skip to content

Commit cfa6437

Browse files
kishonTero Kristo
authored andcommitted
arm64: dts: k3-am6: Add PCIe Root Complex DT node
Add PCIe Root Complex DT node. Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Tero Kristo <[email protected]>
1 parent cedc255 commit cfa6437

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

arch/arm64/boot/dts/ti/k3-am65-main.dtsi

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,21 @@
265265
#size-cells = <1>;
266266
ranges = <0x0 0x0 0x00100000 0x1c000>;
267267

268+
pcie0_mode: pcie-mode@4060 {
269+
compatible = "syscon";
270+
reg = <0x00004060 0x4>;
271+
};
272+
273+
pcie1_mode: pcie-mode@4070 {
274+
compatible = "syscon";
275+
reg = <0x00004070 0x4>;
276+
};
277+
278+
pcie_devid: pcie-devid@210 {
279+
compatible = "syscon";
280+
reg = <0x00000210 0x4>;
281+
};
282+
268283
serdes0_clk: serdes_clk@4080 {
269284
compatible = "syscon";
270285
reg = <0x00004080 0x4>;
@@ -431,4 +446,42 @@
431446
clocks = <&k3_clks 58 0>;
432447
clock-names = "gpio";
433448
};
449+
450+
pcie0_rc: pcie@5500000 {
451+
compatible = "ti,am654-pcie-rc";
452+
reg = <0x0 0x5500000 0x0 0x1000>, <0x0 0x5501000 0x0 0x1000>, <0x0 0x10000000 0x0 0x2000>, <0x0 0x5506000 0x0 0x1000>;
453+
reg-names = "app", "dbics", "config", "atu";
454+
power-domains = <&k3_pds 120>;
455+
#address-cells = <3>;
456+
#size-cells = <2>;
457+
ranges = <0x81000000 0 0 0x0 0x10020000 0 0x00010000
458+
0x82000000 0 0x10030000 0x0 0x10030000 0 0x07FD0000>;
459+
ti,syscon-pcie-id = <&pcie_devid>;
460+
ti,syscon-pcie-mode = <&pcie0_mode>;
461+
bus-range = <0x0 0xff>;
462+
num-viewport = <16>;
463+
max-link-speed = <3>;
464+
dma-coherent;
465+
interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
466+
msi-map = <0x0 &gic_its 0x0 0x10000>;
467+
};
468+
469+
pcie1_rc: pcie@5600000 {
470+
compatible = "ti,am654-pcie-rc";
471+
reg = <0x0 0x5600000 0x0 0x1000>, <0x0 0x5601000 0x0 0x1000>, <0x0 0x18000000 0x0 0x2000>, <0x0 0x5606000 0x0 0x1000>;
472+
reg-names = "app", "dbics", "config", "atu";
473+
power-domains = <&k3_pds 121>;
474+
#address-cells = <3>;
475+
#size-cells = <2>;
476+
ranges = <0x81000000 0 0 0x0 0x18020000 0 0x00010000
477+
0x82000000 0 0x18030000 0x0 0x18030000 0 0x07FD0000>;
478+
ti,syscon-pcie-id = <&pcie_devid>;
479+
ti,syscon-pcie-mode = <&pcie1_mode>;
480+
bus-range = <0x0 0xff>;
481+
num-viewport = <16>;
482+
max-link-speed = <3>;
483+
dma-coherent;
484+
interrupts = <GIC_SPI 355 IRQ_TYPE_EDGE_RISING>;
485+
msi-map = <0x0 &gic_its 0x10000 0x10000>;
486+
};
434487
};

arch/arm64/boot/dts/ti/k3-am65.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */
7070
<0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>, /* MAIN NAVSS */
7171
<0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* MSMC SRAM */
72+
<0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */
7273
/* MCUSS Range */
7374
<0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
7475
<0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>,

0 commit comments

Comments
 (0)