1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/qcom,nandc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm NAND controller
10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
26 - description: Core Clock
27 - description: Always ON Clock
34 "#address-cells": true
52 - $ref: "nand-controller.yaml#"
58 const: qcom,ipq806x-nand
63 - description: rxtx DMA channel
70 $ref: /schemas/types.yaml#/definitions/uint32
72 Must contain the ADM command type CRCI block instance number
73 specified for the NAND controller on the given platform
76 $ref: /schemas/types.yaml#/definitions/uint32
78 Must contain the ADM data type CRCI block instance number
79 specified for the NAND controller on the given platform
95 - description: tx DMA channel
96 - description: rx DMA channel
97 - description: cmd DMA channel
114 qcom,boot-partitions:
115 $ref: /schemas/types.yaml#/definitions/uint32-matrix
118 - description: offset
121 Boot partition use a different layout where the 4 bytes of spare
122 data are not protected by ECC. Use this to declare these special
123 partitions by defining first the offset and then the size.
125 It's in the form of <offset1 size1 offset2 size2 offset3 ...>
126 and should be declared in ascending order.
128 Refer to the ipq8064 example on how to use this special binding.
136 unevaluatedProperties: false
140 #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
141 nand-controller@1ac00000 {
142 compatible = "qcom,ipq806x-nand";
143 reg = <0x1ac00000 0x800>;
145 clocks = <&gcc EBI2_CLK>,
147 clock-names = "core", "aon";
151 qcom,cmd-crci = <15>;
152 qcom,data-crci = <3>;
154 #address-cells = <1>;
160 nand-ecc-strength = <4>;
161 nand-bus-width = <8>;
163 qcom,boot-partitions = <0x0 0x58a0000>;
166 compatible = "fixed-partitions";
167 #address-cells = <1>;
177 reg = <0x58a0000 0x4000000>;
183 #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
184 nand-controller@79b0000 {
185 compatible = "qcom,ipq4019-nand";
186 reg = <0x79b0000 0x1000>;
188 clocks = <&gcc GCC_QPIC_CLK>,
189 <&gcc GCC_QPIC_AHB_CLK>;
190 clock-names = "core", "aon";
195 dma-names = "tx", "rx", "cmd";
197 #address-cells = <1>;
202 nand-ecc-strength = <4>;
203 nand-bus-width = <8>;
206 compatible = "fixed-partitions";
207 #address-cells = <1>;
217 reg = <0x58a0000 0x4000000>;