Repository navigation
Add integrated hardware support for the J120 iPad Pro - #205
Conversation
Build IIO and the Orion VBUS ADC into apple-16k for guarded charging. Enable the J120 cover, speaker and CT709 modules, and provide the Broadcom OTP layout on both Apple platforms. Extract firmware and per-unit charger calibration during installation. Assisted-by: LLM
e2839c0 to
09038ad
Compare
|
Thanks for the integration work on the iPad Pro 12.9-inch (2017)! Before #205 and OrchardLinux/omarchy-a#100 can land, they need:
Then we can land them topic by topic, with you as the author. |
|
Hi, I have booted this later twice using the m1n1 bootloader, the patch it
needs for the j120 storage should be included.
The issue is early in the boot process which I have not been able to debug
any further. It boots like 50/50, but once it does I didn't encountered any
freezes in the running system. It even sleeps and wakes ok.
As I don't have other devices, I am not able to test or refactor this any
further.
You can take the authorship if that suits you for merging this in.
…On Mon, Nov 23, 2026, 15:42 Henrik Klee ***@***.***> wrote:
*henrikklee* left a comment (OrchardLinux/orchard#205)
<#205 (comment)>
Thanks for the integration work on the iPad Pro 12.9-inch (2017)! Before
#205 <#205> and
OrchardLinux/omarchy-a#100
<OrchardLinux/omarchy-a#100> can land, they need:
1. *A boot from this exact branch on the device.* The J120 needs a
boot loader stage Orchard doesn't have yet, so please send that part first,
as its own PR.
2. *Shared-driver changes as their own small PRs.* Each should work
for every device with that hardware, not only the J120 (see "Everything
benefits every device" in AGENTS.md / CONTRIBUTING.md), with a note on what
you checked on other devices.
3. *Your Signed-off-by* (name and email) on each kernel patch.
Then we can land them topic by topic, with you as the author.
—
Reply to this email directly, view it on GitHub
<#205?email_source=notifications&email_token=AAEFPEXGGXXVOYGYEQDYNRD52REG7A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMJQGQ2DCNBTGMZKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-7104414332>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEFPETATQDWO7HZO3Q2BJ352REG7AVCNFSNUABGKJSXA33TNF2G64TZHMYTIMZTGI4DGMZVGA5US43TOVSTWNRVGQ3TEMJVGY2DFILWAI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Thanks a lot, that's very helpful — and thanks for the offer. We've taken it over and are landing it topic by topic, with you as the author of your patches (rework commits from us on top). Work in progress is on branch
One small ask: a |
tompta1's kernel work for the iPad Pro 12.9-inch (2017) that the first integration held back, as he built it (#205, 09038ad): the MAX98723 speaker amplifiers and the T8011 MCA2 speaker link, the D2355 Lightning charger with its per-unit calibration, pack window and VBUS guard, the Orion Bellatrix VBUS ADC, the two CT709 light sensors, the simpledrm 60/120 Hz cadence of the H9G boot scanout, the polled Smart Cover driver, the NVMe namespace write limits, the bounded HDQ transport and the PMGR reset read-back, with their config symbols. Applied onto main: where main had changed the same code since, the patches say so in a note. Not taken because main already has the same function: the D2355/August PMU event controller (apple,d2355-pmic-gpio and apple,d2400-pmic-gpio read the same registers), the speaker SmartIO endpoint, the IRQ-storm fallback check, and the Wi-Fi OTP module-vendor layout (brcmfmac reads the same OTP record and key for Bluetooth). Assisted-by: LLM
Flush the FAT directory entries and metadata written during unmount with an fsync of the boot partition's block device before the next loader reads the partition directly (#205, 09038ad). The boot partition is always the vfat ESP when one is mounted, so the added check cannot fail an install on any board; every board gets the extra flush. Assisted-by: LLM
…ardware - The D2355 charger's per-unit calibration is the ADT's /charger usb-input-limit-calibration-hv. m1n1 now copies those 84 bytes into the charger's node and the driver reads them there, so nothing has to extract them at install and a RAM boot charges too. The driver parses and checks the same table as before. #205's host-side extraction (installer, initrd add-on, udev re-probe) is therefore not taken. - The CT709 driver finds each sensor's calibration record through apple,als-orientation instead of the J120's board compatible and I2C addresses; the iPad Pro 2 device tree names the records the driver chose before (6 for 0x29, 5 for 0x39). What still needs the J120 is in #225. Assisted-by: LLM
|
@tompta1 everything from this PR that worked on your J120 is now on Some things changed on the way in, and these are worth a retest:
To try it: The remaining rework and open values are in #225. |
Bring up the 2017 12.9-inch Wi-Fi iPad Pro (A1670, iPad7,1) on the shared apple-16k kernel. The board gains tethered internal ext4 boot, touch and resume, Wi-Fi and Bluetooth, four speaker channels and microphone input, light and motion sensors, hardware video decoding and guarded Lightning charging up to 1.5 A. Charger calibration comes from the selected iPad during installation. Internal boot requires the separate J120-capable m1n1 described in the device README.
Merge Orchard first. OrchardLinux/omarchy-a#100 consumes the ALSA cards, cover events and battery properties exposed here. The kernel changes also touch shared RTKit, touch, audio and power paths used by other boards, including J71b, J72 and J81.
The rebased source cross-builds the ARM64 kernel, J120 DTB and 119 modules. The full 801-patch series replays against the pinned Linux tree and reproduces the compiled sources. Module dependency and symbol checks passed. Both ARM64 configs reproduce with olddefconfig. The Orchard suite ran 830 tests with 29 skips and no failures.
On the v0.3.2 integration, two tethered boots reached the installed desktop with the same ext4 persistence marker. An intervening cold boot stopped on a black screen. The rebased kernel still needs a physical J120 boot. Higher-voltage USB PD, GPU acceleration and cover-open wake remain open.