Skip to content

Commit abfdbd6

Browse files
danieldegrassecarlescufi
authored andcommitted
boards: arm: mimxrt595_evk: enable APS64 PSRAM on FlexSPI2
Enable APS64 PSRAM on FlexSPI2 bus, running at 200MHz. This PSRAM is accessible via the memory mapped AHB region for FlexSPI2 when CONFIG_MEMC=y Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 5fb55cb commit abfdbd6

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

boards/arm/mimxrt595_evk/mimxrt595_evk_cm33-pinctrl.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,29 @@
7373
};
7474
};
7575

76+
pinmux_flexspi2: pinmux_flexspi2 {
77+
group0 {
78+
pinmux =
79+
<FLEXSPI1_SCLK_PIO4_11>,
80+
<FLEXSPI1_DATA0_PIO4_12>,
81+
<FLEXSPI1_DATA1_PIO4_13>,
82+
<FLEXSPI1_DATA2_PIO4_14>,
83+
<FLEXSPI1_DATA3_PIO4_15>,
84+
<FLEXSPI1_DATA4_PIO5_15>,
85+
<FLEXSPI1_DATA5_PIO5_16>,
86+
<FLEXSPI1_DATA6_PIO5_17>,
87+
<FLEXSPI1_DATA7_PIO5_18>,
88+
<FLEXSPI1_SS0_N_PIO4_18>;
89+
slew-rate = "normal";
90+
input-enable;
91+
drive-strength = "high";
92+
};
93+
group1 {
94+
pinmux = <FLEXSPI1_DQS_PIO4_16>;
95+
slew-rate = "normal";
96+
input-enable;
97+
drive-strength = "high";
98+
bias-pull-down;
99+
};
100+
};
76101
};

boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,30 @@ zephyr_udc0: &usbhs {
317317
};
318318
};
319319
};
320+
321+
&flexspi2 {
322+
status = "okay";
323+
pinctrl-0 = <&pinmux_flexspi2>;
324+
pinctrl-names = "default";
325+
rx-clock-source = <3>;
326+
ahb-prefetch;
327+
ahb-bufferable;
328+
ahb-cacheable;
329+
ahb-read-addr-opt;
330+
aps6408l: aps6408l@0 {
331+
compatible = "nxp,imx-flexspi-aps6408l";
332+
/* APS6408L is 8MB, 64MBit pSRAM */
333+
size = <DT_SIZE_M(8 * 8)>;
334+
reg = <0>;
335+
spi-max-frequency = <198000000>;
336+
status = "okay";
337+
cs-interval-unit = <1>;
338+
cs-interval = <5>;
339+
cs-hold-time = <3>;
340+
cs-setup-time = <3>;
341+
data-valid-time = <1>;
342+
column-space = <0>;
343+
ahb-write-wait-unit = <2>;
344+
ahb-write-wait-interval = <0>;
345+
};
346+
};

0 commit comments

Comments
 (0)