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,ipq6018-nand" - for QPIC NAND controller v1.5.0 being used in
10 IPQ6018 SoC and it uses BAM DMA
11 * "qcom,ipq8074-nand" - for QPIC NAND controller v1.5.0 being used in
12 IPQ8074 SoC and it uses BAM DMA
13 * "qcom,sdx55-nand" - for QPIC NAND controller v2.0.0 being used in
14 SDX55 SoC and it uses BAM DMA
16 - reg: MMIO address range
17 - clocks: must contain core clock and always on clock
18 - clock-names: must contain "core" for the core clock and "aon" for the
21 EBI2 specific properties:
22 - dmas: DMA specifier, consisting of a phandle to the ADM DMA
23 controller node and the channel number to be used for
24 NAND. Refer to dma.txt and qcom_adm.txt for more details
25 - dma-names: must be "rxtx"
26 - qcom,cmd-crci: must contain the ADM command type CRCI block instance
27 number specified for the NAND controller on the given
29 - qcom,data-crci: must contain the ADM data type CRCI block instance
30 number specified for the NAND controller on the given
33 QPIC specific properties:
34 - dmas: DMA specifier, consisting of a phandle to the BAM DMA
35 and the channel number to be used for NAND. Refer to
36 dma.txt, qcom_bam_dma.txt for more details
37 - dma-names: must contain all 3 channel names : "tx", "rx", "cmd"
38 - #address-cells: <1> - subnodes give the chip-select number
43 Each controller may contain one or more subnodes to represent enabled
44 chip-selects which (may) contain NAND flash chips. Their properties are as
48 - reg: a single integer representing the chip-select
49 number (e.g., 0, 1, 2, etc.)
50 - #address-cells: see partition.txt
51 - #size-cells: see partition.txt
54 - nand-bus-width: see nand-controller.yaml
55 - nand-ecc-strength: see nand-controller.yaml. If not specified, then ECC strength will
56 be used according to chip requirement and available
59 Each nandcs device node may optionally contain a 'partitions' sub-node, which
60 further contains sub-nodes describing the flash partition mapping. See
61 partition.txt for more detail.
65 nand-controller@1ac00000 {
66 compatible = "qcom,ipq806x-nand";
67 reg = <0x1ac00000 0x800>;
69 clocks = <&gcc EBI2_CLK>,
71 clock-names = "core", "aon";
84 nand-ecc-strength = <4>;
88 compatible = "fixed-partitions";
99 reg = <0x58a0000 0x4000000>;
105 nand-controller@79b0000 {
106 compatible = "qcom,ipq4019-nand";
107 reg = <0x79b0000 0x1000>;
109 clocks = <&gcc GCC_QPIC_CLK>,
110 <&gcc GCC_QPIC_AHB_CLK>;
111 clock-names = "core", "aon";
116 dma-names = "tx", "rx", "cmd";
118 #address-cells = <1>;
123 nand-ecc-strength = <4>;
124 nand-bus-width = <8>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 reg = <0x58a0000 0x4000000>;