linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix a couple of missing unevaluated properties
@ 2023-06-06 10:30 Miquel Raynal
  2023-06-06 10:30 ` [PATCH 1/3] dt-bindings: mtd: qcom: Fix a property position Miquel Raynal
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Miquel Raynal @ 2023-06-06 10:30 UTC (permalink / raw)
  To: Richard Weinberger, Vignesh Raghavendra, Tudor Ambarus,
	Pratyush Yadav, Michael Walle, linux-mtd
  Cc: Rob Herring, Krzysztof Kozlowski, devicetree, Chris Packham,
	Manivannan Sadhasivam, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	Christian Marangi, Thomas Petazzoni, Miquel Raynal

As discussed with Krzysztof and Chris, it seems like each NAND
controller binding should actually explicitely list all the allowed
properties in a schema and use "unevaluatedProperties: false" in both
the NAND controller and the NAND chip sections. While this restriction
always applied on the controller side, this was not enforced on the
chips side AFAIR.

Link: https://lore.kernel.org/all/a23dd485-a3d9-e31f-be3e-0ab293fcfc4a@linaro.org/

While converting Marvell controller bindings, Chris explicitely pointed
similar bindings which would also trigger errors when using
"unevaluatedProperties: false" because of the reg/partitions/etc
properties not being described. Here is an attempt at making these more
precise and robust.

These change made me realize the qcom,boot-partition property
description was broken, so here is a fix for it.

Thanks,
Miquèl

Miquel Raynal (3):
  dt-bindings: mtd: qcom: Fix a property position
  dt-bindings: mtd: qcom: Prevent NAND chip unevaluated properties
  dt-bindings: mtd: ingenic: Prevent NAND chip unevaluated properties

 .../devicetree/bindings/mtd/ingenic,nand.yaml | 11 +++++
 .../devicetree/bindings/mtd/qcom,nandc.yaml   | 47 ++++++++++++-------
 2 files changed, 42 insertions(+), 16 deletions(-)

-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-06 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 10:30 [PATCH 0/3] Fix a couple of missing unevaluated properties Miquel Raynal
2023-06-06 10:30 ` [PATCH 1/3] dt-bindings: mtd: qcom: Fix a property position Miquel Raynal
2023-06-06 10:30 ` [PATCH 2/3] dt-bindings: mtd: qcom: Prevent NAND chip unevaluated properties Miquel Raynal
2023-06-06 10:30 ` [PATCH 3/3] dt-bindings: mtd: ingenic: " Miquel Raynal
2023-06-06 16:23 ` [PATCH 0/3] Fix a couple of missing " Miquel Raynal

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).