Qualcomm QPIC NAND controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/qcom,spi-qpic-snand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Md sadre Alam <quic_mdalam@quicinc.com>"
The QCOM QPIC-SPI-NAND flash controller is an extended version of the QCOM QPIC NAND flash controller. It can work both in serial and parallel mode. It supports typical SPI-NAND page cache operations in single, dual or quad IO mode with pipelined ECC encoding/decoding using the QPIC ECC HW engine.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq5018-snand","qcom,ipq5332-snand","qcom,ipq5424-snand"Item 2
Exact value (
const):"qcom,ipq9574-snand"
Rule 2
Exact value (
const):"qcom,ipq9574-snand"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"aon"
Item 3
Exact value (
const):"iom"
dmas — not listed as required here #
Array item rules (items) #
Item 1
tx DMA channel
Item 2
rx DMA channel
Item 3
cmd DMA channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
Item 3
Exact value (
const):"cmd"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,ipq9574-gcc.h>
spi@79b0000 {
compatible = "qcom,ipq9574-snand";
reg = <0x1ac00000 0x800>;
clocks = <&gcc GCC_QPIC_CLK>,
<&gcc GCC_QPIC_AHB_CLK>,
<&gcc GCC_QPIC_IO_MACRO_CLK>;
clock-names = "core", "aon", "iom";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
nand-ecc-engine = <&qpic_nand>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)