microchip,sama7g5-qspi-flash

Description

These nodes are “qspi” bus nodes.

Microchip QSPI Flash controller

Examples

/*
 * If qspi device does not support SFDP(such as MX66LM1G45G), the
 * user must use 'skip-sfdp' flag to tells the driver not to read
 * SFDP tables and access the device in SPI mode, the flash size
 * must also be configured.
 */
&qspi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_qspi0_default>;
    dmas = <&dma0 0 0>;
    dma-names = "qspi_dma";
    skip-sfdp;
    size = <DT_SIZE_M(256)>; /* 256 MBytes */
    status = "okay";
};

/*
 * If the qspi device supports SFDP, the driver will identigy the
 * device's capabilities in accordance with the JEDEC standard(JESD216).
 */
&qspi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_qspi0_default>;
    dmas = <&dma0 0 0>;
    dma-names = "qspi_dma";
    status = "okay";
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

This property is required.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

This property is required.

requires-ulbpr

boolean

Indicates the device requires the ULBPR (0x98) command.

Some flash chips such as the Microchip SST26VF series have a block
protection register that initializes to write-protected. Use this
property to indicate that the BPR must be unlocked before write
operations can proceed.
For example, SST26VF064B on SAMA7G54-CURIOITY board.

skip-sfdp

boolean

Indicates the device to skip parsing SFDP( the Serial Flash
Discoverable Parameter tables) to obtain flash parameters.

Some flash chips (such as the MX66LM1G45G on SAMA7G54-EK board)
do not support SFDP.

size

int

Flash Memory size in bits, required if skip-sfdp is enabled.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.