1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "../app.overlay"
8
9&pinctrl {
10	tdm130_default_alt: tdm130_default_alt {
11		group1 {
12			psels = <NRF_PSEL(TDM_SCK_M, 1, 3)>,
13				<NRF_PSEL(TDM_FSYNC_M, 1, 6)>,
14				<NRF_PSEL(TDM_SDOUT, 1, 4)>,
15				<NRF_PSEL(TDM_SDIN, 1, 5)>;
16		};
17	};
18};
19
20i2s_rxtx: &tdm130 {
21	status = "okay";
22	pinctrl-0 = <&tdm130_default_alt>;
23	pinctrl-names = "default";
24	memory-regions = <&cpuapp_dma_region>;
25	mck-clock-source = "ACLK";
26	sck-clock-source = "ACLK";
27};
28
29&audiopll {
30	frequency = <NRFS_AUDIOPLL_FREQ_AUDIO_48K>;
31	status = "okay";
32};
33
34&cpuapp_dma_region {
35	status = "okay";
36};
37
38/* PPI channel 0 for TDM130 MAXCNT */
39&dppic132 {
40	compatible = "nordic,nrf-dppic-global";
41	owned-channels = <0>;
42	source-channels = <0>;
43	nonsecure-channels = <0>;
44	status = "okay";
45};
46
47/* TDM130 PPI needs routing to TIMER131 through main APB */
48&dppic130 {
49	compatible = "nordic,nrf-dppic-global";
50	owned-channels = <0>;
51	sink-channels = <0>;
52	source-channels = <0>;
53	nonsecure-channels = <0>;
54	status = "okay";
55};
56
57/* TIMER131 PPI channel 1 is used for SOF */
58&dppic133 {
59	compatible = "nordic,nrf-dppic-global";
60	owned-channels = <0 1>;
61	sink-channels = <0 1>;
62	status = "okay";
63};
64
65&timer131 {
66	status = "okay";
67};
68