[PATCH] arm: mach-k3: increase max resasg_entries

2025-08-23 Thread Udit Kumar
Increase max resasg_entries to accommodate max size of largest device J784S4[0]. [0]: https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j784s4/resasg_types.html Reported-by: Jared McArthur Signed-off-by: Udit Kumar --- arch/arm/mach-k3/schema.yaml | 4 ++-- 1 file changed, 2 insertions

[PATCH 1/2] Kconfig: Add default malloc size of K3 ARCH

2025-06-14 Thread Udit Kumar
Many boards of K3 overwrites default malloc size, instead of doing at almost each board level, Add default size at Kconfig. Signed-off-by: Udit Kumar --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index 51358633762..05b7f410fa5 100644 --- a

[PATCH 2/2] configs: j7*/*am62*: Remove malloc size overwrite at config level.

2025-06-14 Thread Udit Kumar
Use default value of malloc size coming from Kconfig, instead of board specific override. Signed-off-by: Udit Kumar --- configs/am62x_a53_usbdfu.config| 1 - configs/am64x_evm_a53_defconfig| 1 - configs/am64x_evm_r5_defconfig | 1 - configs

[PATCH 0/2] malloc size cleanup for K3 devices

2025-06-14 Thread Udit Kumar
Many boards based upon K3 ARCH overrides default malloc size to 32MB, as part of cleanup, add default size of 32MB for K3 ARCH. Udit Kumar (2): Kconfig: Add default malloc size of K3 ARCH configs: j7*/*am62*: Remove malloc size overwrite at config level. Kconfig

[PATCH] configs: j722s_evm_r5_defconfig: Enable PMIC config

2025-05-01 Thread Udit Kumar
le in u-boot for J722S EVM, So enable PMIC in defconfig as well. Signed-off-by: Udit Kumar --- Bootlogs https://gist.github.com/uditkumarti/0d4c5577ecbe2f61bfe8690792f3fe57 configs/j722s_evm_r5_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/j722s_evm_r5_defconfig b/

[PATCH v2] firmware: ti_sci: Add Initialization of dev_info head node

2025-04-29 Thread Udit Kumar
this, move init of list before usages in both functions. Fixes: 5d5a699855a7("firmware: ti_sci: Add support for Resoure Management at R5 SPL stage") Reviewed-by: Neha Malcom Francis Signed-off-by: Udit Kumar --- Changes in v2: 1) moved init of list before adding node 2) collected R/B of

[PATCH] firmware: ti_sci: Add Initialization of dev_info head node

2025-04-29 Thread Udit Kumar
: 5d5a699855a7("firmware: ti_sci: Add support for Resoure Management at R5 SPL stage") Signed-off-by: Udit Kumar --- drivers/firmware/ti_sci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 54d6689ce78..a599de9e013 100644 ---

[v3 PATCH 1/4] arm: dts: k3-j784s4-r5-evm: Add the PMIC ESM node

2025-04-27 Thread Udit Kumar
From: Neha Malcom Francis Add the PMIC ESM node which is responsible for triggering the PMIC reset. Signed-off-by: Neha Malcom Francis Signed-off-by: Andrew Halaney --- arch/arm/dts/k3-j784s4-r5-evm.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/k3-j784s4-r5-evm.d

[v3 PATCH 2/4] arm: dts: k3-am69-r5-evm: Add the PMIC ESM node

2025-04-27 Thread Udit Kumar
From: Andrew Halaney Add the PMIC ESM node which is responsible for triggering the PMIC reset. Suggested-by: Udit Kumar Signed-off-by: Andrew Halaney --- arch/arm/dts/k3-am69-r5-sk.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/k3-am69-r5-sk.dts b/arch/arm/dts/k3

[v3 PATCH 4/4] configs: j784s4_evm_r5: Enable ESM related configs

2025-04-27 Thread Udit Kumar
From: Andrew Halaney Like other TI platforms, let's enable the ESM. This allows the ESM to be programmed during boot, and the PMIC associated with the ESM output, enabling blocks like the RTI watchdogs to actually cause the system to reset. Signed-off-by: Andrew Halaney Signed-off-by:

[v3 PATCH 3/4] board: ti: j784s4: Initialize the ESM & PMIC ESM

2025-04-27 Thread Udit Kumar
From: Keerthy Initialize the ESM & PMIC ESM. This allows things like the watchdog to reset the board when tripped. Signed-off-by: Keerthy Signed-off-by: Neha Malcom Francis Signed-off-by: Andrew Halaney --- board/ti/j784s4/evm.c | 24 1 file changed, 24 insertions(+)

[v3 PATCH 0/4] k3-j784s4*: Enable ESMs and related PMIC

2025-04-27 Thread Udit Kumar
This series enables the ESMs and the associated PMIC. Programming these bits is a requirement to make the watchdog actually reset the board. Series supports WDT reset on all TI platforms based upon J784S4 SOC including cut down (J742S2). Bootlogs for reset AM69: https://gist.github.com/uditkum

[PATCH] arm: mach-k3: r5: j7200: Add clk dev data for WKUP UART

