Re: [PATCH 2/3] dt-bindings: mfd: Convert pm8xxx bindings to yaml

From: Bjorn Andersson
Date: Wed Apr 07 2021 - 22:37:05 EST


On Wed 07 Apr 10:37 CDT 2021, skakit@xxxxxxxxxxxxxx wrote:

> Hi Bjorn,
>
> On 2021-03-11 22:33, Bjorn Andersson wrote:
> > On Thu 11 Mar 01:29 CST 2021, satya priya wrote:
[..]
> > > +patternProperties:
> > > + "rtc@[0-9a-f]+$":
> >
> > Can we somehow link this to individual binding docs instead of listing
> > all the possible functions here?
> >
>
> you mean we should split this into two:
> qcom-pm8xxx.yaml and qcom-pm8xxx-rtc.yaml
> Please correct me if wrong.
>

Right, I'm worried that it will be quite hard to maintain this document
once we start adding all the various pmic blocks to it. So if we somehow
can maintain a series of qcom-pm8xxx-<func>.yaml and just ref them into
the main PMIC definition.

@Rob, can you give us some guidance on how to structure this binding,
with the various PMICs described will have some defined subset of a
larger set of hardware blocks that's often shared between versions?

Regards,
Bjorn