Skip to contentSkip to conversation

Enable Ethernet boot on SK-AM62A-LP

PATCH Superseded Chintan Vankar 2 participants 8 messages Jul 2 – Jul 9 Arm (32-bit)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Enable Ethernet boot on SK-AM62A-LP

This series enables Ethernet boot on SK-AM62A-LP. The series is based on commit 'e800cc67f5b6' of origin/next branch of U-Boot repo.

Logs:
https://gist.github.com/chintan013/b31f9111decfbc55303a605cd2f77dcc

The functionality can be verified after U-Boot DT is synced with the Linux DT with the patch:
https://lore.kernel.org/r/[email protected]/
which doesn't have any open comments.

Chintan Vankar (3):
configs: am62ax_evm_r5_ethboot: Enable config options required for
Ethernet boot
configs: am62ax_evm_a53_ethboot: Enable config options required to
enable Ethernet boot
arm: dts: k3-am62a7-sk-u-boot: Enable DM services for main_pktdma

 arch/arm/dts/k3-am62a7-r5-sk.dts         |  5 +++++
 configs/am62ax_evm_a53_ethboot_defconfig | 16 ++++++++++++++
 configs/am62ax_evm_r5_ethboot_defconfig  | 27 ++++++++++++++++++++++++
 3 files changed, 48 insertions(+)
 create mode 100644 configs/am62ax_evm_a53_ethboot_defconfig
 create mode 100644 configs/am62ax_evm_r5_ethboot_defconfig
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 configs: am62ax_evm_r5_ethboot: Enable config options required for Ethernet boot

Enable config support to enable Ethernet boot on SK-AM62A-LP for R5 SPL stage.

---
 configs/am62ax_evm_r5_ethboot_defconfig | 27 +++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 configs/am62ax_evm_r5_ethboot_defconfig
configs/am62ax_evm_r5_ethboot_defconfig new file +27 -0
new file mode 100644
index 00000000000..215084d1490
@@ -0,0 +1,27 @@
+#include <configs/am62ax_evm_r5_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_TARGET_AM62A7_R5_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-am62a7-r5-sk"
+# CONFIG_NO_NET is not set
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_MMC=n
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_ETH=y
+CONFIG_SPL_I2C=y
+CONFIG_NET=y
+CONFIG_SPL_NET=y
+CONFIG_SPL_NET_VCI_STRING="AM62AX U-Boot R5 SPL"
+CONFIG_CMD_DHCP=y
+CONFIG_SPL_SYSCON=y
+CONFIG_DMA_CHANNELS=y
+CONFIG_TI_K3_NAVSS_UDMA=y
+CONFIG_DM_I2C=y
+CONFIG_PHY_TI_DP83867=y
+CONFIG_TI_AM65_CPSW_NUSS=y
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 1/3] configs: am62ax_evm_r5_ethboot: Enable config options required for Ethernet boot

Quoted 15 lines · Chintan Vankar

Enable config support to enable Ethernet boot on SK-AM62A-LP for R5 SPL stage.

---
  configs/am62ax_evm_r5_ethboot_defconfig | 27 +++++++++++++++++++++++++
  1 file changed, 27 insertions(+)

create mode 100644 configs/am62ax_evm_r5_ethboot_defconfig

configs/am62ax_evm_r5_ethboot_defconfig new file +0 -0
new file mode 100644
index 00000000000..215084d1490

configs/am62ax_evm_r5_ethboot_defconfig line 7

Quoted 7 lines
configs/am62ax_evm_r5_ethboot_defconfig new file +7 -0
@@ -0,0 +1,27 @@
+#include <configs/am62ax_evm_r5_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_TARGET_AM62A7_R5_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-am62a7-r5-sk"

The above 5 config items are already set in the included defconfig, they can be removed.

There used to be an issue with buildman that caused us to need to repeat these items so it could detect the arch/board, but that has been fixed for a while now. I know many other boards still have this redundancy, and cleaning that up so others stop copying it has been on my todo list for a while now.. If anyone else (hint Bryan/Anshul) wants some easy patches feel free.

configs/am62ax_evm_r5_ethboot_defconfig line 10

