diff --git a/tests/drivers/i2s/i2s_api/Kconfig b/tests/drivers/i2s/i2s_api/Kconfig index 538157f8a79..ff78064206e 100644 --- a/tests/drivers/i2s/i2s_api/Kconfig +++ b/tests/drivers/i2s/i2s_api/Kconfig @@ -15,7 +15,7 @@ config I2S_TEST_SEPARATE_DEVICES config I2S_TEST_USE_I2S_DIR_BOTH bool "Use I2S_DIR_BOTH value to perform RX/TX transfers" - default y if DT_HAS_NORDIC_NRF_I2S_ENABLED + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED help Use the I2S_DIR_BOTH enumeration value to trigger commands in test cases involving both reception and transmission. Use of this option @@ -24,7 +24,7 @@ config I2S_TEST_USE_I2S_DIR_BOTH config I2S_TEST_USE_GPIO_LOOPBACK bool "Use GPIO loopback" - default y if DT_HAS_NORDIC_NRF_I2S_ENABLED + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED help Use wiring between the data-out and data-in pins for looping back data. This option is intended to be used for devices that do not @@ -32,7 +32,7 @@ config I2S_TEST_USE_GPIO_LOOPBACK config I2S_TEST_ALLOWED_DATA_OFFSET int "Allowed offset in received data" - default 2 if DT_HAS_NORDIC_NRF_I2S_ENABLED + default 10 if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED default 0 help Maximum allowed offset between sent and received samples. Non-zero diff --git a/tests/drivers/i2s/i2s_api/boards/nrf54h20dk_nrf54h20_cpuapp.overlay b/tests/drivers/i2s/i2s_api/boards/nrf54h20dk_nrf54h20_cpuapp.overlay new file mode 100644 index 00000000000..0625be930fa --- /dev/null +++ b/tests/drivers/i2s/i2s_api/boards/nrf54h20dk_nrf54h20_cpuapp.overlay @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* i2s-node0 is the transmitter/receiver */ + +/ { + aliases { + i2s-node0 = &tdm130; + }; +}; + +&pinctrl { + tdm130_default_alt: tdm130_default_alt { + group1 { + psels = , + , + , + ; + }; + }; +}; + +&tdm130 { + status = "okay"; + pinctrl-0 = <&tdm130_default_alt>; + pinctrl-names = "default"; + memory-regions = <&cpuapp_dma_region>; +}; diff --git a/tests/drivers/i2s/i2s_speed/Kconfig b/tests/drivers/i2s/i2s_speed/Kconfig index 7f9e54efacc..005ab795277 100644 --- a/tests/drivers/i2s/i2s_speed/Kconfig +++ b/tests/drivers/i2s/i2s_speed/Kconfig @@ -15,7 +15,7 @@ config I2S_TEST_SEPARATE_DEVICES config I2S_TEST_USE_I2S_DIR_BOTH bool "Use I2S_DIR_BOTH value to perform RX/TX transfers" - default y if DT_HAS_NORDIC_NRF_I2S_ENABLED + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED help Use the I2S_DIR_BOTH enumeration value to trigger commands in test cases involving both reception and transmission. Use of this option @@ -24,7 +24,7 @@ config I2S_TEST_USE_I2S_DIR_BOTH config I2S_TEST_USE_GPIO_LOOPBACK bool "Use GPIO loopback" - default y if DT_HAS_NORDIC_NRF_I2S_ENABLED + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED help Use wiring between the data-out and data-in pins for looping back data. This option is intended to be used for devices that do not @@ -32,7 +32,7 @@ config I2S_TEST_USE_GPIO_LOOPBACK config I2S_TEST_ALLOWED_DATA_OFFSET int "Allowed offset in received data" - default 2 if DT_HAS_NORDIC_NRF_I2S_ENABLED + default 2 if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED default 0 help Maximum allowed offset between sent and received samples. Non-zero diff --git a/tests/drivers/i2s/i2s_speed/boards/nrf54h20dk_nrf54h20_cpuapp.overlay b/tests/drivers/i2s/i2s_speed/boards/nrf54h20dk_nrf54h20_cpuapp.overlay new file mode 100644 index 00000000000..0625be930fa --- /dev/null +++ b/tests/drivers/i2s/i2s_speed/boards/nrf54h20dk_nrf54h20_cpuapp.overlay @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* i2s-node0 is the transmitter/receiver */ + +/ { + aliases { + i2s-node0 = &tdm130; + }; +}; + +&pinctrl { + tdm130_default_alt: tdm130_default_alt { + group1 { + psels = , + , + , + ; + }; + }; +}; + +&tdm130 { + status = "okay"; + pinctrl-0 = <&tdm130_default_alt>; + pinctrl-names = "default"; + memory-regions = <&cpuapp_dma_region>; +};