[PATCH v4 2/2] dt-bindings: mtd: davinci: convert to yaml

Miquel Raynal miquel.raynal at bootlin.com
Mon Oct 7 01:31:14 PDT 2024


Hi Marcus,

marcus.folkesson at gmail.com wrote on Mon, 7 Oct 2024 08:29:44 +0200:

> On Mon, Oct 07, 2024 at 08:07:27AM +0200, Krzysztof Kozlowski wrote:
> > On Sun, Oct 06, 2024 at 03:05:47PM +0200, Marcus Folkesson wrote:  
> > > +  ti,davinci-nand-use-bbt:
> > > +    type: boolean
> > > +    description:
> > > +      Use flash based bad block table support. OOB identifier is saved in OOB
> > > +      area.
> > > +    deprecated: true
> > > +
> > > +required:
> > > +  - compatible
> > > +  - reg
> > > +  - ti,davinci-chipselect
> > > +
> > > +additionalProperties: true  
> > 
> > That's a final device schema, this cannot be true. Why you are doing
> > this entirely different than all other bindings?  
> 
> From my understanding, additionalProperties is to indicate that the
> schema could contain properties that were not explicit listed here but
> inherited from e.g. nand-controller.yaml.

additionalProperties: true means there is no control over the
properties allowed, so we generally don't want that (unless you're
writing specific "generic" bindings, which is not the case here).

You are describing a controller so here you should reference to
nand-controller.yaml, but then prevent any property not defined in
nand-controller.yaml from being used. In this case you probably want to
try unevaluatedProperties: false, which means that any property not
listed here or in the referenced schemas will be prohibited.

Thanks,
Miquèl



More information about the linux-mtd mailing list