From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Maxime Ripard <maxime.ripard@bootlin.com>,
linux-spi <linux-spi@vger.kernel.org>,
Chen-Yu Tsai <wens@csie.org>, Mark Brown <broonie@kernel.org>,
Frank Rowand <frowand.list@gmail.com>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/4] dt-bindings: spi: Add YAML schemas for the generic SPI options
Date: Wed, 8 May 2019 09:02:17 +0200 [thread overview]
Message-ID: <CAMuHMdX7KjJf4yDiEBBXLogHGbo9LcfTM5TvCHAXu_0Bvf0uzA@mail.gmail.com> (raw)
In-Reply-To: <CAL_JsqKeLWgGLafwbKViTgpw4B=W9YGULaMr8h0p_rWX8PP_UQ@mail.gmail.com>
On Tue, May 7, 2019 at 4:35 PM Rob Herring <robh+dt@kernel.org> wrote:
> On Tue, May 7, 2019 at 8:48 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
> > The SPI controllers have a bunch of generic options that are needed in a
> > device tree. Add a YAML schemas for those.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
> > index 1f6e86f787ef..000000000000
> > --- a/Documentation/devicetree/bindings/spi/spi-bus.txt
> > +++ /dev/null
> > -In master mode, the SPI controller node requires the following additional
> > -properties:
> > -- #address-cells - number of cells required to define a chip select
> > - address on the SPI bus.
> > -- #size-cells - should be zero.
> > -
> > -In slave mode, the SPI controller node requires one additional property:
> > -- spi-slave - Empty property.
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml
> > + spi-slave:
> > + $ref: /schemas/types.yaml#/definitions/flag
>
> "type: boolean" is sufficient here. Maybe we should just remove
> 'flag'. OTOH, maybe consistency with other types and the abstraction
> is better as we could add to the flag schema.
>
> > + description:
> > + The SPI controller acts as a slave, instead of a master.
> > +
> > +required:
> > + - "#address-cells"
> > + - "#size-cells"
>
> Only if there are child nodes...
... and spi-slave is not present.
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
prev parent reply other threads:[~2019-05-08 7:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-07 13:48 [PATCH 1/4] dt-bindings: spi: Add YAML schemas for the generic SPI options Maxime Ripard
2019-05-07 13:48 ` [PATCH 2/4] dt-bindings: spi: sun4i: Add YAML schemas Maxime Ripard
2019-05-07 13:48 ` [PATCH 3/4] dt-bindings: spi: sun6i: " Maxime Ripard
2019-05-07 14:51 ` Rob Herring
2019-05-07 13:48 ` [PATCH 4/4] ARM: dts: sun6i: Add default address and size cells for SPI Maxime Ripard
2019-05-07 14:35 ` [PATCH 1/4] dt-bindings: spi: Add YAML schemas for the generic SPI options Rob Herring
2019-05-07 15:13 ` Maxime Ripard
2019-05-08 1:37 ` Rob Herring
2019-05-08 7:02 ` Geert Uytterhoeven [this message]
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=CAMuHMdX7KjJf4yDiEBBXLogHGbo9LcfTM5TvCHAXu_0Bvf0uzA@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=robh+dt@kernel.org \
--cc=wens@csie.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).