st,stm32-ospi

Vendor: STMicroelectronics

Description

These nodes are “ospi” bus nodes.

STM32 OSPI device representation. Enabling a stm32 octospi node in a board
description would typically requires this:

    &octospi {
        pinctrl-0 = <&octospi_clk_pe9 &octospi_ncs_pe10 &octospi_dqs_pe11
                     &octospi_io0_pe12 &octospi_io1_pe13
                     &octospi_io2_pe14 &octospi_io3_pe15
                     &octospi_io4_pe16 &octospi_io5_pe17
                     &octospi_io6_pe18 &octospi_io7_pe19>;

        dmas = <&dma1 5 41 0x10000>;
        dma-names = "tx_rx";

        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-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.

pinctrl-names

string-array

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

This property is required.

dlyb-bypass

boolean

Enables Delay Block (DLYB) Bypass.

ssht-enable

boolean

Enables Sample Shifting half-cycle.

It is recommended to be enabled in STR mode and disabled in DTR mode.

io-low-port

string

Specifies which port of the OCTOSPI IO Manager is used for the IO[3:0] pins.

If absent, then `IOPORT_<n>_LOW` is used where `n` is the OSPI
instance number.

Note: You might need to enable the OCTOSPI I/O manager clock to use the
      property. Please refer to Reference Manual.
      The clock can be enabled in the devicetree.

Legal values: 'IOPORT_NONE', 'IOPORT_1_LOW', 'IOPORT_1_HIGH', 'IOPORT_2_LOW', 'IOPORT_2_HIGH'

io-high-port

string

Specifies which port of the OCTOSPI IO Manager is used for the IO[7:4] pins.

If absent, then `IOPORT_<n>_HIGH` is used where `n` is the OSPI
instance number.

Can be set to `IOPORT_NONE` for Single SPI, Dual SPI and Quad SPI.

Note: You might need to enable the OCTOSPI I/O manager clock to use the
      property. Please refer to Reference Manual.
      The clock can be enabled in the devicetree.

Legal values: 'IOPORT_NONE', 'IOPORT_1_LOW', 'IOPORT_1_HIGH', 'IOPORT_2_LOW', 'IOPORT_2_HIGH'

clk-port

int

Specifies which port of the OCTOSPI IO Manager is used for the clk pin.

If absent, then n is used where `n` is the OSPI
instance number.

Note: You might need to enable the OCTOSPI I/O manager clock to use the
      property. Please refer to Reference Manual.
      The clock can be enabled in the devicetree.

Legal values: 1, 2

dqs-port

int

Specifies which port of the OCTOSPI IO Manager is used for the dqs pin.

If absent, then n is used where `n` is the OSPI
instance number.

Note: You might need to enable the OCTOSPI I/O manager clock to use the
      property. Please refer to Reference Manual.
      The clock can be enabled in the devicetree.

Legal values: 1, 2

ncs-port

int

Specifies which port of the OCTOSPI IO Manager is used for the ncs pin.

If absent, then n is used where `n` is the OSPI
instance number.

Note: You might need to enable the OCTOSPI I/O manager clock to use the
      property. Please refer to Reference Manual.
      The clock can be enabled in the devicetree.

Legal values: 1, 2