-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
usb: obtain configuration descriptor's bmAttributes and bMaxPower from DT #19545
Comments
any news on that feature implementation? |
@galak any news regarding that feature? |
I also would like this feature. I tired creating a second usb descriptor which is easy enough. But whether the Host even asks for anything but the first descriptor is host dependent. On my host, the first descriptor is used if it can be, so this is not a solution. and something similar for bmAttributes |
I provided a fix like I described above. I realize the original request asked for a way to configure this at runtime, and my fix is only at build time. But I am not sure there is a practical reason to reconfigure at runtime. But maybe there is. |
Where is this "original request" you talking about? |
@jfischer-phytec-iot I meant your request. But now reading your post closer, I see you were just stating there is no API not asking for one. Sorry for any confusion. |
This issue suggests to use device tree not Kconfig. But with #20375, Kconfig could probably be a good solution too. |
I put a request for that some time ago |
resolved by #21461 |
Currently configuration descriptor's bmAttributes and bMaxPower is hardcoded to SelfPowered and MaxPower of 100mA. Where SelfPowered applies to most boards in the tree except boards like pca10059 for example.
Both SelfPowered and MaxPower should be derived from DT because they are hardware properties.
Note: SelfPowered can not be changed at runtime because there is no API for.
The text was updated successfully, but these errors were encountered: