boards: native_posix: add USB device controller binding and node

Current USB device controller drivers (drivers/usb/device)
do not use DEVICE_DT_GET but the properties from devicetree,
and USB device controller node is parent for CDC ACM UART and
AUDIO children nodes.

Add USB device controller binding and node to keep the samples
building for native_posix driver.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-08-08 23:57:50 +02:00 committed by Christopher Friedt
commit 5ee0f6bd8e
2 changed files with 13 additions and 0 deletions

View file

@ -171,4 +171,9 @@
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
}; };
zephyr_udc0: udc0 {
compatible = "zephyr,native-posix-udc";
label = "USBD";
};
}; };

View file

@ -0,0 +1,8 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
description: Native POSIX USB device controller
compatible: "zephyr,native-posix-udc"
include: usb-controller.yaml