Repository navigation
T6040: power the ISP down while the camera is idle - #1827
Merged
Merged
Conversation
The first ISP DART filters the ISP firmware's accesses to the PMGR, PMP and DSID windows it uses. The bootloader programs that filter, and it goes off with the ISP system domain. Describe its register window and the bootloader's ranges, from the ADT's dart-isp0 dapf-instance-0 in the ADT's order, so the DART driver writes them back when the DART powers up again. With that, the ISP can be powered down while the camera is idle and its firmware can start again for the next stream. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
T6040 kept its firmware resident: it started at probe and ran until the driver was unbound, so the ISP domains, among them isp_sys, isp_fe and ispsens0, stayed on from boot to shutdown, also when no application used the camera. T6040 runs T8140's coprocessor and firmware interface, and its firmware starts again from its own memory the same way. Use T8140's model: after the camera detection at probe the firmware stops and the ISP powers down; each stream starts it again, and it stays up for 5 s after a stream so that an application that reopens the camera soon does not wait for another start. The coprocessor is quiesced before its domains go off. The camera is still detected at probe, so the formats offered from the start, P010 among them, are unchanged. A device tree without the ISP DART's address filter ranges keeps the firmware resident, as before. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
DjDeveloperr
pushed a commit
that referenced
this pull request
Nov 14, 2026
T6041 uses the T6040 ISP model, which powers the ISP down while the camera is idle (#1827) once the first ISP DART describes its address filter. T6041's DART has none, so the firmware stays resident, and the ISP power domains stay on from boot to shutdown. Describe the filter: the dapf register window and the ranges from the J616c ADT's dart-isp0 dapf-instance-0, in the ADT's order. They are the T6040 ones plus a DSID window for each of the two extra AMCCs. On a J616c (binned M4 Max, six AMCCs) with this filter in its device tree, every ISP domain is off at idle and the ISP device is runtime suspended. The camera streams, and the ISP powers down again after it. Signed-off-by: AxxzyWasTaken <[email protected]>
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.
T6040 kept its ISP firmware resident, so the ISP power domains (isp_sys, isp_cpu, isp_fe, isp_dprx, isp_secure, isp_be, isp_clr, ispsens0) stayed on from boot to shutdown and the ISP device never runtime-suspended, even with no camera client.
arm64: dts: apple: t6040: describe the first ISP DART's address filter (thedapfregister window and the ranges from the ADT's dart-isp0 dapf-instance-0), so the DART driver writes them back after the ISP system domain was off.media: apple: isp: T6040 uses the T8140 model: firmware restart from its own memory, coprocessor quiesce before the power-down, 5 s idle stop after a stream. The camera is still detected at probe, so the formats offered (P010 included) are unchanged. Withoutapple,dapf-rangeson the DART the firmware stays resident as before.Tested on the J616s (7.3.0-aurora-fleet71 + this series, the J616s DTB with the new DART properties):
🤖 Generated with Claude Code