All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	devicetree@vger.kernel.org,
	linux-power <linux-power@fi.rohmeurope.com>,
	Mark Brown <broonie@kernel.org>, Lee Jones <lee.jones@linaro.org>
Subject: Re: [PATCH v3 05/15] dt_bindings: mfd: Add ROHM BD71815 PMIC
Date: Tue, 9 Mar 2021 08:11:31 -0700	[thread overview]
Message-ID: <CAL_JsqKbZzXBMPH_aus7=xZWn-EY0BBVnVbu0W_EO_US7vbJNA@mail.gmail.com> (raw)
In-Reply-To: <06c8e7339ebc3e1802aa1e9c213de9392671a8a5.camel@fi.rohmeurope.com>

On Tue, Mar 9, 2021 at 5:51 AM Matti Vaittinen
<matti.vaittinen@fi.rohmeurope.com> wrote:
>
> Hello Rob,
>
> On Mon, 2021-03-08 at 10:39 -0700, Rob Herring wrote:
> > On Mon, 08 Mar 2021 12:40:50 +0200, Matti Vaittinen wrote:
> > > Document DT bindings for ROHM BD71815.
> > >
> > > BD71815 is a single-chip power management IC mainly for battery-
> > > powered
> > > portable devices. The IC integrates 5 bucks, 7 LDOs, a boost driver
> > > for
> > > LED, a battery charger with a Coulomb counter, a real-time clock, a
> > > 32kHz
> > > clock and two general-purpose outputs although only one is
> > > documented by
> > > the data-sheet.
> > >
> > > Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> > > Reviewed-by: Rob Herring <robh@kernel.org>
> > > ---
> > >  .../bindings/mfd/rohm,bd71815-pmic.yaml       | 201
> > > ++++++++++++++++++
> > >  1 file changed, 201 insertions(+)
> > >  create mode 100644
> > > Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml
> > >
> >
> > My bot found errors running 'make dt_binding_check' on your patch:
>
> I am sorry to bother but I've spent a while trying to reproduce this.
> For some reason I can't trigger the error from
>
> 'make dt_binding_check' or
> 'make dt_binding_check
> DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/rohm,bd71815-
> pmic.yaml'
>
> even after I ran
>
> 'pip3 install dtschema --upgrade --user'.
>
> I should also have yamllint installed.
>
> >
> > yamllint warnings/errors:
> >
> > dtschema/dtc warnings/errors:
> > Unknown file referenced: [Errno 2] No such file or directory:
> > '/usr/local/lib/python3.8/dist-
> > packages/dtschema/schemas/regulator/rohm,bd71815-regulator.yaml'
>
> This bothers me slightly. The patch 04/15 should bring-in the
> rohm,bd71815-regulator.yaml. Does this error indicate that file is
> missing or is my $ref somehow invalid?

Then it's simply a false positive. I usually check these and try to
only send the email if the dependency is not in the series so the
dependency is clear. It's a balance of replying quickly and my time
reviewing the errors.

> *** opinion follows - not sure if it just me but... ***
>
> I know I should probably keep my mouth shut but... I am more and more
> thinking that the yaml bindings are yet another 'excessive unit-test'
> type solution. Tooling which should "force doing things correctly" is
> eventually hindering development and causing the end result being sub-
> optimal.

It's about validating DTS files actually do what the bindings say.
It's pretty clear that the free form text bindings left a lot of
things ambiguous.

How would you propose we can check every property in a DTS file has a
definition (minimally of it's type)? Freeform text can simply never do
that.

> I mean that creating binding docs takes way too much time from someone
> like me who is "yaml-illiterate". And when I eventually get yaml done -
> the end result is far less descriptive for human eyes than the "good
> old" free-text format would've been. I know one can add comments - but
> I don't see much of them in the binding docs...

Because people do the minimum? The only comments/description I object
to are duplicating generic descriptions of common properties.

There's certainly lots of things we could do. There are tools which
generate pretty docs out of json-schema. Not sure how useful they
would be OOTB. But I simply don't have the bandwidth to look into
them. I can barely keep up with reviews...

Rob

  reply	other threads:[~2021-03-09 15:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08 10:39 [PATCH v3 00/15] Support ROHM BD71815 PMIC Matti Vaittinen
2021-03-08 10:39 ` [PATCH v3 01/15] rtc: bd70528: Do not require parent data Matti Vaittinen
2021-03-08 10:39 ` [PATCH v3 02/15] mfd: bd718x7: simplify by cleaning unnecessary device data Matti Vaittinen
2021-03-08 10:40 ` [PATCH v3 03/15] dt_bindings: bd71828: Add clock output mode Matti Vaittinen
2021-03-08 10:40 ` [PATCH v3 04/15] dt_bindings: regulator: Add ROHM BD71815 PMIC regulators Matti Vaittinen
2021-03-08 10:40 ` [PATCH v3 05/15] dt_bindings: mfd: Add ROHM BD71815 PMIC Matti Vaittinen
2021-03-08 17:39   ` Rob Herring
2021-03-09 12:51     ` Matti Vaittinen
2021-03-09 15:11       ` Rob Herring [this message]
2021-03-10  6:30         ` Matti Vaittinen
2021-03-08 10:41 ` [PATCH v3 06/15] mfd: Add ROHM BD71815 ID Matti Vaittinen
2021-03-10 10:36   ` Lee Jones
2021-03-10 11:07     ` Vaittinen, Matti
2021-03-10 11:17       ` Lee Jones
2021-03-10 13:02         ` Matti Vaittinen
2021-03-10 13:31           ` Lee Jones
2021-03-10 14:39             ` Matti Vaittinen
2021-03-10 16:38               ` Lee Jones
2021-03-08 10:42 ` [PATCH v3 07/15] mfd: Support for ROHM BD71815 PMIC core Matti Vaittinen
2021-03-10 10:40   ` Lee Jones
2021-03-08 10:43 ` [PATCH v3 08/15] gpio: support ROHM BD71815 GPOs Matti Vaittinen
2021-03-08 10:43 ` [PATCH v3 09/15] regulator: helpers: Export helper voltage listing Matti Vaittinen
2021-03-08 10:44 ` [PATCH v3 11/15] regulator: rohm-regulator: Support SNVS HW state Matti Vaittinen
2021-03-10 10:43   ` Lee Jones
2021-03-08 10:44 ` [PATCH v3 12/15] regulator: Support ROHM BD71815 regulators Matti Vaittinen
2021-03-08 10:45 ` [PATCH v3 13/15] clk: bd718x7: Add support for clk gate on ROHM BD71815 PMIC Matti Vaittinen
2021-03-08 10:45 ` [PATCH v3 14/15] rtc: bd70528: Support RTC on ROHM BD71815 Matti Vaittinen
2021-03-08 10:45 ` [PATCH v3 15/15] MAINTAINERS: Add ROHM BD71815AGW Matti Vaittinen

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='CAL_JsqKbZzXBMPH_aus7=xZWn-EY0BBVnVbu0W_EO_US7vbJNA@mail.gmail.com' \
    --to=robh@kernel.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-power@fi.rohmeurope.com \
    --cc=matti.vaittinen@fi.rohmeurope.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.