-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Nrf7120 pdm test support #25347
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
Draft
Hi-Im-David
wants to merge
2
commits into
nrfconnect:main
Choose a base branch
from
Hi-Im-David:nrf7120-pdm-test-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Nrf7120 pdm test support #25347
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
32 changes: 32 additions & 0 deletions
32
samples/zephyr/drivers/audio/dmic/boards/nrf7120pdk_nrf7120_cpuapp.overlay
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,32 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| / { | ||
| aliases { | ||
| dmic-dev = &pdm20; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| pdm20_default_alt: pdm20_default_alt { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 14)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 12)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| dmic_dev: &pdm20 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm20_default_alt>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "ACLK"; | ||
| }; | ||
|
|
||
| &audio_auxpll { | ||
| nordic,frequency = <NRF_AUXPLL_FREQ_DIV_AUDIO_48K>; | ||
| status = "okay"; | ||
| }; |
41 changes: 41 additions & 0 deletions
41
tests/drivers/audio/pdm_instances/boards/nrf7120pdk_nrf7120_cpuapp.overlay
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,41 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /* Test requires loopbacks: | ||
| * - between P1.14 and P1.0, | ||
| * - between P1.13 and P1.15. | ||
| * For best performance, PDM_CLK shall be on 'Clock pin'. | ||
| */ | ||
|
|
||
| &pinctrl { | ||
| pdm20_default_test: pdm20_default_test { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 14)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 0)>; | ||
| }; | ||
| }; | ||
|
|
||
| pdm21_default_test: pdm21_default_test { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 13)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 15)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &pdm20 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm20_default_test>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "PCLK32M"; | ||
| }; | ||
|
|
||
| &pdm21 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm21_default_test>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "PCLK32M"; | ||
| }; |
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
39 changes: 39 additions & 0 deletions
39
tests/drivers/audio/pdm_loopback/boards/nrf7120pdk_nrf7120_cpuapp.overlay
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,39 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
| /* Loopback between P0.0 and P1.14 required */ | ||
|
|
||
| / { | ||
| gpio_test { | ||
| compatible = "gpio-leds"; | ||
| pulse_counter: pulse_counter { | ||
| gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| pdm20_default_alt: pdm20_default_alt { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 14)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 12)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| pdm_dev: &pdm20 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm20_default_alt>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "PCLK32M"; | ||
| }; | ||
|
|
||
| &gpio1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &timer00 { | ||
| status = "okay"; | ||
| }; | ||
44 changes: 44 additions & 0 deletions
44
...s/drivers/audio/pdm_loopback/boards/nrf7120pdk_nrf7120_cpuapp_audio_auxpll_44k1hz.overlay
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,44 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
| /* Loopback between P0.0 and P1.14 required */ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1.0? |
||
|
|
||
| / { | ||
| gpio_test { | ||
| compatible = "gpio-leds"; | ||
| pulse_counter: pulse_counter { | ||
| gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| pdm20_default_alt: pdm20_default_alt { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 14)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 12)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| pdm_dev: &pdm20 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm20_default_alt>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "ACLK"; | ||
| }; | ||
|
|
||
| &audio_auxpll { | ||
| nordic,frequency = <NRF_AUXPLL_FREQ_DIV_AUDIO_44K1>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &gpio1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &timer00 { | ||
| status = "okay"; | ||
| }; | ||
44 changes: 44 additions & 0 deletions
44
tests/drivers/audio/pdm_loopback/boards/nrf7120pdk_nrf7120_cpuapp_audio_auxpll_48khz.overlay
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,44 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
| /* Loopback between P0.0 and P1.14 required */ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1.0? |
||
|
|
||
| / { | ||
| gpio_test { | ||
| compatible = "gpio-leds"; | ||
| pulse_counter: pulse_counter { | ||
| gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| pdm20_default_alt: pdm20_default_alt { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 14)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 12)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| pdm_dev: &pdm20 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm20_default_alt>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "ACLK"; | ||
| }; | ||
|
|
||
| &audio_auxpll { | ||
| nordic,frequency = <NRF_AUXPLL_FREQ_DIV_AUDIO_48K>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &gpio1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &timer00 { | ||
| status = "okay"; | ||
| }; | ||
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
32 changes: 32 additions & 0 deletions
32
tests/zephyr/drivers/audio/dmic_api/boards/nrf7120pdk_nrf7120_cpuapp.overlay
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,32 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /* Test requires loopbacks: | ||
| * - between P1.14 and P1.0, | ||
| * For best performance, PDM_CLK shall be on 'Clock pin'. | ||
| */ | ||
|
|
||
| / { | ||
| aliases { | ||
| dmic-dev = &pdm20; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| pdm20_default_test: pdm20_default_test { | ||
| group1 { | ||
| psels = <NRF_PSEL(PDM_CLK, 1, 14)>, | ||
| <NRF_PSEL(PDM_DIN, 1, 0)>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &pdm20 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&pdm20_default_test>; | ||
| pinctrl-names = "default"; | ||
| clock-source = "PCLK32M"; | ||
| }; |
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.
Is P0.0 correct? Shouldn't this be P1.0?