aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Dessenne <fabien.dessenne@st.com>2018-05-31 04:27:24 -0400
committerJassi Brar <jaswinder.singh@linaro.org>2018-06-06 12:51:44 -0400
commit8f51bb7caeb3731f3fff39109a45ed2c484dd30a (patch)
tree09899f86a3e2b3b6ff74b7cc2c413e80733aac9a
parent19ed70c0b329497bdff48e9c3d5dbadcecf1ea02 (diff)
dt-bindings: mailbox: add STMicroelectronics STM32 IPCC binding
Add a binding for the STMicroelectronics STM32 IPCC block exposing a mailbox mechanism between two processors. Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Ludovic Barre <ludovic.barre@st.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt b/Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt
new file mode 100644
index 000000000000..1d2b7fee7b85
--- /dev/null
+++ b/Documentation/devicetree/bindings/mailbox/stm32-ipcc.txt
@@ -0,0 +1,47 @@
1* STMicroelectronics STM32 IPCC (Inter-Processor Communication Controller)
2
3The IPCC block provides a non blocking signaling mechanism to post and
4retrieve messages in an atomic way between two processors.
5It provides the signaling for N bidirectionnal channels. The number of channels
6(N) can be read from a dedicated register.
7
8Required properties:
9- compatible: Must be "st,stm32mp1-ipcc"
10- reg: Register address range (base address and length)
11- st,proc-id: Processor id using the mailbox (0 or 1)
12- clocks: Input clock
13- interrupt-names: List of names for the interrupts described by the interrupt
14 property. Must contain the following entries:
15 - "rx"
16 - "tx"
17 - "wakeup"
18- interrupts: Interrupt specifiers for "rx channel occupied", "tx channel
19 free" and "system wakeup".
20- #mbox-cells: Number of cells required for the mailbox specifier. Must be 1.
21 The data contained in the mbox specifier of the "mboxes"
22 property in the client node is the mailbox channel index.
23
24Optional properties:
25- wakeup-source: Flag to indicate whether this device can wake up the system
26
27
28
29Example:
30 ipcc: mailbox@4c001000 {
31 compatible = "st,stm32mp1-ipcc";
32 #mbox-cells = <1>;
33 reg = <0x4c001000 0x400>;
34 st,proc-id = <0>;
35 interrupts-extended = <&intc GIC_SPI 100 IRQ_TYPE_NONE>,
36 <&intc GIC_SPI 101 IRQ_TYPE_NONE>,
37 <&aiec 62 1>;
38 interrupt-names = "rx", "tx", "wakeup";
39 clocks = <&rcc_clk IPCC>;
40 wakeup-source;
41 }
42
43Client:
44 mbox_test {
45 ...
46 mboxes = <&ipcc 0>, <&ipcc 1>;
47 };