diff mbox series

[RESEND] dt-bindings: firmware: arm,scmi: support system power protocol

Message ID 20240628030309.1162012-1-peng.fan@oss.nxp.com (mailing list archive)
State New, archived
Headers show
Series [RESEND] dt-bindings: firmware: arm,scmi: support system power protocol | expand

Commit Message

Peng Fan (OSS) June 28, 2024, 3:03 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

Add SCMI System Power Protocol bindings, and the protocol id is 0x12.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Rob Herring July 1, 2024, 5:04 p.m. UTC | #1
On Fri, 28 Jun 2024 11:03:09 +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Add SCMI System Power Protocol bindings, and the protocol id is 0x12.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Sudeep Holla July 4, 2024, 10:40 a.m. UTC | #2
On Fri, Jun 28, 2024 at 11:03:09AM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Add SCMI System Power Protocol bindings, and the protocol id is 0x12.
>

I think we must have this node only if it has dedicated channel or any
other required property.
Peng Fan July 4, 2024, 10:46 a.m. UTC | #3
> Subject: Re: [PATCH RESEND] dt-bindings: firmware: arm,scmi: support
> system power protocol
> 
> On Fri, Jun 28, 2024 at 11:03:09AM +0800, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > Add SCMI System Power Protocol bindings, and the protocol id is
> 0x12.
> >
> 
> I think we must have this node only if it has dedicated channel or any
> other required property.

I posted a patchset to support nodes not in device tree. And 
Cristian gave some comments:
https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/

i.MX95 no need dedicated channel for this node, but others may
have. So I repost this patch, and with this binding change,
the dtbs_check could pass for i.MX95 dts.

Thanks,
Peng.
> 
> --
> Regards,
> Sudeep
Peng Fan July 18, 2024, 12:15 p.m. UTC | #4
Hi Sudeep,

> Subject: RE: [PATCH RESEND] dt-bindings: firmware: arm,scmi: support
> system power protocol
> 
> > Subject: Re: [PATCH RESEND] dt-bindings: firmware: arm,scmi:
> support
> > system power protocol
> >
> > On Fri, Jun 28, 2024 at 11:03:09AM +0800, Peng Fan (OSS) wrote:
> > > From: Peng Fan <peng.fan@nxp.com>
> > >
> > > Add SCMI System Power Protocol bindings, and the protocol id is
> > 0x12.
> > >
> >
> > I think we must have this node only if it has dedicated channel or any
> > other required property.
> 
> I posted a patchset to support nodes not in device tree. And Cristian
> gave some comments:
> https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/
>

Please suggest what should I do to avoid the dtbs_check issue.

Should I switch back to 
https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/
or else?

Thanks,
Peng.

> i.MX95 no need dedicated channel for this node, but others may have.
> So I repost this patch, and with this binding change, the dtbs_check
> could pass for i.MX95 dts.
> 
> Thanks,
> Peng.
> >
> > --
> > Regards,
> > Sudeep
Sudeep Holla July 18, 2024, 2:52 p.m. UTC | #5
On Thu, Jul 18, 2024 at 12:15:20PM +0000, Peng Fan wrote:
> Hi Sudeep,
> 
> > Subject: RE: [PATCH RESEND] dt-bindings: firmware: arm,scmi: support
> > system power protocol
> > 
> > > Subject: Re: [PATCH RESEND] dt-bindings: firmware: arm,scmi:
> > support
> > > system power protocol
> > >
> > > On Fri, Jun 28, 2024 at 11:03:09AM +0800, Peng Fan (OSS) wrote:
> > > > From: Peng Fan <peng.fan@nxp.com>
> > > >
> > > > Add SCMI System Power Protocol bindings, and the protocol id is
> > > 0x12.
> > > >
> > >
> > > I think we must have this node only if it has dedicated channel or any
> > > other required property.
> > 
> > I posted a patchset to support nodes not in device tree. And Cristian
> > gave some comments:
> > https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/
> >
> 
> Please suggest what should I do to avoid the dtbs_check issue.
> 
> Should I switch back to 
> https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/
> or else?
>

Sorry I need to discuss with Cristain and decide. I might have already
discussed but I can't recall the details or decision(if any) made after
that. He is away now, will get back once we discuss and see what is the
best approach.

--
Regards,
Sudeep
Peng Fan Aug. 2, 2024, 2:51 a.m. UTC | #6
Hi Sudeep, Cristian,

> Subject: Re: [PATCH RESEND] dt-bindings: firmware: arm,scmi: support
> system power protocol
> 
> On Thu, Jul 18, 2024 at 12:15:20PM +0000, Peng Fan wrote:
> > Hi Sudeep,
> >
> > > Subject: RE: [PATCH RESEND] dt-bindings: firmware: arm,scmi:
> support
> > > system power protocol
> > >
> > > > Subject: Re: [PATCH RESEND] dt-bindings: firmware: arm,scmi:
> > > support
> > > > system power protocol
> > > >
> > > > On Fri, Jun 28, 2024 at 11:03:09AM +0800, Peng Fan (OSS) wrote:
> > > > > From: Peng Fan <peng.fan@nxp.com>
> > > > >
> > > > > Add SCMI System Power Protocol bindings, and the protocol id
> is
> > > > 0x12.
> > > > >
> > > >
> > > > I think we must have this node only if it has dedicated channel or
> > > > any other required property.
> > >
> > > I posted a patchset to support nodes not in device tree. And
> > > Cristian gave some comments:
> > > https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/
> > >
> >
> > Please suggest what should I do to avoid the dtbs_check issue.
> >
> > Should I switch back to
> > https://lore.kernel.org/all/Znv1p3FDiPSUNmBM@pluto/
> > or else?
> >
> 
> Sorry I need to discuss with Cristain and decide. I might have already
> discussed but I can't recall the details or decision(if any) made after
> that. He is away now, will get back once we discuss and see what is the
> best approach.
> 

Do you have any update on this?

Thanks,
Peng.

> --
> Regards,
> Sudeep
Sudeep Holla Aug. 9, 2024, 1:34 p.m. UTC | #7
On Fri, 28 Jun 2024 11:03:09 +0800, Peng Fan (OSS) wrote:
> Add SCMI System Power Protocol bindings, and the protocol id is 0x12.
>

Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!

[1/1] dt-bindings: firmware: arm,scmi: support system power protocol
      https://git.kernel.org/sudeep.holla/c/4d5921a39f67
--
Regards,
Sudeep
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
index 4d823f3b1f0e..ebf384e76df1 100644
--- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
+++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml
@@ -145,6 +145,14 @@  properties:
     required:
       - '#power-domain-cells'
 
+  protocol@12:
+    $ref: '#/$defs/protocol-node'
+    unevaluatedProperties: false
+
+    properties:
+      reg:
+        const: 0x12
+
   protocol@13:
     $ref: '#/$defs/protocol-node'
     unevaluatedProperties: false