board: beagle: Move beagleplay and omap3beagle under beagle vendor folder
Subsystems (3)
PATCH 4/5 doc: board: Move am62x_beagleplay to it's own vendor
In reply to Nishanth MenonMove BeaglePlay documentation to beagle as a board vendor and update references accordingly.
---
doc/board/{ti => beagle}/am62x_beagleplay.rst | 22 +++++++++----------
.../{ti => beagle}/img/beagleplay_emmc.svg | 0
doc/board/beagle/index.rst | 13 +++++++++++
doc/board/index.rst | 1 +
doc/board/ti/k3.rst | 2 +-
5 files changed, 26 insertions(+), 12 deletions(-)
rename doc/board/{ti => beagle}/am62x_beagleplay.rst (96%)
rename doc/board/{ti => beagle}/img/beagleplay_emmc.svg (100%)
create mode 100644 doc/board/beagle/index.rstdoc/board/beagle/am62x_beagleplay.rst renamed from doc/board/ti/am62x_beagleplay.rst +11 -11
@@ -23,7 +23,7 @@ Boot Flow: ---------- Below is the pictorial representation of boot flow: -.. image:: img/boot_diagram_k3_current.svg +.. image:: ../ti/img/boot_diagram_k3_current.svg :alt: Boot flow diagram - On this platform, 'TI Foundational Security' (TIFS) functions as the
@@ -34,7 +34,7 @@ Below is the pictorial representation of boot flow: Sources: -------- -.. include:: k3.rst +.. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_boot_sources :end-before: .. k3_rst_include_end_boot_sources
@@ -42,17 +42,17 @@ Build procedure: ---------------- 0. Setup the environment variables: -.. include:: k3.rst +.. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_common_env_vars_desc :end-before: .. k3_rst_include_end_common_env_vars_desc -.. include:: k3.rst +.. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_board_env_vars_desc :end-before: .. k3_rst_include_end_board_env_vars_desc Set the variables corresponding to this platform: -.. include:: k3.rst +.. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_common_env_vars_defn :end-before: .. k3_rst_include_end_common_env_vars_defn .. prompt:: bash $
@@ -65,7 +65,7 @@ Set the variables corresponding to this platform: export OPTEE_PLATFORM=k3-am62x export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y" -.. include:: am62x_sk.rst +.. include:: ../ti/am62x_sk.rst :start-after: .. am62x_evm_rst_include_start_build_steps :end-before: .. am62x_evm_rst_include_end_build_steps
@@ -82,12 +82,12 @@ Image formats - tiboot3.bin -.. image:: img/multi_cert_tiboot3.bin.svg +.. image:: ../ti/img/multi_cert_tiboot3.bin.svg :alt: tiboot3.bin image format - tispl.bin -.. image:: img/dm_tispl.bin.svg +.. image:: ../ti/img/dm_tispl.bin.svg :alt: tispl.bin image format Additional hardware for U-Boot development
@@ -240,7 +240,7 @@ LED patterns during boot A53 SPL DDR Memory Layout ------------------------- -.. include:: am62x_sk.rst +.. include:: ../ti/am62x_sk.rst :start-after: .. am62x_evm_rst_include_start_ddr_mem_layout :end-before: .. am62x_evm_rst_include_end_ddr_mem_layout
@@ -284,11 +284,11 @@ detailed setup and debugging information. environment's distribution needs to be updated, it might be necessary to build OpenOCD from the source. -.. include:: k3.rst +.. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_openocd_connect_tag_connect :end-before: .. k3_rst_include_end_openocd_connect_tag_connect -.. include:: k3.rst +.. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_openocd_cfg_external_intro :end-before: .. k3_rst_include_end_openocd_cfg_external_intro
doc/board/beagle/img/beagleplay_emmc.svg renamed from doc/board/ti/img/beagleplay_emmc.svg +0 -0
doc/board/beagle/index.rst new file +13 -0
@@ -0,0 +1,13 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +BeagleBoard.org +############### + + +ARM based boards +---------------- + +.. toctree:: + :maxdepth: 2 + + am62x_beagleplay
doc/board/index.rst +1 -0
@@ -17,6 +17,7 @@ Board-specific doc asus/index atmel/index beacon/index + beagle/index broadcom/index bsh/index cloos/index
doc/board/ti/k3.rst +1 -1
@@ -30,8 +30,8 @@ K3 Based SoCs .. toctree:: :maxdepth: 1 - am62x_beagleplay am62x_sk + ../beagle/am62x_beagleplay ../toradex/verdin-am62 am64x_evm am65x_evm
Signature · 1 line
2.37.2
PATCH 2/5 configs: Add am62x_beagleplay_*_defconfig
In reply to Nishanth MenonAdd am62x_beagleplay_* defconfig customized for the configuration of BeaglePlay and drop the config fragments.
This is in preparation for dropping the dependency on ti vendor folder entirely.
--- board/ti/am62x/beagleplay_a53.config | 55 ------------ board/ti/am62x/beagleplay_r5.config | 15 ---- configs/am62x_beagleplay_a53_defconfig | 119 +++++++++++++++++++++++++ configs/am62x_beagleplay_r5_defconfig | 111 +++++++++++++++++++++++ doc/board/ti/am62x_beagleplay.rst | 4 +- 5 files changed, 232 insertions(+), 72 deletions(-) delete mode 100644 board/ti/am62x/beagleplay_a53.config delete mode 100644 board/ti/am62x/beagleplay_r5.config create mode 100644 configs/am62x_beagleplay_a53_defconfig create mode 100644 configs/am62x_beagleplay_r5_defconfig
board/ti/am62x/beagleplay_a53.config deleted +0 -55
@@ -1,55 +0,0 @@ -# Defconfig fragment to apply on top of am62x_evm_a53_defconfig - -CONFIG_DEFAULT_DEVICE_TREE="k3-am625-beagleplay" -CONFIG_OF_LIST="k3-am625-beagleplay" -CONFIG_SPL_OF_LIST="k3-am625-beagleplay" -CONFIG_BOOTCOMMAND="run set_led_state_start_load;run findfdt; run envboot; bootflow scan -lb;run set_led_state_fail_load" -CONFIG_EXT4_WRITE=y -CONFIG_LZO=y -CONFIG_AUTOBOOT_KEYED=y -CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n" -CONFIG_AUTOBOOT_DELAY_STR="d" -CONFIG_AUTOBOOT_STOP_STR=" " -# Use the Beagleplay env file -CONFIG_ENV_SOURCE_FILE="beagleplay" -# Do not use emmc boot - we will use FS only -CONFIG_SUPPORT_EMMC_BOOT=n -CONFIG_MMC_IO_VOLTAGE=y -# CONFIG_SPL_MMC_IO_VOLTAGE is not set -CONFIG_MMC_UHS_SUPPORT=y -# CONFIG_SPL_MMC_UHS_SUPPORT is not set -CONFIG_MMC_HS200_SUPPORT=y -# CONFIG_SPL_MMC_HS200_SUPPORT is not set -# Enable GPIO control -CONFIG_DM_GPIO=y -CONFIG_SPL_GPIO=y -CONFIG_DA8XX_GPIO=y -CONFIG_CMD_GPIO=y -CONFIG_CMD_GPIO_READ=y -# Enable LEDs -CONFIG_LED=y -CONFIG_LED_GPIO=y -CONFIG_SPL_LED=y -CONFIG_SPL_LED_GPIO=y -# Enable I2C bus -CONFIG_SPL_I2C=y -CONFIG_DM_I2C=y -CONFIG_SYS_I2C_OMAP24XX=y -CONFIG_CMD_I2C=y -# Regulator -CONFIG_DM_REGULATOR=y -CONFIG_DM_REGULATOR_FIXED=y -CONFIG_DM_REGULATOR_GPIO=y -CONFIG_CMD_REGULATOR=y -CONFIG_DM_REGULATOR_TPS65219=y -CONFIG_DM_PMIC=y -CONFIG_PMIC_TPS65219=y -CONFIG_CMD_PMIC=y -# Uses Realtek phy rather than TI phy -CONFIG_PHY_TI_DP83867=n -CONFIG_PHY_REALTEK=y -# No SPI flash on Beagleplay -CONFIG_SPI=n -CONFIG_SPI_FLASH=n -CONFIG_SPL_DM_SPI_FLASH=n -CONFIG_SPL_SPI_FLASH_SUPPORT=n
board/ti/am62x/beagleplay_r5.config deleted +0 -15
@@ -1,15 +0,0 @@ -# Defconfig fragment to apply on top of: -# am62x_evm_r5_defconfig -# -CONFIG_DEFAULT_DEVICE_TREE="k3-am625-r5-beagleplay" -CONFIG_OF_LIST="k3-am625-r5-beagleplay" -CONFIG_SPL_OF_LIST="k3-am625-r5-beagleplay" -# Do spl board init -CONFIG_SPL_BOARD_INIT=y -# Do not use emmc boot - we will use FS only -CONFIG_SUPPORT_EMMC_BOOT=n -# No SPI flash on Beagleplay -CONFIG_SPI=n -CONFIG_SPI_FLASH=n -CONFIG_SPL_DM_SPI_FLASH=n -CONFIG_SPL_SPI_FLASH_SUPPORT=n
configs/am62x_beagleplay_a53_defconfig new file +119 -0
119 lines not on this page · raw message
configs/am62x_beagleplay_r5_defconfig new file +111 -0
111 lines not on this page · raw message
doc/board/ti/am62x_beagleplay.rst +2 -2
@@ -57,8 +57,8 @@ Set the variables corresponding to this platform: :end-before: .. k3_rst_include_end_common_env_vars_defn .. prompt:: bash $ - export UBOOT_CFG_CORTEXR="am62x_evm_r5_defconfig beagleplay_r5.config" - export UBOOT_CFG_CORTEXA="am62x_evm_a53_defconfig beagleplay_a53.config" + export UBOOT_CFG_CORTEXR=am62x_beagleplay_r5_defconfig + export UBOOT_CFG_CORTEXA=am62x_beagleplay_a53_defconfig export TFA_BOARD=lite # we dont use any extra TFA parameters unset TFA_EXTRA_ARGS
Signature · 1 line
2.37.2
PATCH 5/5 board: Move omap3 beagle under beagle vendor folder
In reply to Nishanth MenonMove the omap3 beagle to the beagle vendor folder representing BeagleBoard.org platforms.
---
arch/arm/mach-omap2/omap3/Kconfig | 2 +-
board/{ti => beagle}/beagle/Kconfig | 2 +-
board/{ti => beagle}/beagle/MAINTAINERS | 2 +-
board/{ti => beagle}/beagle/Makefile | 0
board/{ti => beagle}/beagle/beagle.c | 0
board/{ti => beagle}/beagle/beagle.h | 0
board/{ti => beagle}/beagle/led.c | 0
7 files changed, 3 insertions(+), 3 deletions(-)
rename board/{ti => beagle}/beagle/Kconfig (88%)
rename board/{ti => beagle}/beagle/MAINTAINERS (84%)
rename board/{ti => beagle}/beagle/Makefile (100%)
rename board/{ti => beagle}/beagle/beagle.c (100%)
rename board/{ti => beagle}/beagle/beagle.h (100%)
rename board/{ti => beagle}/beagle/led.c (100%)arch/arm/mach-omap2/omap3/Kconfig +1 -1
@@ -152,7 +152,7 @@ config SYS_SOC default "omap3" source "board/logicpd/am3517evm/Kconfig" -source "board/ti/beagle/Kconfig" +source "board/beagle/beagle/Kconfig" source "board/timll/devkit8000/Kconfig" source "board/ti/omap3evm/Kconfig" source "board/isee/igep00x0/Kconfig"
board/beagle/beagle/Kconfig renamed from board/ti/beagle/Kconfig +1 -1
@@ -4,7 +4,7 @@ config SYS_BOARD default "beagle" config SYS_VENDOR - default "ti" + default "beagle" config SYS_CONFIG_NAME default "omap3_beagle"
board/beagle/beagle/MAINTAINERS renamed from board/ti/beagle/MAINTAINERS +1 -1
@@ -1,6 +1,6 @@ BEAGLE BOARD M: Tom Rini <[email protected]> S: Maintained -F: board/ti/beagle/ +F: board/beagle/beagle/ F: include/configs/omap3_beagle.h F: configs/omap3_beagle_defconfig
board/beagle/beagle/Makefile renamed from board/ti/beagle/Makefile +0 -0
board/beagle/beagle/beagle.c renamed from board/ti/beagle/beagle.c +0 -0
board/beagle/beagle/beagle.h renamed from board/ti/beagle/beagle.h +0 -0
board/beagle/beagle/led.c renamed from board/ti/beagle/led.c +0 -0
Signature · 1 line
2.37.2
PATCH 1/5 arm: dts: k3-am625-beagleplay-u-boot/r5: Just depend on k3-binman.dtsi
In reply to Nishanth MenonWith the upcoming folder separation, there is no further need to depend on am625-binman.dtsi. Duplicate the existing definitions to u-boot.dtsi and r5.dts as appropriate.
--- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 160 +++++++++++++++++-- arch/arm/dts/k3-am625-r5-beagleplay.dts | 39 +++++ 2 files changed, 184 insertions(+), 15 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +145 -15
@@ -6,7 +6,7 @@ * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation */ -#include "k3-am625-sk-binman.dtsi" +#include "k3-binman.dtsi" / { chosen {
@@ -171,25 +171,155 @@ bootph-all; }; -#ifdef CONFIG_TARGET_AM625_A53_EVM +#ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY +#define SPL_NODTB "spl/u-boot-spl-nodtb.bin" #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" +#define UBOOT_NODTB "u-boot-nodtb.bin" #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" -&spl_am625_sk_dtb { - filename = SPL_AM625_BEAGLEPLAY_DTB; -}; - -&am625_sk_dtb { - filename = AM625_BEAGLEPLAY_DTB; -}; +&binman { + ti-dm { + filename = "ti-dm.bin"; + blob-ext { + filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; -&spl_am625_sk_dtb_unsigned { - filename = SPL_AM625_BEAGLEPLAY_DTB; -}; + ti-spl_unsigned { + filename = "tispl.bin_unsigned"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + filename = "bl31.bin"; + }; + }; + + tee { + description = "OP-TEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + filename = "tee-raw.bin"; + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + blob { + filename = "spl/u-boot-spl-nodtb.bin"; + }; + }; + + fdt-0 { + description = "k3-am625-beagleplay"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + spl_am625_bp_dtb_unsigned: blob { + filename = SPL_AM625_BEAGLEPLAY_DTB; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-am625-beagleplay"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + }; + }; + }; -&am625_sk_dtb_unsigned { - filename = AM625_BEAGLEPLAY_DTB; + u-boot_unsigned { + filename = "u-boot.img_unsigned"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for AM625 board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + blob { + filename = UBOOT_NODTB; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-0 { + description = "k3-am625-beagleplay"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + am625_bp_dtb_unsigned: blob { + filename = AM625_BEAGLEPLAY_DTB; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-am625-beagleplay"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + }; + }; + }; }; - #endif
arch/arm/dts/k3-am625-r5-beagleplay.dts +39 -0
@@ -84,3 +84,42 @@ &main_bcdma { ti,sci = <&dm_tifs>; }; + +&binman { + tiboot3-am62x-gp-evm.bin { + filename = "tiboot3-am62x-gp-evm.bin"; + ti-secure-rom { + content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, + <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; + combined; + dm-data; + content-sbl = <&u_boot_spl_unsigned>; + load = <0x43c00000>; + content-sysfw = <&ti_fs_gp>; + load-sysfw = <0x40000>; + content-sysfw-data = <&combined_tifs_cfg_gp>; + load-sysfw-data = <0x67000>; + content-dm-data = <&combined_dm_cfg_gp>; + load-dm-data = <0x43c3a800>; + sw-rev = <1>; + keyfile = "ti-degenerate-key.pem"; + }; + u_boot_spl_unsigned: u-boot-spl { + no-expanded; + }; + ti_fs_gp: ti-fs-gp.bin { + filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; + type = "blob-ext"; + optional; + }; + combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + combined_dm_cfg_gp: combined-dm-cfg-gp.bin { + filename = "combined-dm-cfg.bin"; + type = "blob-ext"; + }; + + }; +};
Signature · 1 line
2.37.2
PATCH 3/5 board: Move beagleplay under beagle vendor folder
In reply to Nishanth MenonMove beagleplay support away from ti/am62x to it's own beagle vendor folder.
This forms the starting point for new beagle platforms added under it's own board vendor folder.
As part of this create all the associated files with a bare minimum beagleplay.c file.
---
arch/arm/mach-k3/Kconfig | 1 +
board/beagle/beagleplay/Kconfig | 60 +
board/beagle/beagleplay/MAINTAINERS | 6 +
board/beagle/beagleplay/Makefile | 9 +
board/beagle/beagleplay/beagleplay.c | 29 +
.../beagleplay}/beagleplay.env | 0
board/beagle/beagleplay/board-cfg.yaml | 36 +
board/beagle/beagleplay/pm-cfg.yaml | 12 +
board/beagle/beagleplay/rm-cfg.yaml | 1088 +++++++++++++++++
board/beagle/beagleplay/sec-cfg.yaml | 379 ++++++
board/ti/am62x/MAINTAINERS | 7 -
configs/am62x_beagleplay_a53_defconfig | 3 +-
configs/am62x_beagleplay_r5_defconfig | 3 +-
13 files changed, 1622 insertions(+), 11 deletions(-)
create mode 100644 board/beagle/beagleplay/Kconfig
create mode 100644 board/beagle/beagleplay/MAINTAINERS
create mode 100644 board/beagle/beagleplay/Makefile
create mode 100644 board/beagle/beagleplay/beagleplay.c
rename board/{ti/am62x => beagle/beagleplay}/beagleplay.env (100%)
create mode 100644 board/beagle/beagleplay/board-cfg.yaml
create mode 100644 board/beagle/beagleplay/pm-cfg.yaml
create mode 100644 board/beagle/beagleplay/rm-cfg.yaml
create mode 100644 board/beagle/beagleplay/sec-cfg.yamlarch/arm/mach-k3/Kconfig +1 -0
@@ -200,4 +200,5 @@ source "board/ti/j721e/Kconfig" source "board/siemens/iot2050/Kconfig" source "board/ti/j721s2/Kconfig" source "board/toradex/verdin-am62/Kconfig" +source "board/beagle/beagleplay/Kconfig" endif
board/beagle/beagleplay/Kconfig new file +60 -0
60 lines not on this page · raw message
board/beagle/beagleplay/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +BEAGLEPLAY BOARD +M: Nishanth Menon <[email protected]> +M: Robert Nelson <[email protected]> +M: Tom Rini <[email protected]> +S: Maintained +N: beagleplay
board/beagle/beagleplay/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# https://beagleboard.org/play +# +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ +# Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation +# + +obj-y += beagleplay.o
board/beagle/beagleplay/beagleplay.c new file +29 -0
@@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* https://beagleplay.org/ +* +* Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ +* Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation +*/ + +#include <cpu_func.h> +#include <env.h> +#include <fdt_support.h> +#include <spl.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +return 0 ; +} + +int dram_init (void ) +{ +return fdtdec_setup_mem_size_base (); +} + +int dram_init_banksize (void ) +{ +return fdtdec_setup_memory_banksize (); +}
board/beagle/beagleplay/beagleplay.env renamed from board/ti/am62x/beagleplay.env +0 -0
board/beagle/beagleplay/board-cfg.yaml new file +36 -0
@@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for AM62 +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable : 0x5A + main_isolation_hostid : 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor : 0x1 + scaling_profile : 0x1 + disable_main_nav_secure_proxy : 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size : 0x0 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables : 0x00 + trace_src_enables : 0x00
board/beagle/beagleplay/pm-cfg.yaml new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ +# +# Power management configuration for AM62 +# + +--- + +pm-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1
board/beagle/beagleplay/rm-cfg.yaml new file +1088 -0
1,088 lines not on this page · raw message
board/beagle/beagleplay/sec-cfg.yaml new file +379 -0
379 lines not on this page · raw message
board/ti/am62x/MAINTAINERS +0 -7
@@ -6,10 +6,3 @@ F: board/ti/am62x/ F: include/configs/am62x_evm.h F: configs/am62x_evm_r5_defconfig F: configs/am62x_evm_a53_defconfig - -BEAGLEPLAY BOARD -M: Nishanth Menon <[email protected]> -M: Robert Nelson <[email protected]> -M: Tom Rini <[email protected]> -S: Maintained -N: beagleplay
configs/am62x_beagleplay_a53_defconfig +1 -2
@@ -7,8 +7,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2 CONFIG_SOC_K3_AM625=y CONFIG_K3_ATF_LOAD_ADDR=0x9e780000 -CONFIG_TARGET_AM625_A53_EVM=y -CONFIG_ENV_SOURCE_FILE="beagleplay" +CONFIG_TARGET_AM625_A53_BEAGLEPLAY=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000 CONFIG_DM_GPIO=y
configs/am62x_beagleplay_r5_defconfig +1 -2
@@ -6,7 +6,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2 CONFIG_SOC_K3_AM625=y -CONFIG_TARGET_AM625_R5_EVM=y +CONFIG_TARGET_AM625_R5_BEAGLEPLAY=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x43c3a7f0 CONFIG_ENV_SIZE=0x20000
@@ -36,7 +36,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x43c3b000 CONFIG_SPL_BSS_MAX_SIZE=0x3000 CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y -CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_SEPARATE_BSS=y
Signature · 1 line
2.37.2
cover board: beagle: Move beagleplay and omap3beagle under beagle vendor folder
Hi,
Subsequent to the discussion in [1] and a bit of offline discussions with Jason and Robert, The series moves AM62x based BeaglePlay and OMAP3 based original BeagleBoard over to board/beagle/ folder and also creates doc/board/beagle folder.
This series also is a "breaking" change for developers used to config fragments of beagleplay as it introduces standalone config for beagleplay and gets rid of the fragments as it no longer makes sense to have fragments of one board vendor depend on another.
This is in preperation to introduce BeagleBone AI-64 in follow on series.
BeaglePlay Boot log:
SD/MMC boot: https://gist.github.com/nmenon/921930ffd117dcff7d051dbee53f11ff
emmc boot with sdcard: https://gist.github.com/nmenon/ac70f5523118d44177103dbafd80a751
emmc boot without sdcard: https://gist.github.com/nmenon/a3135f9ff39e7d96186b2ebbac633090
Combined series can be found here:
https://github.com/nmenon/u-boot/commits/beagleboneai64-v2
Dependencies (in order):
(keys and yaml)
1. https://lore.kernel.org/all/[email protected]/
2. https://lore.kernel.org/u-boot/[email protected]/
(docs prompt cleanup - gets in the way of moving things)
3. https://lore.kernel.org/u-boot/[email protected]/
CAVEAT:
* omap3beagle was only tested with buildman build. I dont have a board to verify.
* I dont plan to mess around with am335x/am57x beagle* products. That churn is a bit too much and impacts too many active users. if there are folks wanting to do that - patches to list are welcome.
Nishanth Menon (5):
arm: dts: k3-am625-beagleplay-u-boot/r5: Just depend on k3-binman.dtsi
configs: Add am62x_beagleplay_*_defconfig
board: Move beagleplay under beagle vendor folder
doc: board: Move am62x_beagleplay to it's own vendor
board: Move omap3 beagle under beagle vendor folder
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 160 ++-
arch/arm/dts/k3-am625-r5-beagleplay.dts | 39 +
arch/arm/mach-k3/Kconfig | 1 +
arch/arm/mach-omap2/omap3/Kconfig | 2 +-
board/{ti => beagle}/beagle/Kconfig | 2 +-
board/{ti => beagle}/beagle/MAINTAINERS | 2 +-
board/{ti => beagle}/beagle/Makefile | 0
board/{ti => beagle}/beagle/beagle.c | 0
board/{ti => beagle}/beagle/beagle.h | 0
board/{ti => beagle}/beagle/led.c | 0
board/beagle/beagleplay/Kconfig | 60 +
board/beagle/beagleplay/MAINTAINERS | 6 +
board/beagle/beagleplay/Makefile | 9 +
board/beagle/beagleplay/beagleplay.c | 29 +
.../beagleplay}/beagleplay.env | 0
board/beagle/beagleplay/board-cfg.yaml | 36 +
board/beagle/beagleplay/pm-cfg.yaml | 12 +
board/beagle/beagleplay/rm-cfg.yaml | 1088 +++++++++++++++++
board/beagle/beagleplay/sec-cfg.yaml | 379 ++++++
board/ti/am62x/MAINTAINERS | 7 -
board/ti/am62x/beagleplay_a53.config | 55 -
board/ti/am62x/beagleplay_r5.config | 15 -
configs/am62x_beagleplay_a53_defconfig | 118 ++
configs/am62x_beagleplay_r5_defconfig | 110 ++
doc/board/{ti => beagle}/am62x_beagleplay.rst | 26 +-
.../{ti => beagle}/img/beagleplay_emmc.svg | 0
doc/board/beagle/index.rst | 13 +
doc/board/index.rst | 1 +
doc/board/ti/k3.rst | 2 +-
29 files changed, 2063 insertions(+), 109 deletions(-)
rename board/{ti => beagle}/beagle/Kconfig (88%)
rename board/{ti => beagle}/beagle/MAINTAINERS (84%)
rename board/{ti => beagle}/beagle/Makefile (100%)
rename board/{ti => beagle}/beagle/beagle.c (100%)
rename board/{ti => beagle}/beagle/beagle.h (100%)
rename board/{ti => beagle}/beagle/led.c (100%)
create mode 100644 board/beagle/beagleplay/Kconfig
create mode 100644 board/beagle/beagleplay/MAINTAINERS
create mode 100644 board/beagle/beagleplay/Makefile
create mode 100644 board/beagle/beagleplay/beagleplay.c
rename board/{ti/am62x => beagle/beagleplay}/beagleplay.env (100%)
create mode 100644 board/beagle/beagleplay/board-cfg.yaml
create mode 100644 board/beagle/beagleplay/pm-cfg.yaml
create mode 100644 board/beagle/beagleplay/rm-cfg.yaml
create mode 100644 board/beagle/beagleplay/sec-cfg.yaml
delete mode 100644 board/ti/am62x/beagleplay_a53.config
delete mode 100644 board/ti/am62x/beagleplay_r5.config
create mode 100644 configs/am62x_beagleplay_a53_defconfig
create mode 100644 configs/am62x_beagleplay_r5_defconfig
rename doc/board/{ti => beagle}/am62x_beagleplay.rst (95%)
rename doc/board/{ti => beagle}/img/beagleplay_emmc.svg (100%)
create mode 100644 doc/board/beagle/index.rstSignature · 1 line
2.37.2
Re: [PATCH 4/5] doc: board: Move am62x_beagleplay to it's own vendor
In reply to Nishanth MenonHi Nishanth!
On November 4, 2023 thus sayeth Nishanth Menon:
Quoted 4 lines
Move BeaglePlay documentation to beagle as a board vendor and update references accordingly.
Signed-off-by Nishanth Menon <[email protected]>
Quoted 11 lines
---
doc/board/{ti => beagle}/am62x_beagleplay.rst | 22 +++++++++----------
.../{ti => beagle}/img/beagleplay_emmc.svg | 0
doc/board/beagle/index.rst | 13 +++++++++++
doc/board/index.rst | 1 +
doc/board/ti/k3.rst | 2 +-
5 files changed, 26 insertions(+), 12 deletions(-)
rename doc/board/{ti => beagle}/am62x_beagleplay.rst (96%)
rename doc/board/{ti => beagle}/img/beagleplay_emmc.svg (100%)
create mode 100644 doc/board/beagle/index.rstLooks good to me :)
~Bryan
Re: [PATCH 3/5] board: Move beagleplay under beagle vendor folder
In reply to Nishanth MenonHi Nishanth!
On November 4, 2023 thus sayeth Nishanth Menon:
Quoted 11 lines
Move beagleplay support away from ti/am62x to it's own beagle vendor folder.
This forms the starting point for new beagle platforms added under it's own board vendor folder.
As part of this create all the associated files with a bare minimum
beagleplay.cfile.Suggested-by Andrew Davis <[email protected]>Signed-off-by Nishanth Menon <[email protected]>
Quoted 16 lines
--- arch/arm/mach-k3/Kconfig | 1 + board/beagle/beagleplay/Kconfig | 60 + board/beagle/beagleplay/MAINTAINERS | 6 + board/beagle/beagleplay/Makefile | 9 + board/beagle/beagleplay/beagleplay.c | 29 + .../beagleplay}/beagleplay.env | 0 board/beagle/beagleplay/board-cfg.yaml | 36 + board/beagle/beagleplay/pm-cfg.yaml | 12 + board/beagle/beagleplay/rm-cfg.yaml | 1088 +++++++++++++++++ board/beagle/beagleplay/sec-cfg.yaml | 379 ++++++ board/ti/am62x/MAINTAINERS | 7 - configs/am62x_beagleplay_a53_defconfig | 3 +- configs/am62x_beagleplay_r5_defconfig | 3 +- 13 files changed, 1622 insertions(+), 11 deletions(-) create mode 100644 board/beagle/beagleplay/Kconfig
Quoted 9 lines
create mode 100644 board/beagle/beagleplay/MAINTAINERS
create mode 100644 board/beagle/beagleplay/Makefile
create mode 100644 board/beagle/beagleplay/beagleplay.c
rename board/{ti/am62x => beagle/beagleplay}/beagleplay.env (100%)
create mode 100644 board/beagle/beagleplay/board-cfg.yaml
create mode 100644 board/beagle/beagleplay/pm-cfg.yaml
create mode 100644 board/beagle/beagleplay/rm-cfg.yaml
create mode 100644 board/beagle/beagleplay/sec-cfg.yaml~Bryan
Re: [PATCH 1/5] arm: dts: k3-am625-beagleplay-u-boot/r5: Just depend on k3-binman.dtsi
In reply to Nishanth MenonHi Nishanth!
On November 4, 2023 thus sayeth Nishanth Menon:
Quoted 5 lines
With the upcoming folder separation, there is no further need to depend on
am625-binman.dtsi. Duplicate the existing definitions tou-boot.dtsiandr5.dtsas appropriate.Signed-off-by Nishanth Menon <[email protected]>
Quoted 4 lines
--- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 160 +++++++++++++++++-- arch/arm/dts/k3-am625-r5-beagleplay.dts | 39 +++++ 2 files changed, 184 insertions(+), 15 deletions(-)
...
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi line 190
Quoted 5 lines
-&spl_am625_sk_dtb_unsigned {
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +2
-2- filename = SPL_AM625_BEAGLEPLAY_DTB; -}; + ti-spl_unsigned { + filename = "tispl.bin_unsigned";
If all of the beagle-plays are using the GP security variant shouldn't we remove the _unsigned?
Quoted 2 lines
(quoted diff) +2
-0+ pad-byte = <0xff>; +
...
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi line 276
Quoted 4 lines
-&am625_sk_dtb_unsigned {
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +2
-1- filename = AM625_BEAGLEPLAY_DTB; + u-boot_unsigned { + filename = "u-boot.img_unsigned";
And here? I don't really have an opinion either way. Just curious if we've thought about that.
Review
Quoted 2 lines
(quoted diff) +2
-0+ pad-byte = <0xff>; +
~Bryan
Re: [PATCH 1/5] arm: dts: k3-am625-beagleplay-u-boot/r5: Just depend on k3-binman.dtsi
Quoted 18 lines · Bryan Brattlof
Hi Nishanth!
On November 4, 2023 thus sayeth Nishanth Menon:
Quoted 5 lines
With the upcoming folder separation, there is no further need to depend on
am625-binman.dtsi. Duplicate the existing definitions tou-boot.dtsiandr5.dtsas appropriate.Signed-off-by Nishanth Menon <[email protected]>Reviewed-by Bryan Brattlof <[email protected]>Quoted 4 lines
--- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 160 +++++++++++++++++-- arch/arm/dts/k3-am625-r5-beagleplay.dts | 39 +++++ 2 files changed, 184 insertions(+), 15 deletions(-)...
Quoted 8 lines
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi line 190
Quoted 5 lines
-&spl_am625_sk_dtb_unsigned {
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +2
-2- filename = SPL_AM625_BEAGLEPLAY_DTB; -}; + ti-spl_unsigned { + filename = "tispl.bin_unsigned";If all of the beagle-plays are using the GP security variant shouldn't we remove the
_unsigned?
Today, they are GP, but there is already plans being discussed for hs-fs variants - timelines aren't very clear though.
Quoted 19 lines
Quoted 3 lines
(quoted diff) +2
-0+ pad-byte = <0xff>; +...
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi line 276
Quoted 4 lines
-&am625_sk_dtb_unsigned {
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +2
-1- filename = AM625_BEAGLEPLAY_DTB; + u-boot_unsigned { + filename = "u-boot.img_unsigned";And here? I don't really have an opinion either way. Just curious if we've thought about that.
Review
Quoted 2 lines
(quoted diff) +2
-0+ pad-byte = <0xff>; +~Bryan
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH 1/5] arm: dts: k3-am625-beagleplay-u-boot/r5: Just depend on k3-binman.dtsi
In reply to Nishanth MenonQuoted 6 lines · Nishanth Menon
With the upcoming folder separation, there is no further need to depend on
am625-binman.dtsi. Duplicate the existing definitions tou-boot.dtsiandr5.dtsas appropriate.Signed-off-by Nishanth Menon <[email protected]>Reviewed-by Bryan Brattlof <[email protected]>
For the series, applied to u-boot/next, thanks!
Signature · 1 line
Tom