From: Geert Uytterhoeven <geert@linux-m68k.org>
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: Rob Herring <robh+dt@kernel.org>,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH] dt-bindings: adv748x: Convert bindings to json-schema
Date: Thu, 14 Oct 2021 13:07:30 +0200 [thread overview]
Message-ID: <CAMuHMdWsLzLqVNdt2EGD20fMXxb3R70Hx3EyPHwLsFc82qAG8A@mail.gmail.com> (raw)
In-Reply-To: <YWgK3c+8wHWw8IYM@oden.dyn.berto.se>
Hi Niklas,
On Thu, Oct 14, 2021 at 12:48 PM Niklas Söderlund
<niklas.soderlund+renesas@ragnatech.se> wrote:
> On 2021-10-13 17:08:44 +0200, Geert Uytterhoeven wrote:
> > On Tue, Oct 12, 2021 at 8:48 PM Niklas Söderlund
> > <niklas.soderlund+renesas@ragnatech.se> wrote:
> > > Convert ADV748X analog video decoder documentation to json-schema.
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/media/i2c/adv748x.yaml
> > > +allOf:
> > > + - if:
> > > + properties:
> > > + compatible:
> > > + contains:
> > > + const: adi,adv7481
> > > + then:
> > > + properties:
> > > + interrupts:
> > > + minItems: 1
> > > + maxItems: 3
> > > +
> > > + interrupt-names:
> > > + minItems: 1
> > > + items:
> > > + - enum: [ intrq1, intrq2, intrq3 ]
> > > + - enum: [ intrq1, intrq2, intrq3 ]
> > > + - enum: [ intrq1, intrq2, intrq3 ]
> >
> > They can really appear in any order?
>
> Yes, as not all interrupt lines may be wired up. It would be nice to
> enforce that intrq2 must come before intrq3 if both are wired but I'm
> not sure how to express that.
You mean
items:
- const: intrq1
- const: intrq2
- const: intrq3
?
If the first two might be exchanged, you can still fix the last one:
items:
- const: [ intrq1, intrq2 ]
- const: [ intrq1, intrq2 ]
- const: intrq3
Gr{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
next prev parent reply other threads:[~2021-10-14 11:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-12 18:33 [PATCH] dt-bindings: adv748x: Convert bindings to json-schema Niklas Söderlund
2021-10-13 15:08 ` Geert Uytterhoeven
2021-10-14 10:47 ` Niklas Söderlund
2021-10-14 11:07 ` Geert Uytterhoeven [this message]
2021-10-14 11:39 ` Niklas Söderlund
2021-10-14 12:14 ` Geert Uytterhoeven
2021-10-14 12:20 ` Niklas Söderlund
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=CAMuHMdWsLzLqVNdt2EGD20fMXxb3R70Hx3EyPHwLsFc82qAG8A@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=devicetree@vger.kernel.org \
--cc=kieran.bingham@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=robh+dt@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).