Skip to contentSkip to conversation

arm: dts: k3-j721e-mcu-wakeup: Add MCU domain ESM instance

PATCH In review Neha Malcom Francis 3 participants 3 messages Oct 13, 2023 – Oct 17, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: k3-j721e-mcu-wakeup: Add MCU domain ESM instance

Currently J721E defines only the main_esm in DTS. Add node for mcu_esm as well.

According to J721E TRM (12.11.2.2 ESM Environment) [1], we see that the interrupt line from ESMi (main_esm) is routed to MCU_ESM (mcu_esm). This is MCU_ESM0_LVL_IN_95 with interrupt ID 95. Configure mcu_esm accordingly so that errors from main_esm are routed to mcu_esm and handled.

[1] https://www.ti.com/lit/zip/spruil1

---
Upstream kernel effort:
https://lore.kernel.org/lkml/[email protected]/

 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/dts/k3-j721e-mcu-wakeup.dtsi +7 -0
index 05d6ef127b..fa8af20c78 100644
@@ -671,4 +671,11 @@
 		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
 		#thermal-sensor-cells = <1>;
 	};
+
+	mcu_esm: esm@40800000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x00 0x40800000 0x00 0x1000>;
+		ti,esm-pins = <95>;
+		bootph-pre-ram;
+	};
 };
Signature · 1 line
2.34.1
#1 lore raw
Quoted 9 lines · Neha Malcom Francis

Currently J721E defines only the main_esm in DTS. Add node for mcu_esm as well.

According to J721E TRM (12.11.2.2 ESM Environment) [1], we see that the interrupt line from ESMi (main_esm) is routed to MCU_ESM (mcu_esm). This is MCU_ESM0_LVL_IN_95 with interrupt ID 95. Configure mcu_esm accordingly so that errors from main_esm are routed to mcu_esm and handled.

Quoted 6 lines

[1] https://www.ti.com/lit/zip/spruil1

---
Upstream kernel effort:
https://lore.kernel.org/lkml/[email protected]/

should part of next u-boot, kernel sync, no?

Quoted 20 lines
  arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 7 +++++++
  1 file changed, 7 insertions(+)
arch/arm/dts/k3-j721e-mcu-wakeup.dtsi +7 -0
index 05d6ef127b..fa8af20c78 100644
@@ -671,4 +671,11 @@
  		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
  		#thermal-sensor-cells = <1>;
  	};
+
+	mcu_esm: esm@40800000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x00 0x40800000 0x00 0x1000>;
+		ti,esm-pins = <95>;
+		bootph-pre-ram;
+	};
  };
#2 lore raw
Quoted 13 lines · Udit
Quoted 11 lines · Neha Malcom Francis

Currently J721E defines only the main_esm in DTS. Add node for mcu_esm as well.

According to J721E TRM (12.11.2.2 ESM Environment) [1], we see that the interrupt line from ESMi (main_esm) is routed to MCU_ESM (mcu_esm). This is MCU_ESM0_LVL_IN_95 with interrupt ID 95. Configure mcu_esm accordingly so that errors from main_esm are routed to mcu_esm and handled.

[1] https://www.ti.com/lit/zip/spruil1

Quoted 8 lines
Quoted 4 lines

---
Upstream kernel effort:
https://lore.kernel.org/lkml/[email protected]/

should part of next u-boot, kernel sync, no?

That is correct, this should come in via upstream kernel sync.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D