[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220922112218.3aff146f@xps-13>
Date: Thu, 22 Sep 2022 11:22:18 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Michael Walle <michael@...le.cc>
Cc: Rob Herring <robh@...nel.org>, Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Shawn Guo <shawnguo@...nel.org>, Li Yang <leoyang.li@....com>,
Rafał Miłecki <rafal@...ecki.pl>,
Frank Rowand <frowand.list@...il.com>,
linux-mtd@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Ahmad Fatoum <a.fatoum@...gutronix.de>,
Philipp Zabel <p.zabel@...gutronix.de>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Robert Marko <robert.marko@...tura.hr>
Subject: Re: [PATCH v2 15/20] dt-bindings: nvmem: add YAML schema for the
sl28 vpd layout
Hello Rob & Krzysztof,
michael@...le.cc wrote on Tue, 13 Sep 2022 16:21:24 +0200:
> Am 2022-09-12 21:20, schrieb Rob Herring:
>
> >> + base-mac-address:
> >> + type: object
> >> + description:
> >> + Base MAC address for all on-module network interfaces. The >> first
> >> + argument of the phandle will be treated as an offset.
> >> +
> >> + properties:
> >> + "#nvmem-cell-cells":
> >
> > You can't just add a new #.*-cells buried in a device binding. I'm fine
> > with the concept though having more than 1 user would be nice.
>
> I was under the impression the tooling will handle it, but as you
> pointed out below, this isn't the case for a missing default. The
> statement above should only be to validate that there is one
> additional argument if the base-mac-address node is used in a
> phandle.
>
> > Any case that doesn't match foos->#foo-cells or has a default # of
> > cells if missing (as this does) has to be added to dtschema to decode > it
> > properly. It won't really matter until there's a user with 2 or more
> > entries. I'm happy to do update the dtschema part, but I'd prefer to > see
> > the schema in dtschema rather than the kernel.
>
> Ok, but I'm not sure I understand you correctly here. You will
> update the dtschema tooling (I guess it's about fixup_phandles() in
> dtb.py) and which schema should be in dtschema? nvmem.yaml
> and/or nvmem-consumer.yaml? The entire schema or only a
> subset of it?
I currently see this as the main "blocking point", although Rob told he
was happy with the overall idea, so let's try to move forward together.
We discussed on IRC with Michael, I guess what's remaining is:
- Michael: Move #nvmem-cell-cells to nvmem.yaml in the core dtschema.
- Rob/Krzysztof: Add the necessary tooling to use this new
property and enforce the right # of cells cells (may be added later
as anyway for now we only have single consumer cases).
Is this what you meant?
Thanks,
Miquèl
Powered by blists - more mailing lists