Skip to contentSkip to conversation

Enable ESMs and related PMIC

RFC PATCH Superseded Udit Kumar 1 participant 4 messages Nov 26, 2024 Arm (32-bit)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Udit Kumar

author
#0 lore raw

cover Enable ESMs and related PMIC

This enables the ESMs and the associated PMIC.
Programming these bits is a requirement to make the watchdog actually reset the board.

Patch 3/3 is already available in upstream kernel. While above sync is done, sending this series as RFC.

Logs
https://gist.github.com/uditkumarti/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 (1):
arm: dts: k3-j7200: Add bootph for esm and pmic nodes

 arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 15 +++++++++++++++
 configs/j7200_evm_r5_defconfig                 |  2 ++
 2 files changed, 17 insertions(+)
Signature · 1 line
2.34.1
author
#1 lore raw

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

From: Neha Malcom Francis <[email protected]>

Add CONFIG_ESM_K3 and CONFIG_ESM_PMIC to enable ESM initialization in J7200.

---
 configs/j7200_evm_r5_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/j7200_evm_r5_defconfig +2 -0
index f036a6fd46b..62a93ff21ff 100644
@@ -101,7 +101,9 @@ CONFIG_DM_MAILBOX=y
 CONFIG_K3_SEC_PROXY=y
 CONFIG_FS_LOADER=y
 CONFIG_SPL_FS_LOADER=y
+CONFIG_ESM_K3=y
 CONFIG_K3_AVS0=y
+CONFIG_ESM_PMIC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_SPL_MMC_HS400_SUPPORT=y
 CONFIG_MMC_SDHCI=y
Signature · 1 line
2.34.1
author
#2 lore raw

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

In reply to Udit Kumar

From: Gowtham Tammana <[email protected]>

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.

---
 arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +7 -0
index f096b102793..53c8d7827b9 100644
@@ -108,3 +108,10 @@
 	vdd-supply-2 = <&buckb1>;
 	bootph-pre-ram;
 };
+
+&tps659414 {
+	esm: esm {
+		compatible = "ti,tps659413-esm";
+		bootph-pre-ram;
+	};
+};
Signature · 1 line
2.34.1
author
#3 lore raw

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

In reply to Udit Kumar

In order to get esm and pmic probed by R5 SPL, these nodes should be have bootph pre ram property.

However these changes are committed in kernel with following sha-id b903ab269e67 (arm64: dts: ti: k3-j7200: Add bootph-* properties) and bdb543b1664b (arm64: dts: ti: k3-j7200-evm*: Add bootph-* properties).

While we wait for above committed to get synched with u-boot. Meanwhile add bootph in these nodes.

---
 arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/k3-j7200-r5-common-proc-board.dts +8 -0
index 53c8d7827b9..64a4ffd3605 100644
@@ -115,3 +115,11 @@
 		bootph-pre-ram;
 	};
 };
+
+&bucka1 {
+	bootph-pre-ram;
+};
+
+&main_esm {
+	bootph-pre-ram;
+};
Signature · 1 line
2.34.1