Repository navigation
j81: run Bluetooth at 3 Mbit/s - #195
Conversation
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>
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.
From ricktav's j81/bluetooth (988f955).
From ricktav's j81/power (2806bca).
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.
…harging Assisted-by: LLM
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.
|
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 |
|
Sorry for the delay. For my patches in #197 (J81 charging) and #195 (Bluetooth at 3 Mbit/s): Signed-off-by: ricktav 82380971+ricktav@users.noreply.github.com I'm adding the same line to my patches in the open n66 PRs (#216, #217, #219). In #217 I'm also putting the unchanged CS35L19 driver from Project Cascadia back under rzxvx's authorship. |
Summary
The iPad Air 2's (J81) Bluetooth link ran at 115,200 baud, the controller's starting speed. The device tree set
current-speedbut nomax-speed, sohci_bcmnever switched up, and all Bluetooth traffic went through about 11 KB/s. This setsmax-speed = <3000000>, thetransport-speedof the ADT'suart3/bluetoothnode. One line int7001-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.pw-record, and look at the samples.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.kernel/audit-patches.pypasses for j81 and j71b. The patch is exported withtools/kernel-tree/export.pyfrom a branch on OrchardLinux/linuxmain. I compiled the J81 DTB from it, and the Bluetooth node has the new property.Not included
bluetooth_audiostays as it is here; j81: Bluetooth audio and input work #193 sets it toworking.#192 also adds patches in
devices/t7001, so whichever of the two merges later needs its patch renumbered.🤖 Generated with Claude Code