[0/2] mailbox: imx: support new tx doorbell

Message ID 20230917-imx95-mbox-v1-0-440245287356@nxp.com
Headers
Series mailbox: imx: support new tx doorbell |

Message

Peng Fan (OSS) Sept. 17, 2023, 12:43 p.m. UTC
  The new added channel type is for i.MX95 SCMI mailbox usage.

i.MX95 using TX doorbell and RX doorbell for the SCMI mailbox transport.
For TX doorbell, we relies on software reply from the other side in
SCMI driver side using mbox_client_txdone to drive the tx tick.

But the current MU tx doorbell using tasklet to emulate hardware ACK
from mailbox driver side, so add a new doorbell type to support i.MX95
SCMI mailbox transport.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (2):
      dt-bindings: mailbox: fsl,mu: add new tx doorbell channel
      mailbox: imx: support channel type tx doorbell v2

 .../devicetree/bindings/mailbox/fsl,mu.yaml        |  5 ++--
 drivers/mailbox/imx-mailbox.c                      | 32 ++++++++++++++++++++--
 2 files changed, 32 insertions(+), 5 deletions(-)
---
base-commit: e143016b56ecb0fcda5bb6026b0a25fe55274f56
change-id: 20230916-imx95-mbox-88437c51ce54

Best regards,
  

Comments

Peng Fan Oct. 11, 2023, 11:32 p.m. UTC | #1
Hi Jassi,

> Subject: [PATCH 0/2] mailbox: imx: support new tx doorbell

Would you pick up this patchset? Or any comments?

Thanks,
Peng.

> 
> The new added channel type is for i.MX95 SCMI mailbox usage.
> 
> i.MX95 using TX doorbell and RX doorbell for the SCMI mailbox transport.
> For TX doorbell, we relies on software reply from the other side in SCMI driver
> side using mbox_client_txdone to drive the tx tick.
> 
> But the current MU tx doorbell using tasklet to emulate hardware ACK from
> mailbox driver side, so add a new doorbell type to support i.MX95 SCMI
> mailbox transport.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
> Peng Fan (2):
>       dt-bindings: mailbox: fsl,mu: add new tx doorbell channel
>       mailbox: imx: support channel type tx doorbell v2
> 
>  .../devicetree/bindings/mailbox/fsl,mu.yaml        |  5 ++--
>  drivers/mailbox/imx-mailbox.c                      | 32 ++++++++++++++++++++--
>  2 files changed, 32 insertions(+), 5 deletions(-)
> ---
> base-commit: e143016b56ecb0fcda5bb6026b0a25fe55274f56
> change-id: 20230916-imx95-mbox-88437c51ce54
> 
> Best regards,
> --
> Peng Fan <peng.fan@nxp.com>
  
Daniel Baluta Oct. 12, 2023, 12:26 p.m. UTC | #2
On Sun, Sep 17, 2023 at 7:55 PM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote:
>
> The new added channel type is for i.MX95 SCMI mailbox usage.
>
> i.MX95 using TX doorbell and RX doorbell for the SCMI mailbox transport.
> For TX doorbell, we relies on software reply from the other side in
> SCMI driver side using mbox_client_txdone to drive the tx tick.
>
> But the current MU tx doorbell using tasklet to emulate hardware ACK
> from mailbox driver side, so add a new doorbell type to support i.MX95
> SCMI mailbox transport.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>


> ---
> Peng Fan (2):
>       dt-bindings: mailbox: fsl,mu: add new tx doorbell channel
>       mailbox: imx: support channel type tx doorbell v2
>
>  .../devicetree/bindings/mailbox/fsl,mu.yaml        |  5 ++--
>  drivers/mailbox/imx-mailbox.c                      | 32 ++++++++++++++++++++--
>  2 files changed, 32 insertions(+), 5 deletions(-)
> ---
> base-commit: e143016b56ecb0fcda5bb6026b0a25fe55274f56
> change-id: 20230916-imx95-mbox-88437c51ce54
>
> Best regards,
> --
> Peng Fan <peng.fan@nxp.com>
>