Skip to content

Commit c3015d4

Browse files
Siddharth-Vadapalli-at-TInmenon
authored andcommitted
arm64: dts: ti: k3-j721e-evm: Add overlay for PCIE1 Endpoint Mode
Add overlay to enable the PCIE1 instance of PCIe on J721E-EVM in Endpoint mode of operation. Additionally, in order to support both PCIE0 and PCIE1 in Endpoint Mode of operation, enable applying device-tree overlays on "k3-j721e-evm-pcie0-ep.dtb", thereby allowing the overlay for PCIE1 in Endpoint mode to be applied on the aforementioned DTB. Signed-off-by: Siddharth Vadapalli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent a7543ea commit c3015d4

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

arch/arm64/boot/dts/ti/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board-infotainment.dtbo
107107
dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm.dtb
108108
dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm-gesi-exp-board.dtbo
109109
dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm-pcie0-ep.dtbo
110+
dtb-$(CONFIG_ARCH_K3) += k3-j721e-evm-pcie1-ep.dtbo
110111
dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk.dtb
111112
dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk-csi2-dual-imx219.dtbo
112113

@@ -200,6 +201,8 @@ k3-j721e-common-proc-board-infotainment-dtbs := k3-j721e-common-proc-board.dtb \
200201
k3-j721e-common-proc-board-infotainment.dtbo
201202
k3-j721e-evm-pcie0-ep-dtbs := k3-j721e-common-proc-board.dtb \
202203
k3-j721e-evm-pcie0-ep.dtbo
204+
k3-j721e-evm-pcie1-ep-dtbs := k3-j721e-common-proc-board.dtb \
205+
k3-j721e-evm-pcie1-ep.dtbo
203206
k3-j721e-sk-csi2-dual-imx219-dtbs := k3-j721e-sk.dtb \
204207
k3-j721e-sk-csi2-dual-imx219.dtbo
205208
k3-j721s2-evm-pcie1-ep-dtbs := k3-j721s2-common-proc-board.dtb \
@@ -233,6 +236,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
233236
k3-j7200-evm-pcie1-ep.dtb \
234237
k3-j721e-common-proc-board-infotainment.dtb \
235238
k3-j721e-evm-pcie0-ep.dtb \
239+
k3-j721e-evm-pcie1-ep.dtb \
236240
k3-j721e-sk-csi2-dual-imx219.dtb \
237241
k3-j721s2-evm-pcie1-ep.dtb \
238242
k3-j784s4-evm-pcie0-pcie1-ep.dtb \
@@ -255,6 +259,7 @@ DTC_FLAGS_k3-am68-sk-base-board += -@
255259
DTC_FLAGS_k3-am69-sk += -@
256260
DTC_FLAGS_k3-j7200-common-proc-board += -@
257261
DTC_FLAGS_k3-j721e-common-proc-board += -@
262+
DTC_FLAGS_k3-j721e-evm-pcie0-ep += -@
258263
DTC_FLAGS_k3-j721e-sk += -@
259264
DTC_FLAGS_k3-j721s2-common-proc-board += -@
260265
DTC_FLAGS_k3-j784s4-evm += -@
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
/**
3+
* DT Overlay for enabling PCIE1 instance in Endpoint Configuration with the
4+
* J7 common processor board.
5+
*
6+
* J7 Common Processor Board Product Link: https://www.ti.com/tool/J721EXCPXEVM
7+
*
8+
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
9+
*/
10+
11+
/dts-v1/;
12+
/plugin/;
13+
14+
#include <dt-bindings/interrupt-controller/arm-gic.h>
15+
#include <dt-bindings/soc/ti,sci_pm_domain.h>
16+
17+
#include "k3-pinctrl.h"
18+
19+
/*
20+
* Since Root Complex and Endpoint modes are mutually exclusive
21+
* disable Root Complex mode.
22+
*/
23+
&pcie1_rc {
24+
status = "disabled";
25+
};
26+
27+
&cbass_main {
28+
#address-cells = <2>;
29+
#size-cells = <2>;
30+
interrupt-parent = <&gic500>;
31+
32+
pcie1_ep: pcie-ep@2910000 {
33+
compatible = "ti,j721e-pcie-ep";
34+
reg = <0x00 0x02910000 0x00 0x1000>,
35+
<0x00 0x02917000 0x00 0x400>,
36+
<0x00 0x0d800000 0x00 0x00800000>,
37+
<0x00 0x18000000 0x00 0x08000000>;
38+
reg-names = "intd_cfg", "user_cfg", "reg", "mem";
39+
interrupt-names = "link_state";
40+
interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
41+
max-link-speed = <3>;
42+
num-lanes = <2>;
43+
power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
44+
clocks = <&k3_clks 240 1>;
45+
clock-names = "fck";
46+
max-functions = /bits/ 8 <6>;
47+
max-virtual-functions = /bits/ 8 <4 4 4 4 0 0>;
48+
dma-coherent;
49+
phys = <&serdes1_pcie_link>;
50+
phy-names = "pcie-phy";
51+
ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
52+
};
53+
};

0 commit comments

Comments
 (0)