2025-04-15 Thread Udit Kumar
From: Bhavya Kapoor Add clk and dev data for wakeup uart to enable wakeup UART as console. Reported-by: KEERTHY Signed-off-by: Bhavya Kapoor --- arch/arm/mach-k3/r5/j7200/clk-data.c | 16 arch/arm/mach-k3/r5/j7200/dev-data.c | 1 + 2 files changed, 17 insertions(+) diff --g

[PATCH] doc: board: ti: Add optee rng support

2025-04-10 Thread Udit Kumar
J722S has hw rng, which can be used by OPTEE. So remove option to use SW TRNG by OPTEE. Signed-off-by: Udit Kumar --- reference discussion https://lore.kernel.org/all/20250313144155.2382316-1-mwa...@kernel.org/ Bootlogs with optee trng https://gist.github.com/uditkumarti

[PATCH v2] configs: am68_sk_r5: Enable AVS config

2025-03-18 Thread Udit Kumar
Enable AVS config Signed-off-by: Udit Kumar --- Change log changes in v2 Removed extra test code, which was added below tearline link to v1: https://lore.kernel.org/all/20250314123824.2886341-1-u-kum...@ti.com/ configs/am68_sk_r5_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH] configs: am68_sk_r5: Enable AVS config

2025-03-14 Thread Udit Kumar
Enable AVS config Signed-off-by: Udit Kumar --- Test logs https://gist.github.com/uditkumarti/9b30461e66aa27e4a813a65f1c552e51#file-gistfile1-txt-L298 Following print was added to see AVS voltage setting at diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index 0774e0a4c9e

[PATCH 1/2] arm: dts: k3-j7200: Add ESM PMIC support for tps659413

2025-03-14 Thread Udit Kumar
From: Gowtham Tammana On J7200 processor board MCU_SAFETY_ERROR signal is routed to PMIC for ESM error handling. The PMIC resets the board on receipt of the signal. Enable the support for the board by adding ESM PMIC node. Signed-off-by: Gowtham Tammana --- arch/arm/dts/k3-j7200-r5-common-proc

[PATCH 2/2] configs: j7200_evm_r5: Add ESM related configs for J7200

2025-03-14 Thread Udit Kumar
From: Neha Malcom Francis Add CONFIG_ESM_K3 and CONFIG_ESM_PMIC to enable ESM initialization in J7200. Signed-off-by: Neha Malcom Francis Signed-off-by: Aniket Limaye --- configs/j7200_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j7200_evm_r5_defconfig b/conf

[PATCH 0/2] Add WDT support for J7200 SOC

2025-03-14 Thread Udit Kumar
This enables the ESMs and the associated PMIC. Programming these bits is a requirement to make the watchdog actually reset the board. After DT sync nodes bucka1 and main_esm has bootph property added in pmic nodes. RFC was sent https://lore.kernel.org/all/20241126063543.2678052-1-u-kum...@ti.com

[PATCH v2] configs: j784s4-am69: Enable UFS

2025-03-04 Thread Udit Kumar
J784S4 EVM board has UFS flash, So enable UFS configs Cc: Neha Francis Signed-off-by: Udit Kumar --- Changelog: Changes in v2: - Rebased with next sha id: 986ab810fa2 - link to v1 https://lore.kernel.org/all/20250217081712.1866257-1-u-kum...@ti.com/ Bootlogs https://gist.github.com

[RFC PATCH] power: regulator: Avoid probing of regulators at pre-ram stage

2025-02-21 Thread Udit Kumar
be avoided. Signed-off-by: Udit Kumar --- drivers/power/regulator/regulator-uclass.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 09567eb9dbb..2ab3f46685e 100644 --- a/drivers/power/regulator

[PATCH] configs: j784s4-am69: Enable UFS

2025-02-17 Thread Udit Kumar
J784S4 EVM board has UFS flash, So enable UFS configs Cc: Neha Francis Signed-off-by: Udit Kumar --- Bootlogs https://gist.github.com/uditkumarti/828f4a7731d952f92b627f7ac46da5dd configs/am69_sk_a72_defconfig| 5 + configs/j784s4_evm_a72_defconfig | 4 2 files changed, 9

[PATCH] power: regulator: tps65941: Fix voltage calculation for ldo

2025-02-11 Thread Udit Kumar
calculation. So fix those calculation. [0]: https://www.ti.com/lit/ds/symlink/tps6594-q1.pdf Fixes: 5d7dbd22cf7d ("power: regulator: tps65941: use function callbacks for conversion ops") Signed-off-by: Udit Kumar --- Bootlogs https://gist.github.com/uditkumarti/298bd277da11eb82146d7af

[PATCH] arch: arm: mach-k3: Delete tifs node in DT fixup

2025-01-12 Thread Udit Kumar
should hold address above msmc_size, and should be deleted before passing control to OS. [0] https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/general/core.html?highlight=msmc#tisci-msg-query-msmc Reviewed-by: Neha Malcom Francis Signed-off-by: Udit Kumar --- RFC was sent to k.org with https

[PATCH] power: pmic: tps65941: Fix TI TPS65224 PMIC compatiable

2024-12-27 Thread Udit Kumar
Fix compatiable name for TPS65224 PMIC as defined in dts/upstream/Bindings/mfd/ti,tps6594.yaml bindings. Fixes: 1468fbba6d55("power: pmic: tps65941: Add TI TPS65224 PMIC") Signed-off-by: Udit Kumar --- drivers/power/pmic/tps65941.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] arm: dts: k3-j721e-beagleboneai: Move to OF_UPSTREAM

