[tiU23.04 PATCH] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-19 Thread Prasanth Babu Mantena
ned-off-by: Prasanth Babu Mantena Fixes: 9f393a2d7af8 (board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte) --- board/ti/common/board_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c index

[RESEND PATCH] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-20 Thread Prasanth Babu Mantena
ned-off-by: Prasanth Babu Mantena Fixes: 9f393a2d7af8 (board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte) --- Resending due to incorrect patch tag last time. board/ti/common/board_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/ti/common/board_detect

[PATCH v2] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-26 Thread Prasanth Babu Mantena
1 byte, to offset_test having the 1-byte data read from eeprom. Fixes: 9f393a2d7af8 (board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte) Signed-off-by: Prasanth Babu Mantena --- v2 <--> v1: Fix inplace for the else condition of CONFIG_IS_ENABLED(DM_I2C). Improved commit mes

[PATCH v3] board: ti: common: board_detect: Fix EEPROM offset read for 1-byte

2023-10-30 Thread Prasanth Babu Mantena
irk for 2-byte) Signed-off-by: Prasanth Babu Mantena Tested-by: Matwey V. Kornilov --- v3 <--> v2: Improved and concise commit description. v2 <--> v1: Fix inplace for the else condition of CONFIG_IS_ENABLED(DM_I2C). Improved commit message. board/ti/common/board_detect.c | 4 +

[PATCH v2 2/4] configs: k3: Enable device removal in SPL

2024-10-09 Thread Prasanth Babu Mantena
Enable CONFIG_SPL_DM_DEVICE_REMOVE in a72 and r5. Signed-off-by: Prasanth Babu Mantena --- configs/am62ax_evm_a53_defconfig | 1 + configs/am62ax_evm_r5_defconfig | 1 + configs/am62x_evm_a53_defconfig | 1 + configs/am62x_evm_r5_defconfig | 1 + configs/j7200_evm_a72_defconfig | 1

[PATCH v2 4/4] dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove()

2024-10-09 Thread Prasanth Babu Mantena
once during probe. Introduce udma_remove() for the cleanup of allocated channel during probe. Signed-off-by: Santhosh Kumar K Signed-off-by: Prasanth Babu Mantena --- drivers/dma/ti/k3-udma.c | 63 1 file changed, 38 insertions(+), 25 deletions(-) diff

[PATCH v2 3/4] dma: ti: k3-udma: Move udma_probe() below all APIs

2024-10-09 Thread Prasanth Babu Mantena
From: Santhosh Kumar K The udma_probe() function was placed above many important APIs related to bcdma, pktdma, which restricts these APIs to be accessed during probe. So, move udma_probe() below all of them. Signed-off-by: Santhosh Kumar K Signed-off-by: Prasanth Babu Mantena --- drivers

[PATCH v2 1/4] mach-k3: common.c: Remove dma device in spl exit

2024-10-09 Thread Prasanth Babu Mantena
While exiting from spl, remove any dma device active through spl_board_prepare_for_boot(). This is required for cleaning up any dma channels being used in spl and avoid issues with overlapping channel allocation in the next stage bootloaders. Signed-off-by: Prasanth Babu Mantena --- arch/arm

[PATCH v2 0/4] Cleanup dma device in spl and move dma channel[0]

2024-10-09 Thread Prasanth Babu Mantena
while exiting from spl. Enable SPL_DM_DEVICE_REMOVE, for device removal capability in SPL. v2 <==> v1 == 1> Improve subject of commit. 2> Add warning on dma device not found. 3> Do channel allocation only for udma and bcdma. Passthrough for all other types. Prasanth

[PATCH 3/4] dma: ti: k3-udma: Move udma_probe() below all APIs

2024-10-04 Thread Prasanth Babu Mantena
From: Santhosh Kumar K The udma_probe() function was placed above many important APIs related to bcdma, pktdma, which restricts these APIs to be accessed during probe. So, move udma_probe() below all of them. Signed-off-by: Santhosh Kumar K Signed-off-by: Prasanth Babu Mantena --- drivers

[PATCH 0/4] Cleanup dma device in spl and move dma channel[0]

2024-10-04 Thread Prasanth Babu Mantena
while exiting from spl. Enable SPL_DM_DEVICE_REMOVE, for device removal capability in SPL. Prasanth Babu Mantena (2): mach-k3: common.c: Add dma device remove in spl exit configs: k3: Enable device removal in SPL Santhosh Kumar K (2): dma: ti: k3-udma: Move udma_probe() below all APIs dma

