Skip to content

Commit ac838e4

Browse files
3V3RYONEnmenon
authored andcommitted
arm64: dts: ti: k3-am62p-j722s-common-main: Add HSM M4F node
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 HSM node is reserved to be loaded and booted by the early-stage bootloader. The firmware-name property is defined at the SoC level since the HSM is not a general-purpose remote core and boards are unlikely to use separate firmware. If needed in exceptional cases, board-specific device trees can override this property. The corresponding reg ranges of HSM node has also been added to its parent node's (cbass_main bus) ranges property. Signed-off-by: Beleswar Padhi <b-padhi@ti.com> Reviewed-by: Udit Kumar <u-kumar1@ti.com> Reviewed-by: Bryan Brattlof <bb@ti.com> Link: https://patch.msgid.link/20260114173551.2545088-3-b-padhi@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 474530e commit ac838e4

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,4 +1117,21 @@
11171117
clocks = <&k3_clks 204 2>;
11181118
power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
11191119
};
1120+
1121+
hsm: remoteproc@43c00000 {
1122+
compatible = "ti,hsm-m4fss";
1123+
/* contiguous regions but instantiated separately in HW */
1124+
reg = <0x00 0x43c00000 0x00 0x20000>,
1125+
<0x00 0x43c20000 0x00 0x10000>,
1126+
<0x00 0x43c30000 0x00 0x10000>;
1127+
reg-names = "sram0_0", "sram0_1", "sram1";
1128+
resets = <&k3_reset 225 1>;
1129+
firmware-name = "am62p-hsm-m4f-fw";
1130+
bootph-pre-ram;
1131+
ti,sci = <&dmsc>;
1132+
ti,sci-dev-id = <225>;
1133+
ti,sci-proc-ids = <0x80 0xff>;
1134+
/* reserved for early-stage bootloader */
1135+
status = "reserved";
1136+
};
11201137
};

arch/arm64/boot/dts/ti/k3-am62p.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<0x00 0x31100000 0x00 0x31100000 0x00 0x00050000>, /* USB1 DWC3 Core window */
9797
<0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */
9898
<0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */
99+
<0x00 0x43c00000 0x00 0x43c00000 0x00 0x00040000>, /* HSM SRAM ranges */
99100
<0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */
100101
<0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */
101102
<0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */

arch/arm64/boot/dts/ti/k3-j722s-main.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,11 @@
429429
firmware-name = "j722s-wkup-r5f0_0-fw";
430430
};
431431

432+
/* MAIN domain overrides */
433+
&hsm {
434+
firmware-name = "j722s-hsm-m4f-fw";
435+
};
436+
432437
&main_conf {
433438
serdes_ln_ctrl: mux-controller@4080 {
434439
compatible = "reg-mux";

arch/arm64/boot/dts/ti/k3-j722s.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
<0x00 0x31200000 0x00 0x31200000 0x00 0x00040000>, /* USB1 DWC3 Core window */
174174
<0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */
175175
<0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */
176+
<0x00 0x43c00000 0x00 0x43c00000 0x00 0x00040000>, /* HSM SRAM ranges */
176177
<0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */
177178
<0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */
178179
<0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */

0 commit comments

Comments
 (0)