Skip to contentSkip to conversation

Add TI K3 HSM M4F nodes in device-tree

PATCH Superseded Beleswar Padhi 4 participants 9 messages Jan 6 – Jan 13

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add TI K3 HSM M4F nodes in device-tree

Some of the TI K3 family of SoCs (like J721S2, J784S4, J722S) have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add the device tree bindings and device-tree node definitions for this HSM M4F core.

The HSM M4 core is typically booted early from the bootloader and the driver for the same is posted in U-Boot mailing list[0].

v2: Changelog:
[Krzysztof Kozlowski]:
In [PATCH v2 1/3]
1. Update commit msg to remove redundant "bindings".
2. Update filename to match compatible.
3. Remove "address-cells" & "size-cells" property. These belong to the device's parent node.
4. Drop description from firmware-name property.
5. Fix indentation for DT example.

Link to v1:
https://lore.kernel.org/all/[email protected]/

[0]: https://lore.kernel.org/all/[email protected]/

Beleswar Padhi (3):
dt-bindings: remoteproc: Add HSM M4F core on TI K3 SoCs
arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node
arm64: dts: ti: k3-am62p-j722s-common-main: Add HSM M4F node

 .../bindings/remoteproc/ti,hsm-m4fss.yaml     | 72 +++++++++++++++++++
 .../dts/ti/k3-am62p-j722s-common-main.dtsi    | 15 ++++
 arch/arm64/boot/dts/ti/k3-am62p.dtsi          |  1 +
 .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi     | 15 ++++
 arch/arm64/boot/dts/ti/k3-j722s.dtsi          |  1 +
 .../k3-j784s4-j742s2-mcu-wakeup-common.dtsi   | 15 ++++
 6 files changed, 119 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,hsm-m4fss.yaml
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/3 dt-bindings: remoteproc: Add HSM M4F core on TI K3 SoCs

Some of the TI K3 family of SoCs have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add the device tree bindings document for this HSM M4F core.

The added example illustrates the DT node for the HSM core present on K3 J722S SoC.

---
v2: Changelog:
[Krzysztof Kozlowski]:
1. Update commit msg to remove redundant "bindings".
2. Update filename to match compatible.
3. Remove "address-cells" & "size-cells" property. These belong to the device's parent node.
4. Drop description from firmware-name property.
5. Fix indentation for DT example.

Link to v1:
https://lore.kernel.org/all/[email protected]/

 .../bindings/remoteproc/ti,hsm-m4fss.yaml     | 72 +++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,hsm-m4fss.yaml
Documentation/devicetree/bindings/remoteproc/ti,hsm-m4fss.yaml new file +72 -0
new file mode 100644
index 0000000000000..9244e60acee37
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/remoteproc/ti,hsm-m4fss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI K3 HSM M4F processor subsystems
+
+maintainers:
+  - Beleswar Padhi <[email protected]>
+
+description: |
+  Some K3 family SoCs have a HSM (High Security Module) M4F core in the
+  Wakeup Voltage Domain which could be used to run secure services like
+  Authentication. Some of those are J721S2, J784S4, J722S, AM62X.
+
+$ref: /schemas/arm/keystone/ti,k3-sci-common.yaml#
+
+properties:
+  compatible:
+    enum:
+      - ti,hsm-m4fss
+
+  reg:
+    items:
+      - description: SRAM0_0 internal memory region
+      - description: SRAM0_1 internal memory region
+      - description: SRAM1 internal memory region
+
+  reg-names:
+    items:
+      - const: sram0_0
+      - const: sram0_1
+      - const: sram1
+
+  resets:
+    maxItems: 1
+
+  firmware-name:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - resets
+  - firmware-name
+  - ti,sci
+  - ti,sci-dev-id
+  - ti,sci-proc-ids
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        remoteproc@43c00000 {
+            compatible = "ti,hsm-m4fss";
+            reg = <0x00 0x43c00000 0x00 0x20000>,
+                  <0x00 0x43c20000 0x00 0x10000>,
+                  <0x00 0x43c30000 0x00 0x10000>;
+            reg-names = "sram0_0", "sram0_1", "sram1";
+            resets = <&k3_reset 225 1>;
+            firmware-name = "hsm.bin";
+            ti,sci = <&sms>;
+            ti,sci-dev-id = <225>;
+            ti,sci-proc-ids = <0x80 0xff>;
+        };
+    };
Signature · 1 line
2.34.1
Reviewed-by on v2 1/3
#2 lore raw