[PATCH 2/4] configs: k3: Enable device removal in SPL

2024-10-04 Thread Prasanth Babu Mantena
Enable CONFIG_SPL_DM_DEVICE_REMOVE in a72 and r5. Signed-off-by: Prasanth Babu Mantena --- configs/am62ax_evm_a53_defconfig | 1 + configs/am62ax_evm_r5_defconfig | 1 + configs/am62x_evm_a53_defconfig | 1 + configs/am62x_evm_r5_defconfig | 1 + configs/j7200_evm_a72_defconfig | 1

[PATCH 4/4] dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove()

2024-10-04 Thread Prasanth Babu Mantena
once during probe. Introduce udma_remove() for the cleanup of allocated channel during probe. Signed-off-by: Santhosh Kumar K Signed-off-by: Prasanth Babu Mantena --- drivers/dma/ti/k3-udma.c | 64 1 file changed, 39 insertions(+), 25 deletions(-) diff

[PATCH 1/4] mach-k3: common.c: Add dma device remove in spl exit

2024-10-04 Thread Prasanth Babu Mantena
While exiting from spl, remove any dma device active through spl_board_prepare_for_boot(). This is required for cleaning up any dma channels being used in spl and avoid issues with overlapping channel allocation in the next stage bootloaders. Signed-off-by: Prasanth Babu Mantena --- arch/arm

[PATCH] mtd: spi-nor-core: Fixup SNOR_F_IO_MODE_EN_VOLATILE for MT35X

2024-11-25 Thread Prasanth Babu Mantena
35XU512ABA device supports octal DTR mode, add this property in SFDP fixup. Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- Test results : https://gist.github.com/PrasanthBabuMantena/678cbd7a230a4e2d19e22d20dfeb1235 drivers/mtd/spi/spi-nor-core.c | 6 ++ 1 file

[PATCH] arm: mach-k3: fix typo in devstat macro name

2024-11-26 Thread Prasanth Babu Mantena
Fix spelling mistake in the board init files of j721e and j721s2. s/WKUP_DEVSTAT_MCU_OMLY_MASK/WKUP_DEVSTAT_MCU_ONLY_MASK Signed-off-by: Prasanth Babu Mantena --- arch/arm/mach-k3/include/mach/j721e_hardware.h | 2 +- arch/arm/mach-k3/include/mach/j721s2_hardware.h | 2 +- arch/arm/mach-k3

[PATCH 4/4] arm: dts: k3-j722s*: Add overrides specific to OSPI

2024-12-10 Thread Prasanth Babu Mantena
From: Vaishnav Achath OSPI Booot requires overrides specific to R5 and also to use DMA in R5 SPL stage the DM_TIFS needs to be enabled. Add the corresponding overrides for R5 SPL stage. Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- arch/arm/dts/k3-j722s-evm-u

[PATCH 1/4] mailbox: k3-sec-proxy: Add DM to DMSC communication thread for J722S

2024-12-10 Thread Prasanth Babu Mantena
From: Vaishnav Achath J722S R5 SPL uses sec-proxy threads 28 and 29 for communication with TIFS. Mark these as valid threads in the driver. Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- drivers/mailbox/k3-sec-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3/4] arm: mach-k3: j722_spl: Add FAST XSPI boot mode

2024-12-10 Thread Prasanth Babu Mantena
From: Vaishnav Achath Fast XSPI boot mode is supported by J722S ROM, add that. Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- arch/arm/mach-k3/include/mach/j722s_spl.h | 1 + arch/arm/mach-k3/j722s/j722s_init.c | 2 ++ 2 files changed, 3 insertions(+) diff

[PATCH 2/4] arm: dts: k3-j722s-r5-evm: Fix DM2TIFS secproxy thread ID

2024-12-10 Thread Prasanth Babu Mantena
From: Vaishnav Achath Fix the DM2TIFS secureproxy thread ID as per the latest TISCI documentation for J722S. https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j722s/sec_proxy.html Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- arch/arm/dts/k3-j722s-r5-evm.dts | 4

[PATCH] dma: ti: k3-udma: Fix BCDMA probe by adding check for MMR_RFLOW

2024-12-10 Thread Prasanth Babu Mantena
RFLOW config related MMR does not exist incase of BCDMA. Add check to bypass the RFLOW MMR extraction. Without this, the probe sequence fails checking for the MMR_RFLOW region, which is valid only for packet based DMA and obselete for BCDMA. Signed-off-by: Prasanth Babu Mantena --- drivers/dma

