Skip to content

Commit 5891932

Browse files
KartikJassiBrar
authored andcommitted
dt-bindings: tegra186-hsp: add type for shared mailboxes
Tegra234 supports sending/receiving 32-bit and 128-bit data over a shared mailbox. Based on the data size to be used, clients need to specify the type of shared mailbox in the device tree. Add a macro for 128-bit shared mailbox. Mailbox clients can use this macro as a flag in device tree to enable 128-bit data support for a shared mailbox. Signed-off-by: Kartik <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 8f585d1 commit 5891932

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ description: |
2626
second cell is used to identify the mailbox that the client is going
2727
to use.
2828
29+
For shared mailboxes, the first cell composed of two fields:
30+
- bits 15..8:
31+
A bit mask of flags that further specifies the type of shared
32+
mailbox to be used (based on the data size). If no flag is
33+
specified then, 32-bit shared mailbox is used.
34+
- bits 7..0:
35+
Defines the type of the mailbox to be used. This field should be
36+
TEGRA_HSP_MBOX_TYPE_SM for shared mailboxes.
37+
2938
For doorbells, the second cell specifies the index of the doorbell to
3039
use.
3140

include/dt-bindings/mailbox/tegra186-hsp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
#define TEGRA_HSP_MBOX_TYPE_SS 0x2
1616
#define TEGRA_HSP_MBOX_TYPE_AS 0x3
1717

18+
/*
19+
* These define the types of shared mailbox supported based on data size.
20+
*/
21+
#define TEGRA_HSP_MBOX_TYPE_SM_128BIT (1 << 8)
22+
1823
/*
1924
* These defines represent the bit associated with the given master ID in the
2025
* doorbell registers.

0 commit comments

Comments
 (0)