boards: efr32_slwstk6061a: Add support for spi nor flash
This commit adds support for the on-board flash MX25R8035F that is directly connected to the efr32fg soc. Signed-off-by: Christian Taedcke <hacking@taedcke.com>
This commit is contained in:
parent
0201d182a8
commit
20aa2bcf05
4 changed files with 43 additions and 0 deletions
|
@ -69,6 +69,8 @@ The efr32_slwstk6061a board configuration supports the following hardware featur
|
|||
| UART | on-chip | serial port-polling; |
|
||||
| | | serial port-interrupt |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SPI(M) | on-chip | spi port-polling |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the defconfig file:
|
||||
|
||||
|
@ -103,6 +105,14 @@ means Pin number 2 on PORTA, as used in the board's datasheets and manuals.
|
|||
+-------+-------------+-------------------------------------+
|
||||
| PA1 | USART0_RX | UART Console EFM_BC_RX US0_RX #0 |
|
||||
+-------+-------------+-------------------------------------+
|
||||
| PC6 | SPI_MOSI | Flash MOSI US1_TX #11 |
|
||||
+-------+-------------+-------------------------------------+
|
||||
| PC7 | SPI_MISO | Flash MISO US1_RX #11 |
|
||||
+-------+-------------+-------------------------------------+
|
||||
| PC8 | SPI_SCLK | Flash SCLK US1_CLK #11 |
|
||||
+-------+-------------+-------------------------------------+
|
||||
| PA4 | SPI_CS | Flash Chip Select (GPIO) |
|
||||
+-------+-------------+-------------------------------------+
|
||||
|
||||
System Clock
|
||||
============
|
||||
|
|
|
@ -66,6 +66,31 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
compatible = "silabs,gecko-spi-usart";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
location-rx = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(7)>;
|
||||
location-tx = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(6)>;
|
||||
location-clk = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(8)>;
|
||||
|
||||
cs-gpios = <&gpioa 4 0>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
mx25r80: mx25r8035f@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
label = "MX25R8035F";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>;
|
||||
size = <0x800000>;
|
||||
has-be32k;
|
||||
jedec-id = [c2 28 14];
|
||||
};
|
||||
};
|
||||
|
||||
&rtcc0 {
|
||||
prescaler = <1>;
|
||||
status = "okay";
|
||||
|
|
|
@ -11,6 +11,7 @@ toolchain:
|
|||
supported:
|
||||
- gpio
|
||||
- nvs
|
||||
- spi
|
||||
testing:
|
||||
ignore_tags:
|
||||
- net
|
||||
|
|
|
@ -30,3 +30,10 @@ config SOC_FLASH_GECKO
|
|||
default y
|
||||
|
||||
endif # FLASH
|
||||
|
||||
if SPI
|
||||
|
||||
config SPI_GECKO
|
||||
default y
|
||||
|
||||
endif # SPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue