1 * Qualcomm NAND controller
4 - compatible: must be one of the following:
5 * "qcom,ipq806x-nand" - for EBI2 NAND controller being used in IPQ806x
6 SoC and it uses ADM DMA
7 * "qcom,ipq4019-nand" - for QPIC NAND controller v1.4.0 being used in
8 IPQ4019 SoC and it uses BAM DMA
9 * "qcom,ipq8074-nand" - for QPIC NAND controller v1.5.0 being used in
10 IPQ8074 SoC and it uses BAM DMA
12 - reg: MMIO address range
13 - clocks: must contain core clock and always on clock
14 - clock-names: must contain "core" for the core clock and "aon" for the
17 EBI2 specific properties:
18 - dmas: DMA specifier, consisting of a phandle to the ADM DMA
19 controller node and the channel number to be used for
20 NAND. Refer to dma.txt and qcom_adm.txt for more details
21 - dma-names: must be "rxtx"
22 - qcom,cmd-crci: must contain the ADM command type CRCI block instance
23 number specified for the NAND controller on the given
25 - qcom,data-crci: must contain the ADM data type CRCI block instance
26 number specified for the NAND controller on the given
29 QPIC specific properties:
30 - dmas: DMA specifier, consisting of a phandle to the BAM DMA
31 and the channel number to be used for NAND. Refer to
32 dma.txt, qcom_bam_dma.txt for more details
33 - dma-names: must contain all 3 channel names : "tx", "rx", "cmd"
34 - #address-cells: <1> - subnodes give the chip-select number
39 Each controller may contain one or more subnodes to represent enabled
40 chip-selects which (may) contain NAND flash chips. Their properties are as
44 - reg: a single integer representing the chip-select
45 number (e.g., 0, 1, 2, etc.)
46 - #address-cells: see partition.txt
47 - #size-cells: see partition.txt
50 - nand-bus-width: see nand-controller.yaml
51 - nand-ecc-strength: see nand-controller.yaml. If not specified, then ECC strength will
52 be used according to chip requirement and available
55 Each nandcs device node may optionally contain a 'partitions' sub-node, which
56 further contains sub-nodes describing the flash partition mapping. See
57 partition.txt for more detail.
61 nand-controller@1ac00000 {
62 compatible = "qcom,ipq806x-nand";
63 reg = <0x1ac00000 0x800>;
65 clocks = <&gcc EBI2_CLK>,
67 clock-names = "core", "aon";
80 nand-ecc-strength = <4>;
84 compatible = "fixed-partitions";
95 reg = <0x58a0000 0x4000000>;
101 nand-controller@79b0000 {
102 compatible = "qcom,ipq4019-nand";
103 reg = <0x79b0000 0x1000>;
105 clocks = <&gcc GCC_QPIC_CLK>,
106 <&gcc GCC_QPIC_AHB_CLK>;
107 clock-names = "core", "aon";
112 dma-names = "tx", "rx", "cmd";
114 #address-cells = <1>;
119 nand-ecc-strength = <4>;
120 nand-bus-width = <8>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
134 reg = <0x58a0000 0x4000000>;