-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers/i2s: Support i2s example for NXP frdm_mcxn947
Support i2s example for NXP frdm_mcxn947 Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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
25 changes: 25 additions & 0 deletions
25
tests/drivers/i2s/i2s_speed/boards/frdm_mcxn947_mcxn947_cpu0.conf
This file contains 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,25 @@ | ||
# | ||
# Copyright (c) 2024, NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# SAI peripheral does not have loopback mode. Use 2 SAI peripherals connected | ||
# together externally. | ||
CONFIG_I2S_TEST_SEPARATE_DEVICES=y | ||
|
||
# CONFIG_DMA_TCD_QUEUE_SIZE sets size of queue used to chain DMA blocks (TCDs) | ||
# together, and should be sized as needed by the application. If not large | ||
# enough, the DMA may starve. Symptoms of this issue include transmit blocks | ||
# repeated, or RX blocks skipped. For I2S driver, queue size must be at least 3. | ||
CONFIG_DMA_TCD_QUEUE_SIZE=4 | ||
|
||
# Repeat test continually to help find intermittent issues | ||
CONFIG_ZTEST_RETEST_IF_PASSED=y | ||
|
||
# I2S and DMA logging can occur in interrupt context, and interfere with I2S | ||
# stream timing. If using either logging, set logging to deferred | ||
# CONFIG_LOG_MODE_DEFERRED=y | ||
|
||
CONFIG_DMA_LOG_LEVEL_OFF=y | ||
CONFIG_I2S_LOG_LEVEL_OFF=y |
11 changes: 11 additions & 0 deletions
11
tests/drivers/i2s/i2s_speed/boards/frdm_mcxn947_mcxn947_cpu0.overlay
This file contains 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,11 @@ | ||
/* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals: | ||
* i2s-node0 is the receiver | ||
* i2s-node1 is the transmitter | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
i2s-node0 = &sai1; | ||
i2s-node1 = &sai0; | ||
}; | ||
}; |