Quoted 3 lines
configs/am62ax_evm_r5_ethboot_defconfig new file +3 -0
+# CONFIG_NO_NET is not set
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_MMC=n

So why can't Ethernet boot be supported by the base defconfig? I'm guessing we don't have the SRAM space at the R5 stage and that is why we disable MMC boot here. Would be good to put that info in the commit message.

Andrew

Quoted 17 lines
configs/am62ax_evm_r5_ethboot_defconfig new file +17 -0
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_ETH=y
+CONFIG_SPL_I2C=y
+CONFIG_NET=y
+CONFIG_SPL_NET=y
+CONFIG_SPL_NET_VCI_STRING="AM62AX U-Boot R5 SPL"
+CONFIG_CMD_DHCP=y
+CONFIG_SPL_SYSCON=y
+CONFIG_DMA_CHANNELS=y
+CONFIG_TI_K3_NAVSS_UDMA=y
+CONFIG_DM_I2C=y
+CONFIG_PHY_TI_DP83867=y
+CONFIG_TI_AM65_CPSW_NUSS=y
#3 lore raw

Re: [PATCH 1/3] configs: am62ax_evm_r5_ethboot: Enable config options required for Ethernet boot

Hello Andrew

Quoted 27 lines · Andrew Davis
Quoted 15 lines · Chintan Vankar

Enable config support to enable Ethernet boot on SK-AM62A-LP for R5 SPL stage.

---
  configs/am62ax_evm_r5_ethboot_defconfig | 27 +++++++++++++++++++++++++

  1 file changed, 27 insertions(+)

  create mode 100644 configs/am62ax_evm_r5_ethboot_defconfig

configs/am62ax_evm_r5_ethboot_defconfig new file +0 -0
new file mode 100644
index 00000000000..215084d1490

configs/am62ax_evm_r5_ethboot_defconfig line 7

Quoted 7 lines
configs/am62ax_evm_r5_ethboot_defconfig new file +7 -0
@@ -0,0 +1,27 @@
+#include <configs/am62ax_evm_r5_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_TARGET_AM62A7_R5_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-am62a7-r5-sk"

The above 5 config items are already set in the included defconfig, they can be removed.

Quoted 7 lines

There used to be an issue with buildman that caused us to need to repeat these items so it could detect the arch/board, but that has been fixed for a while now. I know many other boards still have this redundancy, and cleaning that up so others stop copying it has been on my todo list for a while now.. If anyone else (hint Bryan/Anshul) wants some easy patches feel free.

Yes, that was the reason I have added these duplicate config options in this config file. Since these config options are not required anymore I will remove them in the next version. Thanks for letting me know about this change.

Quoted 9 lines

configs/am62ax_evm_r5_ethboot_defconfig line 10

Quoted 3 lines
configs/am62ax_evm_r5_ethboot_defconfig new file +3 -0
+# CONFIG_NO_NET is not set
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_MMC=n

So why can't Ethernet boot be supported by the base defconfig? I'm guessing we don't have the SRAM space at the R5 stage and that is why we disable MMC boot here. Would be good to put that info in the commit message.

Yes, that's the reason we need a different defconfig file for R5 SPL stage. I will modify the commit message and add the required information.

Regards,
Chintan.

Quoted 20 lines

Andrew

Quoted 17 lines
configs/am62ax_evm_r5_ethboot_defconfig new file +17 -0
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_ETH=y
+CONFIG_SPL_I2C=y
+CONFIG_NET=y
+CONFIG_SPL_NET=y
+CONFIG_SPL_NET_VCI_STRING="AM62AX U-Boot R5 SPL"
+CONFIG_CMD_DHCP=y
+CONFIG_SPL_SYSCON=y
+CONFIG_DMA_CHANNELS=y
+CONFIG_TI_K3_NAVSS_UDMA=y
+CONFIG_DM_I2C=y
+CONFIG_PHY_TI_DP83867=y
+CONFIG_TI_AM65_CPSW_NUSS=y
#4 lore raw

PATCH 2/3 configs: am62ax_evm_a53_ethboot: Enable config options required to enable Ethernet boot

In reply to Chintan Vankar

Enable config options required to enable Ethernet boot on SK-AM62A-LP.

---
 configs/am62ax_evm_a53_ethboot_defconfig | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 configs/am62ax_evm_a53_ethboot_defconfig
configs/am62ax_evm_a53_ethboot_defconfig new file +16 -0
new file mode 100644
index 00000000000..a64542315fe
@@ -0,0 +1,16 @@
+#include <configs/am62ax_evm_a53_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_TARGET_AM62A7_A53_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am62a7-sk"
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_DRIVERS_MISC=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_ETH=y
+CONFIG_SPL_NET=y
+CONFIG_SPL_NET_VCI_STRING="AM62AX U-Boot A53 SPL"
+CONFIG_SPL_SYSCON=y
Signature · 1 line
2.34.1
#5 lore raw

Re: [PATCH 2/3] configs: am62ax_evm_a53_ethboot: Enable config options required to enable Ethernet boot

Hello Andrew, Vignesh,

Let me know if I can enable config options required for A53 stage in the base file since A53 SPL size is more than R5 SPL stage.

Regards,
Chintan.

Quoted 30 lines · Chintan Vankar

Enable config options required to enable Ethernet boot on SK-AM62A-LP.

---
  configs/am62ax_evm_a53_ethboot_defconfig | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 configs/am62ax_evm_a53_ethboot_defconfig

configs/am62ax_evm_a53_ethboot_defconfig new file +16 -0
new file mode 100644
index 00000000000..a64542315fe
@@ -0,0 +1,16 @@
+#include <configs/am62ax_evm_a53_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_TARGET_AM62A7_A53_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am62a7-sk"
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_DRIVERS_MISC=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_ETH=y
+CONFIG_SPL_NET=y
+CONFIG_SPL_NET_VCI_STRING="AM62AX U-Boot A53 SPL"
+CONFIG_SPL_SYSCON=y
Acked-by
#6 lore raw

Re: [PATCH 2/3] configs: am62ax_evm_a53_ethboot: Enable config options required to enable Ethernet boot

Quoted 5 lines · Chintan Vankar

Hello Andrew, Vignesh,

Let me know if I can enable config options required for A53 stage in the base file since A53 SPL size is more than R5 SPL stage.

Having matching configs for R5 and A53, even if the A53 changes could have been folded into the main one, helps prevent confusion when one wants to enable ethboot but would only see the R5 _ethboot_ config.

So I'm fine with this either way, as-is works,

Quoted 35 lines

Regards,
Chintan.

Quoted 30 lines · Chintan Vankar

Enable config options required to enable Ethernet boot on SK-AM62A-LP.

---
  configs/am62ax_evm_a53_ethboot_defconfig | 16 ++++++++++++++++

  1 file changed, 16 insertions(+)

  create mode 100644 configs/am62ax_evm_a53_ethboot_defconfig

configs/am62ax_evm_a53_ethboot_defconfig new file +16 -0
new file mode 100644
index 00000000000..a64542315fe
@@ -0,0 +1,16 @@
+#include <configs/am62ax_evm_a53_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_TARGET_AM62A7_A53_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am62a7-sk"
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_DRIVERS_MISC=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_ETH=y
+CONFIG_SPL_NET=y
+CONFIG_SPL_NET_VCI_STRING="AM62AX U-Boot A53 SPL"
+CONFIG_SPL_SYSCON=y
#7 lore raw

PATCH 3/3 arm: dts: k3-am62a7-sk-u-boot: Enable DM services for main_pktdma

In reply to Chintan Vankar

Enable DM services for main_pktdma during R5 SPL stage.

---
 arch/arm/dts/k3-am62a7-r5-sk.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/k3-am62a7-r5-sk.dts +5 -0
index 4570ff6edbf..9c2a6bf89a9 100644
@@ -42,3 +42,8 @@
 	status = "okay";
 	bootph-pre-ram;
 };
+
+&main_pktdma {
+	ti,sci = <&dm_tifs>;
+	bootph-all;
+};
Signature · 1 line
2.34.1