2024-12-17 Thread Udit Kumar
Move to using OF_UPSTREAM config and thus using the devicetree subtree and remove unused device tree files. Signed-off-by: Udit Kumar --- Bootlog https://gist.github.com/uditkumarti/2f56822bab854cb9dcc06c69a8d1003a arch/arm/dts/Makefile | 1 - .../dts/k3-j721e

[RFC PATCH 3/3] arm: dts: k3-j7200: Add bootph for esm and pmic nodes

2024-11-25 Thread Udit Kumar
-* properties). While we wait for above committed to get synched with u-boot. Meanwhile add bootph in these nodes. Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b

[RFC PATCH 2/3] arm: dts: k3-j7200: Add ESM PMIC support for tps659413

2024-11-25 Thread Udit Kumar
From: Gowtham Tammana On J7200 processor board MCU_SAFETY_ERROR signal is routed to PMIC for ESM error handling. The PMIC resets the board on receipt of the signal. Enable the support for the board by adding ESM PMIC node. Signed-off-by: Gowtham Tammana --- arch/arm/dts/k3-j7200-r5-common-proc

[RFC PATCH 1/3] configs: j7200_evm_r5: Add ESM related configs for J7200

2024-11-25 Thread Udit Kumar
From: Neha Malcom Francis Add CONFIG_ESM_K3 and CONFIG_ESM_PMIC to enable ESM initialization in J7200. Signed-off-by: Neha Malcom Francis Signed-off-by: Aniket Limaye --- configs/j7200_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j7200_evm_r5_defconfig b/conf

[RFC PATCH 0/3] Enable ESMs and related PMIC

2024-11-25 Thread Udit Kumar
/5dca3fcb2ebe2535f9c9c719ee625513 For reset https://gist.github.com/uditkumarti/5dca3fcb2ebe2535f9c9c719ee625513#file-gistfile1-txt-L2475 Gowtham Tammana (1): arm: dts: k3-j7200: Add ESM PMIC support for tps659413 Neha Malcom Francis (1): configs: j7200_evm_r5: Add ESM related configs for J7200 Udit Kumar

[PATCH 2/3] arch: arm: dts: k3-j721s2-r5-common-proc-board: Add esm node

2024-11-25 Thread Udit Kumar
From: Manorit Chawdhry Add esm node for j721s2. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721s2-r5-common-proc-board.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts index 5

[PATCH 3/3] configs: j721s2_evm_r5_defconfig: Add ESM configs

2024-11-25 Thread Udit Kumar
From: Manorit Chawdhry Enables ESM configs for j721s2 and disables them for AM68 as AM68 includes J721s2 configs by default. Signed-off-by: Manorit Chawdhry --- configs/am68_sk_r5_defconfig| 2 ++ configs/j721s2_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config

[PATCH 1/3] board: ti: j721s2: Initialize the ESM & PMIC ESM

2024-11-25 Thread Udit Kumar
From: Keerthy Initialize the 3 instances of SOC ESM & PMIC ESM. This is needed for watchdog functionality. Signed-off-by: Keerthy Signed-off-by: Udit Kumar --- board/ti/j721s2/evm.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/ti/j721s2/evm.c b/boar

[PATCH 0/3] J721S2: Enable ESMs and related PMIC

2024-11-25 Thread Udit Kumar
This enables the ESMs and the associated PMIC. Programming these bits is a requirement to make the watchdog actually reset the board. Logs WDT reset J721S2 https://gist.github.com/uditkumarti/93cfe863d1f3fe3abb82b1821105f274#file-j721s2-L2708 AM68 boot (this does not support WDT) https://gist.git

[PATCH] arm: dts: k3-am68: Enable OSPI boot

2024-11-19 Thread Udit Kumar
Enable OSPI node to allow OSPI boot on AM68 Signed-off-by: Udit Kumar --- Bootlogs : https://gist.github.com/uditkumarti/bd3fc0690d6daec037a9fd18adc7266d arch/arm/dts/k3-am68-sk-base-board-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/k3-am68-sk-base-board-u

[PATCH] arm64: dts: ti: k3-j7200: Fix OSPI boot

2024-11-19 Thread Udit Kumar
OSPI boot is broken due to missing bootph property in pin mux of OSPI. So add bootph to fix OSPI boot. Signed-off-by: Udit Kumar --- This fix is already merged into kernel with[0] series. Sending this patch to allow OSPI boot, till above fix is getting merged to u-boot. Bootlog : https

[PATCH] dts: beagleboneai64: Add boothph in chipid node

2024-09-17 Thread Udit Kumar
beagleboneai64 boot was broken after OF_UPSTREAM support for J721E SOC. So add bootph in chipid node similar to other boards of this SOC. Fixes: 46bb1405b461 ("arm: dts: k3-j721e: Move to OF_UPSTREAM") Reported-by: Robert Nelson Signed-off-by: Udit Kumar --- Boot logs https://gist.

[PATCH] arch: arm: dts: k3-j7200-r5-evm: Enable AVS feature

