Repository navigation
n66: Wi-Fi works; Bluetooth comes up - #216
Merged
Merged
Conversation
From the same iOS 15.8.8 IPSW: both BCM4350 steppings' pinotnoir firmware, CLM and TxCap blobs and every NVRAM variant (C2 under brcmfmac4350c2-pcie, C5 under brcmfmac4350-pcie), and BlueTool's BCM4350C5 Pinotnoir Patchrams for the USI and Murata modules, selected by the module vendor brcmfmac reads from the OTP. The C2 firmware is the iPad Air 2's, the C5 firmware the iPad mini 4's. Assisted-by: LLM
The iPhone 6s Plus's BCM4350 "pinotnoir" module: Wi-Fi on PCIe port 1 with its REG_ON on D2255 GPIO 10, and the BCM4350C5 Bluetooth on UART1 with its power enable on D2255 GPIO 8. The D2255 joins the Apple PMIC GPIO driver as a GPIO controller (the D2333 scheme at the D2255's addresses), and btbcm learns the BCM4350C5's default address, so the unit's address from the boot loader is used. What every board shares is on for every board: UART1 for all A9 boards (the iPhones' Bluetooth, the iPads' debug port) and the D2255 GPIO controller for every A9 iPhone, whose IPSW device trees all use lines 8 and 10 for this. The UART4 WLAN platform control stays disabled in the SoC file, as UART2's does, because the iPads have none there. The n66 file holds the module, its pins and its supplies; the Samsung and TSMC models share it. Exported from a branch on the n66 series; applied in series order the patches reproduce it. On a Samsung N66 RAM boot the BCM4350/8 enumerated on port 1, brcmfmac scanned 31 networks, and Bluetooth loaded the USI Patchram and found LE devices (with the default address; the btbcm change is not booted yet). Moving the shared nodes leaves the n66 DTB functionally as booted. Assisted-by: LLM
On a Samsung N66 RAM boot the BCM4350/8 on PCIe port 1 loaded its C5 firmware and NVRAM and a scan found 31 networks; association is not tested yet. Bluetooth loaded the USI Patchram and its inquiry and LE scan work, but nothing has been paired, so it stays untested. The TSMC N66m's IPSW device tree wires the module the same way (same D2255 GPIOs, PCIe port 1 and UARTs) and shares the description, so it gets the same firmware outputs, with its own Patchram names, and its Wi-Fi and Bluetooth bind (untested). Assisted-by: LLM
Contributor
|
Thanks! This is on main now. Extended to siblings: the IPSW device trees of the iPhone 6s (N71, N71m) wire the BCM4350 exactly like the 6s Plus. The only difference is the module, "albarossa" instead of "pinotnoir". So Wi-Fi and Bluetooth moved into s800x-6s.dtsi, and each model names its module (the 6s Plus DTBs are unchanged). The 6s recipes now pin the albarossa firmware, NVRAM and BlueTool Patchrams, hashed from 19H422. The iPhone SE has a BCM4345 ("hans") and is recorded as missing for that reason. One request: your kernel patches here carry |
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 iPhone 6s Plus (n66, Samsung S8000): Wi-Fi works, and Bluetooth comes up and scans.
Tested on a RAM boot, 2026-11-23:
14e4:43a3). brcmfmac reports BCM4350/8 and loads firmware 7.64.133.15 from the n66's own iOS 15.7.3 (19H422). wlan0 takes its MAC from the ADT, and a scan finds 31 networks. Connecting to a network is not tested yet.Kernel
gpio-apple-d2365gains the D2255 (Antigua) layout:apple,n66-bcm4350c5-bt, with its binding.local-bd-addressis used. This fix has not been booted yet; on the RAM boot, hci0 still had the default address.pmu_gpio, with reserved ranges so only lines 8 and 10 are usable, moves to s800x-iphone.dtsi, because all six A9 iPhone device trees use those two lines;Firmware.
devices/n66/firmware.jsonpins:.hcdpatchrams (USI and Murata).The output was checked against Apple's server. n66m gets the same recipe.
Catalog. n66 wifi is working. n66 Bluetooth, and n66m Wi-Fi and Bluetooth, are untested. drivers.json and the matrix are regenerated.
Still missing: host wake (iOS uses PMU events), Wi-Fi/Bluetooth across suspend, and Bluetooth audio.
Tests: 917 OK (2 skipped).
🤖 Generated with Claude Code