Skip to content

[SM6115] Bring up USB#2470

Merged
loki666 merged 6 commits intoROCKNIX:nextfrom
sunshineinabox:USB-Charger
Mar 29, 2026
Merged

[SM6115] Bring up USB#2470
loki666 merged 6 commits intoROCKNIX:nextfrom
sunshineinabox:USB-Charger

Conversation

@sunshineinabox
Copy link
Copy Markdown
Contributor

Summary

  • What is the goal of this PR?
  • Enalbe USB charging
  • Allow OTG to work (Controllers)
  • Wires USB and VBUS boost implemented from old driver
  • Uses compatible Mainline driver that is functionally equivalent
  • We lose PPS, because that chip does not have a driver available

Testing

  • How was this tested? Built and tested on Mangmi Air X, wiht 8bitdo controller and faster charger, negotiation works, network gadget works

Additional Context

  • Add any other information that might be helpful for the reviewer
  • Charging does not match android fast charging and its unfortunate. Can possibly try using Reg-linux driver, but I thought it would be more prudent to stick with mainline.
  • Will require further testing

AI Usage

While ROCKNIX doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? NO

@sunshineinabox
Copy link
Copy Markdown
Contributor Author

Fast charging is broken for now I'm working on fixing it

charge-full-design-microamp-hours = <5000000>;
voltage-min-design-microvolt = <3400000>;
voltage-max-design-microvolt = <4350000>;
constant-charge-current-max-microamp = <2040000>;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very conservative while charging on fast charger vendor pulls 3000mA, we don't have a software thermistor in our driver so lower limit is fine. This will require a one line patch to make sure it actually uses this value.

@loki666 loki666 marked this pull request as ready for review March 29, 2026 09:21
@loki666 loki666 merged commit e855de5 into ROCKNIX:next Mar 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants