Skip to content

arm64: dts: apple: t6050: Share the camera, add J714c, J716s, K114s, K116c - #2275

Open
RyanTheTide wants to merge 1 commit into
mainfrom
dtfill-t6050/isp
Open

RyanTheTide wants to merge 1 commit into
mainfrom
dtfill-t6050/isp

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown

Problem

The T6050 camera is described on J714s, J716c and K116s only (K114c is in #1756). J714c, J716s, K114s and K116c have no ISP nodes at all, so the camera cannot come up on them even with a loader that hands it over. The shared description lives in t6050-j716c-isp.dtsi, although nothing in it is J716c specific.

Change

  • Rename t6050-j716c-isp.dtsi to t6050-isp.dtsi (git mv, content unchanged apart from the header comment) and point J714s, J716c and K116s at the new name.
  • Include it from J714c, J716s, K114s and K116c.

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 as apple,platform-id, so the DT has no per-board camera property. Each new include line notes the board's sensor-type in a comment.

Everything stays disabled until the loader has reserved the camera firmware. 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/isp0 sensor-type matches the row.

K114c is left to #1756. It can switch to t6050-isp.dtsi and keep only its own deltas. #2233 (J714s sizes) touches only J714s's sensor-presets block and merges cleanly with this.

Testing

  • Full kernel tree make 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.
  • All 11 T6050 DTBs build with kbuild's cpp and dtc flags. No new dtc warnings (0 before, 0 after on every board).
  • J714s, J716c, K116s, K114c, J775c, J775d and J873s are byte-identical.
  • On J714c, J716s, K114s and K116c the ISP, DART and power-state nodes and aliases come out identical to J716c's and K116s's (compared with phandles resolved to paths). The before/after delta, normalised for phandle numbers, is the same on all four.
  • dt-validate: no new messages on J714c, J716s, K114s or K116c. Before and after: J714c has the same one existing pcie@1c70000000 message, the other three have none. apple,t6050-isp and apple,t6050-isp-dart already have bindings.

The driver has no board gate: isp-drv.c binds apple,t6050-isp and takes the platform ID from the DT. The ISP DART's sleep restore is enabled on J714s only (drivers/iommu/apple-dart.c isp_sleep). That does not block probe or capture.

Still to run

Each needs the loader row for the board first. Then: dmesg | grep -i isp shows the T6050 ISP handoff and the driver probe, and v4l2-ctl -d /dev/videoN --stream-mmap --stream-count=900 --stream-to=/dev/null captures 30 s at 1920x1080 with no errors and a steady frame rate. Frames stay on the machine.

  • J714c (MBP 14 M5 Max): sensor-type 0x73. Owner row needed.
  • J716s (MBP 16 M5 Pro): sensor-type 0x76. Owner row needed.
  • K114s (OLED MBP 14 M5 Pro): sensor-type 0xba. Owner row needed.
  • K116c (OLED MBP 16 M5 Max): sensor-type 0xbb. Owner row needed.

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:

CHANGED t6050-j714c
IDENTICAL-DTB t6050-j714s
IDENTICAL-DTB t6050-j716c
CHANGED t6050-j716s
IDENTICAL-DTB t6050-j775c
IDENTICAL-DTB t6050-j775d
IDENTICAL-DTB t6050-j873s
IDENTICAL-DTB t6050-k114c
CHANGED t6050-k114s
CHANGED t6050-k116c
IDENTICAL-DTB t6050-k116s

What changes on each of the four boards (phandle numbers normalised; identical on all four):

  • aliases isp, isp-dart0..2 added
  • isp@580000000: the J716c reg/reg-names/interrupt/iommus (streams 0 and 12 on each DART)/eight power-domains/dart-vm-size and the default sensor preset; clocks dropped; still disabled
  • iommu@5828c0000, @5828e0000, @582900000: apple,t6050-isp-dart, DAPF window on the first, remap-streams; still disabled; power-domains ISP_SYS
  • pmgr1: isp_cpu, isp_fe, isp_dprx, isp_secure, isp_be, isp_clr power states added (parent isp-sys); fab9-soc, isp-sys and ispsens0 enabled as on J716c

…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 <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

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.

  1. Before any loader row turns the camera on for these boards: drivers/iommu/apple-dart.c:5474 enables the ISP DART's sleep save/restore only if of_machine_is_compatible("apple,j714s"). J716c and K116s already miss it, and the four boards here would too. After a firmware-resumed sleep their ISP DART comes back without its state. Now that there is one t6050-isp.dtsi, carry this as a property on the ISP DART nodes there (or key it off apple,t6050-isp-dart if every T6050 needs it) and drop the machine check, in a separate driver PR.

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)

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 22, 2026 10:09
@RyanTheTide

