Skip to content

Commit

Permalink
[nrf fromlist] boards: shields: nrf7002ek: align with nrf700x split i…
Browse files Browse the repository at this point in the history
…nterface

Add variant for the coex interface and move the coex interface out
if the wifi/control interface variants.

Upstream PR: zephyrproject-rtos/zephyr#79606

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 6b38f1a)
  • Loading branch information
bjarki-andreasen authored and github-actions[bot] committed Oct 25, 2024
1 parent 361b9a1 commit c374842
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
3 changes: 3 additions & 0 deletions boards/shields/nrf7002ek/Kconfig.shield
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ config SHIELD_NRF7002EK_NRF7001

config SHIELD_NRF7002EK_NRF7000
def_bool $(shields_list_contains,nrf7002ek_nrf7000)

config SHIELD_NRF7002EK_COEX
def_bool $(shields_list_contains,nrf7002ek_coex)
13 changes: 7 additions & 6 deletions boards/shields/nrf7002ek/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,25 @@ SR Co-existence
###############

The nRF7002 EK supports SR co-existence provided the host board supports it. The SR co-existence
pins are connected to the host board's GPIO pins.
pins are connected to the host board's GPIO pins. The interface is selected by setting
``--shield nrf7002ek_coex`` when invoking ``west build``.

Two Kconfig options are available to enable SR co-existence:

- :kconfig:option:`CONFIG_NRF70_SR_COEX`: Enables SR co-existence.
- :kconfig:option:`CONFIG_NRF70_SR_COEX`: Enables SR co-existence driver.
- :kconfig:option:`CONFIG_NRF70_SR_COEX_RF_SWITCH`: Control SR side RF switch.

Shield Variants
###############

The nRF7002 EK is available in three variants:
The nRF7002 EK is available in four variants:

- ``nrf7002ek``: The default variant.
- ``nrf7002ek_nrf7001``: Variant for the nRF7001 SoC or nRF7002 SoC emulating nRF7001
that supports only 2.4GHz Wi-Fi.
that supports only 2.4GHz Wi-Fi.
- ``nrf7002ek_nrf7000``: Variant for the nRF7000 SoC or nRF7002 SoC emulating nRF7000
that supports only 2.4GHz Wi-Fi.

that supports only 2.4GHz Wi-Fi.
- ``nrf7002ek_coex``: Variant for the SR co-existence interface

References
**********
Expand Down
21 changes: 21 additions & 0 deletions boards/shields/nrf7002ek/nrf7002ek_coex.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
nrf70: coex {
compatible = "nordic,nrf7002-coex";
status = "okay";

/* D2 */
status0-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
/* D3 */
req-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>;
/* D4 */
grant-gpios = <&arduino_header 10 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
/* D6 */
swctrl1-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>;
};
};
9 changes: 1 addition & 8 deletions boards/shields/nrf7002ek/nrf7002ek_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ iovdd-ctrl-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
bucken-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
/* D7 */
host-irq-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>;

/* Short-range (SR) co-existence */
/* D2 */
status0-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
/* D3 */
req-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>;
/* D4 */
grant-gpios = <&arduino_header 10 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
/* D6 */
swctrl1-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>;
/* D8 */
srrf-switch-gpios = <&arduino_header 14 GPIO_ACTIVE_HIGH>;

Expand Down

0 comments on commit c374842

Please sign in to comment.