[PATCH 0/4] Fix OSPI boot for J722S

2024-12-10 Thread Prasanth Babu Mantena
This series fixes OSPI boot for J722S. It contains fixes for DMSC communication, R5 regmap for ospi and dma specific overrides for ospi. Test log: https://gist.github.com/PrasanthBabuMantena/ad469dd09ab7263f85f87dadda46c86d Vaishnav Achath (4): mailbox: k3-sec-proxy: Add DM to DMSC communicati

[PATCH v2] dma: ti: k3-udma: Fix BCDMA probe by adding check for MMR_RFLOW

2024-12-18 Thread Prasanth Babu Mantena
t for native configuration of chan/flow") Signed-off-by: Prasanth Babu Mantena Tested-by: Jonathan Humphreys --- v2 <--> v1 Add Fixes tag. drivers/dma/ti/k3-udma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index dac4023c

[PATCH v2 4/4] arm: dts: k3-j722s*: Add overrides specific to OSPI

2024-12-18 Thread Prasanth Babu Mantena
From: Vaishnav Achath OSPI Boot requires overrides specific to R5 and also to use DMA in R5 SPL stage the DM_TIFS needs to be used. Add the corresponding overrides for R5 SPL stage. Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- arch/arm/dts/k3-j722s-evm-u-boot.dtsi

[PATCH v2 0/4] Fix OSPI boot for J722S

2024-12-18 Thread Prasanth Babu Mantena
This series fixes OSPI boot for J722S. It contains fixes for DMSC communication, R5 regmap for ospi and dma specific overrides for ospi. Test log: https://gist.github.com/PrasanthBabuMantena/ad469dd09ab7263f85f87dadda46c86d v2 <==> v1 * Add Fixes tag wherever required. * Improve commit message.

[PATCH v2 2/4] arm: dts: k3-j722s-r5-evm: Fix DM2TIFS secproxy thread ID

2024-12-18 Thread Prasanth Babu Mantena
Signed-off-by: Prasanth Babu Mantena --- arch/arm/dts/k3-j722s-r5-evm.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-j722s-r5-evm.dts b/arch/arm/dts/k3-j722s-r5-evm.dts index 5e5c2e3111e..1bec997c93c 100644 --- a/arch/arm/dts/k3-j722s-r5-evm.dts +++ b/ar

[PATCH v2 1/4] mailbox: k3-sec-proxy: Add DM to DMSC communication thread for J722S

2024-12-18 Thread Prasanth Babu Mantena
From: Vaishnav Achath J722S R5 SPL uses sec-proxy threads 28 and 29 for communication with TIFS. Mark these as valid threads in the driver. https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j722s/sec_proxy.html Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena

[PATCH v2 3/4] arm: mach-k3: j722_spl: Add FAST XSPI boot mode

2024-12-18 Thread Prasanth Babu Mantena
From: Vaishnav Achath Fast XSPI boot mode is supported by J722S ROM, add that. Signed-off-by: Vaishnav Achath Signed-off-by: Prasanth Babu Mantena --- arch/arm/mach-k3/include/mach/j722s_spl.h | 1 + arch/arm/mach-k3/j722s/j722s_init.c | 2 ++ 2 files changed, 3 insertions(+) diff

[PATCH v2] dma: ti: k3-udma: Avoid Memory leak issues during dma memcpy

2025-02-20 Thread Prasanth Babu Mantena
memcpy transactions optimally. Signed-off-by: Prasanth Babu Mantena --- v2: Add missing descriptor allocation for UDMA setup as well. drivers/dma/ti/k3-udma.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3

[PATCH] dma: ti: k3-udma: Avoid Memory leak issues during dma memcpy

2025-02-18 Thread Prasanth Babu Mantena
memcpy transactions optimally. Signed-off-by: Prasanth Babu Mantena --- drivers/dma/ti/k3-udma.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 3013c4741d0..d660e89c0f3 100644 --- a/drivers/dma/ti/k3

[PATCH] common: spl: Enable Instruction cache after relocation in board_init_r

2025-03-16 Thread Prasanth Babu Mantena
invalidates icache needed after instruction relocation. Fixes: 52a86e69e20 ("arm: k3: Enable instruction cache for main domain SPL") Signed-off-by: Prasanth Babu Mantena --- arch/arm/mach-k3/common.c | 1 + common/spl/spl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/a