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 devicetree bindings
10 - Paul Cercueil <paul@crapouillou.net>
13 - $ref: nand-controller.yaml#
19 - ingenic,jz4725b-nand
24 - description: Bank number, offset and size of first attached NAND chip
25 - description: Bank number, offset and size of second attached NAND chip
26 - description: Bank number, offset and size of third attached NAND chip
27 - description: Bank number, offset and size of fourth attached NAND chip
35 Node containing description of fixed partitions.
36 See Documentation/devicetree/bindings/mtd/partition.txt
43 description: GPIO specifier for the busy pin.
47 description: GPIO specifier for the write-protect pin.
56 #include <dt-bindings/clock/jz4780-cgu.h>
57 memory-controller@13410000 {
58 compatible = "ingenic,jz4780-nemc";
59 reg = <0x13410000 0x10000>;
62 ranges = <1 0 0x1b000000 0x1000000>,
63 <2 0 0x1a000000 0x1000000>,
64 <3 0 0x19000000 0x1000000>,
65 <4 0 0x18000000 0x1000000>,
66 <5 0 0x17000000 0x1000000>,
67 <6 0 0x16000000 0x1000000>;
69 clocks = <&cgu JZ4780_CLK_NEMC>;
72 compatible = "ingenic,jz4780-nand";
73 reg = <1 0 0x1000000>;
80 ingenic,nemc-tAS = <10>;
81 ingenic,nemc-tAH = <5>;
82 ingenic,nemc-tBP = <10>;
83 ingenic,nemc-tAW = <15>;
84 ingenic,nemc-tSTRV = <100>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&pins_nemc>;
92 nand-ecc-step-size = <1024>;
93 nand-ecc-strength = <24>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&pins_nemc_cs1>;
101 compatible = "fixed-partitions";
102 #address-cells = <2>;
106 label = "u-boot-spl";
107 reg = <0x0 0x0 0x0 0x800000>;
112 reg = <0x0 0x800000 0x0 0x200000>;
116 label = "u-boot-env";
117 reg = <0x0 0xa00000 0x0 0x200000>;
122 reg = <0x0 0xc00000 0x0 0x4000000>;
127 reg = <0x0 0x4c00000 0x1 0xfb400000>;