Skip to contentSkip to conversation

dt-bindings: mtd: convert lpc32xx-mlc.txt to yaml format

PATCH Superseded Frank Li 2 participants 2 messages Jul 1, 2025 – Jul 2, 2025

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: mtd: convert lpc32xx-mlc.txt to yaml format

Convert lpc32xx-mlc.txt to yaml format.

Additional changes:
- replace _ with - in property names.
- add missed clocks to align lpc32xx.dtsi.
- allow partitions subnode.

---
change in v2
- remove nand-controller.yaml.
- add clocks
- update examples to align lpc32xx.dtsi
- add partitions although no mlc users under upstream tree. It should be similar with slc case.

---
 .../devicetree/bindings/mtd/lpc32xx-mlc.txt   | 50 -----------
 .../bindings/mtd/nxp,lpc3220-mlc.yaml         | 88 +++++++++++++++++++
 2 files changed, 88 insertions(+), 50 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/nxp,lpc3220-mlc.yaml
Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt deleted +0 -50
deleted file mode 100644
index 64c06aa05ac71..0000000000000
@@ -1,50 +0,0 @@
-NXP LPC32xx SoC NAND MLC controller
-
-Required properties:
-- compatible: "nxp,lpc3220-mlc"
-- reg: Address and size of the controller
-- interrupts: The NAND interrupt specification
-- gpios: GPIO specification for NAND write protect
-
-The following required properties are very controller specific. See the LPC32xx
-User Manual 7.5.14 MLC NAND Timing Register (the values here are specified in
-Hz, to make them independent of actual clock speed and to provide for good
-accuracy:)
-- nxp,tcea_delay: TCEA_DELAY
-- nxp,busy_delay: BUSY_DELAY
-- nxp,nand_ta: NAND_TA
-- nxp,rd_high: RD_HIGH
-- nxp,rd_low: RD_LOW
-- nxp,wr_high: WR_HIGH
-- nxp,wr_low: WR_LOW
-
-Optional subnodes:
-- Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
-
-Example:
-
-	mlc: flash@200a8000 {
-		compatible = "nxp,lpc3220-mlc";
-		reg = <0x200A8000 0x11000>;
-		interrupts = <11 0>;
-		#address-cells = <1>;
-		#size-cells = <1>;
-
-		nxp,tcea-delay = <333333333>;
-		nxp,busy-delay = <10000000>;
-		nxp,nand-ta = <18181818>;
-		nxp,rd-high = <31250000>;
-		nxp,rd-low = <45454545>;
-		nxp,wr-high = <40000000>;
-		nxp,wr-low = <83333333>;
-		gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
-
-		mtd0@00000000 {
-			label = "boot";
-			reg = <0x00000000 0x00064000>;
-			read-only;
-		};
-
-		...
-
-	};
Documentation/devicetree/bindings/mtd/nxp,lpc3220-mlc.yaml new file +88 -0

88 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw
Quoted 15 lines · Frank Li

Convert lpc32xx-mlc.txt to yaml format.

Additional changes:
- replace _ with - in property names.
- add missed clocks to align lpc32xx.dtsi.
- allow partitions subnode.

---
change in v2
- remove nand-controller.yaml.
- add clocks
- update examples to align lpc32xx.dtsi
- add partitions although no mlc users under upstream tree. It should be similar with slc case.

Quoted 7 lines
---
 .../devicetree/bindings/mtd/lpc32xx-mlc.txt   | 50 -----------
 .../bindings/mtd/nxp,lpc3220-mlc.yaml         | 88 +++++++++++++++++++
 2 files changed, 88 insertions(+), 50 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/nxp,lpc3220-mlc.yaml

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mtd/nxp,lpc3220-mlc.example.dtb: nand-controller@200a8000 (nxp,lpc3220-mlc): '#address-cells' is a required property
from schema $id: http://devicetree.org/schemas/mtd/nand-controller.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mtd/nxp,lpc3220-mlc.example.dtb: nand-controller@200a8000 (nxp,lpc3220-mlc): '#size-cells' is a required property
from schema $id: http://devicetree.org/schemas/mtd/nand-controller.yaml#

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.