-
Notifications
You must be signed in to change notification settings - Fork 1.4k
nRF71 Wi-Fi support #24798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+545
−3
Merged
nRF71 Wi-Fi support #24798
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e2dcde1
soc: nordic: nrf7120pdk: Add Wi-Fi support
krish2718 61bfd9e
soc: nrf71: Add a pre-engineering SoC variant
krish2718 ea9d6ef
boards: nrf7120pdk: Add a FPGA variant
krish2718 928d6e4
tests: drivers: nrf_wifi: raw_tx_rx: Set filter for long packets
krish2718 2e47ae2
tests: drivers: nrf_wifi: Add RF POCAP support
krish2718 13b6783
manifest: sdk-zephyr: Pull nRF71 Wi-Fi support
krish2718 3945596
manifest: sdk-nrfxlib: Pull new nRF71 interface files
krish2718 ef9e51e
samples: wifi: shell: Add playout/cap shell
krish2718 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,5 @@ board: | |
| cpucluster: cpuapp | ||
| - name: emu | ||
| cpucluster: cpuapp | ||
| - name: fpga | ||
| cpucluster: cpuapp | ||
29 changes: 29 additions & 0 deletions
29
boards/nordic/nrf7120pdk/nrf7120pdk_nrf7120-fpga-pinctrl.dtsi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| &pinctrl { | ||
| /omit-if-no-ref/ uart00_default: uart00_default { | ||
| group1 { | ||
| psels = <NRF_PSEL(UART_TX, 2, 2)>, | ||
| <NRF_PSEL(UART_RTS, 2, 5)>; | ||
| }; | ||
|
|
||
| group2 { | ||
| psels = <NRF_PSEL(UART_RX, 2, 0)>, | ||
| <NRF_PSEL(UART_CTS, 2, 4)>; | ||
| bias-pull-up; | ||
| }; | ||
| }; | ||
|
|
||
| /omit-if-no-ref/ uart00_sleep: uart00_sleep { | ||
| group1 { | ||
| psels = <NRF_PSEL(UART_TX, 2, 2)>, | ||
| <NRF_PSEL(UART_RX, 2, 0)>, | ||
| <NRF_PSEL(UART_RTS, 2, 5)>, | ||
| <NRF_PSEL(UART_CTS, 2, 4)>; | ||
| low-power-enable; | ||
| }; | ||
| }; | ||
| }; |
49 changes: 49 additions & 0 deletions
49
boards/nordic/nrf7120pdk/nrf7120pdk_nrf7120_cpuapp_fpga.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include "nrf7120_cpuapp_common.dtsi" | ||
| #include "nrf7120pdk_nrf7120-fpga-pinctrl.dtsi" | ||
|
|
||
| / { | ||
| compatible = "nordic,nrf7120pdk_nrf7120-cpuapp"; | ||
| model = "Nordic nRF7120 PDK nRF7120 Application MCU"; | ||
|
|
||
| chosen { | ||
| zephyr,sram = &cpuapp_sram; | ||
| zephyr,console = &uart00; | ||
| zephyr,shell-uart = &uart00; | ||
| }; | ||
| }; | ||
|
|
||
| &uart00 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &grtc { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &systick { | ||
| status = "disabled"; | ||
| }; | ||
|
|
||
| &psa_rng { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &uicr { | ||
| status = "disabled"; | ||
| }; | ||
|
|
||
| &clock { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &cpuapp_sram { | ||
| status = "okay"; | ||
| }; |
23 changes: 23 additions & 0 deletions
23
boards/nordic/nrf7120pdk/nrf7120pdk_nrf7120_cpuapp_fpga.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Copyright (c) 2025 Nordic Semiconductor ASA | ||
| # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
|
||
| identifier: nrf7120pdk/nrf7120/cpuapp/fpga | ||
| name: nRF7120-PDK-nRF7120-Application | ||
| type: mcu | ||
| arch: arm | ||
| toolchain: | ||
| - gnuarmemb | ||
| - xtools | ||
| - zephyr | ||
| sysbuild: true | ||
| ram: 512 | ||
| flash: 960 | ||
| supported: | ||
| - adc | ||
| - counter | ||
| - gpio | ||
| - i2c | ||
| - pwm | ||
| - spi | ||
| - watchdog | ||
| - i2s |
37 changes: 37 additions & 0 deletions
37
boards/nordic/nrf7120pdk/nrf7120pdk_nrf7120_cpuapp_fpga_defconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Copyright (c) 2025 Nordic Semiconductor ASA | ||
| # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
|
||
| # Enable UART driver | ||
| CONFIG_SERIAL=y | ||
|
|
||
| # Enable console | ||
| CONFIG_CONSOLE=y | ||
| CONFIG_UART_CONSOLE=y | ||
|
|
||
| # Enable GPIO | ||
| CONFIG_GPIO=y | ||
|
|
||
| # Enable MPU | ||
| CONFIG_ARM_MPU=y | ||
|
|
||
| # Enable hardware stack protection | ||
| CONFIG_HW_STACK_PROTECTION=y | ||
|
|
||
| # MPU-based null-pointer dereferencing detection cannot | ||
| # be applied as the (0x0 - 0x400) is unmapped for this target. | ||
| CONFIG_NULL_POINTER_EXCEPTION_DETECTION_NONE=y | ||
|
|
||
| # Start SYSCOUNTER on driver init | ||
| CONFIG_NRF_GRTC_TIMER_APP_DEFINED_INIT=n | ||
| CONFIG_NRF_GRTC_START_SYSCOUNTER=y | ||
|
|
||
| # LFRC is not working in EMU at the moment | ||
| # CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y | ||
|
|
||
| # CRACEN not available on emulator | ||
| CONFIG_CRACEN_LIB_KMU=n | ||
|
|
||
| # Enable Debugging when working with emulator | ||
| CONFIG_OUTPUT_DISASSEMBLY=y | ||
| CONFIG_DEBUG=y | ||
| CONFIG_LOG=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /** | ||
| * @file | ||
| * @brief WiFi pre-silicon testing shell | ||
| */ | ||
|
|
||
| #include <zephyr/sys/printk.h> | ||
| #include <zephyr/kernel.h> | ||
| #include <zephyr/shell/shell.h> | ||
| #include <zephyr/posix/unistd.h> | ||
| #include <zephyr/logging/log.h> | ||
| #include <soc.h> | ||
|
|
||
| LOG_MODULE_REGISTER(pocap_mode, CONFIG_LOG_DEFAULT_LEVEL); | ||
|
|
||
| static int cmd_wifi_pocap(const struct shell *sh, size_t argc, char *argv[]) | ||
| { | ||
| uint32_t rx_mode = 0, tx_mode = 0, rx_holdoff = 0, rx_wrap = 0, b2b_mode = 0; | ||
| int opt; | ||
|
|
||
| optind = 1; | ||
|
|
||
| while ((opt = getopt(argc, argv, "r:t:h:w:b:")) != -1) { | ||
| switch (opt) { | ||
| case 'r': | ||
| rx_mode = (uint32_t)atoi(optarg); | ||
| break; | ||
| case 't': | ||
| tx_mode = (uint32_t)atoi(optarg); | ||
| break; | ||
| case 'h': | ||
| rx_holdoff = (uint32_t)atoi(optarg); | ||
| break; | ||
| case 'w': | ||
| rx_wrap = (uint32_t)atoi(optarg); | ||
| break; | ||
| case 'b': | ||
| b2b_mode = (uint32_t)atoi(optarg); | ||
| break; | ||
| default: | ||
| shell_print( | ||
| sh, | ||
| "Usage: wifi_pocap [-b b2b_mode] [other opts]\n" | ||
| "b2b_mode=0: -r rx_mode -t tx_mode -h rx_holdoff_len -w " | ||
| "rx_wrap_len\n" | ||
| "Defaults: rx_mode=0 tx_mode=0 rx_holdoff=0 rx_wrap=0 b2b_mode=0"); | ||
| return -EINVAL; | ||
| } | ||
| } | ||
|
|
||
| if (b2b_mode) { | ||
| shell_print(sh, "Config: back_to_back_mode=%u (others ignored in B2B mode)", | ||
| b2b_mode); | ||
| configure_playout_capture(0, 0, 0, 0, b2b_mode); | ||
| } else { | ||
| shell_print(sh, "Config: rx=%u tx=%u holdoff=%u wrap=%u b2b=%u", rx_mode, tx_mode, | ||
| rx_holdoff, rx_wrap, b2b_mode); | ||
| configure_playout_capture(rx_mode, tx_mode, rx_holdoff, rx_wrap, 0); | ||
| } | ||
|
|
||
| return 0; | ||
| } | ||
|
|
||
| SHELL_CMD_REGISTER(wifi_pocap, NULL, "Configure RF Playout Capture", cmd_wifi_pocap); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this is added before the symbol is actually added and is wrong, since it would need to go through a whole other CI run to do this, fix this if other changes are needed otherwise it can stay but please remember to order commits correctly in future where commits are added which do not have dependencies upon later commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed it during rebase, will take care of it next time, thanks.