Thread (21 messages) 21 messages, 5 authors, 2018-08-02

[PATCH v8 2/4] dt-bindings: mailbox: imx-mu: add generic MU channel support

From: o.rempel@pengutronix.de (Oleksij Rempel)
Date: 2018-08-01 05:05:30
Also in: linux-devicetree

On Tue, Jul 31, 2018 at 09:28:09PM +0530, Jassi Brar wrote:
On Tue, Jul 31, 2018 at 7:41 PM, Oleksij Rempel [off-list ref] wrote:
quoted
Each MU has four pairs of rx/tx data register with four rx/tx interrupts
which can also be used as a separate channel.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 .../devicetree/bindings/mailbox/fsl,mu.txt    | 28 +++++++++++++++++--
 1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/mailbox/fsl,mu.txt b/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
index 90e4905dfc69..9efd3a9ade44 100644
--- a/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
+++ b/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
@@ -18,11 +18,33 @@ Messaging Unit Device Node:
 Required properties:
 -------------------
 - compatible : should be "fsl,<chip>-mu", the supported chips include
-               imx8qxp, imx8qm.
+               imx6sx, imx7s, imx8qxp, imx8qm.
+               The "fsl,imx6sx-mu" compatible is seen as generic and should
+               be included together with SoC specific compatible.
 - reg :                Should contain the registers location and length
 - interrupts : Interrupt number. The interrupt specifier format depends
                on the interrupt controller parent.
-- #mbox-cells:  Must be 0. Number of cells in a mailbox
+- #mbox-cells:  Must be 2.
This seems like modifying the bindings. But since nothing exists yet,
maybe we should merge patch 1 and 2 ?
For some weeks I already asked to squash this patches.. it was not
ACKed. We can try again... @Rob, @Aisheng, should I merge this two
patches?
quoted
+                         <&phandle type channel>
+                           phandle   : Label name of controller
+                           type      : Channel type
+                           channel   : Channel number
+
+               This MU support 4 type of unidirectional channels, each type
+               has 4 channels. A total of 16 channels. Following types are
+               supported:
+               0 - TX channel with 32bit transmit register and IRQ transmit
+               acknowledgment support.
+               1 - RX channel with 32bit receive register and IRQ support
+               2 - TX doorbell channel. Without own register and no ACK support.
+               3 - RX doorbell channel.
Thanks. This is great.
quoted
+               The doorbell channels should be used with shared memory and protocol
+               level acknowledgment if needed.
+
I would avoid this. People might get notions that they have to use
shmem with doorbell -- a trivial protocol might mean doing some fixed
action (like reset) whenever the doorbell rings.
Ok.
quoted
+Optional properties:
+-------------------
+- clocks :     phandle to the input clock.
+- fsl,mu-side-b : Should be set for side B MU.
Nit: can we call this 'fsl,no-init' ?
No. It is HW description and not functionality which is present in
current Linux driver.

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180801/07207792/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help