ESM support for J721E and J7200
cover ESM support for J721E and J7200
Add support for ESM (Error Signalling Module) in J721E and J7200. The ESM error pin output is routed to the PMIC (Power Management IC) which can reset the board. The dts nodes for SoC ESM modules are added (if not already) to enable them.
Gowtham Tammana (2):
arm: dts: k3-j7200: Add Main domain ESM support
board: ti: j721e: initialize ESM support for J7200 SOM
Neha Malcom Francis (2):
arm: dts: k3-j721e: Refine MAIN domain ESM support
configs: j7200_evm_r5: Add ESM config for J7200
arch/arm/dts/k3-j7200-main.dtsi | 7 +++++++ arch/arm/dts/k3-j7200.dtsi | 1 + arch/arm/dts/k3-j721e-main.dtsi | 7 +++++++ arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 9 --------- arch/arm/dts/k3-j721e.dtsi | 1 + board/ti/j721e/evm.c | 3 ++- configs/j7200_evm_r5_defconfig | 1 + 7 files changed, 19 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/4 arm: dts: k3-j721e: Refine MAIN domain ESM support
MAIN domain ESM support was already added for J721E to configure main domain watchdog interrupts to generate ESM pin events. Move the main_esm node to be in sync with kernel dts. Also add register mapping for ESM in J721E.
--- arch/arm/dts/k3-j721e-main.dtsi | 7 +++++++ arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 9 --------- arch/arm/dts/k3-j721e.dtsi | 1 + 3 files changed, 8 insertions(+), 9 deletions(-)
arch/arm/dts/k3-j721e-main.dtsi +7 -0
@@ -1940,4 +1940,11 @@ bus_freq = <1000000>; }; }; + + main_esm: esm@700000 { + compatible = "ti,j721e-esm"; + reg = <0x0 0x700000 0x0 0x1000>; + ti,esm-pins = <344>, <345>; + bootph-pre-ram; + }; };
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -9
@@ -88,15 +88,6 @@ }; }; -&cbass_main { - main_esm: esm@700000 { - compatible = "ti,j721e-esm"; - reg = <0x0 0x700000 0x0 0x1000>; - ti,esm-pins = <344>, <345>; - bootph-pre-ram; - }; -}; - &dmsc { mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>; mbox-names = "tx", "rx", "notify";
arch/arm/dts/k3-j721e.dtsi +1 -0
@@ -126,6 +126,7 @@ #size-cells = <2>; ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ <0x00 0x06000000 0x00 0x06000000 0x00 0x00400000>, /* USBSS0 */
Signature · 1 line
2.34.1
PATCH 2/4 arm: dts: k3-j7200: Add Main domain ESM support
In reply to Neha Malcom FrancisFrom: Gowtham Tammana <[email protected]>
Main domain ESM support is needed to configure main domain watchdog interrupts to generate ESM pin events. On J7200 boards ESM error pin output is propagated to PMIC to generate reset.
--- arch/arm/dts/k3-j7200-main.dtsi | 7 +++++++ arch/arm/dts/k3-j7200.dtsi | 1 + 2 files changed, 8 insertions(+)
arch/arm/dts/k3-j7200-main.dtsi +7 -0
@@ -774,4 +774,11 @@ ti,loczrama = <1>; }; }; + + main_esm: esm@700000 { + compatible = "ti,j721e-esm"; + reg = <0x0 0x700000 0x0 0x1000>; + ti,esm-pins = <656>, <657>; + bootph-pre-ram; + }; };
arch/arm/dts/k3-j7200.dtsi +1 -0
@@ -124,6 +124,7 @@ #size-cells = <2>; ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */
Signature · 1 line
2.34.1
PATCH 3/4 board: ti: j721e: initialize ESM support for J7200 SOM
In reply to Neha Malcom FrancisFrom: Gowtham Tammana <[email protected]>
ESM support is available for J7200X-PM2-SOM board, as such enable support for it.
--- board/ti/j721e/evm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
board/ti/j721e/evm.c +2 -1
@@ -543,7 +543,8 @@ void spl_board_init(void) }#ifdef CONFIG_ESM_K3 -if (board_ti_k3_is ("J721EX-PM2-SOM" )) { +if (board_ti_k3_is ("J721EX-PM2-SOM" ) || +board_ti_k3_is ("J7200X-PM2-SOM" )) { ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (k3_esm), &dev);if (ret)
Signature · 1 line
2.34.1
PATCH 4/4 configs: j7200_evm_r5: Add ESM config for J7200
In reply to Neha Malcom FrancisAdd CONFIG_ESM_K3 to enable ESM initialization in J7200.
--- configs/j7200_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/j7200_evm_r5_defconfig +1 -0
@@ -168,3 +168,4 @@ CONFIG_FS_EXT4=y CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_LIB_RATIONAL=y CONFIG_SPL_LIB_RATIONAL=y +CONFIG_ESM_K3=y
Signature · 1 line
2.34.1
Quoted 13 lines · Neha Malcom Francis
Add support for ESM (Error Signalling Module) in J721E and J7200. The ESM error pin output is routed to the PMIC (Power Management IC) which can reset the board. The dts nodes for SoC ESM modules are added (if not already) to enable them.
Gowtham Tammana (2):
arm: dts: k3-j7200: Add Main domain ESM support
board: ti: j721e: initialize ESM support for J7200 SOMNeha Malcom Francis (2):
arm: dts: k3-j721e: Refine MAIN domain ESM support
configs:j7200_evm_r5: Add ESM config for J7200
Quoted 8 lines
arch/arm/dts/k3-j7200-main.dtsi | 7 +++++++ arch/arm/dts/k3-j7200.dtsi | 1 + arch/arm/dts/k3-j721e-main.dtsi | 7 +++++++ arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 9 --------- arch/arm/dts/k3-j721e.dtsi | 1 + board/ti/j721e/evm.c | 3 ++- configs/j7200_evm_r5_defconfig | 1 + 7 files changed, 19 insertions(+), 10 deletions(-)
Since we're touching the dts files, adding Nishanth.
Signature · 1 line
Tom
Quoted 24 lines · Tom Rini
Quoted 13 lines · Neha Malcom Francis
Add support for ESM (Error Signalling Module) in J721E and J7200. The ESM error pin output is routed to the PMIC (Power Management IC) which can reset the board. The dts nodes for SoC ESM modules are added (if not already) to enable them.
Gowtham Tammana (2):
arm: dts: k3-j7200: Add Main domain ESM support
board: ti: j721e: initialize ESM support for J7200 SOMNeha Malcom Francis (2):
arm: dts: k3-j721e: Refine MAIN domain ESM support
configs:j7200_evm_r5: Add ESM config for J7200Quoted 8 lines
arch/arm/dts/k3-j7200-main.dtsi | 7 +++++++ arch/arm/dts/k3-j7200.dtsi | 1 + arch/arm/dts/k3-j721e-main.dtsi | 7 +++++++ arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 9 --------- arch/arm/dts/k3-j721e.dtsi | 1 + board/ti/j721e/evm.c | 3 ++- configs/j7200_evm_r5_defconfig | 1 + 7 files changed, 19 insertions(+), 10 deletions(-)
Quoted 1 line
Since we're touching the dts files, adding Nishanth.
Easy NAK ;) -> K.org master first please. and then sync back and we dont need to do these piecemeal fixups.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D