Re: [PATCH v2 1/3] dt-bindings: remoteproc: Add HSM M4F core on TI K3 SoCs

Quoted 11 lines · Beleswar Padhi

Some of the TI K3 family of SoCs have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add the device tree bindings document for this HSM M4F core.

The added example illustrates the DT node for the HSM core present on K3 J722S SoC.

---
v2: Changelog:

Best regards,
Krzysztof

maintainer
#3 lore raw

Re: [PATCH v2 1/3] dt-bindings: remoteproc: Add HSM M4F core on TI K3 SoCs

In reply to Beleswar Padhi
Quoted 19 lines · Beleswar Padhi

Some of the TI K3 family of SoCs have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add the device tree bindings document for this HSM M4F core.

The added example illustrates the DT node for the HSM core present on K3 J722S SoC.

---
v2: Changelog:
[Krzysztof Kozlowski]:
1. Update commit msg to remove redundant "bindings".
2. Update filename to match compatible.
3. Remove "address-cells" & "size-cells" property. These belong to the device's parent node.
4. Drop description from firmware-name property.
5. Fix indentation for DT example.

Quoted 7 lines

Link to v1:
https://lore.kernel.org/all/[email protected]/

 .../bindings/remoteproc/ti,hsm-m4fss.yaml     | 72 +++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,hsm-m4fss.yaml

I have applied this patch- Nishanth and Vignesh should handle the .dsti files.

Thanks,
Mathieu

Quoted 81 lines
Documentation/devicetree/bindings/remoteproc/ti,hsm-m4fss.yaml new file +72 -0
new file mode 100644
index 0000000000000..9244e60acee37
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/remoteproc/ti,hsm-m4fss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI K3 HSM M4F processor subsystems
+
+maintainers:
+  - Beleswar Padhi <[email protected]>
+
+description: |
+  Some K3 family SoCs have a HSM (High Security Module) M4F core in the
+  Wakeup Voltage Domain which could be used to run secure services like
+  Authentication. Some of those are J721S2, J784S4, J722S, AM62X.
+
+$ref: /schemas/arm/keystone/ti,k3-sci-common.yaml#
+
+properties:
+  compatible:
+    enum:
+      - ti,hsm-m4fss
+
+  reg:
+    items:
+      - description: SRAM0_0 internal memory region
+      - description: SRAM0_1 internal memory region
+      - description: SRAM1 internal memory region
+
+  reg-names:
+    items:
+      - const: sram0_0
+      - const: sram0_1
+      - const: sram1
+
+  resets:
+    maxItems: 1
+
+  firmware-name:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - resets
+  - firmware-name
+  - ti,sci
+  - ti,sci-dev-id
+  - ti,sci-proc-ids
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        remoteproc@43c00000 {
+            compatible = "ti,hsm-m4fss";
+            reg = <0x00 0x43c00000 0x00 0x20000>,
+                  <0x00 0x43c20000 0x00 0x10000>,
+                  <0x00 0x43c30000 0x00 0x10000>;
+            reg-names = "sram0_0", "sram0_1", "sram1";
+            resets = <&k3_reset 225 1>;
+            firmware-name = "hsm.bin";
+            ti,sci = <&sms>;
+            ti,sci-dev-id = <225>;
+            ti,sci-proc-ids = <0x80 0xff>;
+        };
+    };
Signature · 1 line
2.34.1
#4 lore raw

