Skip to content

Commit 89c29a9

Browse files
decsnykartben
authored andcommitted
boards: mcxw71: Enable spi nor flash
Add support for the on board spi nor flash Signed-off-by: Declan Snyder <[email protected]>
1 parent aaa119d commit 89c29a9

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

boards/nxp/frdm_mcxw71/frdm_mcxw71-pinctrl.dtsi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
pinmux_lpspi1: pinmux_lpspi1 {
5656
group0 {
5757
pinmux = <LPSPI1_SIN_PTB1>,
58-
<LPSPI1_SOUT_PTB3>;
58+
<LPSPI1_SCK_PTB2>,
59+
<LPSPI1_SOUT_PTB3>,
60+
<LPSPI1_PCS0_PTB0>;
5961
slew-rate = "fast";
6062
drive-strength = "low";
6163
};

boards/nxp/frdm_mcxw71/frdm_mcxw71.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,28 @@
9595
status = "okay";
9696
pinctrl-0 = <&pinmux_lpspi1>;
9797
pinctrl-names = "default";
98+
pcs-sck-delay = <5>;
99+
sck-pcs-delay = <5>;
100+
transfer-delay = <125>;
101+
102+
mx25r6435fm2il0: flash@0 {
103+
compatible = "jedec,spi-nor";
104+
jedec-id = [c2 28 17];
105+
reg = <0>;
106+
/* only wp-gpio on default board configuration,
107+
* there is a reset gpio line but the line is
108+
* DNP by default on the board (R4 on schematic)
109+
*/
110+
wp-gpios = <&gpioc 0 GPIO_ACTIVE_LOW>;
111+
size = <DT_SIZE_M(64)>;
112+
has-dpd;
113+
dpd-wakeup-sequence = <30000 20 35000>;
114+
t-enter-dpd = <10000>;
115+
/* this is the default (reset) mode for this flash */
116+
mxicy,mx25r-power-mode = "low-power";
117+
/* 8 MHz for low power mode */
118+
spi-max-frequency = <8000000>;
119+
};
98120
};
99121

100122
&flash {

0 commit comments

Comments
 (0)