Skip to content

arm64: dts: apple: t6050: share the K boards' internal panel, add it to K114s, K114c and K116c - #3350

Merged
RyanTheTide merged 3 commits into
mainfrom
feat/k114s-display-panel
Nov 27, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
feat/k114s-display-panel

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What

The K114s (14" M5 Pro, OLED) comes up on the boot framebuffer only. The boot loader logs "the device tree does not describe the internal display: no handoff", so the display coprocessor never binds:

  • GNOME runs on simpledrm. Every frame is copied through the CPU at a fixed 60 Hz, and the desktop feels laggy.
  • There is no backlight device, so the brightness keys do nothing.

The K116s already describes its panel and display coprocessor for the loader's hand-off. The K114c, K114s and K116c describe nothing.

This moves the K116s's display half into t6050-k114-k116-display.dtsi and includes it on all four K boards; each board adds its panel size. The four ADTs have the same disp0, dart-disp0, dcp and dart-dcp: on the live K114s ADT (27.2), disp0 clock-ids are 361 and 458, both DARTs are at vm-base 1 TiB with vm-size 3 TiB, dcp-brightness-node = 1, and there is no I2C backlight controller. The K114s runs the K116s's 27.2 DCP image, which aura already pairs for the internal panel (aura 023eb3a0, in 1.0.0b14). So no loader change is needed.

Stacked on #3337 (K114s board DT). It builds on the K-board panel work in #2009 and #2183 (Joshua Warren) and uses the same panel label, so the 10-nit floor in #3181 (Chris O'Hearn) applies on top as a one-line &panel change.

Tested

Tested: K114s at 36b2ee6 (DTB byte-identical to the row's 7076818c): aura "internal display handed off: firmware 27.2 ... 1000 nits"; apple-drm binds the DCP; eDP-1 3024x1986@120 (ProMotion); apple-panel-bl 0-1000 nits follows writes and the brightness keys; the owner confirms the lag is gone.

Kernel 7.3.0-42, the owner's own Stage 2 (aura 1.0.0b14.1) with only the DTB swapped, one-shot over a KIS tether, default command line plus console=ttyDC0:

  • aura: DCP: T6050: internal display handed off: firmware 27.2, bw-scratch 0x286700000+0x20000, 2 clock(s), 1000 nits.
  • Kernel: apple-drm display-subsystem: bound 48ae00000.dcp, [drm] Initialized apple 1.0.0 for display-subsystem, fb0: appledrmfb. simpledrm hands over.
  • Connector eDP-1 is connected at 302x199 mm, mode 3024x1986@120 with the notch rows. Mutter shows "Built-in display" 3024x1986@120.
  • Brightness: writes of 300, 600 and 200 to /sys/class/backlight/apple-panel-bl (max 1000) ramp the OLED through the DCP, and actual_brightness follows. The owner's brightness keys work.
  • The owner, at the machine: "120 Hz definitely works (lag gone)".
  • Regression: all 11 T6050 DTBs built before and after. J714c, J714s, J716c, J716s, J775c, J775d and J873s are byte-identical. The K116s DTB has the same nodes, properties and values (only the node order differs). CHECK_DTBS=y on K114s, K114c, K116c and K116s gives the same 9 messages before and after.

Risk: two-way · K114s, K114c, K116c (K116s unchanged in content)

Not yet

Byte-identity and binding check details
  • DTBs built at 0a57fc2 (base, arm64: dts: apple: t6050: K114s bring-up: USB-C, N1, GPU, sound/AOP, ANE, MagSafe, USB4 #3337 head) and at 36b2ee6 (head) with the same config. cmp shows that the seven J-board DTBs are identical. The K116s diff of dtc -s sorted sources is empty.
  • K114s gains: aliases dcp and disp0, /display-subsystem (disabled), apple,clock-ids = <361 458>, apple,panel-video-open-delay-us = <10000> and panel { compatible = "apple,panel-k114", "apple,panel"; 302x199 mm } on dcp, and apple,dma-range = <0x100 0 0x300 0> on dcp_dart and disp0_dart.
  • K116s keeps its trailing apple,panel-video-open-delay-us = <10000>, because t6050-j714s-sleep-soc.dtsi sets 2500 after the shared include.

…to K114s, K114c and K116c

The K114s comes up on the boot framebuffer only: aura logs "the device
tree does not describe the internal display: no handoff", so the DCP
never binds and there is no backlight device (brightness keys dead).
The K116s already describes its panel and display coprocessor for the
boot loader's hand-off; the K114c, K114s and K116c describe nothing.

The four K boards' ADTs have the same disp0, dart-disp0, dcp and
dart-dcp (live K114s ADT, 27.2: disp0 clock-ids 361 and 458, both DARTs
vm-base 1 TiB and vm-size 3 TiB, dcp-brightness-node = 1, no I2C
backlight controller), and the K114s runs the K116s's 27.2 DCP image
(3D6C8857-...), which aura already pairs for the internal panel.

Move the K116s's display half into t6050-k114-k116-display.dtsi and
include it on all four boards; each board adds its panel's size. The
K116s DTB is unchanged (same properties and values, node order aside);
every J-board DTB is byte-identical.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 27, 2026 04:34
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 7f358dba: not ready yet

Check Detail
CI at head running running: dt-checks
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 7f358dba
Conflicts ok none
PR text ok Risk: two-way · K114s, K114c, K116c (K116s unchanged in content) Not yet - K114c and K116c: not booted (no hardware here). The K114s stands in (same shared dtsi, same ADT nodes). Rows from Joshua/Dj welcome. - Only the 120 Hz mode is offered: that is the driver's T6050 guard (only_120hz_modes), not this DT. VRR stays off (vrr_capable 0), HDR in GNOME maps SDR content too bright, and the panel EDID has no primaries (#2798). These are driver follow-ups. - External displays need the loader to hand off the dcpext engines on 27.2 (aura aurora-silicon/aura#535) plus the DT routes. That is a separate PR.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict at 36b2ee61e223: no code blockers. It isn't ready to merge yet: CI hasn't run the DT or build jobs, the K114c and K116c rows are owed, and #3337 has to land first (see below).

Checked

  • DTBs: I built all 11 T6050 DTBs at this PR's base (0a57fc2e7019) and at this head.
    • J714c, J714s, J716c, J716s, J775c, J775d and J873s are byte-identical.
    • K116s's merged tree is unchanged apart from the new panel label. Its DTB differs only in node order.
    • There are no new dtc warnings. The K116s ones only moved line numbers.
  • K114s, K114c and K116c gain exactly the K116s display half:
    • the dcp and disp0 aliases;
    • the disabled display-subsystem, on disp0_dart SID 0;
    • apple,dma-range on both DARTs (1 TiB base, 3 TiB size);
    • apple,clock-ids = <361 458> and the 10000 us video-open delay on dcp;
    • the panel child.
    • dcp and its DARTs stay disabled until the loader's hand-off, as on K116s.
  • K116s video-open delay: K116s keeps 10000 us. The shared file sets it, and the board's trailing override still beats t6050-j714s-sleep-soc.dtsi's 2500 us.
  • Panel nodes:
    • apple,panel-k114 matches the ^apple,panel-[jk][0-9]+$ pattern in apple,dcp.yaml.
    • The K114 size, 302 × 199 mm, agrees with the 3024x1986 mode in the K114s row.
  • DART power domains: scripts/dtc/apple-dart-pd-check.py finds no new finding against the base.
  • Commit:
    • It is signed off by the author, with no attribution.
    • checkpatch --strict gives 0 errors. The only warning is the MAINTAINERS note for the new .dtsi, which the arch/arm64/boot/dts/apple/ entry already covers.

Not blocking

  • adj-height-mm: the K panel nodes have no adj-height-mm, which J714s and J716c set.
    • With the notch hidden (a loader-published apple,notch-height and no show_notch), dcp.c trims the modes. It keeps the full height-mm when adj-height-mm is absent, so the DPI height would be slightly off.
    • The K114s row shows the notch rows in the mode, so this doesn't apply today.
    • Worth adding if the loader starts publishing apple,notch-height for these panels.

Before merge

  1. CI: on this stacked base only pr-text ran (pass), and readiness is pending. dt-checks and the Apple build need to run green, which happens once this targets main after #3337.
  2. Rows:
    • K114s at this head is covered: hand-off, apple-drm bound, 120 Hz, backlight.
    • K114c and K116c still have no boot (Not yet). Each needs a first hand-off row (apple-drm bound and the backlight working), or the merge lane has to accept K114s as covering the shared file.
  3. #3337: this is stacked on #3337's branch, which needs to merge first.

@RyanTheTide
RyanTheTide changed the base branch from fix/t6050-k-boards-usb-c to main November 27, 2026 06:16
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge-train status at 36b2ee61: #3337 has now landed on main (dc7c873a). This PR's base is main and it's still mergeable. Following Dj's verdict (no code blockers), what's left: CI (DT and build jobs) at the head, and the K114c and K116c rows. K116s content is unchanged. If those boards stay unavailable, say in Still to run that the K114s stands in.

One question from the no-delays rule (REVIEW6 raised it on the draft): apple,panel-video-open-delay-us = <10000> now reaches three more boards. The comment cites the K116s plug-to-report timing (2.9 ms, then about 33 ms). Please add one line with the K114s's own cold-boot and wake timing that shows 10 ms is needed there, or a short A/B with the J714s's 2500 us, so the value is backed by the hardware it now applies to.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hardware row at 36b2ee61: K114s (T6050, M5 Pro), firmware 27.2, kernel 7.3.0-42.

The five files this PR changes are byte-identical at 36b2ee61 and at the tested commit d2271b6d. Blobs: t6050-k114-k116-display.dtsi 7206ceb2, t6050-k114c.dts 880f8535, t6050-k114s.dts e8b2298e, t6050-k116c.dts f73e86c1, t6050-k116s.dts 28d32133. The only base difference is #3337's 0a57fc2e, which touches t6050-max.dtsi only.

  • Boot 2026-11-27 15:16: the owner's own Stage 2 (aura 1.0.0b14.1) with only the DTB swapped, default command line plus console=ttyDC0.
    • aura: DCP: T6050: internal display handed off: firmware 27.2, bw-scratch 0x286700000+0x20000, 2 clock(s), 1000 nits.
    • apple-drm display-subsystem: bound 48ae00000.dcp; eDP-1 connected, 302x199 mm, 3024x1986@120.
    • apple-panel-bl (max 1000) follows writes. The owner reports 120 Hz works, the lag is gone, and the brightness keys work.
  • Second boot (another lane's touchscreen one-shot, same DTB plus the kiwi node, 18:12): chosen/asahi,t6050-dcp-handoff = "published", 48ae00000.dcp bound to apple-dcp, eDP-1 connected.
  • Regression: the seven J-board DTBs are byte-identical to main. The K116s DTB has the same content (node order only); Dj's review confirms this.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Row on the owner's DEFAULT boot (exact head DTB): the K114s's ESP Stage 2 is aura 1.0.0b14.1 with the DTB built at 0a57fc2e + 36b2ee61 (this PR's head content), kernel 7.3.0-42, default command line with no console arguments, plain reboot at 20:2x: chosen/asahi,t6050-dcp-handoff = published, apple-drm bound, eDP-1 connected at 3024x1986, apple-panel-bl present. SELinux Enforcing, 0 failed units, next_entry empty.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hardware row at 7f358dba: K114s (T6050, firmware 27.2): PASS. This PR's delta against main at 7f358dba is the one I rowed. t6050-k114-k116-display.dtsi, t6050-k116c.dts and t6050-k116s.dts are byte-identical to 36b2ee61. In t6050-k114c.dts and t6050-k114s.dts, the added lines are identical; only main underneath them changed, with 354734e (from #3337: ATC2's USB4 router chosen by a hardware macro). The combination of main with 354734e and this panel commit was booted on the K114s at 19:38: a one-shot of another lane with the #3363 DTB, which contains 354734e, plus this PR's panel commit, kernel 7.3.0-42. Its persistent journal (boot 280887677c20) has apple-drm display-subsystem: bound 48ae00000.dcp and the PMU RTC from #3363, so the DCP hand-off and bind hold on top of main.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 27, 2026
@RyanTheTide
RyanTheTide merged commit 88ddea8 into main Nov 27, 2026
3 of 4 checks passed
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) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants