Skip to content

arm64: dts: apple: t8152-j804: describe PMC/CLPC and G18G GPU (on #4373) - #4375

Open
stefanodvx wants to merge 6 commits into
aurora-silicon:mainfrom
stefanodvx:feat/j804-gpu
Open

stefanodvx wants to merge 6 commits into
aurora-silicon:mainfrom
stefanodvx:feat/j804-gpu

Conversation

@stefanodvx

@stefanodvx stefanodvx commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What:
Stacked on #4373 (and #4372):

  • Adds apple,agx-t8152 to Documentation/devicetree/bindings/gpu/apple,agx.yaml and apple,t8152-gfx-ascwrap-v8 to Documentation/devicetree/bindings/mailbox/apple,ascwrap-v6.yaml so T8152 G18G GPU and GFX/GFX1 ASCWrap v8 mailbox nodes pass CHECK_DTBS.
  • Includes the shared T8152 PMC/CLPC (t8152-j873-pmc.dtsi) and G18G GPU (t8152-j873-gpu.dtsi) descriptions on the MacBook Pro (14-inch, M6, J804). All SGX (0x580000000), GFX/GFX1 ASCWrap v8 mailbox (0x582600000/0x582e00000, IRQs 300/260 and 301/261), and PMC (0x302800000/0x3029c6000) register windows and interrupts match the J804 ADT identically.

Tested:

  • 392727cd MacBook Pro 14-inch (M6, Mac18,1, J804, T8152, stub 26B7124, kernel 7.3.0-53.fc45.aurora.aarch64 with aura usb: typec: tipd: Limit the retries of a held mux by time, not count #359 + 26B7124 G18G profile) PASS: rebased onto arm64: dts: apple: t8152-j804: enable ANS2 NVMe and USB-C hosts (on #4372) #4373 (73f04fb4); dt-doc-validate and dt-validate pass with 0 warnings on apple,agx.yaml and apple,ascwrap-v6.yaml across t8152-j804.dtb, t8152-j833ct.dtb, and t8152-j873g.dtb; identical J804 GPU DT hardware-verified at 7f4850a5: /chosen/aurora,g18g-gpu-firmware-profile published as G18G-RTKit-3514.41.1.release, both GFX/GFX1 ASCWrap v8 mailboxes and all 8 reserved-memory regions enabled, aurora-g18 580000000.gpu stage 10 powered PSD services 3/81/82, decoded G18G rev B1, 1 dies, 2 clusters x 6 cores, 12 active (core mask 0xfff), booted GFX (32 us) and GFX1 (117 us) RTKit roles, initialized MMU/scheduler/render targets with 0 GPU errors and 0 failed systemd units.

Risk:
Two-way door (J804 board DT and T8152 GPU/mailbox DT bindings only; asahi refuses with ENODEV without a verified loader receipt).

Not yet:

Add the T8152 compatible for the keyboard backlight PWM controller,
which uses the apple,s5l-fpwm fallback.

Signed-off-by: LiamRay11 <228416644+LiamRay11@users.noreply.github.com>
Signed-off-by: stefano <69367859+stefanodvx@users.noreply.github.com>
@stefanodvx
stefanodvx requested review from a team as code owners December 4, 2026 23:00
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at 392727cd: not ready yet

Check Detail
CI at head ok 1 check passed
Review no needs one approving review from Core, Omarchy Mac or Aurora Maintainers (not the author)
Requested changes ok none
Hardware row at head ok the PR body at 392727cd
Conflicts ok none
PR text ok Risk: two-way · (J804 board DT and T8152 GPU/mailbox DT bindings only; asahi refuses with ENODEV without a verified loader receipt).

Areas: area:bringup

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

RyanTheTide
RyanTheTide previously approved these changes Dec 5, 2026

@RyanTheTide RyanTheTide 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: MERGE at 7f4850a

Checked: Reviewed the delta from #4373 and compiled the exact J804 DT. The shared fragments resolve the PMC/CLPC link, both mailbox phandles and eight reserved-memory regions. The compiler reports unit-name warnings in the reused GPU fragment. The J804 receipt reports both RTKit roles initialized using the companion loader.

Merge #4373 first. GPU activation in the reported configuration depends on the companion Aura work. Hosted DT and host-test jobs were skipped on this head.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 5, 2026
@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 5, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

CI dt-checks (47443094185) failed with 3 new CHECK_DTBS schema warnings on arch/arm64/boot/dts/apple/t8152-j804.dtb:

  • /soc/gpu@580000000: failed to match any schema with compatible: ['apple,agx-t8152']
  • /soc/mailbox@582600000: failed to match any schema with compatible: ['apple,t8152-gfx-ascwrap-v8']
  • /soc/mailbox@582e00000: failed to match any schema with compatible: ['apple,t8152-gfx-ascwrap-v8']

Adding apple,agx-t8152 and apple,t8152-gfx-ascwrap-v8 to the matching GPU / mailbox DT binding schemas will clear dt-checks.

LiamRay11 and others added 5 commits December 5, 2026 11:09
The T8152 AP GPIO bank uses uncached T8140 register access so reserved
pins do not fault on probe; allow the apple,t8140-pinctrl fallback for
apple,t8152-pinctrl while preserving the existing T8103 fallback used by
J873g and the separate AOP GPIO bank.

Signed-off-by: LiamRay11 <228416644+LiamRay11@users.noreply.github.com>
Signed-off-by: DjDeveloperr <hey@djdev.me>
Signed-off-by: stefano <69367859+stefanodvx@users.noreply.github.com>
Place the shared T8152 SoC nodes in t8152.dtsi (disabled by default so
hardware-only boards such as J833ct remain opt-in):

  - unmanaged CPU cluster OPP tables and cluster cpufreq controllers
  - SMC firmware reserved memory, SMC mailbox, and SMC controller
  - watchdog, AP pinctrl (uncached T8140 profile), I2C1, I2C3, and FPWM0

Then turn t8152-j804.dts into a concise board description enabling those
shared blocks and keeping only J804-specific wiring (reserved GPIO pin
ranges, disabled jack codec, keyboard backlight LED, SMC pcIO reset and
hwmon keys, boot NOR via t8152-j873-qspi.dtsi, and SIO/I2C power states).
J873g and its existing pinctrl fallback remain untouched.

All addresses, interrupts, GPIO ranges, and properties are verified
against the J804 (Mac18,1) ADT.

Signed-off-by: LiamRay11 <228416644+LiamRay11@users.noreply.github.com>
Signed-off-by: stefano <69367859+stefanodvx@users.noreply.github.com>
Include the shared T8152 ANS2 NVMe description (t8152-j873-nvme.dtsi;
all register bases and interrupts match the J804 ADT) and describe the
three exposed USB-C host controllers (usb-drd0, usb-drd1, usb-drd3),
their two Gen3 DART instances (0x20000 windows), and ATC USB power
domains for loader-initialized USB2 host operation.

Signed-off-by: stefano <69367859+stefanodvx@users.noreply.github.com>
Add apple,agx-t8152 to apple,agx.yaml (SGX plus three PSD service
windows, two GFX mailboxes, and eight boot-local firmware/UAT memory
regions) and apple,t8152-gfx-ascwrap-v8 to apple,ascwrap-v6.yaml
(wrapper, iop-vbar, post-office mailbox, and PSD windows) so T8152 GPU
device trees pass CHECK_DTBS validation.

Signed-off-by: stefano <69367859+stefanodvx@users.noreply.github.com>
Include the shared T8152 PMC/CLPC (t8152-j873-pmc.dtsi) and G18G GPU
(t8152-j873-gpu.dtsi) descriptions. All SGX, GFX/GFX1 ASCWrap v8
mailbox, and PMC register windows and interrupts match the J804 ADT.

Signed-off-by: stefano <69367859+stefanodvx@users.noreply.github.com>
@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed ci-failing A check failed at the PR head (bot) labels Dec 5, 2026

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-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