Skip to contentSkip to conversation

arm64: dts: ti: k3-am62a7-sk: Add bootph-all property for ethernet boot

PATCH In review Chintan Vankar 3 participants 5 messages Jul 16 – Aug 4

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

PATCH v2 1/1 arm64: dts: ti: k3-am62a7-sk: Add bootph-all property for ethernet boot

Ethernet boot requires CPSW and PKTDMA nodes to be present starting from R5 SPL stage. Add "bootph-all" property in CPSW MAC's eFuse node "cpsw_mac_syscon" and "main_pktdma" to enable these nodes during SPL stage along with later boot stages so that CPSW port will get static MAC address and DMA transfers are functional during ethernet boot.

---

Hello All, This patch is based on commit 'cc2b5f627e8c' of next-20260714 branch of Linux repo.

Link to v1:
https://lore.kernel.org/all/[email protected]/

Changes from v1 to v2:
-> Added "bootph-all" property to "main_pktdma" node and updated commit
message accordingly.
-> Collected "Ack-by" tag from Andrew, since I have modified a patch by
adding "main_pktdma" node too, I am not keeping the "Ack-by" tag.

 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +8 -0
index 821a9705bb7d..59cf49a14f61 100644
@@ -230,6 +230,10 @@ AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
 	};
 };
 