2024-09-11 Thread Udit Kumar
During DT sync with kernel 6.6, AVS feature was removed by mistake. So adding back AVS feature. Fixes: df73e791ce09("arm: dts: j7200: dts sync with Linux 6.6-rc1") Signed-off-by: Udit Kumar --- Test logs with this patch Added print in avs driver to see, voltage being set. U-Boot S

[PATCH] ram: k3-ddrss: Handle error properly in lpddr4_start

2024-08-29 Thread Udit Kumar
In lpddr4_start function error returned by lpddr4_enablepiinitiator may go undetected due to overwrite of return code. Add support to handle error in above case. Reported-by: Andreas Dannenberg Signed-off-by: Udit Kumar --- drivers/ram/k3-ddrss/lpddr4.c | 5 +++-- 1 file changed, 3 insertions

[PATCH] configs: j784s4_evm : Increase Dynamic memory allocation size

2024-07-15 Thread Udit Kumar
Increase malloc size to 32 MB to align with other J7 family devices. Signed-off-by: Udit Kumar --- configs/j784s4_evm_a72_defconfig | 1 + configs/j784s4_evm_r5_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig

[PATCH 4/4] mach-k3: common.c: add a flag for booting authenticated rproc binaries

2024-05-21 Thread Udit Kumar
From: Manorit Chawdhry The flag will be used for booting authenticated remote procs from hs-se devices which can optionally be used in hs-fs devices also. Signed-off-by: Manorit Chawdhry Signed-off-by: Udit Kumar --- arch/arm/mach-k3/common.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH 3/4] include: env: ti: Add support for secure firmwares

2024-05-21 Thread Udit Kumar
Secure firmwares must be loaded if SOC is secure, currently rproc framework chooses non-secure firmware always. So adding support to load secure firmware, when SOC is secure Signed-off-by: Manorit Chawdhry Signed-off-by: Udit Kumar --- include/env/ti/k3_rproc.env | 6 +- include/env/ti

[PATCH 2/4] drivers: remoteproc: ti_k3 : enable secure booting with firmware images

2024-05-21 Thread Udit Kumar
From: Manorit Chawdhry Remoteproc firmware images aren't authenticated in the current boot flow. Authenticates remoteproc firmware images to complete the root of trust in secure booting. Signed-off-by: Manorit Chawdhry --- drivers/remoteproc/ti_k3_dsp_rproc.c | 4 drivers/remoteproc/ti_k3

[PATCH 1/4] include: mach-k3: move k3 security functions to security.h

2024-05-21 Thread Udit Kumar
Chawdhry Signed-off-by: Udit Kumar --- arch/arm/mach-k3/common.h| 4 ++-- arch/arm/mach-k3/include/mach/security.h | 11 +++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 arch/arm/mach-k3/include/mach/security.h diff --git a/arch/arm/mach-k3/common.h b

[PATCH 0/4] Adding support to load secure firmware for HS devices

2024-05-21 Thread Udit Kumar
ach-k3: common.c: add a flag for booting authenticated rproc binaries Udit Kumar (1): include: env: ti: Add support for secure firmwares arch/arm/mach-k3/common.c| 4 +++- arch/arm/mach-k3/common.h| 4 ++-- arch/arm/mach-k3/include/mach/security.h | 11 +++ d

[PATCH] power: pmic: tps65941: Update compatible to aling with kernel DT

2024-04-18 Thread Udit Kumar
-off-by: Udit Kumar --- drivers/power/pmic/tps65941.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c index 727b42747a..bf762deb29 100644 --- a/drivers/power/pmic/tps65941.c +++ b/drivers/power/pmic/tps65941.c @@ -75,6 +75,9

[PATCH] board: ti: j721e: Add support for both esm probe

2024-04-16 Thread Udit Kumar
]: https://www.ti.com/lit/zip/spruil1 spruil1c.pdf from zip Figure 12-1244. ESM Modules Overview Signed-off-by: Udit Kumar --- board/ti/j721e/evm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index 9dc3ed6dff..539eaf4718

[PATCH v2] dma: ti: k3-udma: Fix ring_idx to pair k3 nav rings

2024-02-21 Thread Udit Kumar
ring_idx was not correctly assigned in case of tflow_id is zero. Which leads to wrong pairing of DMA for drivers like OSPI. Fixes: 4312a1dfca26 ("dma: ti: k3-udma: Use ring_idx to pair k3 nav rings") Reviewed-by: Jai Luthra Signed-off-by: Udit Kumar --- Changelog Changes in v2

[PATCH] dma: ti: k3-udma: Fix ring_idx to pair k3 nav rings"

2024-02-20 Thread Udit Kumar
ring_idx was not correctly assigned in case of tflow_id is zero. Which leads to wrong pairing of DMA for drivers like OSPI. Fixes: 4312a1dfca26 ("dma: ti: k3-udma: Use ring_idx to pair k3 nav rings") Signed-off-by: Udit Kumar --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2

[PATCH v2] remoteproc: k3-dsp: Avoid reloading of firmware

2023-11-25 Thread Udit Kumar
DSP core is going into abnormal state when load callback is called after starting of DSP core. Reload of firmware needs core to be stopped first, followed by load. So avoid loading of firmware, when core is started. Signed-off-by: Udit Kumar --- Change log: Changes in v2: - Added details for

