lkml.org 
[lkml]   [2022]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v5 2/6] dt-bindings: PCI: renesas,pci-rcar-gen2: Add device tree support for r9a06g032
Hi Hervé,

On Fri, May 20, 2022 at 10:23 AM Herve Codina <herve.codina@bootlin.com> wrote:

> On Sun, 1 May 2022 10:51:43 +0200
> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote:
>
> [...]
> > > resets:
> > > maxItems: 1
> > > @@ -106,13 +106,45 @@ required:
> > > - interrupt-map
> > > - interrupt-map-mask
> > > - clocks
> > > - - resets
> > > - power-domains
> > > - bus-range
> > > - "#address-cells"
> > > - "#size-cells"
> > > - "#interrupt-cells"
> > >
> > > +if:
> >
> > allOf.
> >
> > > + properties:
> > > + compatible:
> > > + contains:
> > > + enum:
>
> I Have an issue with this allOf.
>
> The yaml has the following structure and so has 2 AllOf:
> ...
> allOf:
> - $ref: /schemas/pci/pci-bus.yaml#
>
> properties:
> compatible:
> ...
> allOf:
> - if:
> properties:
> compatible:
> contains:
> ...
> Is having a 'allOf' for schemas inclusion and a 'allOf' for conditionnal
> parts allowed ?

Just combine them into a single "allOf".
See e.g. Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml.

{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

\
 
 \ /
  Last update: 2022-05-20 10:31    [W:0.098 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site