PATCH v2 2/3 arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node

In reply to Beleswar Padhi

The TI K3 J721S2, J784S4 and J742S2 SoCs have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add Device Tree Node definitions for the HSM core in the respective SoC wakeup dtsi files.

---
v2: Changelog:
1. None

Link to v1:
https://lore.kernel.org/all/[email protected]/

 arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi  | 15 +++++++++++++++
 .../ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi    | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +15 -0
index fd01437726ab4..c3d78d4a838a1 100644
@@ -766,4 +766,19 @@ mcu_watchdog1: watchdog@40610000 {
 		/* reserved for MCU_R5F0_1 */
 		status = "reserved";
 	};
+
+	hsm_m4fss: m4fss@43c00000 {
+		compatible = "ti,hsm-m4fss";
+		reg = <0x00 0x43c00000 0x00 0x20000>,
+		      <0x00 0x43c20000 0x00 0x10000>,
+		      <0x00 0x43c30000 0x00 0x10000>;
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 304 1>;
+		firmware-name = "hsm.bin";
+		ti,sci = <&sms>;
+		ti,sci-dev-id = <304>;
+		ti,sci-proc-ids = <0x80 0xff>;
+		status = "disabled";
+		bootph-pre-ram;
+	};
 };
arch/arm64/boot/dts/ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi +15 -0
index cc22bfb5f5996..42565f41b7bac 100644
@@ -762,4 +762,19 @@ mcu_watchdog1: watchdog@40610000 {
 		/* reserved for MCU_R5F0_1 */
 		status = "reserved";
 	};
+
+	hsm_m4fss: m4fss@43c00000 {
+		compatible = "ti,hsm-m4fss";
+		reg = <0x00 0x43c00000 0x00 0x20000>,
+		      <0x00 0x43c20000 0x00 0x10000>,
+		      <0x00 0x43c30000 0x00 0x10000>;
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 371 1>;
+		firmware-name = "hsm.bin";
+		ti,sci = <&sms>;
+		ti,sci-dev-id = <371>;
+		ti,sci-proc-ids = <0x80 0xff>;
+		status = "disabled";
+		bootph-pre-ram;
+	};
 };
Signature · 1 line
2.34.1
maintainer
#5 lore raw

Re: [PATCH v2 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node

Quoted 22 lines · Beleswar Padhi

The TI K3 J721S2, J784S4 and J742S2 SoCs have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add Device Tree Node definitions for the HSM core in the respective SoC wakeup dtsi files.

---
v2: Changelog:
1. None

Link to v1:
https://lore.kernel.org/all/[email protected]/

 arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi  | 15 +++++++++++++++
 .../ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi    | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +0 -0
index fd01437726ab4..c3d78d4a838a1 100644

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 770

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +2 -0
@@ -766,4 +766,19 @@ mcu_watchdog1: watchdog@40610000 {
 		/* reserved for MCU_R5F0_1 */
 		status = "reserved";
 	};
+
+	hsm_m4fss: m4fss@43c00000 {

You did fix this in the binding example.. but missed in dts.

The node name should use the generic type, not the instance name. It should be "remoteproc@43c00000", not "m4fss@43c00000".

Additionally for the label, why not just use hsm: like we have for sms?

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 774

Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +4 -0
+		compatible = "ti,hsm-m4fss";
+		reg = <0x00 0x43c00000 0x00 0x20000>,
+		      <0x00 0x43c20000 0x00 0x10000>,
+		      <0x00 0x43c30000 0x00 0x10000>;

The total address range covered here is 0x43c00000-0x43c40000, which is 0x40000 bytes, matching the ranges entry. However, you're defining three separate regions: 0x43c00000-0x43c20000 (0x20000), 0x43c20000-0x43c30000 (0x10000), and 0x43c30000-0x43c40000 (0x10000).

I assume you are doing this since the h/w integration could be instantiated differently?

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 777

Quoted 3 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +3 -0
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 304 1>;
+		firmware-name = "hsm.bin";

I am not a fan of putting firmware-name in SoC.dtsi - esp when it is reserved, further, so far we have been using j722s-wkup-r5f0_0-fw and so on.. which allows for firmware specific to SoC.. which kind of makes sense here as well.

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 781

Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +4 -0
+		ti,sci = <&sms>;
+		ti,sci-dev-id = <304>;
+		ti,sci-proc-ids = <0x80 0xff>;
+		status = "disabled";

As usual, document why? Additionally, should this be reserved?

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 782

Quoted 1 line
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +1 -0
+		bootph-pre-ram;

"standard property"

Documentation/devicetree/bindings/dts-coding-style.rst - note the order:
1. "compatible"
2. "reg"
3. "ranges"
4. Standard/common properties (defined by common bindings, e.g. without vendor-prefixes)
5. Vendor-specific properties
6. "status" (if applicable), preceded by a blank line if there is content before the property
7. Child nodes, where each node is preceded with a blank line

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 784

Quoted 2 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +1 -0
+	};
 };

