Skip to content

j81: run Bluetooth at 3 Mbit/s - #195

Merged
henrikklee merged 9 commits into
OrchardLinux:mainfrom
ricktav:j81/bt-3m
Nov 22, 2026
Merged

henrikklee merged 9 commits into
OrchardLinux:mainfrom
ricktav:j81/bt-3m

Conversation

@ricktav

@ricktav ricktav commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The iPad Air 2's (J81) Bluetooth link ran at 115,200 baud, the controller's starting speed. The device tree set current-speed but no max-speed, so hci_bcm never switched up, and all Bluetooth traffic went through about 11 KB/s. This sets max-speed = <3000000>, the transport-speed of the ADT's uart3/bluetooth node. One line in t7001-air2.dtsi, plus its comment.

The UART gets there exactly from its 24 MHz reference: the T8010-style divider picks oversampling 8 and divisor 1.

Testing

iPad Air 2 Wi-Fi (J81, iPad5,3) running an installed Omarchy (#188), with Bose QC45 headphones. For the test I replaced only the installed DTB with one that adds this property (decompiled and diffed against the installed one: that line is the only difference), and booted with orchard launch.

115,200 baud (main) 3 Mbit/s (this PR)
Firmware patch load at boot 8.2 s 0.83 s
A2DP (AAC) to the headphones crackles sounds much better
HFP microphone, mSBC silent silent
HFP microphone, CVSD not tried records (peak 1601 of 32767)
  • The microphone test: switch the headphones to the HFP profile, play a beep to them, record their microphone for 6 s with pw-record, and look at the samples.
  • I also tried the SCO routing property (brcm,bt-pcm-int-params = [01 02 00 01 01], routing to the transport). It made no difference: CVSD recorded with and without it, and mSBC stayed silent either way. The controller already routes SCO over HCI, so this PR leaves the property out.
  • Bluetooth comes up at every boot with the new speed (3 boots), the headphones reconnect on their own, and a Bluetooth keyboard with touchpad works.
  • kernel/audit-patches.py passes for j81 and j71b. The patch is exported with tools/kernel-tree/export.py from a branch on OrchardLinux/linux main. I compiled the J81 DTB from it, and the Bluetooth node has the new property.

Not included

  • mSBC (wideband speech): its SCO link opens, but no audio flows. PipeWire prefers mSBC, so until that works, a call needs "Headset Head Unit (CVSD)" picked by hand.
  • bluetooth_audio stays as it is here; j81: Bluetooth audio and input work #193 sets it to working.

#192 also adds patches in devices/t7001, so whichever of the two merges later needs its patch renumbered.

🤖 Generated with Claude Code

The iPad Air 2's Bluetooth link stayed at 115,200 baud, too slow for
A2DP without crackles and for HFP's SCO audio. Set the device tree's
max-speed to 3 Mbit/s, the ADT's transport-speed, so hci_bcm switches
the UART up after loading the firmware patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ricktav
ricktav marked this pull request as ready for review November 22, 2026 15:59
ricktav and others added 7 commits November 23, 2026 01:54
SmartIO on the A8/A8X (AppleA7IOP version 1), MCA version 1 in the S8000 MCA driver, the MAX98721 speaker amplifier driver, the T7001 NCO, the device tree and a UCM profile; both speakers play in stereo. The headphone jack and the microphones are not part of it. Squashed from ricktav's j81/audio (17aa5eb); patch files renumbered to follow main.
The Lightning charger driver learns the iPad Air 2's D2207 PMIC, so a charging port or an Apple adapter gets up to 1.5 A instead of iBoot's 100 mA. From ricktav's j81/charging (2bbdaa3); patch files renumbered to follow main.
From ricktav's j81/bt-3m (473b742); patch file renumbered to follow main.
Patch numbers follow main's, and the changelog, compatibility table and
driver catalog are combined with the other J81 changes. ricktav's patches
are unchanged.
@henrikklee
henrikklee merged commit 82ccf5c into OrchardLinux:main Nov 22, 2026
4 checks passed
@henrikklee

Copy link
Copy Markdown
Contributor

Thanks @ricktav, all five J81 PRs are merged (#192, #193, #194, #197, #195): speakers, Bluetooth, sleep, charging and the 3 Mbit/s link. Your patches are unchanged; we only renumbered them after main's and combined the changelog, compatibility table and driver catalog.

One request: the charging patches (#197) and the 3 Mbit/s patch (#195) carry no Signed-off-by of yours. Could you reply here with Signed-off-by: Your Name <email> for them, so we can record it? The audio patches already have it.

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