Copy link
Copy Markdown
Author

Adversarial pass at 63f9b86: no blockers, one wording point with a power consequence.

  • Built every Apple DTS with cpp + dtc at integration/aurora and with this PR merged in (clean merge). Only J714c, J716s, K114s and K116c change. J714s, J716c, K116s, K114c, J775c, J775d and J873s come out identical, and no dtc warning counts move, which matches the description.
  • t6050-isp.dtsi:136-152: the commit message and the new header comment say everything stays disabled until the loader reserves the firmware. The ISP, its DARTs and the six new ISP power states do, but ps_fab9_soc, ps_isp_sys and ps_ispsens0 are switched to okay unconditionally, ps_isp_sys as apple,always-on, and ps_fab9_soc loses its parent domain. On the four new boards ISP_SYS and FAB9_SOC therefore stay powered for the whole boot even when the loader has no row for the board and the camera can never start. That is already true on J716c, J714s and K116s, but this extends it to four boards that have not been booted. Please either say this in the commit message, with the reason these domains must be on from boot (presumably to keep the state iBoot left), or have the loader enable them together with the ISP nodes.

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)

@ja-818

ja-818 commented Nov 23, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 63f9b860: not ready yet

Check Detail
CI at head no failing: dt-checks, host-tests
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 63f9b860, a Mac and a result in the PR body or a comment
Conflicts ok not computed yet
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup

Updated by pr-readiness on every push, edit and review, and every 30 minutes. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 current main (mergeable: CONFLICTING, mergeStateStatus: DIRTY). main updated adjacent lines in #2233 (ec78739aa1cc, J714s sensor presets comment), #2162 (92d43be3161f, J716c Touch ID nodes), and #2214 (fc11f9496aa4, K116s PMU/CLPC comment). Rebase onto current main and resolve all three hunks cleanly.
  • arch/arm64/boot/dts/apple/t6050-isp.dtsi:6 and arch/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 &pmgr1 child states (ps_isp_cpu, ps_isp_fe, ps_isp_dprx, ps_isp_secure, ps_isp_be, ps_isp_clr) lack status = "disabled", and &ps_fab9_soc (dropping power-domains, adding apple,firmware-owned), &ps_isp_sys (apple,always-on), and &ps_ispsens0 are unconditionally set to status = "okay". On J714c, J716s, K114s, and K116c this enables those power domains and pins ISP_SYS always-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-checks failed on a runner apt mirror error (44520464650) and host-tests was cancelled (44520464261), so DT build/schema/coverage CI never completed. There is also no hardware test row built at 63f9b860c981 (comment #7090263982 tested an external omarchy-m5 v272-17 kernel). After rebasing onto main, get green dt-checks/host-tests, add a Tested: 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 add Risk: 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 (base 0abc2f385e54 -> main, state: OPEN, isDraft: false, mergeable: CONFLICTING, mergeStateStatus: DIRTY).
  • Conflicts vs main:
    • t6050-j714s.dts: main line 670 (#include "t6050-j716c-isp.dtsi") is followed by the updated config-8 comment from ec78739aa1cc (#2233).
    • t6050-j716c.dts: main line 302 (#include "t6050-j716c-isp.dtsi") is preceded by the Touch ID spi2/mesa nodes from 92d43be3161f (#2162).
    • t6050-k116s.dts: main line 873 (#include "t6050-j716c-isp.dtsi") is followed by the updated CPU PMU/CLPC comment from fc11f9496aa4 (#2214).
  • DTS inclusion/symbol check: Verified T6050_J714C, T6050_J716S, T6050_K114S, and T6050_K116C are all defined prior to #include "t6050-peripherals.dtsi", are present in the #if defined(...) guards for isp0 and isp0_dart{,1,2} in t6050-peripherals.dtsi, include t6050-isp.dtsi after t6050-peripherals.dtsi, and have no conflicting isp/isp-dart* aliases.
  • Unconditional power-domain activation: t6050-isp.dtsi:79-134 defines 6 ps_isp_* nodes under &pmgr1 without status = "disabled", and t6050-isp.dtsi:136-152 sets status = "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 update connection failure to archive.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, missing Tested:/Risk:).
  • §4/§6 check: Single commit 63f9b860c981 authored and committed by Ryan Murray <ryan@aurorasilicon.org> with matching Signed-off-by; no prohibited attribution or naming issues in commit message, diff, PR title, or PR body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants