Skip to contentSkip to conversation

ARM: dts: imx31: Use nand-controller as node name

PATCH Applied Fabio Estevam 4 participants 4 messages Feb 20, 2025 – Mar 17, 2025

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: dts: imx31: Use nand-controller as node name

From: Fabio Estevam <[email protected]>

According to mxc-nand.yaml, the correct node name must be 'nand-controller'.

Change it accordingly to fix the following dt-schema warning:

$nodename:0: 'nand@b8000000' does not match '^nand-controller(@.*)?'

---
 arch/arm/boot/dts/nxp/imx/imx31.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx31.dtsi +1 -1
index 00006c90d9a7..813a81558c40 100644
@@ -340,7 +340,7 @@ emi@b8000000 { /* External Memory Interface */
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			nfc: nand@b8000000 {
+			nfc: nand-controller@b8000000 {
 				compatible = "fsl,imx31-nand", "fsl,imx27-nand";
 				reg = <0xb8000000 0x1000>;
 				interrupts = <33>;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

According to mxc-nand.yaml, the correct node name must be 'nand-controller'.

Quoted 9 lines

Change it accordingly to fix the following dt-schema warning:

$nodename:0: 'nand@b8000000' does not match '^nand-controller(@.*)?'

---
 arch/arm/boot/dts/nxp/imx/imx31.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

New warnings running 'make CHECK_DTBS=y for arch/arm/boot/dts/nxp/' for [email protected]:

arch/arm/boot/dts/nxp/imx/imx31-bug.dtb: nand-controller@b8000000: #size-cells: 0 was expected
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-bug.dtb: nand-controller@b8000000: compatible:0: 'fsl,imx27-nand' was expected
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-bug.dtb: nand-controller@b8000000: compatible: ['fsl,imx31-nand', 'fsl,imx27-nand'] is too long
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-bug.dtb: nand-controller@b8000000: #size-cells: 0 was expected
from schema $id: http://devicetree.org/schemas/mtd/nand-controller.yaml#
arch/arm/boot/dts/nxp/imx/imx31-bug.dtb: /soc/emi@b8000000/nand-controller@b8000000: failed to match any schema with compatible: ['fsl,imx31-nand', 'fsl,imx27-nand']
arch/arm/boot/dts/nxp/imx/imx31-lite.dtb: nand-controller@b8000000: #size-cells: 0 was expected
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-lite.dtb: nand-controller@b8000000: compatible:0: 'fsl,imx27-nand' was expected
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-lite.dtb: nand-controller@b8000000: compatible: ['fsl,imx31-nand', 'fsl,imx27-nand'] is too long
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-lite.dtb: nand-controller@b8000000: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'clocks', 'compatible', 'dma-names', 'dmas', 'nand-bus-width', 'nand-ecc-mode', 'nand-on-flash-bbt' were unexpected)
from schema $id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
arch/arm/boot/dts/nxp/imx/imx31-lite.dtb: nand-controller@b8000000: #size-cells: 0 was expected
from schema $id: http://devicetree.org/schemas/mtd/nand-controller.yaml#
arch/arm/boot/dts/nxp/imx/imx31-lite.dtb: /soc/emi@b8000000/nand-controller@b8000000: failed to match any schema with compatible: ['fsl,imx31-nand', 'fsl,imx27-nand']

#3 lore raw
In reply to Fabio Estevam
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

According to mxc-nand.yaml, the correct node name must be 'nand-controller'.

Quoted 7 lines

Change it accordingly to fix the following dt-schema warning:

$nodename:0: 'nand@b8000000' does not match '^nand-controller(@.*)?'

---
 arch/arm/boot/dts/nxp/imx/imx31.dtsi | 2 +-

Sending one fix per each node name is quite a churn, so please fix all files in given vendor at once.

Best regards,
Krzysztof