[PATCH] remoteproc: k3-dsp: Avoid reloading of firmware

2023-11-23 Thread Udit Kumar
DSP core is going into abnormal state when load callback is called after starting of DSP core. Reload of firmware needs core to be stopped first, followed by load. So avoid loading of firmware, when core is started. Signed-off-by: Udit Kumar --- drivers/remoteproc/ti_k3_dsp_rproc.c | 10

[PATCH v3] driver: misc: k3_avs: Add support for thermal shutdown

2023-10-19 Thread Udit Kumar
To avoid thermal burn out, program thermal shutdown value in VTM (Voltage and Thermal Manager) IP. Part of Linux kernel driver (drivers/thermal/k3_j72xx_bandgap.c) is ported from kernel 6.6-rc1, which sets thermal shutdown values. Signed-off-by: Udit Kumar Signed-off-by: Neha Francis

[PATCH v2 2/2] test: lmb: Add test for coalescing and overlap range

2023-09-26 Thread Udit Kumar
Add test case for an address range which is coalescing with one of range and overlapping with next range Cc: Simon Glass Signed-off-by: Udit Kumar --- test/lib/lmb.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/lib/lmb.c b/test/lib/lmb.c index

[PATCH v2 1/2] lmb: remove overlapping region with next range

2023-09-26 Thread Udit Kumar
, check for overlap should be done. In case overlap is found, adjust and merge these two lmb region into one. Reported-by: Suman Anna Signed-off-by: Udit Kumar --- lib/lmb.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/lib/lmb.c b/lib

[PATCH v2 0/2] lmb: remove overlapping region with next range

2023-09-26 Thread Udit Kumar
/7be37a662fabfcfefb74d1a67ccde2bd Changes in v2: Patch 1/2: Corrected typo Patch 2/2 : Added test case as suggested by Simon Link to v1: https://lore.kernel.org/all/20230924111832.3741245-1-u-kum...@ti.com/#t Udit Kumar (2): lmb: remove overlapping region with next range test: lmb: Added test

[PATCH] lmb: remove overlapping region with next range

2023-09-24 Thread Udit Kumar
, check for overlap should be done. In case overlap is found, adjust and merge these two lmb region into one. Reported-by: Suman Anna Signed-off-by: Udit Kumar --- logs https://gist.github.com/uditkumarti/5d08c34442235ad270cfa863792ebcdc seqeunce : line 1 to 13 without fix : line 96-100 with fix

[PATCH] clk: ti: clk-sci: Notify AVS driver based upon clock rate

2023-09-21 Thread Udit Kumar
AVS driver needs to be notified before or after clock change, depending upon new rate is greater or less than current clock rate. Fixes: 1e0aa873bc7cd ("clk: clk-ti-sci: Notify AVS driver upon setting clock rate") Cc: Keerthy Signed-off-by: Udit Kumar --- Boot logs https://gist.

[PATCH v4] clk: ti: clk-k3: Notify AVS driver upon setting clock rate

2023-09-21 Thread Udit Kumar
AVS is enabled at R5 SPL stage, on few platforms like J721E and J7200 clk-k3 is used instead if clk-sci driver. Add support in clk-k3 driver as well to notify AVS driver on setting clock rate so that voltage is changed accordingly. Cc: Keerthy Signed-off-by: Udit Kumar --- Boot logs with v4

[PATCH v3] clk: ti: Notify AVS driver upon setting clock rate

2023-09-20 Thread Udit Kumar
or after clock setting based upon current rate and new clock rate. Cc: Keerthy Signed-off-by: Udit Kumar --- Boot logs with v3: https://gist.github.com/uditkumarti/12a753a822c0aec9ca3028648c29dfa8 Change log: Change in v3: - Updated AVS notification before/after clock setting based upon new and

[PATCH v2] clk: ti: Notify AVS driver upon setting clock rate

2023-09-19 Thread Udit Kumar
AVS is enabled at R5 SPL stage, on few platforms like J721E and J7200 clk-k3 is used instead if clk-sci driver. Add support in clk-k3 driver as well to notify AVS driver upon setting clock rate so that voltage is changed accordingly. Cc: Keerthy Signed-off-by: Udit Kumar --- Change log

[PATCH] clk: ti: Notify AVS driver upon setting clock rate

2023-09-18 Thread Udit Kumar
AVS is enabled at R5 SPL stage, where clk-k3 is used instead if clk-sci driver. clk-k3 driver to notify AVS driver upon setting clock rate so that voltage is changed accordingly. Fixes: e0aa873bc7cd ("clk: clk-ti-sci: Notify AVS driver upon setting clock rate") Cc: Keerthy Signed-of

[PATCH v3 3/3] config: j7200: remove not needed power config

2023-09-12 Thread Udit Kumar
For J7200, R5/SPL TI_SCI_POWER_DOMAIN should be disabled as DM is a separate binary like other SOC of J7* family. Fixes: 02dff65efe70 ("configs: j7200_evm_r5: Add initial support") Signed-off-by: Udit Kumar --- configs/j7200_evm_r5_defconfig | 1 - 1 file changed, 1 deletion(-) di

[PATCH v3 2/3] clk: ti: Add support to enable configs conditionally

