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:
parent
35ff632321
commit
5ee0f6bd8e
2 changed files with 13 additions and 0 deletions
|
@ -171,4 +171,9 @@
|
|||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
zephyr_udc0: udc0 {
|
||||
compatible = "zephyr,native-posix-udc";
|
||||
label = "USBD";
|
||||
};
|
||||
};
|
||||
|
|
8
dts/bindings/usb/zephyr,native-posix-udc.yaml
Normal file
8
dts/bindings/usb/zephyr,native-posix-udc.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue