Skip to content

Commit 181c42c

Browse files
committed
boards: qemu: cortex_r5: Added QSPI settings
Added device tree entries for the QSPI device and the flash devices which are present behind it on this emulated board. Signed-off-by: Robert Hancock <robert.hancock@calian.com>
1 parent 7af99a9 commit 181c42c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

boards/qemu/cortex_r5/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ config COMPILER_ISA_THUMB2
1313

1414
endif
1515

16+
if SPI_NOR
17+
18+
choice SPI_NOR_SFDP
19+
default SPI_NOR_SFDP_DEVICETREE
20+
endchoice
21+
22+
endif
23+
1624
endif # BOARD_QEMU_CORTEX_R5

boards/qemu/cortex_r5/qemu_cortex_r5.dts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,36 @@
3131
status = "okay";
3232
clock-frequency = <5000000>;
3333
};
34+
35+
&qspi {
36+
status = "okay";
37+
clock-frequency = <124987511>;
38+
39+
flash@0 {
40+
compatible = "jedec,spi-nor";
41+
#address-cells = <1>;
42+
#size-cells = <1>;
43+
reg = <0x0>;
44+
spi-max-frequency = <166000000>;
45+
jedec-id = [20 bb 20];
46+
sfdp-bfp = [e5 20 fb ff ff ff ff 1f 29 eb 27 6b 27 3b 27 bb
47+
ff ff ff ff ff ff 27 bb ff ff 29 eb 0c 20 10 d8
48+
00 00 00 00 35 8a 01 00 82 a3 03 da 6c c1 04 2e
49+
7a 75 7a 75 fb bd d5 5c 08 0f 82 ff 81 bd 35 36];
50+
size = <0x20000000>;
51+
};
52+
53+
flash@1 {
54+
compatible = "jedec,spi-nor";
55+
#address-cells = <1>;
56+
#size-cells = <1>;
57+
reg = <0x1>;
58+
spi-max-frequency = <166000000>;
59+
jedec-id = [20 bb 20];
60+
sfdp-bfp = [e5 20 fb ff ff ff ff 1f 29 eb 27 6b 27 3b 27 bb
61+
ff ff ff ff ff ff 27 bb ff ff 29 eb 0c 20 10 d8
62+
00 00 00 00 35 8a 01 00 82 a3 03 da 6c c1 04 2e
63+
7a 75 7a 75 fb bd d5 5c 08 0f 82 ff 81 bd 35 36];
64+
size = <0x20000000>;
65+
};
66+
};

0 commit comments

Comments
 (0)