From: jassisinghbrar@gmail.com (Jassi Brar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 1/6] dt-bindings: mailbox: allow mbox-cells to be equal to 0
Date: Thu, 26 Jul 2018 17:34:35 +0530 [thread overview]
Message-ID: <CABb+yY2uLgrJ9-NUnoXYXCqQ7_sQyWxF=wRQFM+cja0HbBox4A@mail.gmail.com> (raw)
In-Reply-To: <AM0PR04MB4211F722024F7F183774D592802B0@AM0PR04MB4211.eurprd04.prod.outlook.com>
On Thu, Jul 26, 2018 at 5:25 PM, A.s. Dong <aisheng.dong@nxp.com> wrote:
>> -----Original Message-----
>> From: Jassi Brar [mailto:jassisinghbrar at gmail.com]
>> Sent: Thursday, July 26, 2018 7:37 PM
>> To: A.s. Dong <aisheng.dong@nxp.com>
>> Cc: Oleksij Rempel <o.rempel@pengutronix.de>; Shawn Guo
>> <shawnguo@kernel.org>; Fabio Estevam <fabio.estevam@nxp.com>; Rob
>> Herring <robh+dt@kernel.org>; Mark Rutland <mark.rutland@arm.com>;
>> Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>; Sudeep Holla
>> <sudeep.holla@arm.com>; Devicetree List <devicetree@vger.kernel.org>;
>> Linux Kernel Mailing List <linux-kernel@vger.kernel.org>; , Sascha Hauer
>> <kernel@pengutronix.de>; , linux-arm-kernel at lists.infradead.org, linux-
>> mediatek at lists.infradead.org, srv_heupstream <linux-arm-
>> kernel at lists.infradead.org>; dl-linux-imx <linux-imx@nxp.com>
>> Subject: Re: [PATCH v7 1/6] dt-bindings: mailbox: allow mbox-cells to be
>> equal to 0
>>
>> On Thu, Jul 26, 2018 at 4:30 PM, A.s. Dong <aisheng.dong@nxp.com> wrote:
>> >> -----Original Message-----
>> >> From: Jassi Brar [mailto:jassisinghbrar at gmail.com]
>> >> Sent: Thursday, July 26, 2018 5:42 PM
>> >> To: Oleksij Rempel <o.rempel@pengutronix.de>
>> >> Cc: Shawn Guo <shawnguo@kernel.org>; Fabio Estevam
>> >> <fabio.estevam@nxp.com>; Rob Herring <robh+dt@kernel.org>; Mark
>> >> Rutland <mark.rutland@arm.com>; A.s. Dong <aisheng.dong@nxp.com>;
>> >> Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>; Sudeep Holla
>> >> <sudeep.holla@arm.com>; Devicetree List <devicetree@vger.kernel.org>;
>> >> Linux Kernel Mailing List <linux-kernel@vger.kernel.org>; , Sascha
>> >> Hauer <kernel@pengutronix.de>; ,
>> >> linux-arm-kernel at lists.infradead.org, linux-
>> >> mediatek at lists.infradead.org, srv_heupstream <linux-arm-
>> >> kernel at lists.infradead.org>; dl-linux-imx <linux-imx@nxp.com>
>> >> Subject: Re: [PATCH v7 1/6] dt-bindings: mailbox: allow mbox-cells to
>> >> be equal to 0
>> >>
>> >> On Thu, Jul 26, 2018 at 12:23 PM, Oleksij Rempel
>> >> <o.rempel@pengutronix.de>
>> >> wrote:
>> >> > From: Dong Aisheng <aisheng.dong@nxp.com>
>> >> >
>> >> > Mailbox devices may have only one channel which means the
>> >> > mbox-cells at least 1 does not make sense for this type devices.
>> >> > Let's remove that limitation to allow the mbox-cells to be equal to 0.
>> >> >
>> >> OK
>> >>
>> >> But please realise that you'll have to write more code -- implement
>> >> your own
>> >> of_xlate() callback.
>> >> Most developers would prefer to call the only channel as channel
>> >> number 0, and use the common of_xlate implementation.
>> >>
>> >
>> > Yes, that's true because the common of_xlate assuming the mbox-cells is 1.
>> > And there's already such users:
>> > arch/arm/boot/dts/bcm283x.dtsi
>> >
>> You mean that is a good thing, right?
>
> No, I mean there's similar HW in kernel already that only has one channel.
> Are you suggesting even for one channel mailbox, we should still use
> Mbox-cells 1 and use 'mboxes = <&mailbox 0>' in devicetree?
>
As i said, I am ok with the mbox-cells to be 0.
But if you have two instances of the controller, one with 4 channels
and the other with 1 channel. Then you can/should not have different
bindings.
And, if the controller can have only 1 channel, then please feel free
to have mbox-cells=0 and implement your own of_xlate().
next prev parent reply other threads:[~2018-07-26 12:04 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 6:53 [PATCH v7 0/6] add mailbox support for i.MX7D Oleksij Rempel
2018-07-26 6:53 ` [PATCH v7 1/6] dt-bindings: mailbox: allow mbox-cells to be equal to 0 Oleksij Rempel
2018-07-26 9:41 ` Jassi Brar
2018-07-26 11:00 ` A.s. Dong
2018-07-26 11:36 ` Jassi Brar
2018-07-26 11:55 ` A.s. Dong
2018-07-26 12:04 ` Jassi Brar [this message]
2018-07-26 6:53 ` [PATCH v7 2/6] dt-bindings: arm: fsl: add mu binding doc Oleksij Rempel
2018-07-26 9:56 ` Jassi Brar
2018-07-26 6:53 ` [PATCH v7 3/6] dt-bindings: mailbox: imx-mu: add generic MU channel support Oleksij Rempel
2018-07-26 9:49 ` Jassi Brar
2018-07-26 10:57 ` Oleksij Rempel
2018-07-26 11:28 ` Jassi Brar
2018-07-26 11:51 ` A.s. Dong
2018-07-26 12:26 ` Jassi Brar
2018-07-26 13:34 ` A.s. Dong
2018-07-26 13:49 ` Jassi Brar
2018-07-26 14:13 ` A.s. Dong
2018-07-26 15:44 ` Jassi Brar
2018-07-27 4:02 ` A.s. Dong
2018-07-27 4:55 ` Jassi Brar
2018-07-27 6:00 ` A.s. Dong
2018-07-27 6:46 ` Jassi Brar
2018-07-27 8:42 ` A.s. Dong
2018-07-27 9:05 ` A.s. Dong
2018-07-28 13:09 ` Jassi Brar
2018-07-30 7:35 ` Oleksij Rempel
2018-07-30 8:42 ` A.s. Dong
2018-07-30 13:04 ` Jassi Brar
2018-07-30 14:14 ` A.s. Dong
2018-07-30 14:27 ` A.s. Dong
2018-07-30 14:17 ` A.s. Dong
2018-07-30 14:44 ` Oleksij Rempel
2018-07-30 15:02 ` Jassi Brar
2018-07-30 15:36 ` A.s. Dong
2018-07-30 16:18 ` Jassi Brar
2018-07-30 16:49 ` Oleksij Rempel
2018-07-31 2:51 ` Jassi Brar
2018-07-31 7:21 ` A.s. Dong
2018-07-31 10:15 ` Jassi Brar
2018-07-31 12:42 ` Jassi Brar
2018-08-02 9:24 ` A.s. Dong
2018-08-09 2:22 ` A.s. Dong
2018-08-09 2:55 ` Jassi Brar
2018-08-09 6:45 ` A.s. Dong
2018-07-30 8:29 ` A.s. Dong
2018-07-30 8:39 ` A.s. Dong
2018-07-26 6:53 ` [PATCH v7 4/6] dt-bindings: mailbox: imx-mu: add i.MX6SX and i.MX7S SoCs Oleksij Rempel
2018-07-26 8:16 ` A.s. Dong
2018-07-26 9:55 ` Jassi Brar
2018-07-26 10:41 ` Lucas Stach
2018-07-26 11:15 ` Jassi Brar
2018-07-26 11:35 ` Lucas Stach
2018-07-26 11:46 ` Jassi Brar
2018-07-26 11:51 ` Vladimir Zapolskiy
2018-07-26 12:00 ` Jassi Brar
2018-07-26 12:10 ` Vladimir Zapolskiy
2018-07-26 11:54 ` Lucas Stach
2018-07-26 11:44 ` Vladimir Zapolskiy
2018-07-26 11:52 ` Jassi Brar
2018-07-26 11:55 ` Vladimir Zapolskiy
2018-07-26 12:10 ` Jassi Brar
2018-07-26 12:41 ` Vladimir Zapolskiy
2018-07-30 22:22 ` Rob Herring
2018-07-31 10:16 ` Jassi Brar
2018-07-31 10:18 ` Jassi Brar
2018-07-26 6:53 ` [PATCH v7 5/6] ARM: dts: imx7s: add i.MX7 messaging unit support Oleksij Rempel
2018-07-26 8:11 ` Lucas Stach
2018-07-26 6:53 ` [PATCH v7 6/6] mailbox: Add support for i.MX7D messaging unit Oleksij Rempel
2018-07-26 8:07 ` Lucas Stach
2018-07-26 10:15 ` Jassi Brar
2018-07-26 10:51 ` Oleksij Rempel
2018-07-26 11:09 ` Jassi Brar
2018-07-26 11:42 ` Oleksij Rempel
2018-07-26 12:17 ` Jassi Brar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABb+yY2uLgrJ9-NUnoXYXCqQ7_sQyWxF=wRQFM+cja0HbBox4A@mail.gmail.com' \
--to=jassisinghbrar@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).