Repository navigation
arm64: dts: apple: n66: Enable the cameras on both iPhone 6s Plus models - #176
Conversation
The iPhone 6s Plus (N66, N66m) wires its cameras as the iPhone 6s does: the D2255 camera rails cam_avdd (pmuL 0x208) and cam0 (0x215), the second analog supply on AP GPIO 194, rear and front shutdown on GPIOs 48 and 52, the clock pads 49 and 53 and the torch enable on 74. Only the ADT sensor-type differs, 0x82 instead of 0x88. The rear camera also has optical stabilisation (ADT has-sphere, sphere_buck_mode on GPIO 111, focus_subdev on GPIO 47). The firmware drives it, and the driver leaves those lines alone. Add the ISP board part to s800x-n66.dtsi, which both models include. The values come from the iOS 15.8.8 device trees of both models, which agree. Tested on an N66 (Samsung): the firmware reports the iPhone 6s sensors (rear 0x247, front 0x190). The rear camera streams 1920x1080 NV12 at 30 fps, the front one 1024x720 and 1280x720, and the images are correct. Over repeated streams of both, the kernel log stays clean. Signed-off-by: ricktav <82380971+ricktav@users.noreply.github.com> Assisted-by: LLM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Plus The iPhone 6s (N71, N71m) and 6s Plus (N66, N66m) wire their cameras the same way: rails, shutdown GPIOs, reference clock pads, torch line, firmware and DART. Only the ADT sensor-type differs, 0x88 on the 6s and 0x82 on the 6s Plus. Move the shared part into s800x-6s.dtsi, which both models include, and keep only apple,platform-id in each model file. The compiled device trees of all four boards are unchanged. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
The TSMC iPhone 6s Plus (n66m) restores from the same iOS 15.8.8 file (19H422) as the Samsung one, and OrchardLinux/linux#176 enables the cameras on both 6s Plus models. Install apple/isp-s8000.bin there too, with the same input and output entries and checksums as n66. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
|
Merged, thank you @ricktav! Both cameras on the 6s Plus, with three clean streaming rounds on your N66 and the values checked against both models' ADTs. Very nice work. What changed on your branch: your commit is unchanged. On top of it I added one device-tree commit (f79aeaf). Your camera block was the same as the iPhone 6s's line for line, except for Nothing was left out. Open follow-ups:
|
The A9 camera driver from #135 on the iPhone 6s Plus. One commit, device tree only.
What
sensor-typediffers: 0x82 instead of 0x88.has-sphere,sphere_buck_modeGPIO 111,focus_subdevGPIO 47). The firmware drives it, and the driver leaves those lines alone.s800x-n66.dtsi, which both models include. The values are from the iOS 15.8.8 (19H422) device trees of n66ap and n66map, which agree on the ISP node.Tested on an N66 (Samsung). Main a1d07f1 plus this commit, booted as an extra Omarchy A kernel entry, with
apple/isp-s8000.binfrom the 6s Plus's own 19H422 IPSW (byte-identical to the 6s file in OrchardLinux/orchard#524):t8010-isp ... platform 0x82; video0 and video2. The firmware reports the 6s sensors: rear 0x247, module 1, design 1 → set-file 9611_01; front 0x190, module 2 → 1422_01.Orchard side: the firmware recipe for the n66 is OrchardLinux/orchard#562.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SFMaVeK3LkXZ3zvi9pvxid