+&cpsw_mac_syscon {
+	bootph-all;
+};
+
 /* WKUP UART0 is used for DM firmware logs */
 &wkup_uart0 {
 	pinctrl-names = "default";
@@ -241,6 +245,10 @@ &wkup_uart0 {
 	status = "reserved";
 };
 
+&main_pktdma {
+	bootph-all;
+};
+
 &main_pmx0 {
 	main_dss0_pins_default: main-dss0-default-pins {
 		pinctrl-single,pins = <
Signature · 1 line
2.34.1
Acked-by on v2 1/1
#1 lore raw
Quoted 12 lines · Chintan Vankar

Ethernet boot requires CPSW and PKTDMA nodes to be present starting from R5 SPL stage. Add "bootph-all" property in CPSW MAC's eFuse node "cpsw_mac_syscon" and "main_pktdma" to enable these nodes during SPL stage along with later boot stages so that CPSW port will get static MAC address and DMA transfers are functional during ethernet boot.

---

Hello All, This patch is based on commit 'cc2b5f627e8c' of next-20260714 branch of Linux repo.

Quoted 9 lines

Link to v1:
https://lore.kernel.org/all/[email protected]/

Changes from v1 to v2:
-> Added "bootph-all" property to "main_pktdma" node and updated commit
message accordingly.
-> Collected "Ack-by" tag from Andrew, since I have modified a patch by
adding "main_pktdma" node too, I am not keeping the "Ack-by" tag.

Would these tags be needed by other AM62A based boards? If the network is enabled, I'd assume any board can network boot. Anyway, adding main_pktdma as it is also used when doing network boot seems reasonable here, so you can keep my ACK,

Quoted 29 lines
  arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 8 ++++++++
  1 file changed, 8 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +8 -0
index 821a9705bb7d..59cf49a14f61 100644
@@ -230,6 +230,10 @@ AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
  	};
  };
 
+&cpsw_mac_syscon {
+	bootph-all;
+};
+
  /* WKUP UART0 is used for DM firmware logs */
  &wkup_uart0 {
  	pinctrl-names = "default";
@@ -241,6 +245,10 @@ &wkup_uart0 {
  	status = "reserved";
  };
 
+&main_pktdma {
+	bootph-all;
+};
+
  &main_pmx0 {
  	main_dss0_pins_default: main-dss0-default-pins {
  		pinctrl-single,pins = <
#2 lore raw
In reply to Chintan Vankar
Quoted 24 lines

Ethernet boot requires CPSW and PKTDMA nodes to be present starting from R5 SPL stage. Add "bootph-all" property in CPSW MAC's eFuse node "cpsw_mac_syscon" and "main_pktdma" to enable these nodes during SPL stage along with later boot stages so that CPSW port will get static MAC address and DMA transfers are functional during ethernet boot.

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +4 -0
index 821a9705bb7d..59cf49a14f61 100644
@@ -230,6 +230,10 @@ AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
 	};
 };
 
+&cpsw_mac_syscon {
+	bootph-all;
+};
+
 /* WKUP UART0 is used for DM firmware logs */
 &wkup_uart0 {
 	pinctrl-names = "default";

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts &wkup_uart0 { · line 251

Quoted 7 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +4 -0
@@ -241,6 +245,10 @@ &wkup_uart0 {
 	status = "reserved";
 };
 
+&main_pktdma {
+	bootph-all;
+};
+

I ended up applying v1 as bootph-all for main_pktdma is already present in the k3-am64-main.dtsi making the above redundant.

Signature · 1 line
Vignesh
#3 lore raw

Hello Vignesh,

Quoted 27 lines · Vignesh Raghavendra
Quoted 27 lines

Ethernet boot requires CPSW and PKTDMA nodes to be present starting from R5 SPL stage. Add "bootph-all" property in CPSW MAC's eFuse node "cpsw_mac_syscon" and "main_pktdma" to enable these nodes during SPL stage along with later boot stages so that CPSW port will get static MAC address and DMA transfers are functional during ethernet boot.

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +4 -0
index 821a9705bb7d..59cf49a14f61 100644
@@ -230,6 +230,10 @@ AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
  	};
  };
 
+&cpsw_mac_syscon {
+	bootph-all;
+};
+
  /* WKUP UART0 is used for DM firmware logs */
  &wkup_uart0 {
  	pinctrl-names = "default";
@@ -241,6 +245,10 @@ &wkup_uart0 {
  	status = "reserved";
  };
 
Quoted 8 lines

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts &wkup_uart0 { · line 251

Quoted 4 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +4 -0
+&main_pktdma {
+	bootph-all;
+};
+

I ended up applying v1 as bootph-all for main_pktdma is already present in the k3-am64-main.dtsi making the above redundant.

You mean k3-am62a-main.dtsi?
https://elixir.bootlin.com/linux/v7.2-rc5/source/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi#L153

Regards,
Chintan.

#4 lore raw
Quoted 39 lines · Chintan Vankar

Hello Vignesh,

Quoted 26 lines · Vignesh Raghavendra
Quoted 26 lines

Ethernet boot requires CPSW and PKTDMA nodes to be present starting from R5 SPL stage. Add "bootph-all" property in CPSW MAC's eFuse node "cpsw_mac_syscon" and "main_pktdma" to enable these nodes during SPL stage along with later boot stages so that CPSW port will get static MAC address and DMA transfers are functional during ethernet boot.

arch/arm64/ renamed from arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +0 -0

boot/dts/ti/k3-am62a7-sk.dts
index 821a9705bb7d..59cf49a14f61 100644

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +0 -0
@@ -230,6 +230,10 @@ AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8)

WKUP_UART0_RTSn */
      };
  };
  +&cpsw_mac_syscon {
+    bootph-all;

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +2 -0
+};
+

  /* WKUP UART0 is used for DM firmware logs */
  &wkup_uart0 {
      pinctrl-names = "default";

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +0 -0
@@ -241,6 +245,10 @@ &wkup_uart0 {
       status = "reserved";
Quoted 9 lines

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */ · line 236

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +3 -0
   };
   +&main_pktdma {
+    bootph-all;
+};
+

I ended up applying v1 as bootph-all for main_pktdma is already present in the k3-am64-main.dtsi making the above redundant.

Quoted 4 lines

You mean k3-am62a-main.dtsi?
https://elixir.bootlin.com/linux/v7.2-rc5/source/arch/arm64/boot/dts/ti/
k3-am62a-main.dtsi#L153

Yes, sorry for the typo. I meant to say k3-am62a-main.dtsi

Quoted 2 lines

Regards,
Chintan.

Signature · 3 lines
Regards
Vignesh
https://ti.com/opensource