Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <kkartik@nvidia.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Kartik and committed by
Jassi Brar
58919326 8f585d14

+14
+9
Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml
··· 26 26 second cell is used to identify the mailbox that the client is going 27 27 to use. 28 28 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 + 29 38 For doorbells, the second cell specifies the index of the doorbell to 30 39 use. 31 40
+5
include/dt-bindings/mailbox/tegra186-hsp.h
··· 16 16 #define TEGRA_HSP_MBOX_TYPE_AS 0x3 17 17 18 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 + 23 + /* 19 24 * These defines represent the bit associated with the given master ID in the 20 25 * doorbell registers. 21 26 */