Skip to content

Commit d23f383

Browse files
kishontmlind
authored andcommitted
ARM: dts: DRA7: Add pcie1 dt node for EP mode
Add pcie1 dt node in order for the controller to operate in endpoint mode. However since none of the dra7 based boards have slots configured to operate in endpoint mode, keep EP mode disabled. Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 5e45286 commit d23f383

File tree

6 files changed

+51
-3
lines changed

6 files changed

+51
-3
lines changed

arch/arm/boot/dts/am571x-idk.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,12 @@
9696
status = "okay";
9797
};
9898
};
99+
100+
&pcie1_rc {
101+
status = "okay";
102+
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
103+
};
104+
105+
&pcie1_ep {
106+
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
107+
};

arch/arm/boot/dts/am572x-idk.dts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@
8888
load-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
8989
};
9090

91-
&pcie1 {
91+
&pcie1_rc {
92+
status = "okay";
93+
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
94+
};
95+
96+
&pcie1_ep {
9297
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
9398
};
9499

arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,12 @@
570570
};
571571
};
572572

573-
&pcie1 {
573+
&pcie1_rc {
574+
status = "ok";
575+
gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
576+
};
577+
578+
&pcie1_ep {
574579
gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
575580
};
576581

arch/arm/boot/dts/dra7-evm.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,3 +729,7 @@
729729
status = "okay";
730730
};
731731
};
732+
733+
&pcie1_rc {
734+
status = "okay";
735+
};

arch/arm/boot/dts/dra7.dtsi

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
scm_conf1: scm_conf@1c04 {
197197
compatible = "syscon";
198198
reg = <0x1c04 0x0020>;
199+
#syscon-cells = <2>;
199200
};
200201

201202
scm_conf_pcie: scm_conf@1c24 {
@@ -287,7 +288,11 @@
287288
#address-cells = <1>;
288289
ranges = <0x51000000 0x51000000 0x3000
289290
0x0 0x20000000 0x10000000>;
290-
pcie1: pcie@51000000 {
291+
/**
292+
* To enable PCI endpoint mode, disable the pcie1_rc
293+
* node and enable pcie1_ep mode.
294+
*/
295+
pcie1_rc: pcie@51000000 {
291296
compatible = "ti,dra7-pcie";
292297
reg = <0x51000000 0x2000>, <0x51002000 0x14c>, <0x1000 0x2000>;
293298
reg-names = "rc_dbics", "ti_conf", "config";
@@ -309,12 +314,28 @@
309314
<0 0 0 2 &pcie1_intc 2>,
310315
<0 0 0 3 &pcie1_intc 3>,
311316
<0 0 0 4 &pcie1_intc 4>;
317+
status = "disabled";
312318
pcie1_intc: interrupt-controller {
313319
interrupt-controller;
314320
#address-cells = <0>;
315321
#interrupt-cells = <1>;
316322
};
317323
};
324+
325+
pcie1_ep: pcie_ep@51000000 {
326+
compatible = "ti,dra7-pcie-ep";
327+
reg = <0x51000000 0x28>, <0x51002000 0x14c>, <0x51001000 0x28>, <0x1000 0x10000000>;
328+
reg-names = "ep_dbics", "ti_conf", "ep_dbics2", "addr_space";
329+
interrupts = <0 232 0x4>;
330+
num-lanes = <1>;
331+
num-ib-windows = <4>;
332+
num-ob-windows = <16>;
333+
ti,hwmods = "pcie1";
334+
phys = <&pcie1_phy>;
335+
phy-names = "pcie-phy0";
336+
ti,syscon-unaligned-access = <&scm_conf1 0x14 2>;
337+
status = "disabled";
338+
};
318339
};
319340

320341
axi@1 {

arch/arm/boot/dts/dra72-evm-common.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,3 +563,7 @@
563563
status = "okay";
564564
};
565565
};
566+
567+
&pcie1_rc {
568+
status = "okay";
569+
};

0 commit comments

Comments
 (0)