Repository navigation
arm64: dts: apple: t6050: Share the camera, add J714c, J716s, K114s, K116c - #2275
Conversation
…K116c The T6050 camera (ISP, its three DARTs and its power states) was described for J714s, J716c and K116s only, in t6050-j716c-isp.dtsi. Nothing in that file is J716c specific: each laptop's ADT has the same isp0, dart-isp0 and ISP power states (registers, interrupts, streams, power-state offsets). The only per-board value is the isp0 sensor-type, and the boot loader reads that from the ADT and passes it on as the platform ID. Rename the file to t6050-isp.dtsi and include it from J714c, J716s, K114s and K116c as well. Each board's include notes its sensor-type from that board's ADT. Every node stays disabled until the loader has reserved the camera firmware, so a loader without a row for the board leaves the camera off. The J714s, J716c and K116s DTBs are byte-identical. K114c is left out here: its camera is described in a separate open change. J775c, J775d and J873s have no camera and are unchanged. The original J716c description is by Erik Bourget. Signed-off-by: Ryan Murray <[email protected]>
|
No blockers. On current integration/aurora, J714s, J716c, K116s and the other non-target boards are byte-identical after the rename. J714c, J716s, K114s and K116c gain the same ISP, ISP DART and ISP power-state nodes, all still disabled until a loader row hands the camera over. dtc warning counts are unchanged and the ADT coverage check passes. dt-checks failed on the runner's apt mirror; rerun it. Can leave draft.
HW row: per board, once its loader row exists: ISP handoff and probe in dmesg, a 900-frame 1080p capture with no errors, then one s2idle and the same capture again; 0 DART faults, 0 AVC, 0 failed units, no new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
|
Adversarial pass at 63f9b86: no blockers, one wording point with a power consequence.
Still owed, per board once its loader row exists (J714c, J716s, K114s, K116c): ISP handoff and probe in dmesg, a 900-frame 1080p capture with no errors, and the idle power with and without the camera handoff, to show what the always-on ISP_SYS costs. Assisted-by: LLM (Claude:Opus 5.5) |
|
Tested the equivalent on a J716s (16" M5 Pro, 27.2 stub 26B123): the shared T6050 ISP nodes, plus a loader row for the J716s (sensor type 0x76; its 26B123 ISP firmware is the J714s's, byte for byte) and setfile 2224_01. The front camera streams and the green light turns on with it. Seen on one machine, with omarchy-m5's v272-17 kernel. Report: betizzel/omarchy-m5#28. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at 63f9b860c981
Blockers:
arch/arm64/boot/dts/apple/t6050-j714s.dts:641,arch/arm64/boot/dts/apple/t6050-j716c.dts:249,arch/arm64/boot/dts/apple/t6050-k116s.dts:872: Merge conflicts against currentmain(mergeable: CONFLICTING,mergeStateStatus: DIRTY).mainupdated adjacent lines in #2233 (ec78739aa1cc, J714s sensor presets comment), #2162 (92d43be3161f, J716c Touch ID nodes), and #2214 (fc11f9496aa4, K116s PMU/CLPC comment). Rebase onto currentmainand resolve all three hunks cleanly.arch/arm64/boot/dts/apple/t6050-isp.dtsi:6andarch/arm64/boot/dts/apple/t6050-isp.dtsi:79-152: The header comment and commit message state that all nodes stay disabled until the boot loader reserves the camera firmware, but&pmgr1child states (ps_isp_cpu,ps_isp_fe,ps_isp_dprx,ps_isp_secure,ps_isp_be,ps_isp_clr) lackstatus = "disabled", and&ps_fab9_soc(droppingpower-domains, addingapple,firmware-owned),&ps_isp_sys(apple,always-on), and&ps_ispsens0are unconditionally set tostatus = "okay". On J714c, J716s, K114s, and K116c this enables those power domains and pinsISP_SYSalways-on from boot even without a loader camera handoff row. Either keep these power domains disabled until the loader enables the ISP, or update the header comment and commit message to document why they must be active from boot and verify idle power on the newly added boards.- CI & §5 exact-head hardware evidence:
dt-checksfailed on a runner apt mirror error (44520464650) andhost-testswas cancelled (44520464261), so DT build/schema/coverage CI never completed. There is also no hardware test row built at63f9b860c981(comment#7090263982tested an externalomarchy-m5v272-17kernel). After rebasing ontomain, get greendt-checks/host-tests, add aTested:row at the new head SHA (covering boot + regression counts: 0 SELinux denials, 0 failed units, 0 new kernel errors on available T6050 hardware, or closest T6050 stand-in plus owner request for unowned boards), and addRisk:to the PR body.
Checked: Audited PR #2275 live state, mergeability against current main, CI logs, commit trailers/authorship, PR text, and all 8 touched T6050 DTS/DTSI files against the pre-PR checklist (§1–§6). No §1 model gating added, no §2 hacks, clean human author/committer + DCO Signed-off-by and zero §4/§6 violations; note non-blocking follow-up that drivers/iommu/apple-dart.c:5738 still gates isp_sleep on of_machine_is_compatible("apple,j714s").
Evidence
- PR head:
63f9b860c9814b449fe5f591255e922e2779e782(base0abc2f385e54->main,state: OPEN,isDraft: false,mergeable: CONFLICTING,mergeStateStatus: DIRTY). - Conflicts vs
main:t6050-j714s.dts:mainline 670 (#include "t6050-j716c-isp.dtsi") is followed by the updated config-8 comment fromec78739aa1cc(#2233).t6050-j716c.dts:mainline 302 (#include "t6050-j716c-isp.dtsi") is preceded by the Touch IDspi2/mesanodes from92d43be3161f(#2162).t6050-k116s.dts:mainline 873 (#include "t6050-j716c-isp.dtsi") is followed by the updated CPU PMU/CLPC comment fromfc11f9496aa4(#2214).
- DTS inclusion/symbol check: Verified
T6050_J714C,T6050_J716S,T6050_K114S, andT6050_K116Care all defined prior to#include "t6050-peripherals.dtsi", are present in the#if defined(...)guards forisp0andisp0_dart{,1,2}int6050-peripherals.dtsi, includet6050-isp.dtsiaftert6050-peripherals.dtsi, and have no conflictingisp/isp-dart*aliases. - Unconditional power-domain activation:
t6050-isp.dtsi:79-134defines 6ps_isp_*nodes under&pmgr1withoutstatus = "disabled", andt6050-isp.dtsi:136-152setsstatus = "okay"on&ps_fab9_soc,&ps_isp_sys(apple,always-on), and&ps_ispsens0. - CI runs on
63f9b860c981:dt-checks:FAILURE(runs/44520464650/job/135547434833—apt-get updateconnection failure toarchive.ubuntu.com, exit 100).host-tests:CANCELLED(runs/44520464261/job/135547433394).readiness / readiness:SUCCESS(bot reports not ready: CI failing, no hardware row at head, missingTested:/Risk:).
- §4/§6 check: Single commit
63f9b860c981authored and committed byRyan Murray <[email protected]>with matchingSigned-off-by; no prohibited attribution or naming issues in commit message, diff, PR title, or PR body.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 63f9b860c981
Blockers:
- The branch conflicts with
mainint6050-j714s.dts:641,t6050-j716c.dts:249andt6050-k116s.dts:872(#2233 and #2162 changed the lines next to it), and CI is red until it's updated. - Missing row: one T6050 laptop at the updated head with the camera probing from the shared node (the J714s, for example).
Checked: no Apple material, no board gates; the camera nodes are shared across the T6050 boards.
Superseded by the review at 63f9b86
|
K114s (Mac17,13): partial evidence for the shared camera node, not a row at the PR head. PR head compared against: Taken 2026-11-25 UTC, one machine, with a local board tree and the local additions listed below. Suspend and idle power were not tested.
|
Keep the current J716c Touch ID nodes and switch its camera include to the shared T6050 ISP description. Signed-off-by: Ryan Murray <[email protected]>
satchlj
left a comment
There was a problem hiding this comment.
Gemini 4 Neon on @satchlj's behalf
Verdict at fa60780f64d6
REQUEST CHANGES — Merging current main resolved the previous DTS conflicts and all 4/4 CI checks (dt-checks, host-tests, pr-readiness, pr-text) are now green, but two blockers remain on fa60780f64d6 before merge.
Blockers
- Unconditional PMGR power-domain activation contradicts the header comment and PR description (
arch/arm64/boot/dts/apple/t6050-isp.dtsi:15and PMGR nodes):t6050-isp.dtsi:15states "until then everything stays disabled", and the PR body repeats "Everything stays disabled until the loader has reserved the camera firmware."- However,
t6050-isp.dtsiunconditionally adds six enabled child states under&pmgr1(ps_isp_cpu,ps_isp_fe,ps_isp_dprx,ps_isp_secure,ps_isp_be,ps_isp_clr) and setsstatus = "okay"on&ps_fab9_soc(droppingpower-domainsand addingapple,firmware-owned),&ps_isp_sys(apple,always-on), and&ps_ispsens0. - Including
t6050-isp.dtsifromt6050-j714c.dts,t6050-j716s.dts,t6050-k114s.dts, andt6050-k116c.dtstherefore activates those power states and pinsISP_SYSalways-on from boot even on boards without a loader camera handoff row. Either keep the ISP power domains disabled until loader handoff, or update the header comment and PR description to explain why they must stay active at boot and verify idle power on a newly added board.
- Missing exact-head (
fa60780f64d6) T6050 hardware test row:- The PR body notes that "the physical camera probe [is] pending" at
fa60780f64d6, and the earlier J716s (@ja-818) and K114s (@chrisohearn) comments explicitly state they tested local trees /63f9b860c981rather thanfa60780f64d6. Please add at least one exact-head T6050 laptop boot + camera probe row (e.g. J714s or J716c regression confirming the renamedt6050-isp.dtsiprobes cleanly with zero new kernel errors).
- The PR body notes that "the physical camera probe [is] pending" at
Checked
- Diff scope: 8 files changed (
+22/-4), 2 commits (63f9b860c981,fa60780f64d6), both carryingSigned-off-by: Ryan Murray <[email protected]>. - DTS audit: Verified the rename
t6050-j716c-isp.dtsi->t6050-isp.dtsileavest6050-j714s.dts,t6050-j716c.dts, andt6050-k116s.dtsstructurally unchanged, and verified#include "t6050-isp.dtsi"placement aftert6050-peripherals.dtsiont6050-j714c.dts,t6050-j716s.dts,t6050-k114s.dts, andt6050-k116c.dts. - CI checks (4/4 green on
fa60780f64d6):Device tree checks/dt-checks,Host tests/host-tests,pr-readiness/readiness / readiness, andpr-text/pr-text / pr-textallSUCCESS. - Untested scope: No live T6050 boot, camera streaming, or idle-power measurement was run in this pass.
Evidence
- Audited all 8 touched files in
fa60780f64d6(+22/-4) plus the full contents ofarch/arm64/boot/dts/apple/t6050-isp.dtsi(confirming&ps_fab9_soc,&ps_isp_syswithapple,always-on,&ps_ispsens0withstatus = "okay", and six&pmgr1ps_isp_*nodes withoutstatus = "disabled"). - Verified
OPEN|false|MERGEABLE|fa60780f64d6and all 4 CI checksSUCCESS.
The header said everything stays disabled until the loader hands the camera over. That holds for isp0 and its DARTs only: the file also registers the ISP power states, keeps FAB9 as a firmware-owned vote and holds ISP_SYS on from boot on every board that includes it. Say so. Signed-off-by: Ryan Murray <[email protected]>
|
Reply to the 11-25 review at
Re-requesting review. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Clearing our prior request for changes now that the conflicts are resolved at cc3ff0a and the t6050-isp.dtsi header accurately describes isp0/DART loader enablement versus the registered ISP power states (FAB9/ISP_SYS). Holding merge until CI completes green, the remaining review clears, and an exact-head T6050 laptop boot/ISP row is posted.
|
Tested on J716s (16-inch M5 Pro, 27.3 beta stub) at cc3ff0a: the J716s DTB built with this PR (the board's own camera include replaced by t6050-isp.dtsi) is byte-identical to the one the board runs, so this is from that boot (aura loader).
Not measured: idle package power with the camera unused. |
# Conflicts: # arch/arm64/boot/dts/apple/t6050-k114s.dts # arch/arm64/boot/dts/apple/t6050-k116c.dts
|
Forward-merged |
There was a problem hiding this comment.
Verdict: MERGE at f0baa316
Blockers: none (re-run the cancelled readiness check before landing; 4/4 build/DT/host/pr-text checks green).
Checked:
arch/arm64/boot/dts/apple/t6050-isp.dtsi(renamed fromt6050-j716c-isp.dtsi):cc3ff0a9accurately documents what stays disabled until loader firmware reservation (isp0and its three DARTs) versus the registered ISP power states (FAB9firmware-owned,ISP_SYSalways-on), resolving the prior header-comment blocker cleanly.f0baa316forward-merge ofmain: preserves K114s/K116c chassis/GPU/USB/NVRAM includes alongside#include "t6050-isp.dtsi"and updates thet6050-k114.dtsicomment;CHECK_DTBSpasses on all 11 T6050 DTBs.- Hardware row: J716s byte-identical DTB boot row confirms
isp0and its three DARTs bind cleanly. - Checked for Apple material, tool attribution, private serials, and single-board gating: clean;
MERGEABLEonmain.
Evidence
- Head:
f0baa3164b4d(base: main,mergeable: MERGEABLE,+28/-5across 9 files).
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
|
K114s (T6050) row, 2026-11-29. Boot: aura-try one-shot Stage 2 = aura b17 e2a8cf96 + aura#362, DTB = the v4 K114s DTB + #2278 media and #2275 ISP nodes (plus K114S-LADDER's #2281/#3524 nodes on the same boot), kernel 7.3.0-k114sstack3 (main 68253d5 + K114s lab PRs). Health on that boot: 0 SErrors, 0 DART faults, 0 crashes, 0 DCP crashes, 0 failed units, Enforcing. The Mac is back on its saved default. ISP (isp@580000000), aura#362 camera hand-off on the same Stage 2:
This answers the 'needs a K114s camera row + idle power' blocker. The per-unit calibration loader is a separate follow-up owned by the camera calibration work. |
Problem
The T6050 camera is described on J714s, J716c and K116s only (K114c is in #1756). On current main, J714c, J716s, K114s and K116c have disabled ISP inventory nodes without the complete camera handoff description. The shared description lives in
t6050-j716c-isp.dtsi, although nothing in it is J716c specific.Change
t6050-j716c-isp.dtsitot6050-isp.dtsi(git mv, content unchanged apart from the header comment) and point J714s, J716c and K116s at the new name.Each board's ADT has the same isp0, dart-isp0 and ISP power states: registers, interrupts, DART streams and power-state offsets all match across the eight T6050 laptops. The only per-board value is the isp0
sensor-type. The loader reads it from the ADT and passes it to the driver asapple,platform-id, so the DT has no per-board camera property. Each new include line notes the board's sensor-type in a comment.isp0 and its three DARTs stay disabled until the loader has reserved the camera firmware. The ISP power states are registered on every board that includes the file, with FAB9 a firmware-owned vote and ISP_SYS held on from boot, as on the J714s, J716c and K116s today (the header comment now says so). The loader's T6050 camera handoff is a board x firmware table and fails closed: a board without a row keeps the camera off. So these four boards also need a loader row: board compatible, the sensor-type below and the firmware release. The loader already checks that the ADT
/arm-io/isp0sensor-typematches the row.K114c is left to #1756. It can switch to
t6050-isp.dtsiand keep only its own deltas. #2233 (J714s sizes) touches only J714s's sensor-presets block and merges cleanly with this.Testing
At
fa60780f64d6on maine7528180, seven candidate DTBs and seven matching main DTBs compiled without DTC warnings. J714s, J716c and K116s are byte-identical. Aura b17’s exact path resolver found all four camera aliases on each of the four extended boards and confirmed the ISP and DARTs stay disabled until handoff. Current hosted schema checks and the physical camera probe are pending.Earlier branch results at
63f9b860c981make dtbs CHECK_DTBS=y(dtschema) for every T6050 DTB on this branch: builds clean, no dtc warnings, and no schema message that integration/aurora does not already have.apple,t6050-ispandapple,t6050-isp-dartalready have bindings.The driver has no board gate:
isp-drv.cbindsapple,t6050-ispand takes the platform ID from the DT. The ISP DART's sleep restore is enabled on J714s only (drivers/iommu/apple-dart.cisp_sleep). That does not block probe or capture.Still to run
Each needs the loader row for the board first. Then:
dmesg | grep -i ispshows the T6050 ISP handoff and the driver probe, andv4l2-ctl -d /dev/videoN --stream-mmap --stream-count=900 --stream-to=/dev/nullcaptures 30 s at 1920x1080 with no errors and a steady frame rate. Frames stay on the machine.Exact-head rows (any one T6050 laptop, at cc3ff0a or later): boot on the default cmdline with 0 new kernel errors, 0 failed units, 0 AVC; the ISP probe line; and on one of the four newly added boards, the idle package power with the camera unused, so the ISP_SYS hold is measured there too.
The sensor presets are the shared default (as on J716c and K116s). If a board's firmware does not list that sensor config, the probe log says so, and the board gets its own presets block as J714s has.
Per-board values and DTB diffs
ADT isp0 sensor-type per board, the same in 27.0/27.2 and 27.3 beta ADTs: J714c 0x73, J714s 0x74, J716c 0x75, J716s 0x76, K114c 0xb9, K114s 0xba, K116c 0xbb, K116s 0xbc. All boards: cam-connections-scheme 0x10, interrupts 513-516 and 526, the same three reg windows, clock-ids 350/352, the same dart-isp0 nodes, and the same ISP_SYS/ISP_CPU/ISP_FE/DPRX/ISP_SECURE/ISP_BE/ISP_CLR/ISPSENS0/FAB9_SOC power-state entries.
dtdiff:
What changes on each of the four boards (phandle numbers normalised; identical on all four):
apple,t6050-isp-dart, DAPF window on the first, remap-streams; still disabled; power-domains ISP_SYS