Repository navigation
kboot: Copy 24-byte D2355 charger calibration table from ADT - #23
Merged
Merged
Conversation
A9X iPad Pro 9.7-inch (J127/J128) carries a 24-byte low-voltage usb-input-limit-calibration table in the ADT /charger node rather than the 84-byte usb-input-limit-calibration-hv table used on A10X iPad Pro 2. Fall back to usb-input-limit-calibration (24 bytes) and copy it into apple,usb-input-limit-calibration on the apple,d2355-tristar-charger node. Assisted-by: LLM
|
Merged, thank you @danlovaj! A small, clean change that does exactly what it needs to. What this brings: m1n1 now hands Linux the charger calibration in both formats Apple uses. The 9.7-inch iPad Pro (J127, J128) carries the short 24-byte table, which m1n1 used to skip; it now passes it on, so the charger driver from OrchardLinux/linux#136 can calibrate and charge like iOS. Boards with the long table behave as before. Nothing was changed on your branch and nothing was left out. Follow-up on our side: orchard moves its m1n1 lock to include this. Charging on the 9.7-inch iPad Pro reaches users once linux#136 is in the kernel orchard builds as well. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 9.7-inch iPad Pro (J127, J128) has the same D2355 Lightning charger as the iPad Pro 2, but its ADT carries a 24-byte
usb-input-limit-calibrationtable instead of the 84-byte-hvone. m1n1 skipped it, so the charger driver had no calibration and could not start.m1n1 now copies the 24-byte table when the 84-byte one is absent. Boards with the 84-byte table behave as before.
Needed by OrchardLinux/linux#136, which adds charging on these iPads. Either can merge first: without this one the charger stays off and USB still connects.
Tested on an iPad Pro 9.7-inch Cellular (J128): the charger driver reads the table and charges.
Assisted-by: LLM
🤖 Generated with Claude Code