Skip to content

Commit 01bc0c3

Browse files
oryjkovmniestroj
authored andcommitted
boards: arm: use QSPI on XIAO BLE Sense
The external flash chip is wired for QSPI. The chip, P25Q16H, has its "Quad enable" bit in bit 9 of the Read Status Register (section 10.5 in the datasheet), hence needs this particular quad enable requirement. Co-authored-by: Marcin Niestroj <m.niestroj@emb.dev> Signed-off-by: Oleg Ryjkov <oryjkov@gmail.com>
1 parent 705e1e7 commit 01bc0c3

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

boards/arm/xiao_ble/xiao_ble_common.dtsi

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
bootloader-led0 = &led0;
5555
mcuboot-led0 = &led0;
5656
watchdog0 = &wdt0;
57-
spi-flash0 = &p25q16h_spi;
57+
spi-flash0 = &p25q16h;
5858
};
5959
};
6060

@@ -107,18 +107,16 @@
107107
pinctrl-names = "default", "sleep";
108108
};
109109

110-
&spi3 {
110+
&qspi {
111111
status = "okay";
112-
pinctrl-0 = <&spi3_default>;
113-
pinctrl-1 = <&spi3_sleep>;
112+
pinctrl-0 = <&qspi_default>;
113+
pinctrl-1 = <&qspi_sleep>;
114114
pinctrl-names = "default", "sleep";
115-
cs-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
116-
p25q16h_spi: p25q16h@0 {
117-
compatible = "jedec,spi-nor";
115+
p25q16h: p25q16h@0 {
116+
compatible = "nordic,qspi-nor";
118117
reg = <0>;
119-
wp-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
120-
hold-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
121-
spi-max-frequency = <104000000>;
118+
sck-frequency = <104000000>;
119+
quad-enable-requirements = "S2B1v1";
122120
jedec-id = [85 60 15];
123121
sfdp-bfp = [
124122
e5 20 f1 ff ff ff ff 00 44 eb 08 6b 08 3b 80 bb

0 commit comments

Comments
 (0)