summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-08configs: am62px: add android supportGuillaume La Roque
Add Android bootflow support for AM62PX SoC. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2023-11-08arm: dts: k3-am62p5-sk-u-boot: Add sysreset controller nodeMattijs Korpershoek
The AM62Px SoC uses a central Device Management and Security Controller (DMSC) processor that manages all the low-level device controls including the system-wide SoC reset. The system-wide reset is managed through the system reset driver. Add a sysreset controller node as a child of the dmsc node to enable the "reset" command from U-Boot prompt for the K3 AM62p5 SK EVM. This is based on commit a97ee92e4adb ("arm: dts: k3-am642-evm: Add sysreset controller node") Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2023-11-07configs: am62px: setup the 32k RTC crystalBryan Brattlof
The am62px utilizes the same 32k crystal for a more accurate RTC clock source. Enable the configuration to set this up for Linux. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07board: ti: am62x: remove rtc setup from spl_board_init()Bryan Brattlof
The am62xxx extended family uses the same 32k crystal for all of its starter kits. Move this to the common board directory to avoid repeating this everywhere. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07configs: am62x: move 32K RTC crystal to commonBryan Brattlof
The am62x utilizes the same 32k crystal for a more accurate RTC clock source. Enable the configuration to set this up for Linux. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07configs: am62ax: setup the 32k RTC crystalBryan Brattlof
The am62ax utilizes the same 32k crystal for a more accurate RTC clock source. Enable the configuration to set this up for Linux. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07board: ti: common: add rtc setup to common folderBryan Brattlof
All of the starter kit boards for the am62xxx extended family utilize the same 32k crystal oscillator for a more accurate clock for the RTC instance. Add the setup the clock mux and debounce configuration to the common board directory so the entire am62xxx extended family can utilize it. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07arm: dts: k3: binman: am62a: add support for signing FSSTUB imagesVibhore Vardhan
Add support for signing, detection and loading of FSSTUB images for for HSSE, HSFS and GP AM62a devices. Based on the binman code for AM625 with updates to the filenames and load address. Signed-off-by: Vibhore Vardhan <vibhore@ti.com> Reviewed-by: Dhruva Gole <d-gole@ti.com> Tested-by: Vishal Mahaveer <vishalm@ti.com>
2023-11-03configs: am62px_evm_r5_usbmsc_defconfig: Add USB MSC configRavi Gunasekaran
Add new R5 defconfig for USB MSC boot support based on usbdfu_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>
2023-11-03configs: am62px_evm_r5_usbdfu_defconfig: Add USB DFU configRavi Gunasekaran
Add support for USB DFU bootmode by having a separate config file. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-03configs: am62px_evm_a53_defconfig: Enable USB wrapperRavi Gunasekaran
Add configs to enable AM62 USB wrapper. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-03arm: dts: k3-am62p5-sk-u-boot: Configure USB0 in peripheral modeRavi Gunasekaran
Configure USB0 in peripheral mode so that USB DFU can be the default USB boot mode supported. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-03HACK arm: dts: k3-am62p-wakeup: Update wkup_conf compatible to syscon, ↵Ravi Gunasekaran
simple-mfd ti,syscon-phy-pll-refclk property in the USB expects the wkup_conf to be syscon compatible to setup the regmap. So update wkup_conf compatible until the dependency of such nodes on wkup_conf are resolved. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-02arm: dts: k3-am62p: sync with linux againBryan Brattlof
There are a few updates from TI's Linux mostly centered around out-of-box remote core demo enablement and we added the bootph-all property to sdchi0 to enable eMMC as a boot method. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-31arm: dts: add am62p dtbs to makefileBryan Brattlof
Thanks to the CONFIG_DEFAULT_DEVICE_TREE option in the defconfig the correct device tree blobs are being built for each uboot stage. However rather than relying on this add a am62p5 target to the arm/dts/Makefile Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-31arm: dts: Fix build of am62a7 dtbsNishanth Menon
am62a7 should be built with CONFIG_SOC_K3_AM62A7 not CONFIG_SOC_K3_AM625 Fixes: 6bdfa69155d8 ("arm: dts: introduce am62a7 u-boot dtbs") Cc: Bryan Brattlof <bb@ti.com> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: Francesco Dolcini <francesco@dolcini.it> Cc: Sjoerd Simons <sjoerd@collabora.com> Cc: Wadim Egorov <w.egorov@phytec.de> Reviewed-by: Bryan Brattlof <bb@ti.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Nishanth Menon <nm@ti.com>
2023-10-30arm: dts: k3-am62p5-sk: Update cpsw3g_mdio nodeRavi Gunasekaran
Add the missing pinctrl info for cpsw3g_mdio and enable the node. Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-10-30arm: dts: k3-am62p5-sk-u-boot: Update main_pktdma nodeRavi Gunasekaran
Update reg list in main_pktdma node Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-10-30dma: ti: k3-udma: Add DMA PSIL mappings for AM62PVignesh Raghavendra
Add PSIL data for AM62P Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-10-30board: ti: am62p: Update to latest RM configsJai Luthra
Update to the latest RM (Resource Management) auto-generated YAMLs. This fixes failures seen while requesting DMASS IRQs from the firmware, which prevented use of many peripherals that rely on DMA like Audio (McASP), Camera (CSI-RX) etc. Fixes: 817bff8f64 ("board: ti: introduce basic board files for the am62px family") Signed-off-by: Jai Luthra <j-luthra@ti.com>
2023-10-30environment: ti: Find DTB files in dtb directories for legacy platformSinthu Raja
The dtb directory structure had been standardized by the TI arago distribution. The TI legacy platform still using the default mmc environment from the header file. Add the directory dtb/ to the DTB search path. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
2023-10-26arm: dts: k3-am62p: sync with TI's v6.1 kernelBryan Brattlof
Copy over the DTBs for the am62p5-sk to enable more boot modes. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-25include: configs: omap5: Drop the prefix conf- for name_fit_configSinthu Raja
For legacy platforms the packaging of fitimage doesn't prefix the "conf-" in the DTB config section. So, drop the conf- prefix from the fdtfile name Fixes: 1eaf714ce2 "include: configs: Override get_fit_config to get FIT config for AM57x" Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
2023-10-24configs: introduce configs needed for the am62pxBryan Brattlof
Introduce the initial configs needed to support the am62px SoC family [bb@ti.com: rebased on TI's 2023.10 uboot] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24arm: dts: introduce am62p5 uboot dts filesBryan Brattlof
Include the uboot device tree files needed to boot the board. Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24arm: dts: add am62p5 dtbs from linuxBryan Brattlof
Pull in the device tree source files for TI's am62p5 SoCs needed to boot the board from v6.6-rc5. These are an early release with only the peripherals to boot the board via UART boot [bb@ti.com: used DTBs from TI's v6.1 kernel] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24firmware: ti_sci_static_data: add static DMA channel dataHari Nagalla
Include the static DMA channel data for ti_sci Signed-off-by: Hari Nagalla <hnagalla@ti.com> [bb@ti.com: rebased on TI's 2023.04 uboot] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24board: ti: introduce basic board files for the am62px familyBryan Brattlof
Introduce the basic files needed to support the am62px family of SoCs Co-developed-by: Hari Hagalla <hnagalla@ti.com> Signed-off-by: Hari Hagalla <hnagalla@ti.com> Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24arch: mach-k3: introduce basic files to support the am62px SoC familyBryan Brattlof
Introduce the basic functions and definitions needed to properly initialize Ti's am62p family of SoCs [bb@ti.com: rebased on TI's 2023.04 uboot] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24arm: mach-k3: invert logic for split DM firmware configBryan Brattlof
Currently for the K3 generation of SoCs there are more SoCs that utilize the split firmware approach than the combined DMSC firmware. Invert the logic to avoid adding more and more SoCs to this list. [bb@ti.com: rebased on TI's 2023.04 uboot] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24ram: k3-ddrss: enable the am62ax's DDR controller for am62pxBryan Brattlof
The am62px family of SoCs uses the same DDR controller as found on the am62ax family. Enable this option when building for the am62px family Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24arm: mach-k3: am62px: introduce clock and device files for wkup splBryan Brattlof
Include the clock and lpsc tree files needed for the wkup spl to initialize the proper PLLs and power domains to boot the SoC. [bb@ti.com: rebased to TI's 2023.04 uboot] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24soc: add info to identify the am62p SoC familyBryan Brattlof
Include the part number for TI's am62px family of SoCs so we can properly identify it during boot [bb@ti.com: rebased to TI's 2023.04 uboot] Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24clk: ti: k3-pll: Add calibration support for non fractional modeVishal Mahaveer
PLL calibration needs to be enabled when operating in non fractional mode. Add the sequence to do a fast calibration when using PLL in this mode. Signed-off-by: Vishal Mahaveer <vishalm@ti.com> Tested-by: Neha Malcom Francis <n-francis@ti.com>
2023-10-18board: ti: common: board_detect: Fix EEPROM offset read for 1-bytePrasanth Babu Mantena
EEPROM detection logic in ti_i2c_eeprom_get() involves reading the total size followed by reading 1-byte size with an offset 1. This commit fixes the header matching issue in commit 9f393a2d7af8 ("board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte"). In the previous commit, the value with one offset is being read into offset_test, but the pointer used to match was still ep. After reading with an offset 1, the second byte of the header is compared with the 1-byte data read from EEPROM. This is taken care by comparing proper first byte value from the header. Signed-off-by: Prasanth Babu Mantena <p-mantena@ti.com> Fixes: 9f393a2d7af8 (board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte)
2023-10-18remoteproc: ti_k3_m4_rproc: Fix build warningVignesh Raghavendra
Fix below warning by including appropriate header file drivers/remoteproc/ti_k3_m4_rproc.c: In function 'k3_m4_load': drivers/remoteproc/ti_k3_m4_rproc.c:151:9: warning: implicit declaration of function 'ti_secure_image_post_process' [-Wimplicit-function-declaration] 151 | ti_secure_image_post_process(&image_addr, &size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: cf4727c2f602 ("remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-10-18mach-k3: am62x: Fix BOOT_DEVICE_SPINAND indexVignesh Raghavendra
BOOT_DEVICE_SPINAND and BOOT_DEVICE_UART have same index of 0x7, this leads to attempting SPINAND boot during UART boot. Fix this by allocating unique value to BOOT_DEVICE_SPINAND. While at that move it out of unused list as SPINAND boot is very much supported on AM62x SoCs. Fixes: 8c7827f522b0 ("arm: mack-k3: am62x: Add SPI NAND as a boot device") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-10-18env: ti: am64x: set rproc_fw_binariesHari Nagalla
Set remote proc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2023-10-18configs: am64x_evm_a53_defconfig: Enable R5F remote proc supportHari Nagalla
Add support for R5F remote proc driver. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2023-10-18remoteproc: k3-r5: Add support for R5F cores on AM64x SoCsHari Nagalla
AM64x SoCs have two R5F clusters in the main power domain. Extend support for R5F remote proc driver on AM64x with compatible strings. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2023-10-18configs: am65x_evm_a53_defconfig: Drop ENV_IS_IN_MMCVignesh Raghavendra
Similar to other K3 platforms, drop specifying source of env to avoid picking up stale env. This enables proper FitImage boot on HS-SE devices which used to fail due to stale env from older releases. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-10-18board: ti: am62x: Reduce reserved memory regionVignesh Raghavendra
For systems with 512MB DDR, reduce the top 64MB for firmwares instead of current 256MB. This provides more useable memory for U-Boot during image load. Fixes: 64c0d9e010da ("board: ti: am62x: Avoid overwriting reserve mem for AM62 SIP") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-10-18arm: dts: k3-j721e-r5-common-proc-board: Fix OSPI spi-tx-bus-widthApurva Nandan
spi-tx-bus-width is set as 8 in SoM dtsi, but set to 1 in R5 common proc board dts, which seems wrong. SPI NOR requires a 8D reset before probe starts using 0x66+0x99 op, but that will fail if the flash tx width is set as 1. Set spi-tx-bus-width to 8 in R5 common proc board dtsi also. Signed-off-by: Apurva Nandan <a-nandan@ti.com> Reviewed-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-10-18mtd: spi-nor: fix DMA unsafe buffer issue in spi_nor_read_sfdp()Apurva Nandan
spi_nor_read_sfdp() calls nor->read() to read the SFDP data. The MTD and SPI subsystem expects the tx and rx buf used for transfers should point to a dma-safe memory. However, two out of the three calls of spi_nor_read_sfdp() were given pointers to stack allocated memory as buf argument, hence not in a dma-safe area. The third and last call of spi_nor_read_sfdp() was already given a kmalloc'ed buffer argument, hence dma-safe. So this patch fixes this issue by introducing a spi_nor_read_sfdp_dma_unsafe() function which simply wraps the existing spi_nor_read_sfdp() function and uses some kmalloc'ed memory as a bounce buffer. This patch is ported from upstream Linux mtd spi-nor fix commit bfa4133795e5a0badd402dd3f58b13b3cec64a4b ("mtd: spi-nor: fix DMA unsafe buffer issue in spi_nor_read_sfdp()") Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> Fixes: 0c6f187cdb18b52bcf6d3964771cf3a36b758568 ("mtd: spi: spi-nor-core: Add SFDP support") Signed-off-by: Apurva Nandan <a-nandan@ti.com> Reviewed-by: Vaishnav Achath <vaishnav.a@ti.com> Reviewed-by: Dhruva Gole <d-gole@ti.com>
2023-10-17configs: j784s4_evm_r5_defconfig: Enable ESM & PMIC ESM configsKeerthy
Enable ESM & PMIC ESM configs Signed-off-by: Keerthy <j-keerthy@ti.com>
2023-10-17configs: j721s2_evm_r5_defconfig: Enable ESM & PMIC ESM configsKeerthy
Enable ESM & PMIC ESM configs Signed-off-by: Keerthy <j-keerthy@ti.com>
2023-10-16arm: dts: k3-j721e-mcu-wakeup: Add MCU domain ESM instanceNeha Malcom Francis
Currently J721E defines only the main_esm in DTS. Add node for mcu_esm as well. According to J721E TRM (12.11.2.2 ESM Environment) [1], we see that the interrupt line from ESMi (main_esm) is routed to MCU_ESM (mcu_esm). This is MCU_ESM0_LVL_IN_95 with interrupt ID 95. Configure mcu_esm accordingly so that errors from main_esm are routed to mcu_esm and handled. [1] https://www.ti.com/lit/zip/spruil1 Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-10-12binman: openssl: x509: Support bootcore_optsNeha Malcom Francis
Support bootcore_opts field in x509 template. The bootcore_opts argument had been defined earlier but not utilised into the final certificate. Fixes: d43c636437d1 ("binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts") Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-10-12arm: dts: k3-j7xx: binman: Enable split mode for MCU R5FApurva Nandan
Set boot core-opts to enable split mode for MCU R5 cluster by default. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-10-12arm: dts: k3-j7xx-mcu-wakeup: Enable split mode for MCU R5Apurva Nandan
Previously, MCU R5F runs DM on core0, and core1 sits waiting in WFI mode. The support to shut the core1 and use it for loading other firmware, while DM runs on core0, has been added. Enable split-mode on the MCU R5F. Use the newly introduced compatible for MCU R5F cores. Signed-off-by: Apurva Nandan <a-nandan@ti.com>