Skip to content

arm64: dts: apple: t6050-k114-k116: report the built-in panel as eDP - #2009

Open
joshuaswarren wants to merge 2 commits into
aurora-silicon:mainfrom
joshuaswarren:dhp4/t6050-k114-internal-panel
Open

joshuaswarren wants to merge 2 commits into
aurora-silicon:mainfrom
joshuaswarren:dhp4/t6050-k114-internal-panel

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Links the boot framebuffer (framebuffer0) in arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi to &panel so simpledrm reports the built-in panel as eDP instead of Unknown when booted without a DCP handoff. Without that link, the internal panel appears as card0-Unknown-1, causing userspace to treat it as an external display and hold a lid-switch inhibitor.

This is the device-tree half paired with the simpledrm change in #1688 (after #3350 landed the shared &panel definitions for K114c, K114s, K116c, and K116s). The loader still controls when the DCP becomes active.

Tested

At 138590e64155, all four K114/K116 DTBs compiled and their &panel phandles resolved, clearing the four framebuffer schema warnings with no new DCP schema warnings.

Risk

two-way · T6050 K114c, K114s, K116c, and K116s MacBook Pros.

Not yet

No K114c boot with both #1688 and this change and no DCP handoff has been run yet to confirm card0-eDP-1, no handle-lid-switch inhibitor, and suspend/resume across a lid cycle.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GREEN on 503b7bb

One line, one file, one commit on the current integration/aurora - the diff is exactly the claimed apple,internal-panel on the shared K114/K116 framebuffer node, and the merge-order paragraph gives the correct reasons in both directions (without the binding, CHECK_DTBS warns on all four K-series dtbs; without the driver change the property does nothing). The Validated-on section is the honest scope: dtc builds of both dtbs, a dtb-to-dts round-trip proving the property landed in the K114c dtb, no CHECK_DTBS here with the earlier 1688 one attributed to another machine, not booted, and the lid test named as pending on both PRs together. The reach answer is the right no.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GREEN on 503b7bb

Independent review. No blocking items. This is a draft and I did not boot it. The PR text says so plainly, in the title and in the body.

What I checked:

  • One line, one file. The diff adds apple,internal-panel; to the framebuffer node in arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi and nothing else.
  • Merge order. The body says it lands after drm/sysfb: report eDP for framebuffer panels #1688, and why: drm/sysfb: report eDP for framebuffer panels #1688 holds the driver change and the binding, and without the binding CHECK_DTBS warns on these nodes. I checked that without the binding the schema rejects the property on a framebuffer node (my review of drm/sysfb: report eDP for framebuffer panels #1688).
  • The dtbs build. I built t6050-k114c, k114s, k116c and k116s with cpp and dtc at this head. All four build, and dtc -I dtb -O dts shows apple,internal-panel on framebuffer@0 in each. The same boards built without the line have no match. The dtc warnings are the same before and after for the K114c (none from this change).
  • Driver build. simpledrm.o builds with W=1 and no warnings. I checked that on the drm/sysfb: report eDP for framebuffer panels #1688 head, since this PR has no driver change.

Non-blocking notes:

  1. It covers four boards, not two. The shared t6050-k114-k116.dtsi node is included by the K114c, K114s, K116c and K116s dts files, so all four get the property. The text names the K114 and K116 boards, which is right, but only the K114c was ever seen with the problem.
  2. A lane name sits in public text. The "Not run" paragraph ends with a pane name. Please drop it, or say "in a slot with the lab owner".
  3. No schema run here. The body says CHECK_DTBS was not run on this PR and points at the earlier numbers on drm/sysfb: report eDP for framebuffer panels #1688. That is accurate.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

The four dt-checks warnings on this PR (apple,internal-panel not allowed on the apple,simple-framebuffer node of the K114c, K114s, K116c and K116s) are expected. #1688 adds the property to the simple-framebuffer binding, and this PR is stacked on it. The warnings clear once #1688 is in the base. No change needed here.

@joshuaswarren
joshuaswarren force-pushed the dhp4/t6050-k114-internal-panel branch from 503b7bb to b8c457c Compare November 18, 2026 01:12
@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for splitting this out. On #1688 you agreed to switch simpledrm to report eDP when the framebuffer node has the existing panel phandle, and to drop the apple,internal-panel binding. That changes this PR as well: the line at t6050-k114-k116.dtsi:50 should become panel = <&panel>; on the shared framebuffer node, pointing at a panel node with width-mm/height-mm (the K114c one in #2183, or a shared K114/K116 node). That also clears the four dt-checks failures here, because panel is already in the binding.

What's missing after the rework:

We can't supply K114c rows ourselves.

@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

138590e replaces apple,internal-panel with panel = <&panel> in the shared framebuffer. The four boards link to one panel per DCP. K114 uses 302 by 196 mm from the #2183 panel description. K116 uses 345 by 223 mm from the existing K116s node, which keeps its compatible. DCP stays disabled until the loader enables it.

The four old DTBs each reported the vendor-property warning. All four new DTBs compile and resolve the panel phandle. The framebuffer schema reports no diagnostics, and the DCP schema reports no new ones.

The simpledrm rework in #1688 must land first. On K114c we still owe the shared no-DCP eDP, inhibitor and lid suspend/resume check. This stays in draft.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, 138590e uses panel = <&panel> and clears the vendor property. A few points:

  1. Size: 302 x 196 mm is the J714s value for a 3024x1964 panel. The K114c panel is 3024x1986, and HID: apple-mtp-kiwi: the K114c touch screen (needs #1737) #1605 computes 302 x 199 mm from 254 ppi. Please use 199 here. If the K114s panel is the same, it should be 199 as well.
  2. The panel node and its sizes are added to the SoC file (t6050-peripherals.dtsi:2692-2703) under board #ifs. Board data fits better in t6050-k114-k116.dtsi (node and label) with width-mm/height-mm in each board .dts.
  3. arm64: dts: apple: t6050-k114c: describe the internal panel handoff #2183 also adds a K114c &dcp { panel { ... 302 x 196 } }. Please keep a single definition.
  4. Squash b8c457c and 138590e so the vendor property never lands.

As before, the reworked #1688 goes first, and then one K114c row: card0-eDP-1, no handle-lid-switch inhibitor, and lid suspend and resume in the journal.

Link the shared boot framebuffer to one panel under DCP. Keep the
panel node with the board family and set its dimensions per board.
Use 302 by 199 mm for the 14-inch panels based on the K114c mode
and 254 ppi. Keep the existing 16-inch size and K116s compatible.

All four DTBs compile and resolve the framebuffer panel phandle.
Both the framebuffer and DCP stay disabled for the loader.

Signed-off-by: Joshua Warren <[email protected]>
@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

The single-commit candidate puts the shared panel in t6050-k114-k116.dtsi and its size in each board file. It never adds the vendor property. The 302 by 199 mm value comes from the K114c mode and 254 ppi in #1605. It is an estimate on K114s.

All four DTBs compiled and resolved the framebuffer phandle to the DCP panel. The framebuffer and DCP both stay disabled for the loader. K116s keeps its panel compatible.

The #2183 loader test keeps its pinned kernel. After those runs, #2183 can put its brightness property on the shared panel. The K114c no-handoff eDP, lid inhibitor and suspend/resume check is still open.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, de86dd3 covers all four points: one panel node under &dcp in t6050-k114-k116.dtsi, the sizes in each board file, 302 x 199 mm for K114, nothing added to t6050-peripherals.dtsi, and no vendor property in the history. Leaving the #2183 brightness property for a later change to this shared node is fine.

The PR head is still 138590e, so please push the candidate to the branch so dt-checks run on it. Moving the t6050-peripherals.dtsi include into the family file also changes where it is included in all four boards, so a short note that the four DTBs differ only by the panel and the phandle (for example dtx_diff old vs new) would help the review.

After that, the order is the same: #1688 lands first, then the K114c row (card0-eDP-1, no handle-lid-switch inhibitor, lid suspend and resume in the journal).

@joshuaswarren
joshuaswarren force-pushed the dhp4/t6050-k114-internal-panel branch from 138590e to de86dd3 Compare November 20, 2026 05:42
@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

de86dd32b8b9 is now on this branch. I compiled all four DTBs at 138590e64155 and de86dd32b8b9 and compared their sorted trees. Only the K114c and K114s panel height changed, from 196 to 199 mm. The K116c and K116s trees and all four framebuffer panel phandles stayed the same.

The PR stays draft. The K114c lid test still needs #1688 and this change together.

@RyanTheTide

Copy link
Copy Markdown
Contributor

On 110861f, the K114 and K116 framebuffers have no panel phandle and the K114 boards have no panel node. The commit (de86dd3) applies cleanly on 110861f. It needs the simpledrm change in #1688 to have any effect, so #1688 goes first. @joshuaswarren, still open: a short note that the four DTBs differ only by the panel and the phandle (dtx_diff old vs new), and the K114c row with both PRs and no DCP handoff (card0-eDP-1, no handle-lid-switch inhibitor, lid suspend and resume in the journal).

Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over the 138 Apple DTBs this change rebuilds: no new warnings against the tip.

@joshuaswarren

joshuaswarren commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

I compiled all four DTBs at 110861f and at 110861f plus de86dd3 (which applies cleanly) and ran dtx_diff on each pair. On K114c, K114s and K116c the only semantic additions are the panel node under &dcp (302 x 199 mm on the 14-inch boards, 345 x 223 mm on K116c) and the framebuffer panel phandle. K116s reuses its existing apple,panel-k116 node, so it only gains the phandle link. Every other changed line is phandle renumbering: normalizing all phandle values makes the added and removed line sets identical on all four boards.

The K114c row with #1688 and no DCP handoff (card0-eDP-1, no handle-lid-switch inhibitor, lid suspend and resume in the journal) runs in the next M5 window.

@chrisohearn

Copy link
Copy Markdown
Contributor

I have a K114s (Mac17,13) and can boot this head and post a hardware row: the panel and boot framebuffer link, failed units and new kernel errors. #3181 stacks the K114s brightness floor for #3105 on this panel node, so it follows whatever shape this one lands in. Happy to test a rebased head too.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@joshuaswarren checking open drafts today. To come out of draft, this still needs:

  • It conflicts with main. Merge main in or rebase (no force push needed: a merge commit is fine).
  • About 34% of the lines it adds are already on main. Drop what has landed so the diff shows only what is new.
  • Then a test run at the final head on a Mac with the hardware it touches, and mark it ready for review.

If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done.

@joshuaswarren joshuaswarren changed the title arm64: dts: apple: t6050-k114-k116: report the built-in panel as eDP (draft, unbooted) arm64: dts: apple: t6050-k114-k116: report the built-in panel as eDP Nov 28, 2026
@joshuaswarren
joshuaswarren marked this pull request as ready for review November 28, 2026 11:41
@joshuaswarren
joshuaswarren requested review from a team as code owners November 28, 2026 11:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-28T11:41:25.162977Z
We couldn’t complete this review. Comment @codex review to try again.
9ff85cd Draft marked ready
🔒 Security Review ❌ Failed 2026-11-28T11:41:30.913934Z
We couldn’t complete this review. Comment @codex security review to try again.
9ff85cd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@aurora-silicon-review aurora-silicon-review Bot 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: FINISH, then merge at 9ff85cd5

Blockers:

  1. Queued CI checks (dt-checks, host-tests, pr-text, readiness) are still pending; wait for green CI.
  2. Pairs with #1688 (simpledrm eDP connector reporting); post an exact-head K114/K116 boot row confirming framebuffer0 links cleanly to &panel without breaking DCP handoff.

Checked:

  • arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi: clean 1-line addition of panel = <&panel>; in shared K114/K116 .dtsi; MERGEABLE on main, no Apple material, tool attribution, or private serials.
Evidence
  • Head: 9ff85cd5 (base: main, mergeable: MERGEABLE, +1/-0 across 1 file).

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 9ff85cd5: not ready yet

Check Detail
CI at head ok 5 checks passed
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 9ff85cd5, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · T6050 K114c, K114s, K116c, and K116s MacBook Pros.

Areas: area:bringup

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

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026

@aurora-silicon-review aurora-silicon-review Bot 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: MERGE at 9ff85cd55c2a

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi: clean 1-line addition of panel = <&panel>; in shared K114/K116 .dtsi; MERGEABLE on main, no Apple material, tool attribution, or private serials.

Follow-ups (not blocking): queued CI; K114/K116 boot row (pairs with #1688)

This branch has not been deployed

No deployments
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-hw-row No hardware row at the PR head (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.

3 participants