Cadence Quad/Octal SPI controller

Schema identifier ($id): "http://devicetree.org/schemas/spi/cdns,qspi-nor.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vaishnav Achath <vaishnav.a@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): spi-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "xlnx,versal-ospi-1.0"

When the condition matches (then) #

Required in this object (required): "power-domains"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-qspi"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

reset-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Array item rules (items)

Allowed values (enum): "qspi", "qspi-ocp", "rstc_ref"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items)

Allowed values (enum): "qspi", "qspi-ocp"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "amd,pensando-elba-qspi"

When the condition matches (then) #

Properties and child nodes (properties)

cdns,fifo-depth — not listed as required here

Allowed values (enum): 128, 256, 1024

Default value (default): 1024

When the condition does not match (else) #

Properties and child nodes (properties)

cdns,fifo-depth — not listed as required here

Allowed values (enum): 128, 256

Default value (default): 128

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rzn1-qspi"

When the condition matches (then) #

Properties and child nodes (properties)

cdns,trigger-address — not listed as required here

false — Not permitted by this property rule.

cdns,fifo-depth — not listed as required here

false — Not permitted by this property rule.

cdns,fifo-width — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Required in this object (required): "cdns,trigger-address", "cdns,fifo-depth"

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): "amd,pensando-elba-qspi", "amd,versal2-ospi", "intel,lgm-qspi", "intel,socfpga-qspi", "mobileye,eyeq5-ospi", "starfive,jh7110-qspi", "ti,am654-ospi", "ti,k2g-qspi", "xlnx,versal-ospi-1.0"

Item 2

Exact value (const): "cdns,qspi-nor"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a06g032-qspi"

Item 2

Exact value (const): "renesas,rzn1-qspi"

Rule 3

Exact value (const): "cdns,qspi-nor"

Deprecated (deprecated): true

reg — required here #

Array item rules (items) #

Item 1

the controller register set

Item 2

the controller data area

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "ref"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "ahb"

Item 3

Exact value (const): "apb"

cdns,fifo-depth — not listed as required here #

Size of the data FIFO in words.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

cdns,fifo-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bus width of the data FIFO in bytes.

Default value (default): 4

cdns,trigger-address — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

32-bit indirect AHB trigger address.

cdns,is-decoded-cs — not listed as required here #

Value type (type): "boolean"

Flag to indicate whether decoder is used to select different chip select for different memory regions.

cdns,rclk-en — not listed as required here #

Value type (type): "boolean"

Flag to indicate that QSPI return clock is used to latch the read data rather than the QSPI clock. Make sure that QSPI return clock is populated on the board before using this property.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

reset-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Array item rules (items) #

Allowed values (enum): "qspi", "qspi-ocp", "rstc_ref"

Properties matching a name pattern (patternProperties) #

^flash@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): cdns,qspi-nor-peripheral-props.yaml

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "cdns,read-delay", "cdns,tshsl-ns", "cdns,tsd2d-ns", "cdns,tchsh-ns", "cdns,tslch-ns"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi@ff705000 {
    compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0xff705000 0x1000>,
          <0xffa00000 0x1000>;
    interrupts = <0 151 4>;
    clocks = <&qspi_clk>;
    cdns,fifo-depth = <128>;
    cdns,fifo-width = <4>;
    cdns,trigger-address = <0x00000000>;
    resets = <&rst 0x1>, <&rst 0x2>;
    reset-names = "qspi", "qspi-ocp";

    flash@0 {
        compatible = "jedec,spi-nor";
        reg = <0x0>;
        cdns,read-delay = <4>;
        cdns,tshsl-ns = <60>;
        cdns,tsd2d-ns = <60>;
        cdns,tchsh-ns = <60>;
        cdns,tslch-ns = <60>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 93: The compatible is qspi-nor for historical reasons but such

Line 94: controllers are meant to be used with flashes of all kinds,

Line 95: ie. also NAND flashes, not only NOR flashes.

Edit this page