1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <dt-bindings/usb/audio.h>
8
9/ {
10	uac2_headphones: usb_audio2 {
11		compatible = "zephyr,uac2";
12		status = "okay";
13		audio-function = <AUDIO_FUNCTION_OTHER>;
14
15		uac_aclk: aclk {
16			compatible = "zephyr,uac2-clock-source";
17			clock-type = "internal-programmable";
18			frequency-control = "host-programmable";
19			sampling-frequencies = <48000>;
20		};
21
22		out_terminal: out_terminal {
23			compatible = "zephyr,uac2-input-terminal";
24			clock-source = <&uac_aclk>;
25			terminal-type = <USB_TERMINAL_STREAMING>;
26			front-left;
27			front-right;
28		};
29
30		headphones_output: headphones {
31			compatible = "zephyr,uac2-output-terminal";
32			data-source = <&out_terminal>;
33			clock-source = <&uac_aclk>;
34			terminal-type = <OUTPUT_TERMINAL_HEADPHONES>;
35		};
36
37		as_iso_out: out_interface {
38			compatible = "zephyr,uac2-audio-streaming";
39			linked-terminal = <&out_terminal>;
40			subslot-size = <2>;
41			bit-resolution = <16>;
42		};
43	};
44};
45