From: Maxime Ripard <mripard@kernel.org>
To: saravanan sekar <sravanhome@gmail.com>
Cc: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
mark.rutland@arm.com, shawnguo@kernel.org, heiko@sntech.de,
sam@ravnborg.org, icenowy@aosc.io,
laurent.pinchart@ideasonboard.com, gregkh@linuxfoundation.org,
Jonathan.Cameron@huawei.com, davem@davemloft.net,
mchehab+samsung@kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/4] dt-bindings: regulator: add document bindings for mpq7920
Date: Tue, 31 Dec 2019 09:00:02 +0100 [thread overview]
Message-ID: <20191231080002.efq3yeomzktepegk@hendrix.lan> (raw)
In-Reply-To: <ec7d8937-724e-946c-0569-da685223d21d@gmail.com>
On Thu, Dec 26, 2019 at 11:23:36PM +0100, saravanan sekar wrote:
> > > + mps,inc-off-time:
> > > + description: |
> > > + mutually exclusive to mps,fixed-off-time an array of 8, linearly increase
> > > + output delay during power off sequence based on factor of time slot/interval
> > > + for each regulator.
> > > + allOf:
> > > + - $ref: "/schemas/types.yaml#/definitions/uint8-array"
> > > + - minimum: 0
> > > + - maximum: 15
> > > + - default: [ 0, 6, 0, 6, 7, 7, 7, 9 ]
> > You should check the size of the array too, but if it's a property of
> > the regulators, why not have it in the regulators node?
>
> the node regulators & sub-node of regulators are parsed (initdata) by
> regulator framework during regulator registration,
> so it would be redundant parsing all the node if mentioned under each
> regulator node and this is optional. If you still not
> convinced I will change.
It's not really redundant, since the regulator framework will ignore
whatever custom property you would put there, and your driver would
ignore any generic property in those nodes.
> > > + regulators:
> > > + type: object
> > > + description:
> > > + list of regulators provided by this controller, must be named
> > > + after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5]
> > > + The valid names for regulators are
> > > + buck1, buck2, buck3, buck4, ldortc, ldo2, ldo3, ldo4, ldo5
> > For the third times now, the names should be validated using
> > propertyNames.
>
> Not sure did I understand your question correctly.
> all the node name under regulators node are parsed by regulator
> framework & validated against
> name in regulator descriptors.
Yes, and the point of the bindings in YAML is to make sure all the
constraints we might have can be catched at compilation / validation
time.
The names of the nodes are a constraint, and propertyNames allows you
to express it.
Maxime
next prev parent reply other threads:[~2019-12-31 7:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-22 20:45 [PATCH v3 0/4] Add regulator support " Saravanan Sekar
2019-12-22 20:45 ` [PATCH v3 1/4] dt-bindings: Add an entry for Monolithic Power System, MPS Saravanan Sekar
2019-12-22 20:45 ` [PATCH v3 2/4] dt-bindings: regulator: add document bindings for mpq7920 Saravanan Sekar
2019-12-23 10:50 ` Maxime Ripard
2019-12-26 22:23 ` saravanan sekar
2019-12-27 0:20 ` Mark Brown
2019-12-31 8:00 ` Maxime Ripard [this message]
2019-12-22 20:45 ` [PATCH v3 3/4] regulator: mpq7920: add mpq7920 regulator driver Saravanan Sekar
2019-12-25 21:59 ` kbuild test robot
2019-12-22 20:45 ` [PATCH v3 4/4] MAINTAINERS: Add entry for mpq7920 PMIC driver Saravanan Sekar
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=20191231080002.efq3yeomzktepegk@hendrix.lan \
--to=mripard@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=broonie@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=icenowy@aosc.io \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mchehab+samsung@kernel.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=shawnguo@kernel.org \
--cc=sravanhome@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
all inboxes | Powered by JetHome®