2023-12-20 16:40:56 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/usb/audio.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
uac2_headphones: usb_audio2 {
|
|
|
|
compatible = "zephyr,uac2";
|
|
|
|
status = "okay";
|
2024-08-29 20:23:57 +08:00
|
|
|
full-speed;
|
2023-12-20 16:40:56 +08:00
|
|
|
audio-function = <AUDIO_FUNCTION_OTHER>;
|
|
|
|
|
|
|
|
uac_aclk: aclk {
|
|
|
|
compatible = "zephyr,uac2-clock-source";
|
|
|
|
clock-type = "internal-programmable";
|
|
|
|
frequency-control = "host-programmable";
|
|
|
|
sampling-frequencies = <48000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
out_terminal: out_terminal {
|
|
|
|
compatible = "zephyr,uac2-input-terminal";
|
|
|
|
clock-source = <&uac_aclk>;
|
|
|
|
terminal-type = <USB_TERMINAL_STREAMING>;
|
|
|
|
front-left;
|
|
|
|
front-right;
|
|
|
|
};
|
|
|
|
|
|
|
|
headphones_output: headphones {
|
|
|
|
compatible = "zephyr,uac2-output-terminal";
|
|
|
|
data-source = <&out_terminal>;
|
|
|
|
clock-source = <&uac_aclk>;
|
|
|
|
terminal-type = <OUTPUT_TERMINAL_HEADPHONES>;
|
|
|
|
};
|
|
|
|
|
|
|
|
as_iso_out: out_interface {
|
|
|
|
compatible = "zephyr,uac2-audio-streaming";
|
|
|
|
linked-terminal = <&out_terminal>;
|
|
|
|
subslot-size = <2>;
|
|
|
|
bit-resolution = <16>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|