All of lore.kernel.org
 help / color / mirror / Atom feed
From: leonard.crestez@nxp.com (Leonard Crestez)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4 0/5] soc: imx: add scu firmware api support
Date: Thu, 12 Jul 2018 15:29:49 +0300	[thread overview]
Message-ID: <c12939870af73a9a8d590a558a3ca7d070fd0b69.camel@nxp.com> (raw)
In-Reply-To: <73f7f126-6497-7ae9-49b2-082fbc18508d@arm.com>

On Thu, 2018-07-12 at 11:32 +0100, Sudeep Holla wrote:
> On 12/07/18 04:46, A.s. Dong wrote:
> > Hi Sudeep,
> > > On 08/07/18 15:56, Dong Aisheng wrote:
> > > > Unlike the former i.MX Architectures, the new generation i.MX8 SoCs
> > > > (e.g. MX8QXP and MX8QM) contain a system controller which runs on a
> > > > dedicated Cortex-M core to provide power, clock, Pad, and resource
> > > > management. Communication between the host processor running an OS and
> > > > the system controller happens through a SCU protocol.
> > > > This patchset adds the SCU APIs which is implemented based on MU and
> > > > will be used by different system components.
> > > > 
> > > > It mainly consists of below parts:
> > > > 1) MU mailbox driver
> > > > 1) Implementation of the IPC functions based on MUs (client side).
> > > 
> > > I do understand the firmware might be already released for the current
> > > generation of platforms, but instead of adding to the fragmentation, it would
> > > be good to migrated to ARM SCMI for future platforms.
> > > 
> > > This system controller communication protocol is already so fragmented (we
> > > have TI SCI, QCOM RPM, Nvidia Tegra BPMP, ARM SCPI and so on..
> > > and now this i.MX specific one added to that), the main intention of ARM
> > > SCMI is to stop that. The idea is for any Power Control System
> > > Architecture(PCSA) compliant systems or any similar systems, SCMI should
> > > be the standard communication protocol.
> > 
> > That sounds good and worth a look.
> > Copy SCU firmware guys if more comments.
> > BTW, i.MX SCU provides more services than just power related. 
> > Not sure if ARM SCMI can cover it.
> 
> Sure, we can extend the specification to cover those as generic
> protocols. If they are too NXP specific, then SCMI has options to
> use vendor specific protocols. I am interested to know the requirements.

On major thing that is missing is pin control: on 8qm/8qx this is done
through the SCU but SCMI doesn't define a protocol for this. It would
be a big thing to implement as a vendor extension and is required for
basic functionality. Maybe SCMI will handle this in the future? If SCMI
eventually includes this imx might be asked to rewrite the vendor-
specific stuff anyway.

Another issue is that there doesn't seem to be any way to implement
clk_set_parent through SCMI (SC API does have this). This might be
intentional ("protocol does not cover discovery of clock dependencies,
which must be described through firmware tables instead"). But how
would the "assigned-clock-parents" DT property be implemented through
SCMI?

Even if SCMI doesn't define a clock tree it might be still have
something for explicit clk mux control?

One possible path to eventually using SCMI would be to define a SMC
"transport" and implement SCMI calls inside ATF on top of SC API. This
way ATF would hide clk implementation details in the same way that it
hides hotplug and suspend details. Does this make sense?

      reply	other threads:[~2018-07-12 12:29 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-08 14:56 [PATCH V4 0/5] soc: imx: add scu firmware api support Dong Aisheng
2018-07-08 14:56 ` [PATCH V4 1/5] dt-bindings: mailbox: allow mbox-cells to be equal to 0 Dong Aisheng
2018-07-08 14:56   ` Dong Aisheng
2018-07-08 14:56 ` [PATCH V4 2/5] dt-bindings: arm: fsl: add mu binding doc Dong Aisheng
2018-07-08 14:56   ` Dong Aisheng
2018-07-11 15:09   ` Rob Herring
2018-07-11 15:09     ` Rob Herring
2018-07-08 14:56 ` [PATCH V4 3/5] mailbox: imx: add imx mu support Dong Aisheng
2018-07-08 14:56   ` Dong Aisheng
2018-07-10 14:19   ` Sascha Hauer
2018-07-10 14:19     ` Sascha Hauer
2018-07-11  7:29     ` A.s. Dong
2018-07-11  7:29       ` A.s. Dong
2018-07-11  7:54       ` Sascha Hauer
2018-07-11  7:54         ` Sascha Hauer
2018-07-11 10:37         ` A.s. Dong
2018-07-11 10:37           ` A.s. Dong
2018-07-11 10:44           ` Jassi Brar
2018-07-11 10:44             ` Jassi Brar
2018-07-11 12:58             ` A.s. Dong
2018-07-11 12:58               ` A.s. Dong
2018-07-11 16:31               ` Jassi Brar
2018-07-11 16:31                 ` Jassi Brar
2018-07-11 16:41                 ` A.s. Dong
2018-07-11 16:41                   ` A.s. Dong
2018-07-11 17:00                   ` Jassi Brar
2018-07-11 17:00                     ` Jassi Brar
2018-07-12  4:06                     ` A.s. Dong
2018-07-12  4:06                       ` A.s. Dong
2018-07-11 13:30       ` Peng Fan
2018-07-11 13:30         ` Peng Fan
2018-07-08 14:56 ` [PATCH V4 4/5] dt-bindings: arm: fsl: add scu binding doc Dong Aisheng
2018-07-08 14:56   ` Dong Aisheng
2018-07-11 15:08   ` Rob Herring
2018-07-11 15:08     ` Rob Herring
2018-07-12 11:04     ` A.s. Dong
2018-07-12 11:04       ` A.s. Dong
2018-07-08 14:56 ` [PATCH V4 5/5] soc: imx: add SC firmware IPC and APIs Dong Aisheng
2018-07-10 14:44   ` Sascha Hauer
2018-07-11  9:18     ` A.s. Dong
2018-07-11 10:31       ` Sascha Hauer
2018-07-11 11:27         ` A.s. Dong
2018-07-11 16:49 ` [PATCH V4 0/5] soc: imx: add scu firmware api support Sudeep Holla
2018-07-12  3:46   ` A.s. Dong
2018-07-12 10:32     ` Sudeep Holla
2018-07-12 12:29       ` Leonard Crestez [this message]

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=c12939870af73a9a8d590a558a3ca7d070fd0b69.camel@nxp.com \
    --to=leonard.crestez@nxp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.