32da1078da
Add a shim that allows using the nrfx I2S driver via the Zephyr API. Add also missing devicetree nodes representing the I2S peripherals in the nRF52 Series SoCs. Extend the "nordic,nrf-i2s" binding with a new property that allows specifying the clock source to be used by the I2S peripheral (so that it is possible to use HFXO for better accurracy of the peripheral clock or, in the nRF53 Series SoCs, to use the dedicated audio oscillator). Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
26 lines
559 B
Plaintext
26 lines
559 B
Plaintext
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
DT_COMPAT_NORDIC_NRF_I2S := nordic,nrf-i2s
|
|
|
|
menuconfig I2S_NRFX
|
|
bool "nRF I2S nrfx driver"
|
|
depends on $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_I2S))
|
|
default y
|
|
select NRFX_I2S
|
|
help
|
|
Enable support for nrfx I2S driver for nRF MCU series.
|
|
|
|
if I2S_NRFX
|
|
|
|
config I2S_NRFX_RX_BLOCK_COUNT
|
|
int "RX queue length"
|
|
default 4
|
|
|
|
config I2S_NRFX_TX_BLOCK_COUNT
|
|
int "TX queue length"
|
|
default 4
|
|
|
|
endif # I2S_NRFX
|