Same for the rest of the patches and nodes

Quoted 27 lines
arch/arm64/boot/dts/ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi +15 -0
index cc22bfb5f5996..42565f41b7bac 100644
@@ -762,4 +762,19 @@ mcu_watchdog1: watchdog@40610000 {
 		/* reserved for MCU_R5F0_1 */
 		status = "reserved";
 	};
+
+	hsm_m4fss: m4fss@43c00000 {
+		compatible = "ti,hsm-m4fss";
+		reg = <0x00 0x43c00000 0x00 0x20000>,
+		      <0x00 0x43c20000 0x00 0x10000>,
+		      <0x00 0x43c30000 0x00 0x10000>;
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 371 1>;
+		firmware-name = "hsm.bin";
+		ti,sci = <&sms>;
+		ti,sci-dev-id = <371>;
+		ti,sci-proc-ids = <0x80 0xff>;
+		status = "disabled";
+		bootph-pre-ram;
+	};
 };
Signature · 1 line
2.34.1
Signature · 4 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
https://ti.com/opensource
#6 lore raw

Re: [PATCH v2 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node

Hi Nishanth,

Quoted 20 lines · Nishanth Menon
Quoted 12 lines · Beleswar Padhi

The TI K3 J721S2, J784S4 and J742S2 SoCs have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add Device Tree Node definitions for the HSM core in the respective SoC wakeup dtsi files.

[...]

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +0 -0
index fd01437726ab4..c3d78d4a838a1 100644

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 770

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +2 -0
@@ -766,4 +766,19 @@ mcu_watchdog1: watchdog@40610000 {
  		/* reserved for MCU_R5F0_1 */
  		status = "reserved";
  	};
+
+	hsm_m4fss: m4fss@43c00000 {

You did fix this in the binding example.. but missed in dts.

Quoted 4 lines

The node name should use the generic type, not the instance name. It should be "remoteproc@43c00000", not "m4fss@43c00000".

Additionally for the label, why not just use hsm: like we have for sms?

Thanks for catching this... Will fix in v2...

Quoted 10 lines

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 774

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +4 -0
+		compatible = "ti,hsm-m4fss";
+		reg = <0x00 0x43c00000 0x00 0x20000>,
+		      <0x00 0x43c20000 0x00 0x10000>,
+		      <0x00 0x43c30000 0x00 0x10000>;

The total address range covered here is 0x43c00000-0x43c40000, which is 0x40000 bytes, matching the ranges entry. However, you're defining three separate regions: 0x43c00000-0x43c20000 (0x20000), 0x43c20000-0x43c30000 (0x10000), and 0x43c30000-0x43c40000 (0x10000).

Quoted 2 lines

I assume you are doing this since the h/w integration could be instantiated differently?

Yes... Will add a comment in v2...

Quoted 7 lines

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 777

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +3 -0
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 304 1>;
+		firmware-name = "hsm.bin";

I am not a fan of putting firmware-name in SoC.dtsi - esp when it is reserved,

I thought the opposite way. Since it is reserved (and not a general purpose remote core), it is unlikely boards out there are going to use a separate firmware. Does it make sense to override this 'required' property with the same value in every other board level file?... Here is a diff for just 2 of the SoCs (J722S, AM62P). Let me know if you prefer this way and I will fix in v2.

arch/arm64/boot/dts/ti/k3-am62p-verdin.dtsi +0 -0
index 34954df692a39..a4026424b64dd 100644
@@ -1415,4 +1415,8 @@ &wkup_uart0 {

     status = "disabled";
 };

+&hsm {
+    firmware-name = "am62p-main-m4f-fw";
+};
+
 #include "k3-am62p-ti-ipc-firmware.dtsi"

arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +0 -0
index 4f7f6f95b02ef..7b370a65238db 100644
@@ -832,4 +832,8 @@ &mcu_uart0 {

             <&system_standby>;
 };

+&hsm {
+    firmware-name = "am62p-main-m4f-fw";
+};
+
 #include "k3-am62p-ti-ipc-firmware.dtsi"

arch/arm64/boot/dts/ti/k3-am62p5-var-som.dtsi +0 -0
index fc5a3942cde00..79d371c54c52b 100644
@@ -432,4 +432,8 @@ &main_uart1 {

     status = "reserved";
 };

+&hsm {
+    firmware-name = "am62p-main-m4f-fw";
+};
+
 #include "k3-am62p-ti-ipc-firmware.dtsi"

arch/arm64/boot/dts/ti/k3-am67a-beagley-ai.dts +0 -0
index 5255e04b9ac76..bb0c9857f907c 100644
@@ -399,4 +399,8 @@ &sdhci1 {

     status = "okay";
 };

+&hsm {
+    firmware-name = "j722s-main-m4f-fw";
+};
+
 #include "k3-j722s-ti-ipc-firmware.dtsi"

arch/arm64/boot/dts/ti/k3-am67a-kontron-sa67-base.dts +0 -0
index 7169d934adac5..37f31c206f0b7 100644
@@ -1089,3 +1089,7 @@ &wkup_uart0 {

     bootph-all;
     status = "reserved";
 };
+
+&hsm {
+    firmware-name = "j722s-main-m4f-fw";
+};

arch/arm64/boot/dts/ti/k3-j722s-evm.dts +0 -0
index e66330c71593a..6b38488815c34 100644
@@ -854,4 +854,8 @@ &mcu_i2c0 {

     status = "okay";
 };

+&hsm {
+    firmware-name = "j722s-main-m4f-fw";
+};
+
 #include "k3-j722s-ti-ipc-firmware.dtsi"

Quoted 3 lines

further, so far we have been using j722s-wkup-r5f0_0-fw and so on.. which allows for firmware specific to SoC.. which kind of makes sense here as well.

Right, will fix this in v2...

Quoted 6 lines

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 781

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +4 -0
+		ti,sci = <&sms>;
+		ti,sci-dev-id = <304>;
+		ti,sci-proc-ids = <0x80 0xff>;
+		status = "disabled";

As usual, document why? Additionally, should this be reserved?

Will fix in v2...

Quoted 3 lines

arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi mcu_watchdog1: watchdog@40610000 { · line 782

Quoted 2 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +1 -0
+		bootph-pre-ram;

"standard property"

Sorry my bad.. Will fix in v2...

Thanks,
Beleswar

Quoted 1 line

[...]

maintainer
#7 lore raw

Re: [PATCH v2 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node

On 21:34-20260113, Padhi, Beleswar wrote:
[...]

Quoted 9 lines
Quoted 5 lines

Review

Quoted 3 lines
(quoted diff) +3 -0
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 304 1>;
+		firmware-name = "hsm.bin";

I am not a fan of putting firmware-name in SoC.dtsi - esp when it is reserved,

I thought the opposite way. Since it is reserved (and not a general purpose remote core), it is unlikely boards out there are going to use a separate

Fair enough.. I see that the base firmware name is in SoC.dtsi on a per SoC basis. Agreed that exception can be an override if required (unlikely in this case). Please document that rationale in the commit message.

Since we just have a single HSM in each of the SoCs, am62p-hsm-m4f-fw j722s-hsm-m4f-fw etc in SoC.dtsi would make sense.. just dont do a generic hsm.bin kind of deal.

Signature · 4 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
https://ti.com/opensource
#8 lore raw

PATCH v2 3/3 arm64: dts: ti: k3-am62p-j722s-common-main: Add HSM M4F node

In reply to Beleswar Padhi

The TI K3 AM62P and J722S SoCs have a HSM (High Security Module) M4F core in the MAIN Voltage Domain which could be used to run secure services like Authentication. Add Device Tree Node definitions for the HSM core in the respective SoC common main dtsi file.

The corresponding reg ranges of HSM node has also been added to its parent node's (cbass_main bus) ranges property.

---
v2: Changelog:
1. None

Link to v1:
https://lore.kernel.org/all/[email protected]/

 .../boot/dts/ti/k3-am62p-j722s-common-main.dtsi   | 15 +++++++++++++++
 arch/arm64/boot/dts/ti/k3-am62p.dtsi              |  1 +
 arch/arm64/boot/dts/ti/k3-j722s.dtsi              |  1 +
 3 files changed, 17 insertions(+)
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +15 -0
index 3cf7c2b3ce2dd..28586cbc57613 100644
@@ -1117,4 +1117,19 @@ vpu: video-codec@30210000 {
 		clocks = <&k3_clks 204 2>;
 		power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
 	};
+
+	hsm_m4fss: m4fss@43c00000 {
+		compatible = "ti,hsm-m4fss";
+		reg = <0x00 0x43c00000 0x00 0x20000>,
+		      <0x00 0x43c20000 0x00 0x10000>,
+		      <0x00 0x43c30000 0x00 0x10000>;
+		reg-names = "sram0_0", "sram0_1", "sram1";
+		resets = <&k3_reset 225 1>;
+		firmware-name = "hsm.bin";
+		ti,sci = <&dmsc>;
+		ti,sci-dev-id = <225>;
+		ti,sci-proc-ids = <0x80 0xff>;
+		status = "disabled";
+		bootph-pre-ram;
+	};
 };
arch/arm64/boot/dts/ti/k3-am62p.dtsi +1 -0
index e2c01328eb298..9d6266d6ddb82 100644
@@ -96,6 +96,7 @@ cbass_main: bus@f0000 {
 			 <0x00 0x31100000 0x00 0x31100000 0x00 0x00050000>, /* USB1 DWC3 Core window */
 			 <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */
 			 <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */
+			 <0x00 0x43c00000 0x00 0x43c00000 0x00 0x00040000>, /* HSM SRAM ranges */
 			 <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */
 			 <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */
 			 <0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */
arch/arm64/boot/dts/ti/k3-j722s.dtsi +1 -0
index c8b634c346779..059c65ece183f 100644
@@ -173,6 +173,7 @@ cbass_main: bus@f0000 {
 			 <0x00 0x31200000 0x00 0x31200000 0x00 0x00040000>, /* USB1 DWC3 Core window */
 			 <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */
 			 <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */
+			 <0x00 0x43c00000 0x00 0x43c00000 0x00 0x00040000>, /* HSM SRAM ranges */
 			 <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */
 			 <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */
 			 <0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */
Signature · 1 line
2.34.1