Skip to content

kboot: Copy 24-byte D2355 charger calibration table from ADT - #23

Merged
henrikklee merged 1 commit into
OrchardLinux:mainfrom
danlovaj:d2355-lv-calibration
Dec 4, 2026
Merged

henrikklee merged 1 commit into
OrchardLinux:mainfrom
danlovaj:d2355-lv-calibration

Conversation

@danlovaj

@danlovaj danlovaj commented Dec 4, 2026 •

Copy link
Copy Markdown

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-calibration table instead of the 84-byte -hv one. 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

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
@henrikklee
henrikklee merged commit 62fa351 into OrchardLinux:main Dec 4, 2026
7 checks passed
@henrikklee

Copy link
Copy Markdown

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.

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