USB devicetree nodes in Zephyr have different names, mostly derived from the designations in data sheets. We also have an USB audio sample which has a kind of experimental approach to configure audio devices, that are not real hardware, via devicetree. Sample itself is generic and can be run on any board with USB device controller and isochronous endpoints support. Add usbd0 alias to specific USB node to allow generic USB audio sample to be build on nRF and i.MX RT boards. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
29 lines
508 B
Text
29 lines
508 B
Text
/*
|
|
* Copyright (c) 2020 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <nordic/nrf5340_cpuappns_qkaa.dtsi>
|
|
#include "nrf5340_cpuapp_common.dts"
|
|
|
|
/ {
|
|
model = "Nordic NRF5340 DK NRF5340 Application";
|
|
compatible = "nordic,nrf5340-dk-nrf5340-cpuapp";
|
|
|
|
chosen {
|
|
zephyr,sram = &sram0_ns;
|
|
zephyr,flash = &flash0;
|
|
zephyr,code-partition = &slot0_ns_partition;
|
|
};
|
|
|
|
aliases {
|
|
usbd0 = &usbd;
|
|
};
|
|
};
|
|
|
|
&usbd {
|
|
compatible = "nordic,nrf-usbd";
|
|
status = "okay";
|
|
};
|