-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nRF Desktop: common DTS HID/USBD improvements #19239
nRF Desktop: common DTS HID/USBD improvements #19239
Conversation
Removed the HID DTS descriptions from the common DTS file in the nRF54H20 DK configuration. This is done to improve consistency between configurations. Signed-off-by: Kamil Piszczek <[email protected]>
Removed USBD DTS node from the common DTS file in the nRF52840 dongle configuration. Signed-off-by: Kamil Piszczek <[email protected]>
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 99401b005f157dbc7814afc201aa3e794cc12a53 more detailssdk-nrf:
Github labels
List of changed files detected by CI (8)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
compatible = "nordic,nrf-usbd"; | ||
status = "okay"; | ||
num-bidir-endpoints = <0>; | ||
num-in-endpoints = <7>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The common configuration had to handle the worst possible use-case (with 4 USB HID class instances).
Together with changing approach, it would be reasonable to tailor the number of endpoints to needs of a given build type: https://github.com/nrfconnect/sdk-nrf/blob/main/applications/nrf_desktop/src/modules/usb_state.c#L125. We should also take into account additional USB endpoints used by the BLE QoS's USB CDC ACM class (to make it work without need to updating DTS manually).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just a restructure of the DTS definitions. Your suggestion changes the DTS descriptions for each build type, which requires runtime tests. We can consider creating a follow-up ticket to optimize the USB part of DTS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A follow-up ticket should be ok. Please link it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improvements for post-merge review items from the following PR:
#19033