samples: usb: Audio samples support for nRF53

This patch adds support for USB Audio class samples for
nRF5340dk.

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
Emil Obalski 2020-07-29 12:04:50 +02:00 committed by Carles Cufí
parent d86c43fbb0
commit 0728949948
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
&usbd {
hp_0 {
label = "HEADPHONES";
compatible = "usb-audio-hp";
feature-mute;
channel-l;
channel-r;
};
mic_0 {
label = "MICROPHONE";
compatible = "usb-audio-mic";
feature-mute;
channel-l;
channel-r;
};
};

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
&usbd {
hs_0 {
label = "HEADSET";
compatible = "usb-audio-hs";
mic-feature-mute;
mic-channel-l;
mic-channel-r;
hp-feature-mute;
hp-channel-l;
hp-channel-r;
};
};