2023-09-12 Thread Udit Kumar
TI SOC has two clock domains CLK_TI_SCI and CLK_K3. These are mutually exclusive. Adding conditional check for CLK_TI_SCI and CLK_K3 along with other associated configs options. Suggested-by: Nishanth Menon Signed-off-by: Udit Kumar Reviewed-by: Nishanth Menon --- drivers/clk/ti/Kconfig | 8

[PATCH v3 1/3] power: domain: ti: Enable single config for power domain

2023-09-12 Thread Udit Kumar
TI SOC has two power domain TI_SCI_POWER_DOMAIN and TI_POWER_DOMAIN. These are mutually exclusive. So adding rule to select one, in case defconfig enabled both. Suggested-by: Nishanth Menon Signed-off-by: Udit Kumar Reviewed-by: Nishanth Menon --- drivers/power/domain/Kconfig | 2 +- 1 file

[PATCH v3 0/3] enable power and clock Kconfig conditionally

2023-09-12 Thread Udit Kumar
://lore.kernel.org/all/2023091946.749270-1-u-kum...@ti.com/ Udit Kumar (3): power: domain: ti: Enable single config for power domain clk: ti: Add support to enable configs conditionally config: j7200: remove not needed power config configs/j7200_evm_r5_defconfig | 1 - drivers/clk/ti

[PATCH v2 3/3] config: j7200: remove not needed power config

2023-09-12 Thread Udit Kumar
For J7200, R5/SPL TI_SCI_POWER_DOMAIN should be disabled as DM is a separate binary like other SOC of J7* family. Fixes: 02dff65efe7 (configs: j7200_evm_r5: Add initial support) Signed-off-by: Udit Kumar --- configs/j7200_evm_r5_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH v2 2/3] clk: ti: Add support to enable configs conditionally

2023-09-12 Thread Udit Kumar
TI SOC has two clock domains CLK_TI_SCI and CLK_K3. These are mutually exclusive. Adding conditional check for CLK_TI_SCI and CLK_K3 along with other associated configs options. Suggested-by: Nishanth Menon Signed-off-by: Udit Kumar --- drivers/clk/ti/Kconfig | 8 1 file changed, 4

[PATCH v2 0/3] enable power and clock Kconfig conditionally

2023-09-12 Thread Udit Kumar
. Change log Changes in v2: - Patch 1 and 2) Added conditional support to enable Kconfig - Patch 3 No change link to v1: https://lore.kernel.org/all/2023091946.749270-1-u-kum...@ti.com/ Udit Kumar (3): power: domain: ti: Enable single config for power domain clk: ti: Add support to enable

[PATCH v2 1/3] power: domain: ti: Enable single config for power domain

2023-09-12 Thread Udit Kumar
TI SOC has two power domain TI_SCI_POWER_DOMAIN and TI_POWER_DOMAIN. These are mutually exclusive. So adding rule to select one, in case defconfig enabled both. Suggested-by: Nishanth Menon Signed-off-by: Udit Kumar --- drivers/power/domain/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2] spi: cadence_qspi: Select flash subnode at runtime

2023-09-12 Thread Udit Kumar
patch allows to select flash node at runtime. Boards those are supporting multiple flashes needs to implement cadence_qspi_get_subnode function and return correct flash node. Cc: Apurva Nandan Signed-off-by: Udit Kumar Reviewed-by: Neha Malcom Francis --- One of such platform is J721S2 EVM link

[PATCH] config: j7200: removed not needed power config

2023-09-11 Thread Udit Kumar
For J7200, R5/SPL TI_SCI_POWER_DOMAIN should be disabled as DM is a separate binary like other SOC of J7* family. Fixes: 02dff65efe7 (configs: j7200_evm_r5: Add initial support) Signed-off-by: Udit Kumar --- Boot logs https://gist.github.com/uditkumarti/04f053efa73eae8be53666d9a31033c2

[RFC PATCH v2 3/3] arm: dts: k3: update device tree for vtm node

2023-09-08 Thread Udit Kumar
Update device tree for vtm node and update driver compatible too Signed-off-by: Udit Kumar --- Kernel DT sync is happening in other series. So this patch is added just for testing and make sure functions are working ok arch/arm/dts/k3-j7200-mcu-wakeup.dtsi | 9 + arch/arm/dts

[RFC PATCH v2 2/3] arm: mach-k3: update board file to use thermal device

2023-09-08 Thread Udit Kumar
Update am65 and J721e board files to use thermal device instead of MISC device Signed-off-by: Udit Kumar --- arch/arm/mach-k3/am654_init.c | 2 +- arch/arm/mach-k3/j721e_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-k3/am654_init.c b/arch/arm/mach

[RFC PATCH v2 1/3] thermal: k3: Add support for thermal in vtm

2023-09-08 Thread Udit Kumar
TI K3's SOC supports AVS class 0 and thermal functions by one IP called VTM (voltage and Thermal Manager). This patch adds support for thermal management into available AVS driver. Along with updating needed configs for boot Signed-off-by: Udit Kumar --- configs/am65x_evm_r5_defc

[RFC PATCH v2 0/3] thermal: Integrate VTM and AVS driver

