lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240423-velocity-italicize-c4f1f22c2ef4@spud>
Date: Tue, 23 Apr 2024 18:25:45 +0100
From: Conor Dooley <conor@...nel.org>
To: Alexander Stein <alexander.stein@...tq-group.com>
Cc: Thomas Gleixner <tglx@...utronix.de>, Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	Lucas Stach <l.stach@...gutronix.de>, linux-kernel@...r.kernel.org,
	devicetree@...r.kernel.org, imx@...ts.linux.dev
Subject: Re: [PATCH v3 1/1] dt-bindings: interrupt-controller: fsl, irqsteer:
 Add imx8qxp support

On Tue, Apr 23, 2024 at 08:26:55AM +0200, Alexander Stein wrote:
> Hi Conor,
> 
> cc'ed imx@...ts.linux.dev
> 
> Am Montag, 22. April 2024, 17:48:20 CEST schrieb Conor Dooley:
> > On Mon, Apr 22, 2024 at 08:49:49AM +0200, Alexander Stein wrote:
> > > Some SoC like i.MX8QXP use a power-domain for this IP. Add a SoC-specific
> > > compatible, which also requires a power-domain.
> > > 
> > > Signed-off-by: Alexander Stein <alexander.stein@...tq-group.com>
> > > ---
> > > Thanks for the feedback.
> > > 
> > > Changes in v3:
> > > * Move 'allOf' before 'additionalProperties'
> > > * Remove superfluous 'minItems: 1'
> > > 
> > >  .../interrupt-controller/fsl,irqsteer.yaml      | 17 ++++++++++++++++-
> > >  1 file changed, 16 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,irqsteer.yaml b/Documentation/devicetree/bindings/interrupt-controller/fsl,irqsteer.yaml
> > > index 20ad4ad82ad64..3d33b75d6ecfa 100644
> > > --- a/Documentation/devicetree/bindings/interrupt-controller/fsl,irqsteer.yaml
> > > +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,irqsteer.yaml
> > > @@ -14,7 +14,9 @@ properties:
> > >      oneOf:
> > >        - const: fsl,imx-irqsteer
> > >        - items:
> > > -          - const: fsl,imx8m-irqsteer
> > > +          - enum:
> > > +              - fsl,imx8m-irqsteer
> > > +              - fsl,imx8qxp-irqsteer
> > >            - const: fsl,imx-irqsteer
> > >  
> > >    reg:
> > > @@ -42,6 +44,9 @@ properties:
> > >    clock-names:
> > >      const: ipg
> > >  
> > > +  power-domains:
> > > +    maxItems: 1
> > > +
> > >    interrupt-controller: true
> > >  
> > >    "#interrupt-cells":
> > > @@ -70,6 +75,16 @@ required:
> > >    - fsl,channel
> > >    - fsl,num-irqs
> > >  
> > > +allOf:
> > > +  - if:
> > > +      properties:
> > > +        compatible:
> > > +          contains:
> > > +            const: fsl,imx8qxp-irqsteer
> > > +    then:
> > > +      required:
> > > +        - power-domains
> > 
> > Provided the power domains are optional on the existing platforms,
> > Acked-by: Conor Dooley <conor.dooley@...rochip.com>
> > otherwise,
> > else:
> >   properties:
> >     power-domains: false
> 
> A power-domain is used on imx8mp, but imx8mq does not.

So then make the contains be an enum with both of the one supporting it
& add the else please.

Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