Skip to contentSkip to conversation

arm64: dts: ti: k3-j7200: correct num-lanes requested for PCIe

PATCH In review Achal Verma 3 participants 5 messages May 16, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: ti: k3-j7200: correct num-lanes requested for PCIe

From: Matt Ranostay <[email protected]>

J7200 has a limited 2x support for PCIe, and the properties should be updated as such.

---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +2 -2
index ef352e32f19d..5e62b431d6e8 100644
@@ -729,7 +729,7 @@ pcie1_rc: pcie@2910000 {
 		device_type = "pci";
 		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
 		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
 		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
 		clocks = <&k3_clks 240 6>;
 		clock-names = "fck";
@@ -757,7 +757,7 @@ pcie1_ep: pcie-ep@2910000 {
 		interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
 		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
 		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
 		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
 		clocks = <&k3_clks 240 6>;
 		clock-names = "fck";
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

Achal,

Quoted 4 lines · Achal Verma

From: Matt Ranostay <[email protected]>

J7200 has a limited 2x support for PCIe, and the properties should be updated as such.

According to J7200 Datasheet at [0], the SoC supports up to x4 PCIe lanes. Could you please clarify where the lanes are documented to be 2x?

[0]: https://www.ti.com/lit/ds/symlink/dra821u-q1.pdf

Quoted 29 lines
---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +2 -2
index ef352e32f19d..5e62b431d6e8 100644
@@ -729,7 +729,7 @@ pcie1_rc: pcie@2910000 {
 		device_type = "pci";
 		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
 		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
 		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
 		clocks = <&k3_clks 240 6>;
 		clock-names = "fck";
@@ -757,7 +757,7 @@ pcie1_ep: pcie-ep@2910000 {
 		interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
 		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
 		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
 		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
 		clocks = <&k3_clks 240 6>;
 		clock-names = "fck";
Signature · 2 lines
Regards,
Siddharth.
#2 lore raw
Quoted 5 lines · Siddharth Vadapalli

Achal,

Quoted 2 lines · Achal Verma

From: Matt Ranostay <[email protected]>

Quoted 7 lines
Quoted 2 lines

J7200 has a limited 2x support for PCIe, and the properties should be updated as such.

According to J7200 Datasheet at [0], the SoC supports up to x4 PCIe lanes. Could you please clarify where the lanes are documented to be 2x?

[0]: https://www.ti.com/lit/ds/symlink/dra821u-q1.pdf

Yes, this patch should be dropped.
No need to change lanes.

Regards,
Achal Verma

Quoted 31 lines
Quoted 30 lines
---
  arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +2 -2
index ef352e32f19d..5e62b431d6e8 100644
@@ -729,7 +729,7 @@ pcie1_rc: pcie@2910000 {
  		device_type = "pci";
  		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
  		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
  		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
  		clocks = <&k3_clks 240 6>;
  		clock-names = "fck";
@@ -757,7 +757,7 @@ pcie1_ep: pcie-ep@2910000 {
  		interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
  		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
  		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
  		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
  		clocks = <&k3_clks 240 6>;
  		clock-names = "fck";
maintainer
#3 lore raw
In reply to Achal Verma
Quoted 5 lines · Achal Verma

From: Matt Ranostay <[email protected]>

J7200 has a limited 2x support for PCIe, and the properties should be updated as such.

What commit does this fix?

Quoted 31 lines
---
 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +2 -2
index ef352e32f19d..5e62b431d6e8 100644
@@ -729,7 +729,7 @@ pcie1_rc: pcie@2910000 {
 		device_type = "pci";
 		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
 		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
 		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
 		clocks = <&k3_clks 240 6>;
 		clock-names = "fck";
@@ -757,7 +757,7 @@ pcie1_ep: pcie-ep@2910000 {
 		interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
 		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
 		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
 		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
 		clocks = <&k3_clks 240 6>;
 		clock-names = "fck";
Signature · 1 line
2.25.1
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#4 lore raw
Quoted 8 lines · Nishanth Menon
Quoted 5 lines · Achal Verma

From: Matt Ranostay <[email protected]>

J7200 has a limited 2x support for PCIe, and the properties should be updated as such.

What commit does this fix?

This patch is a mistake.
J7200 PCIe has 4 lanes, and this patch should be dropped.

Regards,
Achal Verma

Quoted 24 lines
Quoted 24 lines
---
  arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +1 -1
index ef352e32f19d..5e62b431d6e8 100644
@@ -729,7 +729,7 @@ pcie1_rc: pcie@2910000 {
  		device_type = "pci";
  		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
  		max-link-speed = <3>;
-		num-lanes = <4>;
+		num-lanes = <2>;
  		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
  		clocks = <&k3_clks 240 6>;
  		clock-names = "fck";
@@ -757,7 +757,7 @@ pcie1_ep: pcie-ep@2910000 {
  		interrupts = <GIC_SPI 330 IRQ_TYPE_EDGE_RISING>;
  		ti,syscon-pcie-ctrl = <&scm_conf 0x4074>;
  		max-link-speed = <3>;
Quoted 10 lines
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +1 -1
-		num-lanes = <4>;
+		num-lanes = <2>;
  		power-domains = <&k3_pds 240 TI_SCI_PD_EXCLUSIVE>;
  		clocks = <&k3_clks 240 6>;
  		clock-names = "fck";
Signature · 1 line
2.25.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel