summaryrefslogtreecommitdiff
path: root/board/ti/j721s2
AgeCommit message (Collapse)Author
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-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: 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>
2023-10-12include: environment: ti: Add firmware for MCU R5 core1Apurva Nandan
Link the default firmware in the environment variable for MCU R5 core1. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-10-09board: ti: j721s2: Initialize the ESM & PMIC ESMKeerthy
Initialize the 3 instances of SOC ESM & PMIC ESM. This is needed for watchdog functionality. Signed-off-by: Keerthy <j-keerthy@ti.com>
2023-10-07board: ti: j721s2: Add cadence-qspi flash node selectionApurva Nandan
Add cadence-qspi flash node selection for choosing between OSPI NOR and OSPI NAND flashes put under OSPI0 instance. This is needed for R5 SPL as it is not possible to apply fixup at this stage. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-10-07board: ti: j721s2: Use IS_ENABLED in place of #ifApurva Nandan
IS_ENABLED is the recommendation for checking CONFIG flags. Use it instead of #if, and drop redundant checking of DM_GPIO and OF_LIBFDT. #if defined(CONFIG_SPL_BUILD) can't be removed from spl_perform_fixups, as it results in compile error. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-10-07board: ti: j721s2: Delete nodes for OSPI NAND SPL fixupApurva Nandan
cadence-qspi manually parses flash subnodes. Simply disabling the node was not giving expected behaviour across drivers. So, additionally delete the disabled node also as the flash is undiscoverable due to hardware muxing anyways. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-07-05board: ti: yaml: Update YAML configsNeha Malcom Francis
Update sec-cfg.yaml as well as the YAML schema to the latest security configuration. Also update tifs-rm-cfg.yaml for J784S4 to the latest resource management configuration. Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-06-08include: environment: ti: j721s2: Add ospi_nand environment varApurva Nandan
K3 J721S2 has OSPI NAND flash on OSPI0, add environment variables to allow OSPI NAND boot. Signed-off-by: Apurva Nandan <a-nandan@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-08board: ti: j721s2: Enable OSPI NAND SPL fixupApurva Nandan
On J721S2, SW3.1 (WKUP_GPIO0_6) is used for selecting between OSPI NOR and OSPI NAND flash. Read the GPIO state, to perform correct enable/disable operation on the fdt, for a valid flash discovery. Signed-off-by: Apurva Nandan <a-nandan@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-08board: ti: j721s2: Add support to detect daughtercardsKishon Vijay Abraham I
commit 7bf341ae4dfb3f126323cd906efe37e46851c9fa upstream. Add support to detect daughtercards (GESI Ethernet card) in-order to set the MAC address of the main CPSW2G interface. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
2023-06-05environment: ti: rproc: set doremoteproc to one as defaultUdit Kumar
On few k3 platforms, due to load ordering of remote fw Linux kernel is getting hang. As WA, doremoteproc variable set to be 1 in u-boot. This patch change default value of doremoteproc 1 for jacinto devices. Cc: Manorit Chawdhry <m-chawdhry@ti.com> Cc: Neha Francis <n-francis@ti.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Apurva Nandan <a-nandan@ti.com> Cc: Hari Nagalla <hnagalla@ti.com> Cc: Minas Hambardzumyan <minas@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com> Tested-by: Neha Malcom Francis <n-francis@ti.com>
2023-06-05env: ti: mmc.env: Move mmc related args to common placeVignesh Raghavendra
All K3 SoCs use same set of args to load kernel for MMC. So move this to common place to avoid duplication. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-05-26board: ti: rm-cfg: Modify rm-cfg.yamlNeha Malcom Francis
Modify rm-cfg.yaml to ensure it is latest and can boot to kernel. Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-05-25j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.imgNeha Malcom Francis
Support added for HS and GP boot binaries for J721S2. tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices It is to be noted that the bootflow followed by J721S2 requires: tiboot3.bin: * R5 SPL * R5 SPL dtbs * TIFS * board-cfg * pm-cfg * sec-cfg * rm-cfg tispl.bin: * DM * ATF * OPTEE * A72 SPL * A72 SPL dtbs u-boot.img: * A72 U-Boot * A72 U-Boot dtbs Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-05-25j721s2: yaml: Add board configs for J721S2Neha Malcom Francis
Added YAML configs for J721S2 Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-05-22environment: ti: Make get_fdt_mmc commonAndrew Davis
Since get_fdt_mmc is common, factor it out into mmc.env and remove it from each platform env file. Use it in mmcloados but keep loadfdt defined in case it is still used by some external uEnv.txt script. Signed-off-by: Andrew Davis <afd@ti.com>
2023-05-09environment: ti: Prefix ARM64 DTB names with directoryAndrew Davis
In Linux the ARM64 DTSs are stored in vendor directories to help organize the files and prevent naming collisions. The deployed DTBs will mirror this and so the vendor prefix should be added to the variable used to locate these files. Suggested-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Andrew Davis <afd@ti.com>
2023-04-04include: configs: j721s2_evm: Change to using .envNeha Malcom Francis
commit 7e55dd25c38450db1625d5cb35f6f8af965c744e upstream. Move to using .env file for setting up environment variables for J721S2. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
2023-04-04board: ti: Kconfig: Correct invalid Kconfig syntaxNeha Malcom Francis
commit 54ff4eeb59dd7f1b4141cdfdc1126d85fb03751f upstream. Kconfig does not support using 'select' to select a 'choice'. A choice can be configured by either setting the choice symbol to 'y' in a configuration file or by setting a 'default' of the choice. In board/ti/*/Kconfig the SOC_K3_* choice is already set to 'y' in their corresponding configs/*_defconfig file. So remove selecting it. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
2023-01-27board: ti: j721s2: Add board_init and support for selecting DT based on EEPROMSinthu Raja
Add the board_init_f API for SPL and run the platform-required SoC initialization. Add the functionality for board name-based DTB selection from FIT within SPL. This will make it easier to utilise one defconfig for both the EVM and the SK. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-01-27board: ti: j721s2: Add support for detecting multiple device treesSinthu Raja
Update the board_fit_config_name_match() to choose the right dtb based on the board name read from EEPROM. Also restrict multpile EEPROM reads by verifying if EEPROM is already read Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-01-27board: ti: j721s2: Enable support for reading EEPROM at next alternate addressSinthu Raja
J721S2 EVM has EEPROM populated at 0x50. AM68 SK has EEPROM populated at next address 0x51 in order to be compatible with RPi. So start looking for TI specific EEPROM at 0x50, if not found look for EEPROM at 0x51. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-01-27board: ti: j721s2: Add support to update board_name for am68-skSinthu Raja
Update setup_board_eeprom_env() to choose the right board name for am68-sk. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2022-12-05global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*Tom Rini
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_SDRAM namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2022-09-23board_f: Fix types for board_get_usable_ram_top()Pali Rohár
Commit 37dc958947ed ("global_data.h: Change ram_top type to phys_addr_t") changed type of ram_top member from ulong to phys_addr_t but did not changed types in board_get_usable_ram_top() function which returns value for ram_top. So change ulong to phys_addr_t type also in board_get_usable_ram_top() signature and implementations. Fixes: 37dc958947ed ("global_data.h: Change ram_top type to phys_addr_t") Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2022-06-28spl: Move SPL_LDSCRIPT defaults to one placeTom Rini
We want to keep all of the default values for SPL_LDSCRIPT in the same place both for overall clarity as well as not polluting unrelated config files. Signed-off-by: Tom Rini <trini@konsulko.com>
2022-02-08board: ti: j721s2: Add board support for J721S2David Huang
Add board support for J721S2 SoC. Signed-off-by: David Huang <d-huang@ti.com> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>