1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/ingenic,nand.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Ingenic SoCs NAND controller
10 - Paul Cercueil <paul@crapouillou.net>
13 - $ref: nand-controller.yaml#
14 - $ref: /schemas/memory-controllers/ingenic,nemc-peripherals.yaml#
20 - ingenic,jz4725b-nand
25 - description: Bank number, offset and size of first attached NAND chip
26 - description: Bank number, offset and size of second attached NAND chip
27 - description: Bank number, offset and size of third attached NAND chip
28 - description: Bank number, offset and size of fourth attached NAND chip
37 Node containing description of fixed partitions.
42 $ref: raw-nand-chip.yaml
46 description: GPIO specifier for the busy pin.
50 description: GPIO specifier for the write-protect pin.
53 unevaluatedProperties: false
59 unevaluatedProperties: false
63 #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
64 memory-controller@13410000 {
65 compatible = "ingenic,jz4780-nemc";
66 reg = <0x13410000 0x10000>;
69 ranges = <1 0 0x1b000000 0x1000000>,
70 <2 0 0x1a000000 0x1000000>,
71 <3 0 0x19000000 0x1000000>,
72 <4 0 0x18000000 0x1000000>,
73 <5 0 0x17000000 0x1000000>,
74 <6 0 0x16000000 0x1000000>;
76 clocks = <&cgu JZ4780_CLK_NEMC>;
79 compatible = "ingenic,jz4780-nand";
80 reg = <1 0 0x1000000>;
87 ingenic,nemc-tAS = <10>;
88 ingenic,nemc-tAH = <5>;
89 ingenic,nemc-tBP = <10>;
90 ingenic,nemc-tAW = <15>;
91 ingenic,nemc-tSTRV = <100>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&pins_nemc>;
99 nand-ecc-step-size = <1024>;
100 nand-ecc-strength = <24>;
101 nand-ecc-mode = "hw";
104 pinctrl-names = "default";
105 pinctrl-0 = <&pins_nemc_cs1>;
108 compatible = "fixed-partitions";
109 #address-cells = <2>;
113 label = "u-boot-spl";
114 reg = <0x0 0x0 0x0 0x800000>;
119 reg = <0x0 0x800000 0x0 0x200000>;
123 label = "u-boot-env";
124 reg = <0x0 0xa00000 0x0 0x200000>;
129 reg = <0x0 0xc00000 0x0 0x4000000>;
134 reg = <0x0 0x4c00000 0x1 0xfb400000>;