From: Mateusz Holenko <mholenko@antmicro.com>
To: Maxime Ripard <maxime@cerno.tech>
Cc: Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.com>,
devicetree@vger.kernel.org,
"open list:SERIAL DRIVERS" <linux-serial@vger.kernel.org>,
Stafford Horne <shorne@gmail.com>,
Karol Gugala <kgugala@antmicro.com>,
Mauro Carvalho Chehab <mchehab+samsung@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
"Paul E. McKenney" <paulmck@linux.ibm.com>,
Filip Kokosinski <fkokosinski@antmicro.com>,
Pawel Czarnecki <pczarnecki@internships.antmicro.com>,
Joel Stanley <joel@jms.id.au>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Shawn Guo <shawnguo@kernel.org>, Heiko Stuebner <heiko@sntech.de>,
Sam Ravnborg <sam@ravnborg.org>, Icenowy Zheng <icenowy@aosc.io>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/5] dt-bindings: soc: document LiteX SoC Controller bindings
Date: Tue, 17 Mar 2020 09:29:56 +0100 [thread overview]
Message-ID: <CAPk366ReVDbWEESC0WRBs-JD0jdG3gV9st679g-cBrzxYWd1bg@mail.gmail.com> (raw)
In-Reply-To: <20200225091055.ubm5r3p6r4ydchyh@gilmour.lan>
Hi Maxime,
On Tue, Feb 25, 2020 at 10:11 AM Maxime Ripard <maxime@cerno.tech> wrote:
>
> Hi Mateusz,
>
> On Tue, Feb 25, 2020 at 09:46:45AM +0100, Mateusz Holenko wrote:
> > From: Pawel Czarnecki <pczarnecki@internships.antmicro.com>
> >
> > Add documentation for LiteX SoC Controller bindings.
> >
> > Signed-off-by: Pawel Czarnecki <pczarnecki@internships.antmicro.com>
> > Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
> > ---
> >
> > Notes:
> > This commit has been introduced in v3 of the patchset.
> >
> > .../soc/litex/litex,soc_controller.yaml | 46 +++++++++++++++++++
> > MAINTAINERS | 6 +++
> > 2 files changed, 52 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml b/Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml
> > new file mode 100644
> > index 000000000000..039894265319
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml
> > @@ -0,0 +1,46 @@
> > +PDX-License-Identifier: GPL-2.0
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/soc/litex/litex,soc_controller.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: LiteX SoC Controller driver
> > +
> > +description: |
> > + This is the SoC Controller driver for the LiteX SoC Builder.
> > + It's purpose is to verify LiteX CSR (Control&Status Register) access
> > + operations and provide function for other drivers to read/write CSRs
> > + and to check if those accessors are ready to use.
> > +
> > +maintainers:
> > + - Karol Gugala <kgugala@antmicro.com>
> > + - Mateusz Holenko <mholenko@antmicro.com>
> > +
> > +properties:
> > + compatible:
> > + const: litex,soc_controller
>
> Usually compatible will use dash as separators, not underscores.
>
> > + reg:
> > + description: Base address and length of the register space
>
> This is usually removed since it's what's expected from the property
> anyway. However, what you should really test for in the number of
> address/size couples being set, and you can do that using maxItems: 1
>
> > + status:
> > + description: |
> > + disables or enables node
> > +
> > + const: "okay"
>
> This is added automatically by the tooling, so you can leave it out.
>
> > +required:
> > + - compatible
> > + - reg
> > + - status
>
> And in general, status is not required. Leaving status out is
> equivalent to status = "okay"
>
> > +examples:
> > + - |
> > +
> > + soc_ctrl0: soc_controller@f0000000 {
> > + compatible = "litex,soc_controller";
> > + reg = <0x0 0xf0000000 0x0 0xC>;
> > + status = "okay";
> > + };
>
> The indentation looks weird here?
>
> Maxime
Thanks for all the comments!
I'll fix this file and resubmit the whole patchset after addressing
other remarks.
--
Mateusz Holenko
Antmicro Ltd | www.antmicro.com
Roosevelta 22, 60-829 Poznan, Poland
next prev parent reply other threads:[~2020-03-17 8:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 8:46 [PATCH v3 0/5] LiteX SoC controller and LiteUART serial driver Mateusz Holenko
2020-02-25 8:46 ` [PATCH v3 1/5] dt-bindings: vendor: add vendor prefix for LiteX Mateusz Holenko
2020-02-25 8:46 ` [PATCH v3 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Mateusz Holenko
2020-02-25 9:10 ` Maxime Ripard
2020-03-17 8:29 ` Mateusz Holenko [this message]
2020-02-25 16:57 ` Rob Herring
2020-03-17 8:32 ` Mateusz Holenko
2020-02-25 8:46 ` [PATCH v3 3/5] drivers/soc/litex: add LiteX SoC Controller driver Mateusz Holenko
2020-02-25 9:25 ` Maxime Ripard
2020-03-17 9:44 ` Mateusz Holenko
2020-02-25 16:15 ` Randy Dunlap
2020-03-17 8:26 ` Mateusz Holenko
2020-02-25 8:47 ` [PATCH v3 4/5] dt-bindings: serial: document LiteUART bindings Mateusz Holenko
2020-02-25 8:47 ` [PATCH v3 5/5] drivers/tty/serial: add LiteUART driver Mateusz Holenko
2020-02-25 9:49 ` Mateusz Holenko
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=CAPk366ReVDbWEESC0WRBs-JD0jdG3gV9st679g-cBrzxYWd1bg@mail.gmail.com \
--to=mholenko@antmicro.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=fkokosinski@antmicro.com \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=icenowy@aosc.io \
--cc=joel@jms.id.au \
--cc=jslaby@suse.com \
--cc=kgugala@antmicro.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maxime@cerno.tech \
--cc=mchehab+samsung@kernel.org \
--cc=paulmck@linux.ibm.com \
--cc=pczarnecki@internships.antmicro.com \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=shawnguo@kernel.org \
--cc=shorne@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).