-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: device: class: gs_usb: get rid of "on-bus" devicetree requirement
Get rid of the "on-bus: usb" devicetree requirement to match upstream Zephyr USB class devicetree bindings. Signed-off-by: Henrik Brix Andersen <[email protected]>
- Loading branch information
1 parent
4e6074d
commit 5f5cc04
Showing
6 changed files
with
8 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/* | ||
* Copyright (c) 2022-2024 Henrik Brix Andersen <[email protected]> | ||
* Copyright (c) 2022-2025 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&zephyr_udc0 { | ||
/ { | ||
gs_usb0: gs_usb0 { | ||
compatible = "gs_usb"; | ||
label = "gs_usb"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2022-2024 Henrik Brix Andersen <[email protected]> | ||
# Copyright (c) 2022-2025 Henrik Brix Andersen <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Geschwister Schneider USB/CAN | ||
|
@@ -7,8 +7,6 @@ compatible: "gs_usb" | |
|
||
include: base.yaml | ||
|
||
on-bus: usb | ||
|
||
properties: | ||
label: | ||
description: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2022-2024 Henrik Brix Andersen <[email protected]> | ||
* Copyright (c) 2022-2025 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
@@ -1515,10 +1515,6 @@ static int gs_usb_init(const struct device *dev) | |
} | ||
|
||
#define GS_USB_DEVICE_DEFINE(inst) \ | ||
BUILD_ASSERT(DT_INST_ON_BUS(inst, usb), \ | ||
"node " DT_NODE_PATH( \ | ||
DT_DRV_INST(inst)) " is not assigned to a USB device controller"); \ | ||
\ | ||
NET_BUF_POOL_FIXED_DEFINE(gs_usb_pool_##inst, CONFIG_USB_DEVICE_GS_USB_POOL_SIZE, \ | ||
GS_USB_HOST_FRAME_MAX_SIZE, 0, NULL); \ | ||
\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2022-2024 Henrik Brix Andersen <[email protected]> | ||
* Copyright (c) 2022-2025 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
@@ -1727,10 +1727,6 @@ struct usbd_class_api gs_usb_api = { | |
} | ||
|
||
#define USBD_GS_USB_DT_DEVICE_DEFINE(n) \ | ||
BUILD_ASSERT(DT_INST_ON_BUS(n, usb), \ | ||
"node " DT_NODE_PATH( \ | ||
DT_DRV_INST(n)) " is not assigned to a USB device controller"); \ | ||
\ | ||
GS_USB_DEFINE_DESCRIPTOR(n); \ | ||
\ | ||
USBD_DEFINE_CLASS(gs_usb_##n, &gs_usb_api, (void *)DEVICE_DT_GET(DT_DRV_INST(n)), \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/* | ||
* Copyright (c) 2024 Henrik Brix Andersen <[email protected]> | ||
* Copyright (c) 2024-2025 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&zephyr_udc0 { | ||
/ { | ||
gs_usb0: gs_usb0 { | ||
compatible = "gs_usb"; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2022-2024 Henrik Brix Andersen <[email protected]> | ||
* Copyright (c) 2022-2025 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
@@ -24,9 +24,7 @@ | |
status = "okay"; | ||
compatible = "zephyr,can-loopback"; | ||
}; | ||
}; | ||
|
||
&zephyr_udc0 { | ||
gs_usb0: gs_usb0 { | ||
compatible = "gs_usb"; | ||
}; | ||
|