[PATCH 0/3] mtd: rawnand: mxc: set raw chip's to child nand@0
From: Frank Li via B4 Relay
Date: Tue Mar 10 2026 - 15:08:03 EST
The nand-controller.yaml binding requires a child node (e.g. nand@0) under
the NAND controller. However, the driver currently assigns the controller's
of_node directly to the NAND chip.
Search for the first child node with the "nand" prefix and assign it to
chip->of_node. This filters out properties such as "partition" that may be
placed under the controller node in some older DTS files.
Fall back to using the controller's of_node if no suitable child node is
found to maintain backward compatibility.
This issue went unnoticed because the default behavior works for most NAND
chips.
Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
Frank Li (3):
mtd: rawnand: gpmi: set chip->of_node to nand@0 child node if present
mtd: rawnand: mxc: set chip->of_node to nand@0 child node if present
mtd: rawnand: ifc: set chip->of_node to nand@0 child node if present
drivers/mtd/nand/raw/fsl_ifc_nand.c | 10 +++++++++-
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 11 ++++++++++-
drivers/mtd/nand/raw/mxc_nand.c | 10 +++++++++-
3 files changed, 28 insertions(+), 3 deletions(-)
---
base-commit: fc7b1a72c6cd5cbbd989c6c32a6486e3e4e3594d
change-id: 20260304-gpmi_nand-f87065d828ef
Best regards,
--
Frank Li <Frank.Li@xxxxxxx>