From d503f60c70e794df71ce76af2cb0cc0ed1ca69a2 Mon Sep 17 00:00:00 2001 From: Yishai Jaffe Date: Thu, 23 Jan 2025 14:30:06 +0200 Subject: [PATCH] boards: silabs: xg23_rb4210a: added spi nor Added external mx25r8035f SPI NOR to xg23_rb4210a board Signed-off-by: Yishai Jaffe --- .../silabs/radio_boards/xg23_rb4210a/doc/index.rst | 9 +++++++-- .../xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi | 5 +++++ .../radio_boards/xg23_rb4210a/xg23_rb4210a.dts | 14 +++++++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst b/boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst index fe57094b45b..e093f20594d 100644 --- a/boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst +++ b/boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst @@ -23,6 +23,7 @@ Hardware - Crystals for LFXO (32.768 kHz) and HFXO (39 MHz). - Silicon Labs Si7021 relative humidity and temperature sensor - Low-power 128x128 pixel Memory LCD +- Macronix ultra low power 8-Mbit SPI flash (MX25R8035F) For more information about the EFR32ZG23 SoC and BRD4210A board, refer to these documents: @@ -89,9 +90,13 @@ means Pin number 2 on PORTA, as used in the board's datasheets and manuals. +-------+-------------+-------------------------------------+ | PB3 | GPIO | Push Button 1 | +-------+-------------+-------------------------------------+ -| PC1 | EUSART1_TX | Display SPI MOSI | +| PC1 | EUSART1_TX | Display/Flash SPI MOSI | +-------+-------------+-------------------------------------+ -| PC3 | EUSART1_CLK | Display SPI Clock | +| PC2 | EUSART1_RX | Flash SPI MISO | ++-------+-------------+-------------------------------------+ +| PC3 | EUSART1_CLK | Display/Flash SPI Clock | ++-------+-------------+-------------------------------------+ +| PC4 | GPIO | Flash SPI Chip Select | +-------+-------------+-------------------------------------+ | PC5 | I2C0_SCL | Si7021 I2C Clock | +-------+-------------+-------------------------------------+ diff --git a/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi b/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi index ccda50efde2..c899c0558f8 100644 --- a/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi +++ b/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi @@ -26,6 +26,11 @@ drive-push-pull; output-high; }; + group1 { + pins = ; + input-enable; + silabs,input-filter; + }; }; i2c0_default: i2c0_default { diff --git a/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts b/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts index 46c905a6057..5dc8423e32f 100644 --- a/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts +++ b/boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts @@ -131,7 +131,7 @@ #size-cells = <0>; pinctrl-0 = <&eusart1_default>; pinctrl-names = "default"; - cs-gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>, <&gpioc 4 GPIO_ACTIVE_LOW>; ls0xx_ls013b7dh03: ls0xx@0 { compatible = "sharp,ls0xx"; @@ -143,6 +143,18 @@ extcomin-frequency = <60>; disp-en-gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>; }; + + mx25r80: mx25r8035f@1 { + compatible = "jedec,spi-nor"; + reg = <1>; + spi-max-frequency = ; + size = ; + jedec-id = [c2 28 14]; + has-dpd; + dpd-wakeup-sequence = <30000 20 35000>; + t-enter-dpd = <0>; + mxicy,mx25r-power-mode = "low-power"; + }; }; &i2c0 {