From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: trini@konsulko.com, etienne.carriere@st.com, u-boot@lists.denx.de
Subject: Re: [PATCH 3/4] sandbox: add SCMI power domain protocol support for testing
Date: Tue, 3 Oct 2023 09:22:45 +0900 [thread overview]
Message-ID: <ZRte1Xr0c0rS7K1w@octopus> (raw)
In-Reply-To: <CAPnjgZ20qGzZD=jNh0c2cucN-M8AKnvSh_kD0bL9=JeCC+doLA@mail.gmail.com>
Hi Simon,
Thank you for the review.
On Sun, Oct 01, 2023 at 07:17:17PM -0600, Simon Glass wrote:
> Hi AKASHI,
>
> On Tue, 26 Sept 2023 at 01:01, AKASHI Takahiro
> <takahiro.akashi@linaro.org> wrote:
> >
> > SCMI power domain management protocol is supported on sandbox
> > for test purpose. Add fake agent interfaces and associated
> > power domain devices.
> >
> > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> > ---
> > arch/sandbox/dts/test.dts | 6 +
> > arch/sandbox/include/asm/scmi_test.h | 20 ++
> > configs/sandbox_defconfig | 1 +
> > drivers/firmware/scmi/sandbox-scmi_agent.c | 265 ++++++++++++++++++-
> > drivers/firmware/scmi/sandbox-scmi_devices.c | 10 +
> > 5 files changed, 301 insertions(+), 1 deletion(-)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> nit below
>
> >
> > diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
> > index 36de6a37cf6d..38fcf42cd23d 100644
> > --- a/arch/sandbox/dts/test.dts
> > +++ b/arch/sandbox/dts/test.dts
> > @@ -693,6 +693,11 @@
> > #address-cells = <1>;
> > #size-cells = <0>;
> >
> > + pwrdom_scmi: protocol@11 {
> > + reg = <0x11>;
> > + #power-domain-cells = <1>;
> > + };
> > +
> > clk_scmi: protocol@14 {
> > reg = <0x14>;
> > #clock-cells = <1>;
> > @@ -1589,6 +1594,7 @@
> >
> > sandbox_scmi {
> > compatible = "sandbox,scmi-devices";
> > + power-domains = <&pwrdom_scmi 2>;
> > clocks = <&clk_scmi 2>, <&clk_scmi 0>;
> > resets = <&reset_scmi 3>;
> > regul0-supply = <®ul0_scmi>;
> > diff --git a/arch/sandbox/include/asm/scmi_test.h b/arch/sandbox/include/asm/scmi_test.h
> > index ccb0df6c148f..1b0f4464b98f 100644
> > --- a/arch/sandbox/include/asm/scmi_test.h
> > +++ b/arch/sandbox/include/asm/scmi_test.h
> > @@ -6,10 +6,21 @@
> > #ifndef __SANDBOX_SCMI_TEST_H
> > #define __SANDBOX_SCMI_TEST_H
> >
> > +#include <power-domain.h>
> > +
> > struct udevice;
> > struct sandbox_scmi_agent;
> > struct sandbox_scmi_service;
> >
> > +/**
> > + * struct sandbox_scmi_pwd
> > + * @id: Identifier of the power domain used in the SCMI protocol
>
> @pstate ?
Yes, I will add a comment.
-Takahiro Akashi
> > + */
> > +struct sandbox_scmi_pwd {
> > + uint id;
> > + u32 pstate;
> > +};
> > +
> > /**
> > * struct sandbox_scmi_clk - Simulated clock exposed by SCMI
> > * @id: Identifier of the clock used in the SCMI protocol
> > @@ -45,6 +56,8 @@ struct sandbox_scmi_voltd {
> >
>
> [..]
>
> Regards,
> Simon
next prev parent reply other threads:[~2023-10-03 0:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 7:00 [PATCH 0/4] firmware: scmi: add SCMI power domain protocol support AKASHI Takahiro
2023-09-26 7:00 ` [PATCH 1/4] firmware: scmi: add " AKASHI Takahiro
2023-09-26 7:00 ` [PATCH 2/4] power: domain: add SCMI driver AKASHI Takahiro
2023-09-26 7:00 ` [PATCH 3/4] sandbox: add SCMI power domain protocol support for testing AKASHI Takahiro
2023-10-02 1:17 ` Simon Glass
2023-10-03 0:22 ` AKASHI Takahiro [this message]
2023-09-26 7:00 ` [PATCH 4/4] test: dm: add SCMI power domain protocol test AKASHI Takahiro
2023-10-02 1:17 ` Simon Glass
2023-10-14 1:20 ` Tom Rini
2023-10-16 1:59 ` AKASHI Takahiro
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=ZRte1Xr0c0rS7K1w@octopus \
--to=takahiro.akashi@linaro.org \
--cc=etienne.carriere@st.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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.