2023-09-08 Thread Udit Kumar
non needed code for SPL/R5 to reduce code size. Change log Changes in v2: v1 : https://lore.kernel.org/all/20230901061500.2342452-1-u-kum...@ti.com/ - Trying to merge AVS and kernel driver into 1 - Mark as RFC Udit Kumar (3): thermal: k3: Add support for thermal in vtm arm: mach-k3: update

[RESEND PATCH] spi: cadence_qspi: Select flash subnode at runtime

2023-09-07 Thread Udit Kumar
patch allows to select flash node at runtime. Boards those are supporting multiple flashes needs to implement cadence_qspi_get_subnode function and return correct flash node. Cc: Apurva Nandan Signed-off-by: Udit Kumar --- One of such platform is J721S2 EVM link https://www.ti.com/lit/pdf/spruj67

[PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm

2023-08-31 Thread Udit Kumar
Add support for VTM (Voltage and Thermal Manager), which is part of TI's K3 series SOC. Signed-off-by: Udit Kumar --- drivers/thermal/Kconfig| 6 + drivers/thermal/Makefile | 1 + drivers/thermal/k3_j72xx_bandgap.c | 539 + 3 files ch

[PATCH 2/2] DONOTMERGE: j7200: device tree and defconfig update

2023-08-31 Thread Udit Kumar
Enable VTM node in device tree and update defconfig for vtm. Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-mcu-wakeup.dtsi | 9 + configs/j7200_evm_a72_defconfig | 3 +++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/dts/k3-j7200-mcu-wakeup.dtsi b/arch/arm/dts/k3

[PATCH 0/2] thermal: Add VTM driver support for J72xx SOCs

2023-08-31 Thread Udit Kumar
/uditkumarti/fca15b10abe4c756b7889a8dc45bad57 line 67, u-boot temperature and line 778 temperature reported by OS Udit Kumar (2): thermal: k3-j72xx-bandgap: Add support for vtm DONOTMERGE: j7200: device tree and defconfig arch/arm/dts/k3-j7200-mcu-wakeup.dtsi | 9 + configs

[PATCH] spi: cadence_qspi: Select flash subnode at runtime

2023-08-28 Thread Udit Kumar
patch allows to select flash node at runtime. Boards those are supporting multiple flashes needs to implement cadence_qspi_get_subnode function and return correct flash node. Cc: Apurva Nandan Signed-off-by: Udit Kumar --- One of such platform is J721S2 EVM link https://www.ti.com/lit/pdf/spruj67

[PATCH v2 3/3] arch: arm: mach-k3: j721e: add support for UDA FS

2023-05-11 Thread Udit Kumar
When selecting UDA partition for booting. MMC read mode was selected as RAW. Due to growing/changing size of u-boot and tispl images. It will be better change to FS in case of UDA FS instead of adjusting offsets with new change. Signed-off-by: Udit Kumar --- arch/arm/mach-k3/j721e_init.c | 2

[PATCH v2 2/3] configs: j7200: correct mmc offset

2023-05-11 Thread Udit Kumar
atload mmc 1 ${loadaddr} tispl.bin => mmc write ${loadaddr} 0x800 0x1000 => fatload mmc 1 ${loadaddr} u-boot.img => mmc write ${loadaddr} 0x1800 0x2000 => mmc partconf 0 1 (1 or 2) 1 => mmc bootbus 0 2 0 0 Cc: Bhavya Kapoor Cc: Diwakar Dhyani Cc: KEERTHY Signed-off-by

[PATCH v2 1/3] doc: board: ti: add documenation for j7200

2023-05-11 Thread Udit Kumar
This patch adds documentation for j7200. TRM link https://www.ti.com/lit/pdf/spruiu1 Signed-off-by: Udit Kumar --- doc/board/ti/j7200_evm.rst | 332 + doc/board/ti/k3.rst| 1 + 2 files changed, 333 insertions(+) create mode 100644 doc/board/ti

[PATCH v2 0/3] arch: arm: mach-k3: j7200 document and emmc update

2023-05-11 Thread Udit Kumar
per review comments 2) No change in emmc offset, only version and commit message updated 3) Added support for UDA FS booting Udit Kumar (3): doc: board: ti: add documenation for j7200 configs: j7200: correct mmc offset arch: arm: mach-k3: j721e: add support for UDA FS booting arch/arm/mach

[PATCH 1/1] arm64: dts: ti: k3-j721s2: Add reserved status in msmc

2023-05-03 Thread Udit Kumar
mark atf, l3-cache and tifs node as reserved. Signed-off-by: Udit Kumar --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 2dd7865f7654..791993060f44

[RFC PATCH 0/1] arm64: dts: ti: k3-j721s2: handling subnode of msmc node

2023-05-03 Thread Udit Kumar
suggested to discuss in k.org group https://lore.kernel.org/all/20230502230022.5pjywy6h7oqrkmwh@elusive/ So sending this patch for suggestion for selection right option. Also other options are welcome. Udit Kumar (1): arm64: dts: ti: k3-j721s2: Add reserved status in msmc node. arch/arm64/boot

[PATCH] configs: j7200: correct mmc offset

2023-05-02 Thread Udit Kumar
Diwakar Dhyani Cc: KEERTHY Signed-off-by: Udit Kumar --- configs/j7200_evm_a72_defconfig| 2 +- configs/j7200_evm_r5_defconfig | 2 +- configs/j7200_hs_evm_a72_defconfig | 2 +- configs/j7200_hs_evm_r5_defconfig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config

