*** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs ***
Subsystems (2)
cover *** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs ***
Add general ethernet boot support for AM62Ax SoC.
Some of the work is based on TI's downstream u-boot patches found in [1], patches touching code in mach-k3 and *.yaml board config files.
Also, provide defconfigs and device tree changes for phyCORE-AM62x and phyCORE-AM62Ax to support booting via ethernet.
Andreas Dannenberg (1):
arch: arm: mach-k3: r5: am62ax: Update SoC auto-gen data to enable
CPSW boot
Daniel Schultz (1):
arch: arm: dts: k3-am62a7-phyboard-lyra-rdk-u-boot: Disable Ethernet2
Nathan Morrisson (2):
arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f()
board: phytec: phycore_am62ax: Share ethernet resources with boot r5
core
Wadim Egorov (4):
arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to
phy_gmii_sel
configs: Add phycore_am62x_r5_ethboot_defconfig
configs: phycore_am62x_a53_defconfig: Update for ethernet boot
configs: Add phycore_am62ax_r5_ethboot_defconfig
.../k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 14 ++--- .../k3-am62a7-phyboard-lyra-rdk-u-boot.dtsi | 2 +- arch/arm/mach-k3/am62ax/am62a7_init.c | 9 ++++ arch/arm/mach-k3/r5/am62ax/clk-data.c | 51 ++++++++++++++++++- arch/arm/mach-k3/r5/am62ax/dev-data.c | 29 ++++++----- board/phytec/phycore_am62ax/MAINTAINERS | 1 + board/phytec/phycore_am62ax/rm-cfg.yaml | 10 ++-- board/phytec/phycore_am62ax/tifs-rm-cfg.yaml | 48 +++++++++-------- board/phytec/phycore_am62x/MAINTAINERS | 1 + configs/phycore_am62ax_r5_ethboot_defconfig | 43 ++++++++++++++++ configs/phycore_am62x_a53_defconfig | 9 +++- configs/phycore_am62x_r5_ethboot_defconfig | 43 ++++++++++++++++ 12 files changed, 206 insertions(+), 54 deletions(-) create mode 100644 configs/phycore_am62ax_r5_ethboot_defconfig create mode 100644 configs/phycore_am62x_r5_ethboot_defconfig
Signature · 1 line
2.34.1
PATCH 1/8 arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel
Add bootph-all tag to phy_gmii_sel node. This is needed for booting via Ethernet. While at it, drop main_pktdma reg redefinitions which are already provided by the top-level SoC device tree file.
--- .../arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)
arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi +4 -10
@@ -42,6 +42,10 @@ bootph-all; }; +&phy_gmii_sel { + bootph-all; +}; + &fss { bootph-all; };
@@ -86,16 +90,6 @@ &main_pktdma { bootph-all; - reg = <0x00 0x485c0000 0x00 0x100>, - <0x00 0x4a800000 0x00 0x20000>, - <0x00 0x4aa00000 0x00 0x20000>, - <0x00 0x4b800000 0x00 0x200000>, - <0x00 0x485e0000 0x00 0x10000>, - <0x00 0x484a0000 0x00 0x2000>, - <0x00 0x484c0000 0x00 0x2000>, - <0x00 0x48430000 0x00 0x1000>; - reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", - "cfg", "tchan", "rchan", "rflow"; }; &main_rgmii1_pins_default {
Signature · 1 line
2.34.1
Re: [PATCH 1/8] arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel
Quoted 5 lines · Wadim Egorov
Add bootph-all tag to
phy_gmii_selnode. This is needed for booting via Ethernet. While at it, dropmain_pktdmareg redefinitions which are already provided by the top-level SoC device tree file.Signed-off-by Wadim Egorov <[email protected]>
For entire series,
Quoted 36 lines
--- .../arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi +4
-10@@ -42,6 +42,10 @@ bootph-all; }; +&phy_gmii_sel { + bootph-all; +}; + &fss { bootph-all; };@@ -86,16 +90,6 @@ &main_pktdma { bootph-all; - reg = <0x00 0x485c0000 0x00 0x100>, - <0x00 0x4a800000 0x00 0x20000>, - <0x00 0x4aa00000 0x00 0x20000>, - <0x00 0x4b800000 0x00 0x200000>, - <0x00 0x485e0000 0x00 0x10000>, - <0x00 0x484a0000 0x00 0x2000>, - <0x00 0x484c0000 0x00 0x2000>, - <0x00 0x48430000 0x00 0x1000>; - reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", - "cfg", "tchan", "rchan", "rflow"; }; &main_rgmii1_pins_default {
PATCH 2/8 configs: Add phycore_am62x_r5_ethboot_defconfig
In reply to Wadim EgorovProvide a defconfig for booting the phycore-am62x via Ethernet. We need a separate defconfig because the AM62x has not enough internal SRAM to support all boot sources.
--- board/phytec/phycore_am62x/MAINTAINERS | 1 + configs/phycore_am62x_r5_ethboot_defconfig | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 configs/phycore_am62x_r5_ethboot_defconfig
board/phytec/phycore_am62x/MAINTAINERS +1 -0
@@ -9,6 +9,7 @@ F: arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts F: board/phytec/phycore_am62x/ F: configs/phycore_am62x_a53_defconfig F: configs/phycore_am62x_r5_defconfig +F: configs/phycore_am62x_r5_ethboot_defconfig F: configs/phycore_am62x_r5_usbdfu_defconfig F: include/configs/phycore_am62x.h F: doc/board/phytec/phycore-am62x.rst
configs/phycore_am62x_r5_ethboot_defconfig new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 3/8 configs: phycore_am62x_a53_defconfig: Update for ethernet boot
In reply to Wadim EgorovAdd support for ethernet boot in the A53 SPL. Increase the SPL Size limit and update SPL_STACK_R_ADDR.
--- configs/phycore_am62x_a53_defconfig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
configs/phycore_am62x_a53_defconfig +7 -2
@@ -19,14 +19,15 @@ CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_DM_RESET=y CONFIG_SPL_MMC=y CONFIG_SPL_SERIAL=y -CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_SPL_DRIVERS_MISC=y +CONFIG_SPL_STACK_R_ADDR=0x83000000 CONFIG_SPL_TEXT_BASE=0x80080000 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x80c80000 CONFIG_SPL_BSS_MAX_SIZE=0x80000 CONFIG_SPL_STACK_R=y CONFIG_SYS_BOOTM_LEN=0x800000 -CONFIG_SPL_SIZE_LIMIT=0x40000 +CONFIG_SPL_SIZE_LIMIT=0x80000 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x800 CONFIG_ENV_OFFSET_REDUND=0x6c0000 CONFIG_SPL_FS_FAT=y
@@ -51,11 +52,15 @@ CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_SYS_MMCSD_RAW_MODE=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400 +CONFIG_SPL_DMA=y CONFIG_SPL_ENV_SUPPORT=y +CONFIG_SPL_ETH=y CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img" CONFIG_SPL_I2C=y CONFIG_SPL_DM_MAILBOX=y CONFIG_SPL_DM_SPI_FLASH=y +CONFIG_SPL_NET=y +CONFIG_SPL_NET_VCI_STRING="AM62X U-Boot A53 SPL" CONFIG_SPL_POWER_DOMAIN=y CONFIG_SPL_RAM_DEVICE=y # CONFIG_SPL_SPI_FLASH_TINY is not set
Signature · 1 line
2.34.1
PATCH 4/8 arch: arm: dts: k3-am62a7-phyboard-lyra-rdk-u-boot: Disable Ethernet2
In reply to Wadim EgorovFrom: Daniel Schultz <[email protected]>
Don't initialize Ethernet2 in SPL. We cannot boot from that source anyways and it throws an error during boot.
This will remove following error message during network boot:
Error: ethernet@8000000port@2 No valid MAC address found.ethernet@8000000port@1 Waiting for PHY auto negotiation to complete....... done
--- arch/arm/dts/k3-am62a7-phyboard-lyra-rdk-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/k3-am62a7-phyboard-lyra-rdk-u-boot.dtsi +1 -1
@@ -66,7 +66,7 @@ }; &cpsw_port2 { - bootph-all; + status = "disabled"; }; &dmsc {
Signature · 1 line
2.34.1
PATCH 5/8 arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f()
In reply to Wadim EgorovFrom: Nathan Morrisson <[email protected]>
Probe CPSW NUSS in am62a7 board_init_f() to support ethernet boot.
--- arch/arm/mach-k3/am62ax/am62a7_init.c | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/mach-k3/am62ax/am62a7_init.c +9 -0
@@ -194,6 +194,15 @@ void board_init_f(ulong dummy)setup_qos (); +if (IS_ENABLED (CONFIG_SPL_ETH ) &&IS_ENABLED (CONFIG_TI_AM65_CPSW_NUSS ) && +spl_boot_device () ==BOOT_DEVICE_ETHERNET ) { +struct udevice *cpswdev; + +if (uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (am65_cpsw_nuss), + &cpswdev)) +printf ("Failed to probe am65_cpsw_nuss driver\n" ); + } +debug ("am62a_init: %s done\n" , __func__); }
Signature · 1 line
2.34.1
PATCH 6/8 arch: arm: mach-k3: r5: am62ax: Update SoC auto-gen data to enable CPSW boot
In reply to Wadim EgorovFrom: Andreas Dannenberg <[email protected]>
This data was generated using the ksswtool-autogen project with the followig commit:
eed7492 ("soc: am62ax: Add cpsw_3guss_main_0 id to the dev list")
--- arch/arm/mach-k3/r5/am62ax/clk-data.c | 51 +++++++++++++++++++++++++-- arch/arm/mach-k3/r5/am62ax/dev-data.c | 29 ++++++++------- 2 files changed, 65 insertions(+), 15 deletions(-)
arch/arm/mach-k3/r5/am62ax/clk-data.c +49 -2
@@ -67,6 +67,17 @@ static const char * const clkout0_ctrl_out0_parents[] = { "hsdiv4_16fft_main_2_hsdivout1_clk", }; +static const char *const main_cp_gemac_cpts_clk_sel_out0_parents[] = { +"postdiv4_16ff_main_2_hsdivout5_clk" , +"postdiv4_16ff_main_0_hsdivout6_clk" , +"board_0_cp_gemac_cpts0_rft_clk_out" , +NULL , +"board_0_mcu_ext_refclk0_out" , +"board_0_ext_refclk1_out" , +"sam62_pll_ctrl_wrap_mcu_0_chip_div1_clk_clk" , +"sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk" , +}; +static const char *const main_emmcsd0_refclk_sel_out0_parents[] = {"postdiv4_16ff_main_0_hsdivout5_clk" ,"hsdiv4_16fft_main_2_hsdivout2_clk" ,
@@ -137,7 +148,16 @@ static const struct clk_data clk_list[] = {CLK_FIXED_RATE ("board_0_mmc1_clk_out" ,0 ,0 ),CLK_FIXED_RATE ("board_0_ospi0_dqs_out" ,0 ,0 ),CLK_FIXED_RATE ("board_0_ospi0_lbclko_out" ,0 ,0 ), +CLK_FIXED_RATE ("board_0_rgmii1_rxc_out" ,0 ,0 ), +CLK_FIXED_RATE ("board_0_rgmii1_txc_out" ,0 ,0 ), +CLK_FIXED_RATE ("board_0_rgmii2_rxc_out" ,0 ,0 ), +CLK_FIXED_RATE ("board_0_rgmii2_txc_out" ,0 ,0 ), +CLK_FIXED_RATE ("board_0_rmii1_ref_clk_out" ,0 ,0 ), +CLK_FIXED_RATE ("board_0_rmii2_ref_clk_out" ,0 ,0 ),CLK_FIXED_RATE ("board_0_tck_out" ,0 ,0 ), +CLK_FIXED_RATE ("cpsw_3guss_main_0_mdio_mdclk_o" ,0 ,0 ), +CLK_FIXED_RATE ("cpsw_3guss_main_0_rgmii1_txc_o" ,0 ,0 ), +CLK_FIXED_RATE ("cpsw_3guss_main_0_rgmii2_txc_o" ,0 ,0 ),CLK_FIXED_RATE ("emmcsd4ss_main_0_emmcsdss_io_clk_o" ,0 ,0 ),CLK_FIXED_RATE ("emmcsd8ss_main_0_emmcsdss_io_clk_o" ,0 ,0 ), CLK_FIXED_RATE("fss_ul_main_0_ospi_0_ospi_oclk_clk", 0, 0),
@@ -187,6 +207,7 @@ static const struct clk_data clk_list[] = {CLK_MUX_PLLCTRL ("sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk" , sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk_parents,2 ,0x4020000 ,0 ),CLK_DIV ("sam62_pll_ctrl_wrap_mcu_0_chip_div1_clk_clk" ,"sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk" ,0x4020118 ,0 ,5 ,0 ,0 ),CLK_MUX ("clkout0_ctrl_out0" , clkout0_ctrl_out0_parents,2 ,0x108010 ,0 ,1 ,0 ), +CLK_MUX ("main_cp_gemac_cpts_clk_sel_out0" , main_cp_gemac_cpts_clk_sel_out0_parents,8 ,0x108140 ,0 ,3 ,0 ),CLK_MUX ("main_emmcsd0_refclk_sel_out0" , main_emmcsd0_refclk_sel_out0_parents,2 ,0x108160 ,0 ,1 ,0 ),CLK_MUX ("main_emmcsd1_refclk_sel_out0" , main_emmcsd1_refclk_sel_out0_parents,2 ,0x108168 ,0 ,1 ,0 ), CLK_MUX("main_gtcclk_sel_out0", main_gtcclk_sel_out0_parents, 8, 0x43008030, 0, 3, 0),
@@ -203,6 +224,29 @@ static const struct clk_data clk_list[] = { };static const struct dev_clk soc_dev_clk_data[] = { +DEV_CLK (13 ,0 ,"sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk" ), +DEV_CLK (13 ,3 ,"main_cp_gemac_cpts_clk_sel_out0" ), +DEV_CLK (13 ,4 ,"postdiv4_16ff_main_2_hsdivout5_clk" ), +DEV_CLK (13 ,5 ,"postdiv4_16ff_main_0_hsdivout6_clk" ), +DEV_CLK (13 ,6 ,"board_0_cp_gemac_cpts0_rft_clk_out" ), +DEV_CLK (13 ,8 ,"board_0_mcu_ext_refclk0_out" ), +DEV_CLK (13 ,9 ,"board_0_ext_refclk1_out" ), +DEV_CLK (13 ,10 ,"sam62_pll_ctrl_wrap_mcu_0_chip_div1_clk_clk" ), +DEV_CLK (13 ,11 ,"sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk" ), +DEV_CLK (13 ,13 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,14 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,15 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,16 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,17 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,19 ,"board_0_rgmii1_rxc_out" ), +DEV_CLK (13 ,20 ,"board_0_rgmii1_txc_out" ), +DEV_CLK (13 ,22 ,"board_0_rgmii2_rxc_out" ), +DEV_CLK (13 ,23 ,"board_0_rgmii2_txc_out" ), +DEV_CLK (13 ,25 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,26 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,27 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (13 ,28 ,"board_0_rmii1_ref_clk_out" ), +DEV_CLK (13 ,29 ,"board_0_rmii2_ref_clk_out" ),DEV_CLK (16 ,0 ,"hsdiv4_16fft_main_0_hsdivout1_clk" ),DEV_CLK (16 ,1 ,"hsdiv4_16fft_main_0_hsdivout2_clk" ),DEV_CLK (16 ,2 ,"hsdiv4_16fft_main_0_hsdivout3_clk" ),
@@ -277,11 +321,14 @@ static const struct dev_clk soc_dev_clk_data[] = {DEV_CLK (157 ,25 ,"board_0_ddr0_ck0_out" ),DEV_CLK (157 ,40 ,"mshsi2c_main_0_porscl" ),DEV_CLK (157 ,77 ,"sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk" ), +DEV_CLK (157 ,82 ,"cpsw_3guss_main_0_mdio_mdclk_o" ),DEV_CLK (157 ,83 ,"emmcsd8ss_main_0_emmcsdss_io_clk_o" ),DEV_CLK (157 ,85 ,"emmcsd8ss_main_0_emmcsdss_io_clk_o" ),DEV_CLK (157 ,87 ,"emmcsd4ss_main_0_emmcsdss_io_clk_o" ),DEV_CLK (157 ,89 ,"emmcsd4ss_main_0_emmcsdss_io_clk_o" ),DEV_CLK (157 ,130 ,"fss_ul_main_0_ospi_0_ospi_oclk_clk" ), +DEV_CLK (157 ,133 ,"cpsw_3guss_main_0_rgmii1_txc_o" ), +DEV_CLK (157 ,136 ,"cpsw_3guss_main_0_rgmii2_txc_o" ),DEV_CLK (157 ,146 ,"sam62_pll_ctrl_wrap_main_0_sysclkout_clk" ),DEV_CLK (157 ,159 ,"wkup_clkout_sel_io_out0" ), DEV_CLK(157, 160, "wkup_clkout_sel_out0"),
@@ -311,7 +358,7 @@ static const struct dev_clk soc_dev_clk_data[] = {const struct ti_k3_clk_platdata am62ax_clk_platdata = { .clk_list = clk_list, - .clk_list_cnt =80 , + .clk_list_cnt =90 , .soc_dev_clk_data = soc_dev_clk_data, - .soc_dev_clk_data_cnt =104 , + .soc_dev_clk_data_cnt =130 , };
arch/arm/mach-k3/r5/am62ax/dev-data.c +16 -13
@@ -17,9 +17,10 @@ static struct ti_psc soc_psc_list[] = {static struct ti_pd soc_pd_list[] = { [0 ] =PSC_PD (0 , &soc_psc_list[1 ],NULL ), - [1 ] =PSC_PD (3 , &soc_psc_list[1 ], &soc_pd_list[0 ]), - [2 ] =PSC_PD (4 , &soc_psc_list[1 ], &soc_pd_list[1 ]), - [3 ] =PSC_PD (13 , &soc_psc_list[1 ], &soc_pd_list[0 ]), + [1 ] =PSC_PD (2 , &soc_psc_list[1 ], &soc_pd_list[0 ]), + [2 ] =PSC_PD (3 , &soc_psc_list[1 ], &soc_pd_list[0 ]), + [3 ] =PSC_PD (4 , &soc_psc_list[1 ], &soc_pd_list[2 ]), + [4 ] =PSC_PD (13 , &soc_psc_list[1 ], &soc_pd_list[0 ]), };static struct ti_lpsc soc_lpsc_list[] = {
@@ -32,11 +33,12 @@ static struct ti_lpsc soc_lpsc_list[] = { [6] = PSC_LPSC(24, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[8]), [7] = PSC_LPSC(28, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[8]), [8] = PSC_LPSC(34, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[8]), - [9] = PSC_LPSC(43, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[8]), - [10] = PSC_LPSC(46, &soc_psc_list[1], &soc_pd_list[2], &soc_lpsc_list[9]), - [11] = PSC_LPSC(60, &soc_psc_list[1], &soc_pd_list[3], &soc_lpsc_list[8]), - [12] = PSC_LPSC(61, &soc_psc_list[1], &soc_pd_list[3], &soc_lpsc_list[11]), - [13] = PSC_LPSC(62, &soc_psc_list[1], &soc_pd_list[3], &soc_lpsc_list[12]), + [9] = PSC_LPSC(42, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[8]), + [10] = PSC_LPSC(43, &soc_psc_list[1], &soc_pd_list[2], &soc_lpsc_list[8]), + [11] = PSC_LPSC(46, &soc_psc_list[1], &soc_pd_list[3], &soc_lpsc_list[10]), + [12] = PSC_LPSC(60, &soc_psc_list[1], &soc_pd_list[4], &soc_lpsc_list[8]), + [13] = PSC_LPSC(61, &soc_psc_list[1], &soc_pd_list[4], &soc_lpsc_list[12]), + [14] = PSC_LPSC(62, &soc_psc_list[1], &soc_pd_list[4], &soc_lpsc_list[13]), };static struct ti_dev soc_dev_list[] = {
@@ -55,11 +57,12 @@ static struct ti_dev soc_dev_list[] = {PSC_DEV (36 , &soc_lpsc_list[8 ]),PSC_DEV (102 , &soc_lpsc_list[8 ]),PSC_DEV (146 , &soc_lpsc_list[8 ]), -PSC_DEV (166 , &soc_lpsc_list[9 ]), -PSC_DEV (135 , &soc_lpsc_list[10 ]), -PSC_DEV (170 , &soc_lpsc_list[11 ]), -PSC_DEV (177 , &soc_lpsc_list[12 ]), - PSC_DEV(55, &soc_lpsc_list[13]), +PSC_DEV (13 , &soc_lpsc_list[9 ]), +PSC_DEV (166 , &soc_lpsc_list[10 ]), +PSC_DEV (135 , &soc_lpsc_list[11 ]), +PSC_DEV (170 , &soc_lpsc_list[12 ]), +PSC_DEV (177 , &soc_lpsc_list[13 ]), + PSC_DEV(55, &soc_lpsc_list[14]), }; const struct ti_k3_pd_platdata am62ax_pd_platdata = {
Signature · 1 line
2.34.1
PATCH 7/8 board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core
In reply to Wadim EgorovFrom: Nathan Morrisson <[email protected]>
During the U-Boot SPL R5 boot stage the code is running on the MAIN R5 core, which means a host ID of 36 is used for DM/TIFS communication, see [1]. In order to enable Ethernet boot update the DMA resources used to be shared with the MAIN R5 core instead of the MCU R5 core.
[1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62ax/hosts.html
Based on patch 19 from https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1307981/sk-am62a-lp-rgmii-boot-mode-problem
--- board/phytec/phycore_am62ax/rm-cfg.yaml | 10 ++-- board/phytec/phycore_am62ax/tifs-rm-cfg.yaml | 48 +++++++++++--------- 2 files changed, 32 insertions(+), 26 deletions(-)
board/phytec/phycore_am62ax/rm-cfg.yaml +5 -5
@@ -713,7 +713,7 @@ rm-cfg: start_resource: 19 num_resource: 64 type: 1937 - host_id: 30 + host_id: 36 reserved: 0 - start_resource: 83
@@ -767,7 +767,7 @@ rm-cfg: start_resource: 118 num_resource: 16 type: 1943 - host_id: 30 + host_id: 36 reserved: 0 - start_resource: 134
@@ -833,7 +833,7 @@ rm-cfg: start_resource: 19 num_resource: 8 type: 1956 - host_id: 30 + host_id: 36 reserved: 0 - start_resource: 27
@@ -917,7 +917,7 @@ rm-cfg: start_resource: 19 num_resource: 1 type: 1963 - host_id: 30 + host_id: 36 reserved: 0 - start_resource: 19
@@ -929,7 +929,7 @@ rm-cfg: start_resource: 19 num_resource: 16 type: 1964 - host_id: 30 + host_id: 36 reserved: 0 - start_resource: 20
board/phytec/phycore_am62ax/tifs-rm-cfg.yaml +27 -21
147 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 8/8 configs: Add phycore_am62ax_r5_ethboot_defconfig
In reply to Wadim EgorovProvide a defconfig for booting the phycore-am62ax via Ethernet.
--- board/phytec/phycore_am62ax/MAINTAINERS | 1 + configs/phycore_am62ax_r5_ethboot_defconfig | 43 +++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 configs/phycore_am62ax_r5_ethboot_defconfig
board/phytec/phycore_am62ax/MAINTAINERS +1 -0
@@ -10,5 +10,6 @@ F: arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts F: board/phytec/phycore_am62ax/ F: configs/phycore_am62ax_a53_defconfig F: configs/phycore_am62ax_r5_defconfig +F: configs/phycore_am62ax_r5_ethboot_defconfig F: include/configs/phycore_am62ax.h F: doc/board/phytec/phycore-am62ax.rst
configs/phycore_am62ax_r5_ethboot_defconfig new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 8 lines · Wadim Egorov
Add general ethernet boot support for AM62Ax SoC.
Some of the work is based on TI's downstream u-boot patches found in [1], patches touching code in mach-k3 and *.yaml board config files.Also, provide defconfigs and device tree changes for phyCORE-AM62x and phyCORE-AM62Ax to support booting via ethernet.
[...]
Applied to u-boot/master, thanks!
[1/8] arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel
commit: a936352f9e00206016badaaa217f034dde7b00a2
[2/8] configs: Add phycore_am62x_r5_ethboot_defconfig
commit: 1acffb571149879094012bb69f54da2c958d552a
[3/8] configs: phycore_am62x_a53_defconfig: Update for ethernet boot
commit: 93d22aca3d3266f759c0f293e96e210ca3fec663
[4/8] arch: arm: dts: k3-am62a7-phyboard-lyra-rdk-u-boot: Disable Ethernet2
commit: 77183dfbbcfa466c9a7a646f9f9468f6276e94e3
[5/8] arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f()
commit: 2dec0fc59c55aa78ff737d3238cac6cc968348c5
[6/8] arch: arm: mach-k3: r5: am62ax: Update SoC auto-gen data to enable CPSW boot
commit: a0f73e847d17302751ad358bf387700b08fa5e98
[7/8] board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core
commit: 5327b62c12cf0a1393481fb2f402806bad6dc280
[8/8] configs: Add phycore_am62ax_r5_ethboot_defconfig
commit: e41c21acced75002f54240c277e46ee585af2cf9Signature · 1 line
Tom