1/* 2 * Copyright (c) 2025 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <dt-bindings/usb/audio.h> 8 9/ { 10 uac2_broadcaster: usb_audio2 { 11 compatible = "zephyr,uac2"; 12 status = "okay"; 13 full-speed; 14 audio-function = <AUDIO_FUNCTION_OTHER>; 15 16 /* Clock supporting 48KHz 17 * 18 * For simplicity we claim support for 48KHz only and then downsample if needed 19 */ 20 uac_aclk: aclk { 21 compatible = "zephyr,uac2-clock-source"; 22 clock-type = "internal-programmable"; 23 frequency-control = "read-only"; 24 sampling-frequencies = <48000>; 25 /* Falsely claim synchronous audio because we 26 * currently don't calculate feedback value 27 */ 28 sof-synchronized; 29 }; 30 31 /* USB Audio terminal from USB host to USB device */ 32 out_terminal: out_terminal { 33 compatible = "zephyr,uac2-input-terminal"; 34 clock-source = <&uac_aclk>; 35 terminal-type = <USB_TERMINAL_STREAMING>; 36 front-left; 37 front-right; 38 }; 39 40 /* The broadcaster_output terminal defines what we are sending over Bluetooth */ 41 broadcaster_output: headphones { 42 compatible = "zephyr,uac2-output-terminal"; 43 data-source = <&out_terminal>; 44 clock-source = <&uac_aclk>; 45 terminal-type = <OUTPUT_TERMINAL_UNDEFINED>; 46 }; 47 48 as_iso_out: out_interface { 49 compatible = "zephyr,uac2-audio-streaming"; 50 linked-terminal = <&out_terminal>; 51 subslot-size = <2>; 52 bit-resolution = <16>; 53 }; 54 }; 55}; 56