[PATCH 14/14] arch: arm: dts: k3-j7200: Add MCSPI nodes

2023-05-02 Thread Udit Kumar
From: Vaishnav Achath Upstream Linux commit id 8f6c475f4ca7a J7200 has 8 MCSPI instances in the main domain and 3 instances in the MCU domain. Add the DT nodes for all the 11 instances and keep them disabled. MAIN_MCSPI4 is connected as a slave to MCU_MCSPI2 by default at power-up, MAIN_MCSPI4 a

[PATCH 13/14] arch: arm: dts: k3-j7200 rearrange bootph property in various node

2023-05-02 Thread Udit Kumar
To align with kernel and remove duplication rearrange boothm node. Signed-off-by: Udit Kumar --- .../k3-j7200-common-proc-board-u-boot.dtsi| 45 --- arch/arm/dts/k3-j7200-common-proc-board.dts | 3 ++ arch/arm/dts/k3-j7200-main.dtsi | 3 ++ arch/arm/dts/k3

[PATCH 12/14] arch: arm: dts: k3-j7200: cleanup hmbc node

2023-05-02 Thread Udit Kumar
move bootph to common file and remove duplicated properties of node. Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 7 --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 8 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a

[PATCH 11/14] arch: arm: dts: k3-j7200: removed unused clock node

2023-05-02 Thread Udit Kumar
remove non used 19Mhz clock node Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts index c247ad1b2e..30fb359489

[PATCH 10/14] arch: arm: dts: k3-7200: cleanup r5 i2c node

2023-05-02 Thread Udit Kumar
This patch cleans up duplicated main_i2c node from r5 file. Since this node needs bootph property, So add in common file. Signed-off-by: Udit Kumar --- .../k3-j7200-common-proc-board-u-boot.dtsi| 16 --- arch/arm/dts/k3-j7200-common-proc-board.dts | 2 ++ .../arm/dts/k3-j7200

[PATCH 09/14] arch: arm: dts: k3-j7200: remove duplicate usb nodes

2023-05-02 Thread Udit Kumar
This patch remove duplicated USB node from r5 board dts Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 8 arch/arm/dts/k3-j7200-common-proc-board.dts | 1 + arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 12 3 files

[PATCH 08/14] arch: arm: dts: k3-j7200 cleanup r5 and uboot dts

2023-05-02 Thread Udit Kumar
remove Alias and chosen properties Signed-off-by: Udit Kumar --- .../dts/k3-j7200-common-proc-board-u-boot.dtsi| 15 --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts| 6 -- 2 files changed, 21 deletions(-) diff --git a/arch/arm/dts/k3-j7200-common-proc-board-u

[PATCH 07/14] arch: arm: dts: k3-j7200 move wkup_pmx to common file

2023-05-02 Thread Udit Kumar
This patch move wkup_pmx into common file, along with cleanup of duplicated pin mux under wkup_pmx. Also remove double define for mcu_uart. Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-common-proc-board.dts | 24 +++- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 55

[PATCH 06/14] arch: arm: dts: k3-j7200 move main_pmx to common file

2023-05-02 Thread Udit Kumar
This patch moves pin mux from r5 dts to common dts file. Along with removing duplicated defines. Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-common-proc-board.dts | 16 -- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 51 +-- arch/arm/dts/k3-j7200-som-p0.dtsi

[PATCH 05/14] arch: arm: dts: k3-j7200: Configure pinctrl for timer IO pad

2023-05-02 Thread Udit Kumar
mework. Cc: Nishanth Menon Cc: Vignesh Raghavendra Cc: Tony Lindgren Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-main.dtsi | 18 ++ arch/arm/dts/k3-j7200-mcu-wakeup.dtsi | 18 ++ 2 files changed, 36 insertions(+) diff --git a/arch/arm/dts/k3-j7200-mai

[PATCH 04/14] arch: arm: dts: k3-j7200: Add general purpose timers

2023-05-02 Thread Udit Kumar
There are 20 general purpose timers on j7200 that can be used for things like PWM using pwm-omap-dmtimer driver. There are also additional ten timers in the MCU domain. MCU timer 0 is used by R5 uboot as always on. So change properties in u-boot specific files Signed-off-by: Udit Kumar

[PATCH 03/14] arch: arm: dts: k3-j7200-som: Enable I2C

2023-05-02 Thread Udit Kumar
://www.ti.com/lit/ds/symlink/dra821u.pdf J7200 User Guide (Section 4.3, Table 4-2) : https://www.ti.com/lit/ug/spruiw7a/spruiw7a.pdf Signed-off-by: Udit Kumar --- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 7 --- arch/arm/dts/k3-j7200-som-p0.dtsi | 21 +++ 2

[PATCH 02/14] arch: arm: dts: k3-j7200: Fix physical address of pin

2023-05-02 Thread Udit Kumar
-by: Keerthy Signed-off-by: Udit Kumar --- arch/arm/dts/k3-j7200-common-proc-board.dts | 28 ++--- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/dts/k3-j7200-common-proc-board.dts b/arch/arm/dts/k3-j7200-common-proc-board.dts index 0d39d6b8cc..63633

  1   2   >