All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] dt-bindings: mtd: nand-controller: Fix matching with size-cells==1
@ 2020-08-28 19:20 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2020-08-28 19:20 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, NXP Linux Team, linux-mtd, devicetree,
	linux-kernel, linux-arm-kernel
  Cc: Krzysztof Kozlowski

Most of Freescale/NXP GPMI device trees use size-cells==1 (even when
actually not needed except few boards).  This fixes dtbs_check warnings
like:

    arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: nand-controller@33002000: #size-cells:0:0: 0 was expected

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 Documentation/devicetree/bindings/mtd/nand-controller.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml
index 40fc5b0b2b8c..0879e1108837 100644
--- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml
+++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml
@@ -34,7 +34,10 @@ properties:
     const: 1
 
   "#size-cells":
-    const: 0
+    description:
+      Depends on your controller. Put zero unless you need a mapping between CS
+      lines and dedicated memory regions.
+    enum: [0, 1]
 
   ranges: true
 
-- 
2.17.1


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

end of thread, other threads:[~2020-09-05  6:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 19:20 [PATCH 1/4] dt-bindings: mtd: nand-controller: Fix matching with size-cells==1 Krzysztof Kozlowski
2020-08-28 19:20 ` Krzysztof Kozlowski
2020-08-28 19:20 ` Krzysztof Kozlowski
2020-08-28 19:20 ` [PATCH 2/4] ARM: dts: imx23: Align GPMI NAND node name with schema Krzysztof Kozlowski
2020-08-28 19:20   ` Krzysztof Kozlowski
2020-08-28 19:20   ` Krzysztof Kozlowski
2020-09-05  6:02   ` Shawn Guo
2020-09-05  6:02     ` Shawn Guo
2020-09-05  6:02     ` Shawn Guo
2020-08-28 19:20 ` [PATCH 3/4] ARM: dts: imx28: " Krzysztof Kozlowski
2020-08-28 19:20   ` Krzysztof Kozlowski
2020-08-28 19:20   ` Krzysztof Kozlowski
2020-08-28 19:20 ` [PATCH 4/4] ARM: dts: imx: " Krzysztof Kozlowski
2020-08-28 19:20   ` Krzysztof Kozlowski
2020-08-28 19:20   ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.