summaryrefslogtreecommitdiff
path: root/board
AgeCommit message (Collapse)Author
11 daysMerge tag '09.02.00.010' into toradex_ti-u-boot-2023.04Max Krummenacher
RC Release 09.02.00.010 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2024-05-17board: aquila-am69: Read hardware configuration pinsEmanuele Ghidoli
There are 5 dedicated pins used for future hardware configurations that cannot be autodetected. Read these pins in the R5 and A72 SPL, and print the configuration. Upstream-Status: Pending This patch will be part of a series when Aquila AM69 support will be upstreamed. Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
2024-05-16board: aquila-am69: Configure MCU_ADC1 pins as GPIEmanuele Ghidoli
MCU_ADC1 pins are used as General Purpose Inputs, so configure them accordingly. Upstream-Status: Pending This patch will be part of a series when Aquila AM69 support will be upstreamed. Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
2024-05-08board: toradex: add aquila am69 supportEmanuele Ghidoli
This adds initial support for the Toradex Aquila AM69 module. Upstream-Status: Pending Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
2024-05-03board: ti: j7: evm.c: Propagate DT fixup in A72 SPL for enabled ECCNeha Malcom Francis
Call fixup_memory_node() in A72 SPL stage so that the memory changes made by fixup_ddr_driver_for_ecc() by R5 SPL is propagated to the A72 U-Boot stage as well. Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2024-05-03board: ti: k3-ddr-init: Correct DT fixup calls for multi-DDRNeha Malcom Francis
Correct fixup_ddr_driver_for_ecc() for multi-DDR cases, uclass_next_device_err returns 0 when the next memorycontroller instance is successfully found and not !0. Also call dram_init_banksize() after every call to fixup_ddr_driver_for_ecc() is made so that gd->bd is populated correctly. Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2024-04-25board: ti: Fix call to fdt_fixup_msmc_ramEmanuele Ghidoli
Substitute failing calls to fdt_fixup_msmc_ram function by calling fdt_fixup_msmc_ram_k3 function which was implemented in commit [1]. At functional level nothing changes. [1] b6e669d7a393 ("arm: k3: Fix ft_system_setup so it can be enabled on any SoC") Upstream-Status: Inappropriate Commit [1] is already upstreamed and the new function is already used when new boards were added. Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
2024-03-28board: ti: am62*x: Fix up the correct RAM size if ECC is enabledSanthosh Kumar K
Call a k3-ddrss fixup function to fixup device tree and resize the available amount of DDR if ECC is enabled. A second fixup is required from A53 SPL to fixup device tree passed to A53 U-Boot. Fixes: 8712298323f0 ("board: ti: am6*x: Fix up incorrect RAM size for AM62A and AM62P") Signed-off-by: Santhosh Kumar K <s-k6@ti.com>
2024-03-21board: ti: am62x: am62px: evm: Update simple-framebuffer node in device-treeDevarsh Thakkar
Update simple-framebuffer device-tree node by enumerating framebuffer related information in existing simple-framebuffer node in Linux device-tree file and enabling it. While at it, ignore error return value for framebuffer related DT node updates as a non-zero return value for ft_board_setup is treated as a fatal error causing board reset. In case there is no simple-framebuffer stub detected in Linux kernel device-tree and video is still active, then update the device-tree to reserve the framebuffer region for the active splash screen. This helps preserve the splash screen till the display server takes over after OS is booted. In case the simplefb node update or the framebuffer reservation fails we treat it as a non-fatal error and avoid returning error to parent function as the non-zero return value of ft_board_setup is treated as fatal error which leads to board reset Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2024-03-21environment: ti: mmc_android: add vbmeta_vendor_dlkm partitionGuillaume La Roque
Add new partition to support avb on vendor_dlkm partition. Add for both Beagle Play and AM62X SK EVM. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> [mkorpershoek: added beagle play bits] Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-03-21board: ti: am62x: beagleplay: android: Add frp partitionMattijs Korpershoek
Factory Reset Protection (frp) is a required Android partition in order to support factory reset via the SystemUI. It's been added to am62x SK EVM partition list in commit bc8e096e814 ("environment: ti: mmc_android: add frp partition") Add it to the Beagle Play partitioning table as well. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-03-21board: ti: am62x: beagleplay: android: Fix metadata partition sizeMattijs Korpershoek
commit d1857c85e2d ("environment: ti: mmc_android: update metadata partition") switched the metadata partition to use f2fs file system. This requires a size increase of the partition to avoid the following flash error: Flashing metadata partition Warning: skip copying metadata image avb footer (metadata partition size: 16777216, metadata image size: 63963136). Sending 'metadata' (62464 KB) OKAY [ 2.477s] Writing 'metadata' FAILED (remote: 'too large for partition') fastboot: error: Command failed Increase the metadata partition size for Beagle Play as well. Fixes: d1857c85e2d ("environment: ti: mmc_android: update metadata partition") Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-03-21board: ti: am62p: Fix compilation warning for implicit declarationDevarsh Thakkar
Fixes below warning by including cpu_funcs.h: "board/ti/am62px/evm.c: In function `spl_board_init`: board/ti/am62px/evm.c:83:9: warning: implicit declaration of function `enable_caches` [-Wimplicit-function-declaration] 83 | enable_caches();" | ^~~~~~~~~~~~~ While at it, also sort the include headers by placing video.h at the end. Fixes: a7e8f56abf9 ("board: ti: am62p: Add splash screen support") Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com> Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2024-03-21board: ti: common: remove debounce config from rtcBryan Brattlof
commit d36ad81d25a99 ("board: ti: common: add rtc setup to common folder") I had mistakenly copied over the gpio debounce configuration into the external 32k rtc crystal setup. Unfortunately this causing issues with the DSP on the AM62Ax SoC family. Because we have no need to configure debounce on our SK boards, let's just rip this out for now. Signed-off-by: Bryan Brattlof <bb@ti.com>
2024-03-21board: ti: am6*x: evm: Fix up incorrect RAM size for AM62A and AM62PSanthosh Kumar K
The fixup_memory_node() does no change in AM64, AM62A and AM62P when ECC is not enabled. Instead, it causes an issue of fixing up the RAM size as 2GB instead of 4GB and 8GB for AM62A and AM62P because the fix up is done by the R5 SPL and R5 being a 32-bit processor, the gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size values are restricted to 32-bits. So, remove the fixup_memory_node() from spl_perform_fixups() in AM64, AM62A and AM62P's evm files. Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") Signed-off-by: Santhosh Kumar K <s-k6@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-21board: ti: j721s2: Move order of AVS probingUdit Kumar
AVS driver was getting probed with base device tree, which leads i2c of derivative board (AM68) in bad state. Moving AVS probe after detection of right device tree. Fixes: eaa184009775 ("arm: k3: j721s2: Enable AVS") Reported-by: Minas Hambardzumyan <minas@ti.com> Cc: Manorit Chawdhry <m-chawdhry@ti.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Praneeth Bajjuri <praneeth@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2024-03-21board: ti: am64x: Set fw_storage_interface and fw_dev_part ENVsMD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set fw_storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can modify this based on their needs. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-03-21board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVsMD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set fw_storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can modify this based on their needs. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-03-21board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-03-21board: ti: j784s4: Update Resource Management configsVaishnav Achath
Update rm-cfg.yaml and tifs-rm-cfg.yaml to account for the latest changes added in the K3 Resource Partitioning Tool. The change enables resource sharing between A72_2 and MAIN_0_R5_0 for the BCDMA CSI RX and TX channels, J784S4 supports upto 12 CSI cameras and 16 channels would not be enough for all such use cases for RTOS and Linux, thus sharing of resources in needed. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2024-03-21board: ti: j722s: Enable 32k crystal for RTCJayesh Choudhary
Currently, the rtc clock is being set to 32552 instead of exact 32k. Enable the 32k crystal and setup debounce conf registers by invoking board_rtc_init call so that rtc clock is set accurately to 32768. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-03-21board: ti: am62*: Fix the rtc file inclusionJayesh Choudhary
Include the header file instead of c file. Fixes: d36ad81d25a9 ("board: ti: common: add rtc setup to common folder") Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-03-21board: ti: common: Add header file for rtcJayesh Choudhary
Add the header file for rtc with the macros and declarations to avoid including '.c' file in the platform evm.c files. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-03-21board: ti: rm-cfg: Update rm-cfg to reflect new resource reservationVishal Mahaveer
With the latest TIFS firmware, an additional virtual interrupt and event is reserved for TIFS usage on am62x, am62ax and am62px devices. Update the rm-cfg to reflect this new reservation. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
2024-03-21board: ti: Pull redundant DDR functions to a common location and Fixup DDR ↵Santhosh Kumar K
size when ECC is enabled As there are few redundant functions in board/ti/*/evm.c files, pull them to a common location of access to reuse and include the common file to access the functions. Call k3-ddrss driver through fixup_ddr_driver_for_ecc() to fixup the device tree and resize the available amount of DDR, if ECC is enabled. Otherwise, fixup the device tree using the regular fdt_fixup_memory_banks(). Modify fixup_ddr_driver_for_ecc() to make the function agnostic to the number of DDR controllers present. Signed-off-by: Santhosh Kumar K <s-k6@ti.com> Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-21board: ti: j722s: Sync board files with latest RM configJayesh Choudhary
Update to the latest RM (Resource Management) auto-generated YAMLs. This accommodates CSI INT_AGG fix for Linux and RTOS both. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> Reviewed-by: Udit Kumar <u-kumar1@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-21board: ti: am62p: Add splash screen specific environment supportDevarsh Thakkar
- Add splash screen related environment variables for AM62P platform. - Set default splash location to MMC. Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2024-03-21board: ti: am62p: Add splash screen supportDevarsh Thakkar
Add MMC and OSPI NOR flash as storage locations for splash screen Enable video memory reservation and splash display by calling board specific routine for splash screen. Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2024-03-21arm: dts: k3-j722s: Add IPC supportApurva Nandan
Add Main-R5F and C7x nodes to the SOC file and keep them disabled. Rename the firmwares for MCU and WKUP R5F cores. Enable IPC support for main, mcu and wakeup R5F and C7x cores with memory craveouts and mailboxes. Signed-off-by: Apurva Nandan <a-nandan@ti.com> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-03-21board: ti: am64: Support TMDS64EVMRoger Quadros
The TMDS64EVM [1] ships with AM64X SR2.0 HS-FS chip and a slightly different board name in the board information EEPROM header. Support this board. [1] https://www.ti.com/tool/TMDS64EVM Gets rid of below message at boot "Unidentified board claims AM64-EVM in eeprom header" Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-21board: ti: Introduce basic board files for the J722S familyJayesh Choudhary
Introduce the basic files needed to support the TI J722S family of SoCs. Co-developed-by: Vaishnav Achath <vaishnav.a@ti.com> Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-03-21board: ti: j721e: Prefix BBAI64 DTB name with directoryPrasanth Babu Mantena
Update variable name_fdt for beagleboneai64 case with vendor prefix to locate the dtb files. This prefix of vendor specific directory is made to avoid naming issues and match the path on the latest kernel versions. Signed-off-by: Prasanth Babu Mantena <p-mantena@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-07board: ti: am62x: am62px: evm: Update simple-framebuffer node in device-treeDevarsh Thakkar
Update simple-framebuffer device-tree node by enumerating framebuffer related information in existing simple-framebuffer node in Linux device-tree file and enabling it. While at it, ignore error return value for framebuffer related DT node updates as a non-zero return value for ft_board_setup is treated as a fatal error causing board reset. In case there is no simple-framebuffer stub detected in Linux kernel device-tree and video is still active, then update the device-tree to reserve the framebuffer region for the active splash screen. This helps preserve the splash screen till the display server takes over after OS is booted. In case the simplefb node update or the framebuffer reservation fails we treat it as a non-fatal error and avoid returning error to parent function as the non-zero return value of ft_board_setup is treated as fatal error which leads to board reset Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2024-02-27environment: ti: mmc_android: add vbmeta_vendor_dlkm partitionGuillaume La Roque
Add new partition to support avb on vendor_dlkm partition. Add for both Beagle Play and AM62X SK EVM. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> [mkorpershoek: added beagle play bits] Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-02-27board: ti: am62x: beagleplay: android: Add frp partitionMattijs Korpershoek
Factory Reset Protection (frp) is a required Android partition in order to support factory reset via the SystemUI. It's been added to am62x SK EVM partition list in commit bc8e096e814 ("environment: ti: mmc_android: add frp partition") Add it to the Beagle Play partitioning table as well. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-02-27board: ti: am62x: beagleplay: android: Fix metadata partition sizeMattijs Korpershoek
commit d1857c85e2d ("environment: ti: mmc_android: update metadata partition") switched the metadata partition to use f2fs file system. This requires a size increase of the partition to avoid the following flash error: Flashing metadata partition Warning: skip copying metadata image avb footer (metadata partition size: 16777216, metadata image size: 63963136). Sending 'metadata' (62464 KB) OKAY [ 2.477s] Writing 'metadata' FAILED (remote: 'too large for partition') fastboot: error: Command failed Increase the metadata partition size for Beagle Play as well. Fixes: d1857c85e2d ("environment: ti: mmc_android: update metadata partition") Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-02-23board: ti: am62p: Fix compilation warning for implicit declarationDevarsh Thakkar
Fixes below warning by including cpu_funcs.h: "board/ti/am62px/evm.c: In function `spl_board_init`: board/ti/am62px/evm.c:83:9: warning: implicit declaration of function `enable_caches` [-Wimplicit-function-declaration] 83 | enable_caches();" | ^~~~~~~~~~~~~ While at it, also sort the include headers by placing video.h at the end. Fixes: a7e8f56abf9 ("board: ti: am62p: Add splash screen support") Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com> Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2024-02-21board: ti: common: remove debounce config from rtcBryan Brattlof
commit d36ad81d25a99 ("board: ti: common: add rtc setup to common folder") I had mistakenly copied over the gpio debounce configuration into the external 32k rtc crystal setup. Unfortunately this causing issues with the DSP on the AM62Ax SoC family. Because we have no need to configure debounce on our SK boards, let's just rip this out for now. Signed-off-by: Bryan Brattlof <bb@ti.com>
2024-02-21board: ti: am6*x: evm: Fix up incorrect RAM size for AM62A and AM62PSanthosh Kumar K
The fixup_memory_node() does no change in AM64, AM62A and AM62P when ECC is not enabled. Instead, it causes an issue of fixing up the RAM size as 2GB instead of 4GB and 8GB for AM62A and AM62P because the fix up is done by the R5 SPL and R5 being a 32-bit processor, the gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size values are restricted to 32-bits. So, remove the fixup_memory_node() from spl_perform_fixups() in AM64, AM62A and AM62P's evm files. Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") Signed-off-by: Santhosh Kumar K <s-k6@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2024-02-15board: ti: j721s2: Move order of AVS probingUdit Kumar
AVS driver was getting probed with base device tree, which leads i2c of derivative board (AM68) in bad state. Moving AVS probe after detection of right device tree. Fixes: eaa184009775 ("arm: k3: j721s2: Enable AVS") Reported-by: Minas Hambardzumyan <minas@ti.com> Cc: Manorit Chawdhry <m-chawdhry@ti.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Praneeth Bajjuri <praneeth@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2024-02-15board: ti: am64x: Set fw_storage_interface and fw_dev_part ENVsMD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set fw_storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can modify this based on their needs. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-02-15board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVsMD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set fw_storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can modify this based on their needs. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-02-15board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-02-15board: ti: j784s4: Update Resource Management configsVaishnav Achath
Update rm-cfg.yaml and tifs-rm-cfg.yaml to account for the latest changes added in the K3 Resource Partitioning Tool. The change enables resource sharing between A72_2 and MAIN_0_R5_0 for the BCDMA CSI RX and TX channels, J784S4 supports upto 12 CSI cameras and 16 channels would not be enough for all such use cases for RTOS and Linux, thus sharing of resources in needed. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2024-02-15board: ti: j722s: Enable 32k crystal for RTCJayesh Choudhary
Currently, the rtc clock is being set to 32552 instead of exact 32k. Enable the 32k crystal and setup debounce conf registers by invoking board_rtc_init call so that rtc clock is set accurately to 32768. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-02-15board: ti: am62*: Fix the rtc file inclusionJayesh Choudhary
Include the header file instead of c file. Fixes: d36ad81d25a9 ("board: ti: common: add rtc setup to common folder") Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-02-15board: ti: common: Add header file for rtcJayesh Choudhary
Add the header file for rtc with the macros and declarations to avoid including '.c' file in the platform evm.c files. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
2024-02-14board: ti: rm-cfg: Update rm-cfg to reflect new resource reservationVishal Mahaveer
With the latest TIFS firmware, an additional virtual interrupt and event is reserved for TIFS usage on am62x, am62ax and am62px devices. Update the rm-cfg to reflect this new reservation. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
2024-02-14board: ti: Pull redundant DDR functions to a common location and Fixup DDR ↵Santhosh Kumar K
size when ECC is enabled As there are few redundant functions in board/ti/*/evm.c files, pull them to a common location of access to reuse and include the common file to access the functions. Call k3-ddrss driver through fixup_ddr_driver_for_ecc() to fixup the device tree and resize the available amount of DDR, if ECC is enabled. Otherwise, fixup the device tree using the regular fdt_fixup_memory_banks(). Modify fixup_ddr_driver_for_ecc() to make the function agnostic to the number of DDR controllers present. Signed-off-by: Santhosh Kumar K <s-k6@ti.com> Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2024-02-14board: ti: j722s: Sync board files with latest RM configJayesh Choudhary
Update to the latest RM (Resource Management) auto-generated YAMLs. This accommodates CSI INT_AGG fix for Linux and RTOS both. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> Reviewed-by: Udit Kumar <u-kumar1@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>