Based on kernel version 6.11
. Page generated on 2024-09-24 08:21 EST
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/mailbox/nvidia,tegra186-hsp.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: NVIDIA Tegra Hardware Synchronization Primitives (HSP) maintainers: - Thierry Reding <thierry.reding@gmail.com> - Jon Hunter <jonathanh@nvidia.com> description: | The HSP modules are used for the processors to share resources and communicate together. It provides a set of hardware synchronization primitives for interprocessor communication. So the interprocessor communication (IPC) protocols can use hardware synchronization primitives, when operating between two processors not in an SMP relationship. The features that HSP supported are shared mailboxes, shared semaphores, arbitrated semaphores and doorbells. The mbox specifier of the "mboxes" property in the client node should contain two cells. The first cell determines the HSP type and the second cell is used to identify the mailbox that the client is going to use. For shared mailboxes, the first cell composed of two fields: - bits 15..8: A bit mask of flags that further specifies the type of shared mailbox to be used (based on the data size). If no flag is specified then, 32-bit shared mailbox is used. - bits 7..0: Defines the type of the mailbox to be used. This field should be TEGRA_HSP_MBOX_TYPE_SM for shared mailboxes. For doorbells, the second cell specifies the index of the doorbell to use. For shared mailboxes, the second cell is composed of two fields: - bits 31..24: A bit mask of flags that further specify how the shared mailbox will be used. Valid flags are: - bit 31: Defines the direction of the mailbox. If set, the mailbox will be used as a producer (i.e. used to send data). If cleared, the mailbox is the consumer of data sent by a producer. - bits 23..0: The index of the shared mailbox to use. The number of available mailboxes may vary by instance of the HSP block and SoC generation. The following file contains definitions that can be used to construct mailbox specifiers: <dt-bindings/mailbox/tegra186-hsp.h> properties: $nodename: pattern: "^hsp@[0-9a-f]+$" compatible: oneOf: - const: nvidia,tegra186-hsp - const: nvidia,tegra194-hsp - const: nvidia,tegra264-hsp - items: - const: nvidia,tegra234-hsp - const: nvidia,tegra194-hsp reg: maxItems: 1 interrupts: minItems: 1 maxItems: 9 interrupt-names: oneOf: # shared interrupts are optional - items: - const: doorbell - items: - const: doorbell - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - items: - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" - pattern: "^shared[0-7]$" "#mbox-cells": const: 2 additionalProperties: false examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/mailbox/tegra186-hsp.h> hsp_top0: hsp@3c00000 { compatible = "nvidia,tegra186-hsp"; reg = <0x03c00000 0xa0000>; interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "doorbell"; #mbox-cells = <2>; }; client { mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_CCPLEX>; }; |