Skip to content

Commit cad2492

Browse files
Patrice ChotardAlexandre Torgue
authored andcommitted
arm64: dts: st: Add SPI NOR flash support on stm32mp257f-ev1 board
Add SPI NOR flash nor support on stm32mp257f-ev1 board. Signed-off-by: Patrice Chotard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Torgue <[email protected]>
1 parent 6dabe0d commit cad2492

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
reg = <0x0 0x80000000 0x0 0x4000000>;
8181
no-map;
8282
};
83+
84+
mm_ospi1: mm-ospi@60000000 {
85+
reg = <0x0 0x60000000 0x0 0x10000000>;
86+
no-map;
87+
};
8388
};
8489
};
8590

@@ -190,6 +195,33 @@
190195
status = "disabled";
191196
};
192197

198+
&ommanager {
199+
memory-region = <&mm_ospi1>;
200+
pinctrl-0 = <&ospi_port1_clk_pins_a
201+
&ospi_port1_io03_pins_a
202+
&ospi_port1_cs0_pins_a>;
203+
pinctrl-1 = <&ospi_port1_clk_sleep_pins_a
204+
&ospi_port1_io03_sleep_pins_a
205+
&ospi_port1_cs0_sleep_pins_a>;
206+
pinctrl-names = "default", "sleep";
207+
status = "okay";
208+
209+
spi@0 {
210+
#address-cells = <1>;
211+
#size-cells = <0>;
212+
memory-region = <&mm_ospi1>;
213+
status = "okay";
214+
215+
flash0: flash@0 {
216+
compatible = "jedec,spi-nor";
217+
reg = <0>;
218+
spi-rx-bus-width = <4>;
219+
spi-tx-bus-width = <4>;
220+
spi-max-frequency = <50000000>;
221+
};
222+
};
223+
};
224+
193225
&rtc {
194226
status = "okay";
195227
};

0 commit comments

Comments
 (0)