Repository navigation
Backlog
Description
I'm looking at the cameras on an iPad mini 2 Wi-Fi (J85, S5L8960X). Nothing camera-related is enabled yet. Before I describe the ISP DART in the device tree, I'd like to check a few points I couldn't settle from the ADT and the current drivers.
What I've measured on the device so far, with read-only accesses:
- ISP, ISPSENS0 and ISPSENS1 are off under Linux (
off-0in genpd, PMGR words0x300,0x4000200,0x4000200). With isp: Skip ISP power-up and ISP DART setup on A7 m1n1#20, they also stay off from m1n1 to Linux. - The four sensor pins (
sensor_shutdown/sensor_extclk, and the second pair: pins 88, 89, 92, 93) are GPIO outputs driven low, withPERIPH= 0. No pinctrl user claims them.
From the J85 ADT (iOS 12.5.8, 16H88), dart-isp has two register windows (0x205b22000 and 0x205b24000, smmu-present = 1) but only one interrupt (AIC 40). The fault reflector is 0x20ffff000 for both windows, the same value as dart-scaler and dart-jpeg.
- Interrupt. Does an SMMU fault with no DART fault also raise AIC 40, and is the line level-triggered? If so, would a variant with two
regentries and one interrupt (for exampleapple,s5l8960x-isp-dart, falling back toapple,s5l8960x-dart) be acceptable in the binding and inapple-dart.c(OrchardLinux/linux)? - Fault reflector. What block sits at
0x20ffff000? Is it safe to keep this value for both windows, as the A8 display and PCIe DARTs already do? - Stream IDs. Which H6 masters use SIDs 0 to 3? Can any ISP master bypass the DART? The ADT has
no-fault-clients = 8(SID 3?). Does anything in Linux or m1n1 read it? - Quiescing the H6. When the ISP domain is powered on, is there a known way on A7 to keep the H6 CPU and its DMA masters stopped until the DART is set up? Is there a status bit that shows they are stopped? Which domains and clocks are needed before the H6 revision register can be read?
- Existing camera work (media: apple-h4isp: Add front and rear camera capture on the iPhone 5 linux#66, iPhone 7: the rear and front cameras linux#86, the iPhone 6 ISP series in ITSMEFRTRUST/linux-on-iphone6): before your first ISP register access, what power, reset and DART states did you start from? Did you see the firmware do anything on its own before the IPC tables were set up? And how would you like A7 support split: DART, PMGR, then the ISP driver?
Thanks. I can run read-only checks on the J85 if that helps.
Metadata
Metadata
Assignees
Labels
No labels
Activity
hyorman commentedon Dec 2, 2026
I have a J85 too (iPad mini 2 Wi-Fi, A1489) and I'm happy to test.
7.3.0-rc1-orchard-apple-4k, tethered boot from a Mac.Let me know what you'd like run.
henrikklee commentedon Dec 2, 2026
Thanks @Etienne-T, this is careful groundwork, and exactly the right order: DART first. I checked our kernel (OrchardLinux/linux
mainat c4800ea) and the 16H88 IPSW device trees. Short version: no new compatible is needed. The A7 ISP DART is the hardware the existingapple,s5l8960x-darttype is named after, and the driver already handles its layout (DART and SMMU windows, one interrupt).Evidence
dart-ispis the same on every A7 board I checked (J85, J71, N51, J85m):compatible = "dart,s5l8960x", reg0x205b22000(size 0x2000) and0x205b24000(size 0x4000), AIC 40,smmu-present = 1,no-fault-clients = 8,fetch-config = 0xe0000,diag-config = 0x100, reflector0x20ffff000for both windows. Onemapper-ispchild, reg 0.dart-isp(D10 ADT) has the same layout:dart,t8010thendart,s5l8960x, two windows, one interrupt,smmu-present,no-fault-clients = 8, one mapper with reg 0. iPhone 7: the rear and front cameras linux#86 merged it as"apple,t8010-dart", "apple,s5l8960x-dart"withreg-names = "dart", "smmu"and a single interrupt (dart_ispint8010.dtsi) for the rear and front cameras.drivers/iommu/apple-dart.c, probe treats ansmmuwindow with nosmmuinterrupt as "the DART's interrupt covers the SMMU too (dart-isp)".apple_dart_s5l8960x_irq()falls through to the SMMU error register when the DART error flag is clear. The reflector is written to both windows, and SMMU stream enable follows the DART's.ISP_DART. It has no state register of its own, and its parent isISP(0x18), which isps_ispat 0x201d0. Sopower-domains = <&ps_isp>comes straight from the ADT.What to add, in
arch/arm64/boot/dts/apple/s5l8960x.dtsi, so every A7 board gets it:The DART is on-chip on every A7, so it is on for all of them. Later, the ISP node goes in
s5l8960x.dtsitoo (ADTisp,compatible = "isp,s5l8960x", reg0x205b00000/0x500000, AIC 36-39), withiommus = <&dart_isp 0>, <&dart_isp 1>, <&dart_isp 2>, <&dart_isp 3>as on the A10. The sensor pins and supplies go in the model files (s5l8960x-mini2.dtsifor J85/J86/J87, thenmini3,air1and5s).One binding fix belongs in the same PR.
apple,dart.yamlstill says that tworegentries need two interrupts andinterrupt-names, while its description (and the A10 ISP DART already onmain) allows one interrupt. Please relax that rule sointerrupt-namesand a second interrupt are needed only when the SMMU has its own interrupt.Your questions, as far as we know
0x20ffff000. It is the ADT's value, and the same value iOS givesdart-scaler,dart-jpegand the A8 display DART (t7000.dtsi). Using it for both windows is what the driver already does.no-fault-clients.t8010_isp.c, which also stops a CPU it finds running). For the A7, please take the order and the "stopped" bit from iOS 12'sAppleH6CameraInterfacebefore powering anything, not from trial and error.ps_isp,ps_ispsens0andps_ispsens1are already ins5l8960x-pmgr.dtsiand match the ADT. The H4 driver for A5/A6 (docs: record J86 iPad mini 2 RAM bring-up evidence #66) programs an older IOMMU itself, so for the A7 the model is mtd: discover PPN geometry and harden NAND reads #86.PR flow
main, upstream-style commits (one topic each: binding, dtsi, later the driver) with your Signed-off-by. Never kernel patch files in orchard.cameraindevices/<board>/device.tomlfor the A7 boards, plus the bring-up notes, in an orchard PR. Every result you or @hyorman report gets recorded there.@hyorman, thank you for the second J85, that helps a lot. A good first read-only check, on your normal Omarchy A boot with nothing loaded: repeat Etienne's measurements, so we know they hold on a second unit and aren't board-specific:
Please post the output here. Nothing in that powers anything on. Once the DART PR exists, a test kernel with it (probe messages and the first DART/SMMU register reads, ISP still off) would be the next step.
Etienne-T commentedon Dec 3, 2026
Thanks @henrikklee. The DART node and the binding fix are in OrchardLinux/linux#128, as two commits on
main. The PR asks whether a first J85 RAM boot with it is fine before the A7 H6 power-up sequence is known.arm64: dts: apple: s5l8960x: Describe the ISP DART
henrikklee commentedon Dec 4, 2026
OrchardLinux/linux#128 is merged, thanks @Etienne-T. The A7 ISP DART node is in for every A7 board but stays disabled for now, so a normal boot doesn't power the ISP. It gets switched on together with the ISP node in the camera PR. The answer to your question about a first J85 test is in the merge comment: OrchardLinux/linux#128 (comment)