From: Sam Ravnborg <sam@ravnborg.org>
To: Maxime Ripard <mripard@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
Oleksandr Suvorov <oleksandr.suvorov@toradex.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Thierry Reding <thierry.reding@gmail.com>
Subject: Re: [PATCH v1 1/3] dt-bindings: display: add panel-timing.yaml
Date: Sat, 25 Jan 2020 19:26:43 +0100 [thread overview]
Message-ID: <20200125182642.GA31645@ravnborg.org> (raw)
In-Reply-To: <20200121072930.6qk2ylrb3p4qjfqz@gilmour.lan>
Hi Maxime.
Thanks for your comments!
>
> > + - allOf:
> > + - $ref: /schemas/types.yaml#/definitions/uint32-array
> > + - minItems: 3
> > + maxItems: 3
> > + items:
> > + description: min, typ, max number of pixels
>
> When minItems and maxitems are equal, you can just set one, the other
> one will be filled by the DT schemas tools.
I tried to drop minItems: 3
But it just did not work - I could not make it
accept <xx> and <xx xx xx>.
And the schema should, and does, reject <xx xx> and <xx xx xx xx>
I do not know why - I just did a trial-and-error on this.
> > + hsync-active:
> > + description: |
> > + Horizontal sync pulse.
> > + If omitted then it is not used by the hardware
> > + oneOf:
> > + - const: 0
> > + description: active low
> > + - const: 1
> > + description: active high
>
> You probably should use an enum here (and in other similar
> places). oneOf / anyOf / allOF errors are pretty cryptic, while it
> will it's really better with an enum.
Yep - enum: [0, 1] is much nicer.
Sam
next prev parent reply other threads:[~2020-01-25 18:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-20 20:06 [PATCH v1 0/3] dt-bindings: convert timing + panel-dpi to DT schema Sam Ravnborg
2020-01-20 20:06 ` [PATCH v1 1/3] dt-bindings: display: add panel-timing.yaml Sam Ravnborg
2020-01-20 20:48 ` Oleksandr Suvorov
2020-01-21 20:05 ` Sam Ravnborg
2020-01-25 18:29 ` Sam Ravnborg
2020-01-21 7:29 ` Maxime Ripard
2020-01-25 18:26 ` Sam Ravnborg [this message]
2020-01-21 14:35 ` Rob Herring
2020-01-20 20:06 ` [PATCH v1 2/3] dt-bindings: display: convert display-timings to DT schema Sam Ravnborg
2020-01-20 20:06 ` [PATCH v1 3/3] dt-bindings: display: convert panel-dpi " Sam Ravnborg
2020-01-21 14:50 ` Rob Herring
2020-01-25 19:39 ` Sam Ravnborg
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=20200125182642.GA31645@ravnborg.org \
--to=sam@ravnborg.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=mripard@kernel.org \
--cc=oleksandr.suvorov@toradex.com \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
/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).