summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-06-07board: ti: j784s4: Add support to update board_name for am69-skDasnavis Sabiya
Update setup_board_eeprom_env() to choose the right board name for am69-sk. Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
2023-06-07configs: j784s4_evm_a72: Enable support for building multiple dtbs into FITDasnavis Sabiya
Enable configs for building multiple dtbs into a single fit image and load the appropriate dtb for next stage. Add k3-am69-sk dtb along with the evm dtb. This facilitates the use of common defconfig for both EVM and SK. Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
2023-06-07configs: j784s4_evm_r5: Enable support for building multiple dtbs into FITDasnavis Sabiya
Enable configs for building multiple dtbs into a single fit image and load the appropriate dtb for next stage. This facilitates the use of common defconfig for both EVM and SK. Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
2023-06-07arm: dts: j784s4: Enable wkup i2c0 in the u-boot dts fileDasnavis Sabiya
In J784S4 EVM, EEPROM is interfaced to wkup_i2c0. Enable wkup i2c0 to enable access to EEPROM. Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
2023-06-07board: ti: j784s4: Add support to update serial environmental variableDasnavis Sabiya
The serial number of the board is programmed in the EEPROM. Add support for setup_serial() to read the serial number from EEPROM and update the serial environmental variable with the same. Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
2023-06-07board: ti: j784s4: Add support for board detection by EEPROM readDasnavis Sabiya
The board name is programmed in the EEPROM. Add support for board detection and choose the right dtb based on the board name read from EEPROM. The J784S4/AM69 has two platforms naming J784S4-EVM and AM69-SK. The J784S4 has EEPROM populated at 0x50. AM69 SK has EEPROM populated at next address 0x51. So start looking for TI specific EEPROM at 0x50, if not found look for EEPROM at 0x51. Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
2023-06-07configs: am62ax_evm_a53: Enable UMS commandAradhya Bhatia
The u-boot ums command models the EVM as a card reader and shows the SD Card latched on the evm as a memory device in the host PC. The Type - C dual role port should be used for this functionality. This helps in automating the linux debugging process. Enable this command in the defconfig. Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com> Signed-off-by: Jai Luthra <j-luthra@ti.com>
2023-06-07configs: am62x_lpsk_a53: Enable UMS commandAnand Gadiyar
The u-boot ums command models the EVM as a card reader and shows the SD Card latched on the evm as a memory device in the host PC. The Type - C dual role port should be used for this functionality. This helps in automating the linux debugging process. Enable this command in the defconfig. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Jai Luthra <j-luthra@ti.com>
2023-06-07configs: am62x_evm_a53: Enable UMS commandAradhya Bhatia
The u-boot ums command models the EVM as a card reader and shows the SD Card latched on the evm as a memory device in the host PC. The Type - C dual role port should be used for this functionality. This helps in automating the linux debugging process. Enable this command in the defconfig. Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com> Signed-off-by: Jai Luthra <j-luthra@ti.com>
2023-06-07configs: am62ax: Enable USB MSC boot supportRavi Gunasekaran
Add new R5 defconfig for USB MSC boot support based on usbdfu_defconfig and add USB host and storage options A53 defconfig. USB Host boot is supported only from USB0 port. By default USB0 is configured in peripheral mode to support DFU. Inorder to support USB Host boot, "dr_mode" property needs to be changed from "peripheral" to "host" in the device tree. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com> Reviewed-by: Roger Quadros <rogerq@kernel.org>
2023-06-07configs: am62x: Enable USB MSC boot supportRavi Gunasekaran
Add new R5 defconfig for USB MSC boot support based on usbdfu_defconfig and add USB host and storage options A53 defconfig USB Host boot is supported only from USB0 port. By default USB0 is configured in peripheral mode to support DFU. Inorder to support USB Host boot, "dr_mode" property needs to be changed from "peripheral" to "host" in the device tree. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com> Reviewed-by: Roger Quadros <rogerq@kernel.org>
2023-06-07arm: dts: k3-j721e-r5-common-proc-board: Set parent clock for clock ID 342Apurva Nandan
This virtual clock mux configuration enables the use of dynamic frequency scaling on A72 clock ID 202 by setting up the required register. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-06-07arm: dts: k3-j7200-r5-common-proc-board: Set parent clock for clock ID 323Apurva Nandan
This virtual clock mux configuration enables the use of dynamic frequency scaling on A72 clock ID 202 by setting up the required register. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-06-07arm: mach-k3: j72xx: add new 'virtual' muxBryan Brattlof
In order for the Cortex-A72s to operate at different frequencies other than the default 2GHz, add in a new 'virtual' mux (a mux that does not physically exist in the clock tree) that can be selected. CC: Vishal Mahaveer <vishalm@ti.com> Signed-off-by: Bryan Brattlof <bb@ti.com> Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-06-06configs: am62ax_evm_r5_defconfig: Increase SRAM stack limitVignesh Raghavendra
Current stack usage of AM62Ax seems to be at least 16.5K, set the stack limit at 17K. Reported-by: Kamlesh Gurudasani <kamlesh@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-06common: spl: Warn about overflow of SRAM stackVignesh Raghavendra
If early stack usage is exactly same as SIZE_LIMIT_PROVIDE_STACK, then its most likely to have overflowed beyond this limit and corrupted any regions beyond stack. Warn about this to the user. Signed-off-by: Vignesh Raghavendra <vigneshr@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-05arm: dts: k3-j721e-sk: Update MAIN R5FSS cluster mode to Split-modeSinthu Raja
The default U-Boot environment variables and design are all set up for both the MAIN R5FSS clusters to be in Split-mode. The mode for both the R5 clusters is defaulted to cluster mode. This throws the following failure messages when early-booting the cores using default env variables. Error log: k3_r5f_rproc r5f@5d00000: Invalid op: Trying to start secondary core 7 in lockstep mode Load Remote Processor 3 with data@addr=0x82000000 322476 bytes: Failed! Fix this by updating both the clusters to Split-mode in the u-boot specific dtsi, to avoid this sync overrides in the future. Reported-by: Shyam Jagannathan <shyam.jagannathan@ti.com> Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Signed-off-by: Rahul T R <r-ravikumar@ti.com> Reviewed-by: Apurva Nandan <a-nandan@ti.com>
2023-06-05configs: j784s4_evm_r5_defconfig: Increase malloc pool size in DRAMUdit Kumar
The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't sufficient to load the new tispl.bin to enable loading of tispl.bin the size is increased by 256KB to 1.25MB. Cc: Apurva Nandan <a-nandan@ti.com> Cc: Neha Francis <n-francis@ti.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Nikhil M Jain <n-jain1@ti.com> Cc: Kamlesh Gurudasani <kamlesh@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2023-06-05configs: j721s2_evm_r5_defconfig: Increase malloc pool size in DRAMUdit Kumar
The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't sufficient to load the new tispl.bin to enable loading of tispl.bin the size is increased by 256KB to 1.25MB. Cc: Manorit Chawdhry <m-chawdhry@ti.com> Cc: Neha Francis <n-francis@ti.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Nikhil M Jain <n-jain1@ti.com> Cc: Kamlesh Gurudasani <kamlesh@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2023-06-05configs: am6*_a53_defconfig: Enable CMD_GPIOVignesh Raghavendra
This allows to toggle GPIOs for debug and testing. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-05configs: am62x_lpsk_a53_defconfig: Sync defconfig with am62x_evm_a53_defconfigVignesh Raghavendra
Sync AM62 SK and AM62 LP SK defconfigs for feature parity. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-05arm: dts: k3-am62-lp-sk-u-boot: Enable SD UHS modes at A53 SPL stageVignesh Raghavendra
Enable required SD card IO voltage regulators to support SD UHS modes at A53 SPL stage. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-05arm: dts: k3-am62x-sk-common: Refactor common nodes to -common-u-boot.dtsiVignesh Raghavendra
Move nodes shared between AM62 SK and AM62 LP SK board to k3-am62x-sk-common-u-boot.dtsi to avoid duplication. This fixes broken Ethernet support on LP SK. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
2023-06-05arm: dts k3-am62-lp-sk-binman: Add binman supportVignesh Raghavendra
Switch to binman for building bootloader images. Reuse k3-am625-sk-binman and override the dtb names to that of AM62 LP SK board. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-05env: ti: mmc.env: Fix overlays directory pathVignesh Raghavendra
Similar to get_fdt_mmc make get_overlays_mmc look at /boot/dtb/* path for overlay files. Signed-off-by: Vignesh Raghavendra <vigneshr@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-06-03arm: mach-k3: j721e: clk-data.c: Add main_uart2 clock dataBhavya Kapoor
Add main_uart2 clocks in clk-data.c for J721E. Now, main_uart2 clocks will be set up while booting the J721E SoC. Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
2023-06-03arm: mach-k3: j721e: dev-data.c: Add main_uart2 device dataBhavya Kapoor
Add device data for main_uart2 in dev-data.c for J721E. Now, main_uart2 will be powered on while booting the J721E SoC. Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
2023-06-02configs: am62ax_evm_a53_defconfig: Enable MMC performance measurementVignesh Raghavendra
Add CMD_TIME, CMD_CLK and CMD_EXT4_WRITE for MMC performance monitoring. Use CMD_DM to verify driver setup. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-02configs: am62x_evm_a53_defconfig: Enable MMC performance measurementVignesh Raghavendra
Add CMD_TIME, CMD_CLK and CMD_EXT4_WRITE for MMC performance monitoring. Use CMD_DM to verify driver setup. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-02board: ti: am62x: evm: Add AM62B-SKEVM supportVignesh Raghavendra
This board[0] is similar as AM62-SKEVM with additional EVM fixes and lack on board wifi chip [0] https://www.ti.com/tool/SK-AM62B Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-02board: ti: am62x: am62x.env: Add ti/ prefix for name_fdtVignesh Raghavendra
DTB files are under ti/ directory, update name_fdt to match the same while detecting SK vs LP SK Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-01configs: am62ax_evm_a53_defconfig: Make distroboot as fallbackVignesh Raghavendra
Try regular Image boot from boot media and use distroboot as fallback. This maintains compatibility with regular SDK flow while providing option to use distroboot Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-01configs: am62ax_evm: Move to distrobootVignesh Raghavendra
Add options needed for distroboot similar to other K3 SoCs. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-06-01configs: am62x_evm_a53_defconfig: Enable HS200 in AM62x SKEVMNitin Yadav
Enable configs required to add support of HS200 at U-Boot Stage Signed-off-by: Nitin Yadav <n-yadav@ti.com>
2023-06-01configs: am62x_lpsk_a53_defconfig: Enable HS200 in AM62x LP SKNitin Yadav
Enable configs required to add support of HS200 at U-Boot Stage for AM62x LP SK. Signed-off-by: Nitin Yadav <n-yadav@ti.com>
2023-06-01clk: clk-k3: Reduce the parent clock configuration threshold to 1/8Apurva Nandan
After performing DFS on A72, the clk-k3 driver causes the reboot to fail due to fault clock re-initialization The clk-k3.c driver performs PLL setup based on the difference between the requested clock rate and current clock rate. If the difference is found to be more that 50%, in that case it recurses to the clock's parent for changing its frequency and setting up the PLL. If the difference is found to be less than that, it assumes that it is a rounding error in the divider and tries to accommodate for that without touching the parent clocks. So, 5% to 50% difference, it assumes it to be a rounding error. From 50% difference onward it treats it as a HSDIV+PLL configuration case and sets everything correctly. So when a fresh boot happens, the A72 clock frequency is found to be at 19.2MHz, which is way less than 2GHz and hence it crosses 50% barrier and gets properly setup. But when we change the A72 frequency to 1.5 GHz through DFS, the difference is only of 25% (<50%). So, when we do a reboot, it doesn't configure the parent clocks and PLLs, it just tries to make the value close to 2GHz, but that doesn't work. So, reduce the threshold from 50% to 12.5%, to reconfigure the clocks correctly at reboot, allowing to boot up after a DFS operation. Also, check if the parent pll rate is indeed set to target rate, if not fallback adjusting dividers to get within 5% of requested rate. This is required to set correct rate for DDR PLLs on AM62A resulting in lower DDR bandwidth when measured with lmbench (bw_mem) Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-06-01configs: j721e_evm_*_defconfig: Enable OSPI configsVaishnav Achath
During config rename and moveconfig some of the necessary configs required for OSPI functionality was removed, Add necessary OSPI configs amd drop MTDPART and MTDIDS configs as the flash partitions are now described through device tree. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm64: dts: k3-j721e-*: Add flash partition informationVaishnav Achath
Describe flash partition information in device tree for J721E EVM and SK, this helps to remove the legacy mtdparts configuration and also helps to keep Kernel and U-boot DT in sync. Also enable OSPI PHY calibration pattern partition during SPL stage. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01configs: am65x_evm_a53_defconfig: Drop mtdparts and mtdidsVaishnav Achath
MTD subsystem has support for parsing partitions from device tree, thus drop the MTDPARTS configs and enable CONFIG_SPI_FLASH_MTD. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm: dts: k3-am65-iot2050-common: Add flash partition informationVaishnav Achath
Describe flash partition information in device tree, this helps to remove the legacy mtdparts configuration and also helps to keep Kernel and U-boot DT in sync. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm: dts: k3-am642-*: Add flash partition informationVaishnav Achath
Describe flash partition information in device tree, this helps to remove the legacy mtdparts configuration and also helps to keep Kernel and U-boot DT in sync. Reviewed-by: Dhruva Gole <d-gole@ti.com> Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01configs: j7200_evm_a72_defconfig: Drop mtdparts and mtdidsVaishnav Achath
MTD subsystem has support for parsing partitions from device tree, thus drop the MTDPARTS configs and enable CONFIG_SPI_FLASH_MTD. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01configs: j784s4_evm_*_defconfig: Drop mtdparts and mtdidsVaishnav Achath
MTD subsystem has support for parsing partitions from device tree, thus drop the MTDPARTS configs, also for cadence QSPI, the REF_CLK is fetched from device tree thus remove that also from the configs Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm64: dts: k3-j7200: Add flash partition informationVaishnav Achath
Describe flash partition information in device tree, this helps to remove the legacy mtdparts configuration and also helps to keep Kernel and U-boot DT in sync. Also enable OSPI PHY calibration pattern partition during SPL stage. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01configs: j721s2_evm_*_defconfig: Drop mtdparts and mtdidsVaishnav Achath
MTD subsystem has support for parsing partitions from device tree, thus drop the MTDPARTS configs, also for cadence QSPI, the REF_CLK is fetched from device tree thus remove that also from the configs Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm: k3: j784s4: Add dynamic sf bus override supportVaishnav Achath
Implement overrides for spl_spi_boot_bus() lookup function according to bootmode selection, so as to support both QSPI and OSPI boot using the same build. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm: k3: j721s2: Add dynamic sf bus override supportVaishnav Achath
Implement overrides for spl_spi_boot_bus() lookup function according to bootmode selection, so as to support both QSPI and OSPI boot using the same build. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-06-01arm: dts: k3-j784s4: Add support for OSPI FlashesVaishnav Achath
J784S4 has an OSPI NOR flash on its SOM connected the OSPI0 instance and a QSPI NOR flash on the common processor board connected to the OSPI1 instance. Add support for the same and enabled them in SPL and U-Boot. Signed-off-by: Hari Nagalla <hnagalla@ti.com> Signed-off-by: Apurva Nandan <a-nandan@ti.com> Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>