* [PATCH 0/3] Add TI K3 HSM M4F nodes in device-tree
@ 2025-12-31 16:50 Beleswar Padhi
2025-12-31 16:51 ` [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs Beleswar Padhi
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Beleswar Padhi @ 2025-12-31 16:50 UTC (permalink / raw)
To: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo
Cc: afd, u-kumar1, hnagalla, b-padhi, linux-remoteproc, devicetree,
linux-kernel, linux-arm-kernel
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 will be posted shortly.
Beleswar Padhi (3):
dt-bindings: remoteproc: Add bindings for HSM 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,k3-hsm-rproc.yaml | 79 +++++++++++++++++++
.../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, 126 insertions(+)
create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs
2025-12-31 16:50 [PATCH 0/3] Add TI K3 HSM M4F nodes in device-tree Beleswar Padhi
@ 2025-12-31 16:51 ` Beleswar Padhi
2026-01-02 12:30 ` Krzysztof Kozlowski
2025-12-31 16:51 ` [PATCH 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node Beleswar Padhi
2025-12-31 16:51 ` [PATCH 3/3] arm64: dts: ti: k3-am62p-j722s-common-main: " Beleswar Padhi
2 siblings, 1 reply; 8+ messages in thread
From: Beleswar Padhi @ 2025-12-31 16:51 UTC (permalink / raw)
To: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo
Cc: afd, u-kumar1, hnagalla, b-padhi, linux-remoteproc, devicetree,
linux-kernel, linux-arm-kernel
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.
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
---
.../bindings/remoteproc/ti,k3-hsm-rproc.yaml | 79 +++++++++++++++++++
1 file changed, 79 insertions(+)
create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
new file mode 100644
index 0000000000000..f61e4046843af
--- /dev/null
+++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
@@ -0,0 +1,79 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/remoteproc/ti,k3-hsm-rproc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI K3 HSM M4F processor subsystems
+
+maintainers:
+ - Beleswar Padhi <b-padhi@ti.com>
+
+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
+
+ "#address-cells":
+ const: 2
+
+ "#size-cells":
+ const: 2
+
+ 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
+ description: Name of firmware to load for the HSM core
+
+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>;
+ };
+ };
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node
2025-12-31 16:50 [PATCH 0/3] Add TI K3 HSM M4F nodes in device-tree Beleswar Padhi
2025-12-31 16:51 ` [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs Beleswar Padhi
@ 2025-12-31 16:51 ` Beleswar Padhi
2025-12-31 16:51 ` [PATCH 3/3] arm64: dts: ti: k3-am62p-j722s-common-main: " Beleswar Padhi
2 siblings, 0 replies; 8+ messages in thread
From: Beleswar Padhi @ 2025-12-31 16:51 UTC (permalink / raw)
To: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo
Cc: afd, u-kumar1, hnagalla, b-padhi, linux-remoteproc, devicetree,
linux-kernel, linux-arm-kernel
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.
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
---
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(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
index 2a7f9c519735a..712c3bcbb6f84 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
@@ -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;
+ };
};
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi
index cc22bfb5f5996..42565f41b7bac 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-mcu-wakeup-common.dtsi
@@ -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;
+ };
};
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: dts: ti: k3-am62p-j722s-common-main: Add HSM M4F node
2025-12-31 16:50 [PATCH 0/3] Add TI K3 HSM M4F nodes in device-tree Beleswar Padhi
2025-12-31 16:51 ` [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs Beleswar Padhi
2025-12-31 16:51 ` [PATCH 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node Beleswar Padhi
@ 2025-12-31 16:51 ` Beleswar Padhi
2 siblings, 0 replies; 8+ messages in thread
From: Beleswar Padhi @ 2025-12-31 16:51 UTC (permalink / raw)
To: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo
Cc: afd, u-kumar1, hnagalla, b-padhi, linux-remoteproc, devicetree,
linux-kernel, linux-arm-kernel
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.
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
---
.../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(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi
index 3cf7c2b3ce2dd..28586cbc57613 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi
@@ -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;
+ };
};
diff --git a/arch/arm64/boot/dts/ti/k3-am62p.dtsi b/arch/arm64/boot/dts/ti/k3-am62p.dtsi
index e2c01328eb298..9d6266d6ddb82 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62p.dtsi
@@ -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 */
diff --git a/arch/arm64/boot/dts/ti/k3-j722s.dtsi b/arch/arm64/boot/dts/ti/k3-j722s.dtsi
index cdc8570e54b29..8b0523669c325 100644
--- a/arch/arm64/boot/dts/ti/k3-j722s.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j722s.dtsi
@@ -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 */
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs
2025-12-31 16:51 ` [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs Beleswar Padhi
@ 2026-01-02 12:30 ` Krzysztof Kozlowski
2026-01-05 5:56 ` Padhi, Beleswar
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-02 12:30 UTC (permalink / raw)
To: Beleswar Padhi
Cc: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo, afd, u-kumar1, hnagalla, linux-remoteproc,
devicetree, linux-kernel, linux-arm-kernel
On Wed, Dec 31, 2025 at 10:21:00PM +0530, Beleswar Padhi wrote:
> 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.
A nit, subject: drop second/last, redundant "bindings for". The
"dt-bindings" prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
>
> Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
> ---
> .../bindings/remoteproc/ti,k3-hsm-rproc.yaml | 79 +++++++++++++++++++
> 1 file changed, 79 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>
> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
> new file mode 100644
> index 0000000000000..f61e4046843af
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
Filename must match the compatible. Are you sure you are following
internal TI guidelines? Did you read them?
> @@ -0,0 +1,79 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/remoteproc/ti,k3-hsm-rproc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI K3 HSM M4F processor subsystems
> +
> +maintainers:
> + - Beleswar Padhi <b-padhi@ti.com>
> +
> +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
> +
> + "#address-cells":
> + const: 2
> +
> + "#size-cells":
> + const: 2
Why do you need these two properties?
> +
> + reg:
reg is always the second property. Please read DTS coding style.
> + 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
> + description: Name of firmware to load for the HSM core
Drop description. Can it be anything else than name of the firmware to
load?
> +
> +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";
Make the binding complete. All properties must be listed.
> + ti,sci = <&sms>;
> + ti,sci-dev-id = <225>;
> + ti,sci-proc-ids = <0x80 0xff>;
> + };
Messed indentation.
> + };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs
2026-01-02 12:30 ` Krzysztof Kozlowski
@ 2026-01-05 5:56 ` Padhi, Beleswar
2026-01-05 7:10 ` Krzysztof Kozlowski
0 siblings, 1 reply; 8+ messages in thread
From: Padhi, Beleswar @ 2026-01-05 5:56 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo, afd, u-kumar1, hnagalla, linux-remoteproc,
devicetree, linux-kernel, linux-arm-kernel
On 1/2/2026 6:00 PM, Krzysztof Kozlowski wrote:
> On Wed, Dec 31, 2025 at 10:21:00PM +0530, Beleswar Padhi wrote:
>> 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.
> A nit, subject: drop second/last, redundant "bindings for". The
> "dt-bindings" prefix is already stating that these are bindings.
> See also:
> https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
>
>> Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
>> ---
>> .../bindings/remoteproc/ti,k3-hsm-rproc.yaml | 79 +++++++++++++++++++
>> 1 file changed, 79 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>> new file mode 100644
>> index 0000000000000..f61e4046843af
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
> Filename must match the compatible. Are you sure you are following
> internal TI guidelines? Did you read them?
Will address all comments in v2. Most of these issues exist with other
upstreamed TI dt-bindings as well, will send out a separate cleanup
series for those too.
>
>> @@ -0,0 +1,79 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/remoteproc/ti,k3-hsm-rproc.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: TI K3 HSM M4F processor subsystems
>> +
>> +maintainers:
>> + - Beleswar Padhi <b-padhi@ti.com>
>> +
>> +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
>> +
>> + "#address-cells":
>> + const: 2
>> +
>> + "#size-cells":
>> + const: 2
> Why do you need these two properties?
Not needed. Got carried with from existing bindings.
Thanks,
Beleswar
>
>> +
>> + reg:
> reg is always the second property. Please read DTS coding style.
>
>> + 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
>> + description: Name of firmware to load for the HSM core
> Drop description. Can it be anything else than name of the firmware to
> load?
>
>> +
>> +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";
> Make the binding complete. All properties must be listed.
>
>> + ti,sci = <&sms>;
>> + ti,sci-dev-id = <225>;
>> + ti,sci-proc-ids = <0x80 0xff>;
>> + };
> Messed indentation.
>
>> + };
>> --
>> 2.34.1
>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs
2026-01-05 5:56 ` Padhi, Beleswar
@ 2026-01-05 7:10 ` Krzysztof Kozlowski
2026-01-05 7:28 ` Padhi, Beleswar
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-05 7:10 UTC (permalink / raw)
To: Padhi, Beleswar
Cc: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo, afd, u-kumar1, hnagalla, linux-remoteproc,
devicetree, linux-kernel, linux-arm-kernel
On 05/01/2026 06:56, Padhi, Beleswar wrote:
>
> On 1/2/2026 6:00 PM, Krzysztof Kozlowski wrote:
>> On Wed, Dec 31, 2025 at 10:21:00PM +0530, Beleswar Padhi wrote:
>>> 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.
>> A nit, subject: drop second/last, redundant "bindings for". The
>> "dt-bindings" prefix is already stating that these are bindings.
>> See also:
>> https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
>>
>>> Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
>>> ---
>>> .../bindings/remoteproc/ti,k3-hsm-rproc.yaml | 79 +++++++++++++++++++
>>> 1 file changed, 79 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>>> new file mode 100644
>>> index 0000000000000..f61e4046843af
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>> Filename must match the compatible. Are you sure you are following
>> internal TI guidelines? Did you read them?
>
>
> Will address all comments in v2. Most of these issues exist with other
> upstreamed TI dt-bindings as well, will send out a separate cleanup
> series for those too.
This was not my question. Are you following carefully internal TI
guidelines to avoid common mistakes?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs
2026-01-05 7:10 ` Krzysztof Kozlowski
@ 2026-01-05 7:28 ` Padhi, Beleswar
0 siblings, 0 replies; 8+ messages in thread
From: Padhi, Beleswar @ 2026-01-05 7:28 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: andersson, mathieu.poirier, robh, krzk+dt, conor+dt, nm,
vigneshr, kristo, afd, u-kumar1, hnagalla, linux-remoteproc,
devicetree, linux-kernel, linux-arm-kernel
On 1/5/2026 12:40 PM, Krzysztof Kozlowski wrote:
> On 05/01/2026 06:56, Padhi, Beleswar wrote:
>> On 1/2/2026 6:00 PM, Krzysztof Kozlowski wrote:
>>> On Wed, Dec 31, 2025 at 10:21:00PM +0530, Beleswar Padhi wrote:
>>>> 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.
>>> A nit, subject: drop second/last, redundant "bindings for". The
>>> "dt-bindings" prefix is already stating that these are bindings.
>>> See also:
>>> https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
>>>
>>>> Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
>>>> ---
>>>> .../bindings/remoteproc/ti,k3-hsm-rproc.yaml | 79 +++++++++++++++++++
>>>> 1 file changed, 79 insertions(+)
>>>> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>>>> new file mode 100644
>>>> index 0000000000000..f61e4046843af
>>>> --- /dev/null
>>>> +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-hsm-rproc.yaml
>>> Filename must match the compatible. Are you sure you are following
>>> internal TI guidelines? Did you read them?
>>
>> Will address all comments in v2. Most of these issues exist with other
>> upstreamed TI dt-bindings as well, will send out a separate cleanup
>> series for those too.
> This was not my question. Are you following carefully internal TI
> guidelines to avoid common mistakes?
Yes I did. All of the internal guidelines & tests passed with my patches
and only then I submitted this series. That guideline does not have
this check which is why it didn't complain for the older bindings too,
which don't follow this rule:
https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/remoteproc/ti%2Ck3-m4f-rproc.yaml
https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/remoteproc/ti%2Ck3-dsp-rproc.yaml
https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/remoteproc/ti%2Ck3-r5f-rproc.yaml
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-01-05 7:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-31 16:50 [PATCH 0/3] Add TI K3 HSM M4F nodes in device-tree Beleswar Padhi
2025-12-31 16:51 ` [PATCH 1/3] dt-bindings: remoteproc: Add bindings for HSM core on TI K3 SoCs Beleswar Padhi
2026-01-02 12:30 ` Krzysztof Kozlowski
2026-01-05 5:56 ` Padhi, Beleswar
2026-01-05 7:10 ` Krzysztof Kozlowski
2026-01-05 7:28 ` Padhi, Beleswar
2025-12-31 16:51 ` [PATCH 2/3] arm64: dts: ti: k3-{j784s4-j742s2/j721s2}-mcu-wakeup: Add HSM M4F node Beleswar Padhi
2025-12-31 16:51 ` [PATCH 3/3] arm64: dts: ti: k3-am62p-j722s-common-main: " Beleswar Padhi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®