Skip to content

Commit d503f60

Browse files
yishai1999kartben
authored andcommitted
boards: silabs: xg23_rb4210a: added spi nor
Added external mx25r8035f SPI NOR to xg23_rb4210a board Signed-off-by: Yishai Jaffe <[email protected]>
1 parent dfbdff5 commit d503f60

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Hardware
2323
- Crystals for LFXO (32.768 kHz) and HFXO (39 MHz).
2424
- Silicon Labs Si7021 relative humidity and temperature sensor
2525
- Low-power 128x128 pixel Memory LCD
26+
- Macronix ultra low power 8-Mbit SPI flash (MX25R8035F)
2627

2728
For more information about the EFR32ZG23 SoC and BRD4210A board, refer to these
2829
documents:
@@ -89,9 +90,13 @@ means Pin number 2 on PORTA, as used in the board's datasheets and manuals.
8990
+-------+-------------+-------------------------------------+
9091
| PB3 | GPIO | Push Button 1 |
9192
+-------+-------------+-------------------------------------+
92-
| PC1 | EUSART1_TX | Display SPI MOSI |
93+
| PC1 | EUSART1_TX | Display/Flash SPI MOSI |
9394
+-------+-------------+-------------------------------------+
94-
| PC3 | EUSART1_CLK | Display SPI Clock |
95+
| PC2 | EUSART1_RX | Flash SPI MISO |
96+
+-------+-------------+-------------------------------------+
97+
| PC3 | EUSART1_CLK | Display/Flash SPI Clock |
98+
+-------+-------------+-------------------------------------+
99+
| PC4 | GPIO | Flash SPI Chip Select |
95100
+-------+-------------+-------------------------------------+
96101
| PC5 | I2C0_SCL | Si7021 I2C Clock |
97102
+-------+-------------+-------------------------------------+

boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
drive-push-pull;
2727
output-high;
2828
};
29+
group1 {
30+
pins = <EUSART1_RX_PC2>;
31+
input-enable;
32+
silabs,input-filter;
33+
};
2934
};
3035

3136
i2c0_default: i2c0_default {

boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
#size-cells = <0>;
132132
pinctrl-0 = <&eusart1_default>;
133133
pinctrl-names = "default";
134-
cs-gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>;
134+
cs-gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>, <&gpioc 4 GPIO_ACTIVE_LOW>;
135135

136136
ls0xx_ls013b7dh03: ls0xx@0 {
137137
compatible = "sharp,ls0xx";
@@ -143,6 +143,18 @@
143143
extcomin-frequency = <60>;
144144
disp-en-gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>;
145145
};
146+
147+
mx25r80: mx25r8035f@1 {
148+
compatible = "jedec,spi-nor";
149+
reg = <1>;
150+
spi-max-frequency = <DT_FREQ_M(33)>;
151+
size = <DT_SIZE_M(8)>;
152+
jedec-id = [c2 28 14];
153+
has-dpd;
154+
dpd-wakeup-sequence = <30000 20 35000>;
155+
t-enter-dpd = <0>;
156+
mxicy,mx25r-power-mode = "low-power";
157+
};
146158
};
147159

148160
&i2c0 {

0 commit comments

Comments
 (0)