devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Morgan <macroalpha82@gmail.com>
To: Rob Herring <robh@kernel.org>
Cc: lee.jones@linaro.org, Chris Morgan <macromorgan@hotmail.com>,
	linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
	zyw@rock-chips.com, zhangqing@rock-chips.com, heiko@sntech.de,
	robh+dt@kernel.org
Subject: Re: [PATCH v2] dt-bindings: mfd: rk808: Convert bindings to yaml
Date: Thu, 16 Sep 2021 20:31:28 -0500	[thread overview]
Message-ID: <20210917013128.GA19894@wintermute.localdomain> (raw)
In-Reply-To: <1631839746.891478.1484029.nullmailer@robh.at.kernel.org>

On Thu, Sep 16, 2021 at 07:49:06PM -0500, Rob Herring wrote:
> On Thu, 16 Sep 2021 15:19:47 -0500, Chris Morgan wrote:
> > From: Chris Morgan <macromorgan@hotmail.com>
> > 
> > Convert the rk808 bindings into yaml format. Please note that currently
> > there are a few errors that appear when performing a make dtbs_check.
> > However, after looking at the errors it appears in most cases it occurs
> > on device trees which are not following the current rk808.txt document
> > today. For example for the rk808 there are multiple errors regarding
> > vcc13-supply, vcc14-supply, and vddio-supply; however these supplies
> > are not listed in the current driver or cared for in any way.
> > 
> > For the moment the rk817 is the only MFD that will support a battery.
> > I believe the rk818 also supports a batter but I do not have one to
> > test or write the code for. When it is supported we can split off
> > the battery to its own document. Note that the battery is being added
> > in a separate commit series.
> > 
> > Changes from V1:
> > 
> >  - Removed generic descriptions.
> >  - Added maxItems to clock-output-names. Max items is 2 per the driver.
> >  - Added unevaluatedProperties as false to regulators.
> >  - Correct i2c node.
> >  - Added note about the battery.
> > 
> > Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> > ---
> >  .../devicetree/bindings/mfd/rk808.txt         | 465 ------------------
> >  .../bindings/mfd/rockchip,rk805.yaml          |  84 ++++
> >  .../bindings/mfd/rockchip,rk808.yaml          | 253 ++++++++++
> >  .../bindings/mfd/rockchip,rk809.yaml          |  98 ++++
> >  .../bindings/mfd/rockchip,rk817.yaml          | 362 ++++++++++++++
> >  .../bindings/mfd/rockchip,rk818.yaml          | 106 ++++
> >  6 files changed, 903 insertions(+), 465 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/mfd/rk808.txt
> >  create mode 100644 Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
> >  create mode 100644 Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml
> >  create mode 100644 Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml
> >  create mode 100644 Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml
> >  create mode 100644 Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml
> > 
> 
> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
> on your patch (DT_CHECKER_FLAGS is new in v5.13):
> 
> yamllint warnings/errors:
> 
> dtschema/dtc warnings/errors:
> /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/rockchip,rk808.example.dt.yaml: pmic@1b: 'vddio-supply' does not match any of the regexes: 'pinctrl-[0-9]+'
> 	From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml
> 
> doc reference errors (make refcheckdocs):
> Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt: Documentation/devicetree/bindings/mfd/rk808.txt
> 
> See https://patchwork.ozlabs.org/patch/1529027
> 
> This check can fail if there are any dependencies. The base for a patch
> series is generally the most recent rc1.
> 
> If you already ran 'make dt_binding_check' and didn't see the above
> error(s), then make sure 'yamllint' is installed and dt-schema is up to
> date:
> 
> pip3 install dtschema --upgrade
> 
> Please check and re-submit.

What would be the best way to handle this? I can confirm that there
is no vddio cared for in the driver, however the datasheet appears
to show that one exists (vddio appears to be the supply for the
BUCK1 and BUCK2 DVS voltage). Should I update the yaml to reflect what
already exists today in the various device trees, should I only allow
what the driver cares for today, or should I "meet halfway" and allow
that which the datasheet permits (such as this) even if it's not
implemented in the driver? Note that there will also be some other
errors that are expected, because the existing device trees didn't
always follow the previous rk808.txt file (there is at least one board
with the wrong clock-cells value).

Thank you.

> 

  reply	other threads:[~2021-09-17  1:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 20:19 [PATCH v2] dt-bindings: mfd: rk808: Convert bindings to yaml Chris Morgan
2021-09-17  0:49 ` Rob Herring
2021-09-17  1:31   ` Chris Morgan [this message]
2021-09-17  9:25     ` Heiko Stübner

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=20210917013128.GA19894@wintermute.localdomain \
    --to=macroalpha82@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=macromorgan@hotmail.com \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=zhangqing@rock-chips.com \
    --cc=zyw@rock-chips.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).