[RFC PATCH 0/3] 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-gi...
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(+)

From: Neha Malcom Francis n-francis@ti.com
Add CONFIG_ESM_K3 and CONFIG_ESM_PMIC to enable ESM initialization in J7200.
Signed-off-by: Neha Malcom Francis n-francis@ti.com Signed-off-by: Aniket Limaye a-limaye@ti.com --- configs/j7200_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig index f036a6fd46b..62a93ff21ff 100644 --- a/configs/j7200_evm_r5_defconfig +++ b/configs/j7200_evm_r5_defconfig @@ -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

From: Gowtham Tammana g-tammana@ti.com
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 g-tammana@ti.com --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 7 +++++++ 1 file changed, 7 insertions(+)
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 f096b102793..53c8d7827b9 100644 --- a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts +++ b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts @@ -108,3 +108,10 @@ vdd-supply-2 = <&buckb1>; bootph-pre-ram; }; + +&tps659414 { + esm: esm { + compatible = "ti,tps659413-esm"; + bootph-pre-ram; + }; +};

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.
Signed-off-by: Udit Kumar u-kumar1@ti.com --- 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/arch/arm/dts/k3-j7200-r5-common-proc-board.dts index 53c8d7827b9..64a4ffd3605 100644 --- a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts +++ b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts @@ -115,3 +115,11 @@ bootph-pre-ram; }; }; + +&bucka1 { + bootph-pre-ram; +}; + +&main_esm { + bootph-pre-ram; +};
participants (1)
-
Udit Kumar