Add support for TDA54 variant secproxy controllers
Subsystems (2)
cover Add support for TDA54 variant secproxy controllers
Add support for the secure proxy mailbox controller integrated in the MAIN voltage domain of the TI TDA54 SoC, which features up to 444 threads with 60-byte messages per thread.
Add a new compatible in dt-bindings and add the device data in the ti-msgmgr mbox driver for the same.
Testing done:
- Build and Boot tested on TI K2 and K3 platforms.
- Tested that these patches do not generate new warnings or errors.
Test logs:
https://gist.github.com/3V3RYONE/8cb2e49ddd902180a920730b7a5c8016
Thanks,
Beleswar
Beleswar Padhi (2):
dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
mailbox: ti-msgmgr: Add ti,tda54-main-secure-proxy support
.../bindings/mailbox/ti,secure-proxy.yaml | 4 ++- drivers/mailbox/ti-msgmgr.c | 33 +++++++++++++++---- 2 files changed, 29 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
Add the ti,tda54-main-secure-proxy compatible for the secure proxy mailbox controller integrated in the MAIN voltage domain of the TI TDA54 SoC, which features up to 444 threads with 60-byte messages per thread.
The number of threads is fixed at SoC integration and cannot be discovered at runtime, therefore a separate compatible is needed.
---
Cc: Jassi Brar <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: [email protected]
Cc: [email protected]
.../devicetree/bindings/mailbox/ti,secure-proxy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml +3 -1
@@ -22,7 +22,9 @@ properties: pattern: "^mailbox@[0-9a-f]+$" compatible: - const: ti,am654-secure-proxy + enum: + - ti,am654-secure-proxy + - ti,tda54-main-secure-proxy "#mbox-cells": const: 1
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH 1/2] dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] dt-bindings: mailbox: ti,secure-proxy: interrupt maxItems limits TDA54 threads --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: mailbox: ti,secure-proxy: interrupt maxItems limits TDA54 threads --
commit 462da78495412d18a7d7ecfb35e5147704655806
Author: Beleswar Padhi <[email protected]>
dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
This commit adds the ti,tda54-main-secure-proxy compatible to the Texas Instruments secure proxy mailbox controller binding. The new TDA54 variant features up to 444 threads with 60-byte messages per thread.
Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml properties: · line 27
Quoted 12 lines
Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml +3
-1@@ -22,7 +22,9 @@ properties: pattern: "^mailbox@[0-9a-f]+$" compatible: - const: ti,am654-secure-proxy + enum: + - ti,am654-secure-proxy + - ti,tda54-main-secure-proxy
[Severity: Low]
Does the addition of this compatible require updating the maximum number of allowed interrupts in the schema?
The commit message notes that the TDA54 hardware supports up to 444 threads. However, the existing properties limit both interrupts and interrupt-names to a maximum of 100 items:
interrupt-names:
minItems: 1
maxItems: 100interrupts:
minItems: 1
maxItems: 100If a device tree for the new variant specifies more than 100 receive interrupts, won't it fail schema validation?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH 1/2] dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
Quoted 20 lines · On 9/30/2026 11:12 PM, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: mailbox: ti,secure-proxy: interrupt maxItems limits TDA54 threads --commit
462da78495412d18a7d7ecfb35e5147704655806
Author: Beleswar Padhi <[email protected]>dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
This commit adds the ti,tda54-main-secure-proxy compatible to the Texas Instruments secure proxy mailbox controller binding. The new TDA54 variant features up to 444 threads with 60-byte messages per thread.
Quoted 7 lines
Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml +0
-0@@ -22,7 +22,9 @@ properties: pattern: "^mailbox@[0-9a-f]+$"
Quoted 8 lines
Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml properties: · line 27
Quoted 5 lines
Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml +3
-1compatible: - const: ti,am654-secure-proxy + enum: + - ti,am654-secure-proxy + - ti,tda54-main-secure-proxy[Severity: Low]
Does the addition of this compatible require updating the maximum number of allowed interrupts in the schema?
No.
Quoted 4 lines
The commit message notes that the TDA54 hardware supports up to 444 threads. However, the existing properties limit both interrupts and interrupt-names to a maximum of 100 items:
The hardware has 444 threads for different clients. Linux/HLOS being 1 client uses 1 thread and therefore 1 interrupt.
Quoted 11 lines
interrupt-names: minItems: 1 maxItems: 100 interrupts: minItems: 1 maxItems: 100If a device tree for the new variant specifies more than 100 receive interrupts, won't it fail schema validation?
Not going to happen.
Thanks,
Beleswar
Re: [PATCH 1/2] dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
In reply to Beleswar Padhipw-bot: not-applicable
PATCH 2/2 mailbox: ti-msgmgr: Add ti,tda54-main-secure-proxy support
In reply to Beleswar PadhiAdd support for the TDA54 secure proxy mailbox controller integrated in the MAIN voltage domain. This instance supports up to 444 threads with 60-byte messages per thread. Add the corresponding device data for the ti,tda54-main-secure-proxy compatible.
While at it, update some internal variable types from u8 to u16 to hold values up to 444.
--- drivers/mailbox/ti-msgmgr.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-)
drivers/mailbox/ti-msgmgr.c +26 -7
@@ -44,8 +44,8 @@* @is_tx: Is this a receive path? */ struct ti_msgmgr_valid_queue_desc { -u8 queue_id; -u8 proxy_id; +u16 queue_id; +u16 proxy_id;bool is_tx; };
@@ -71,7 +71,7 @@ struct ti_msgmgr_valid_queue_desc {* for a specific compatible SoC is done. */ struct ti_msgmgr_desc { -u8 queue_count; +u16 queue_count;u8 max_message_size;u8 max_messages;u8 data_first_reg;
@@ -105,8 +105,8 @@ struct ti_msgmgr_desc {*/ struct ti_queue_inst {char name[30 ]; -u8 queue_id; -u8 proxy_id; +u16 queue_id; +u16 proxy_id;int irq;bool is_tx;void __iomem *queue_buff_start;
@@ -138,7 +138,7 @@ struct ti_msgmgr_inst {void __iomem *queue_proxy_region;void __iomem *queue_state_debug_region;void __iomem *queue_ctrl_region; -u8 num_valid_queues; +u16 num_valid_queues;struct ti_queue_inst *qinsts;struct mbox_controller mbox;struct mbox_chan *chans;
@@ -466,7 +466,11 @@ static int ti_msgmgr_queue_rx_irq_req(struct device *dev, struct mbox_chan *chan) {int ret =0 ; -char of_rx_irq_name[7 ]; +/* +* To keep compiler happy about u16 proxy_id: +* "rx_" + up to 5 digits of u16 id + NULL +*/ +char of_rx_irq_name[9 ];struct device_node *np; snprintf(of_rx_irq_name, sizeof(of_rx_irq_name),
@@ -799,9 +803,24 @@ static const struct ti_msgmgr_desc am654_desc = { .is_sproxy = true, }; +static const struct ti_msgmgr_desc tda54_main_desc = { + .queue_count =444 , + .num_valid_queues =444 , + .max_message_size =60 , + .data_region_name ="target_data" , + .status_region_name ="rt" , + .ctrl_region_name ="scfg" , + .data_first_reg =0 , + .data_last_reg =14 , + .status_cnt_mask =SPROXY_THREAD_STATUS_COUNT_MASK , + .tx_polled = false, + .is_sproxy = true, +}; +static const struct of_device_id ti_msgmgr_of_match[] = { {.compatible ="ti,k2g-message-manager" , .data = &k2g_desc}, {.compatible ="ti,am654-secure-proxy" , .data = &am654_desc}, + {.compatible ="ti,tda54-main-secure-proxy" , .data = &tda54_main_desc}, {/* Sentinel */ } };
Signature · 1 line
2.34.1
Quoted 30 lines · Beleswar Padhi
Add support for the secure proxy mailbox controller integrated in the MAIN voltage domain of the TI TDA54 SoC, which features up to 444 threads with 60-byte messages per thread.
Add a new compatible in dt-bindings and add the device data in the ti-msgmgr mbox driver for the same.
Testing done:
- Build and Boot tested on TI K2 and K3 platforms.
- Tested that these patches do not generate new warnings or errors.Test logs:
https://gist.github.com/3V3RYONE/8cb2e49ddd902180a920730b7a5c8016Cc Jassi Brar <[email protected]>Cc Rob Herring <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Conor Dooley <[email protected]>Cc Nishanth Menon <[email protected]>Thanks,
BeleswarBeleswar Padhi (2):
dt-bindings: mailbox: ti,secure-proxy: Add TDA54 variant compatible
mailbox: ti-msgmgr: Add ti,tda54-main-secure-proxy support
Quoted 7 lines
.../bindings/mailbox/ti,secure-proxy.yaml | 4 ++- drivers/mailbox/ti-msgmgr.c | 33 +++++++++++++++---- 2 files changed, 29 insertions(+), 8 deletions(-)--
2.34.1
Applied to mailbox/for-next
Thanks
Jassi