nxp,flexram

Vendor: NXP Semiconductors

Description

NXP FlexRAM on-chip ram controller
If the flexram,bank-spec property is specified, then the flexram will be
dynamically reconfigured to the configuration specified at runtime. An
example to configure the flexram dynamically using the
flexram,bank-spec property for rt1060 is as follows:

&itcm {
        reg = < 0x0 DT_SIZE_K(64) >;
};
&dtcm {
        reg = < 0x20000000 DT_SIZE_K(384) >;
};
&ocram {
        reg = < 0x20280000 DT_SIZE_K(64) >;
};
&flexram {
        flexram,bank-spec = <FLEXRAM_OCRAM>,
                            <FLEXRAM_OCRAM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_ITCM>,
                            <FLEXRAM_ITCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>,
                            <FLEXRAM_DTCM>;
};

This will configure the flexram for 384K of DTCM, 64K of ITCM,
and 64K of OCRAM.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

flexram,has-magic-addr

boolean

Whether or not the flexram on the SOC has the
magic address feature, which allows for an interrupt
on arbitrary address access in any on chip RAM region.

flexram,num-ram-banks

int

Number of RAM banks in the SOC ram array

This property is required.

flexram,bank-size

int

Size of each RAM bank in KB

This property is required.

flexram,bank-spec

array

Custom mapping of runtime RAM bank partitions. If this
property is present, then it will be used. If this
property is not present, then the fusemap configuration
will be used.

flexram,tcm-read-wait-mode

boolean

TCM RAM read will finish in 2 cycles instead of 1.

flexram,tcm-write-wait-mode

boolean

TCM RAM write will finish in 2 cycles instead of 1.