Repository navigation
Add the T6050 (M5 Max) and the 14-inch MacBook Pro (J714c) - #404
edimoldovan wants to merge 9 commits into
Conversation
The T6050 SART keeps the per-entry config, physical address and size words in three arrays at 0x00, 0x60 and 0xc0. Addresses and sizes are in 4 KiB units, sizes up to 30 bits. Add the v4 accessors and match "apple,t6050-sart". Tested on J714c (MacBook Pro 14-inch, M5 Max) in the bring-up tree these changes come from: the NVMe controller's SART ranges are read and the internal SSD works. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The T6050 cluster performance controllers take the same commands and report the same state as T8142's. Match "apple,t6050-cluster-cpufreq" with the T8142 data. Tested on J714c (MacBook Pro 14-inch, M5 Max) in the bring-up tree these changes come from: cpufreq on all three clusters. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On T6050 the coprocessors come up with the handshake the boot loader uses: - the system endpoints start in the loader's order (debug, crashlog, syslog, ioreport, oslog), and tracekit is not started; - oslog notifications are not acknowledged, as on T8140 and T8142; - the boot waits until the IOP reports the ON power state, since it can acknowledge intermediate states first; - the AP power state ACK gets a 200 ms window and is not required: the loader never waits for it, and macsmc starts its endpoint right after the wake, before the SMC ACK arrives. All four are limited to "apple,t6050" machines. Tested on J714c (MacBook Pro 14-inch, M5 Max) in the bring-up tree these changes come from: ANS boots and the internal SSD works. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The T6050 ANS2 takes the T8140 queue setup with three differences, all behind a new keep_cc_fields flag in its hardware description: - the boot loader hands the controller over disabled while the RTKit session stays live, so an enabled CC with no fatal status is enough to adopt it; - the controller reports ready only when CC keeps the entry-size fields the firmware set (IOSQES 7, 128-byte entries), so the enable keeps them instead of composing CC in nvme_enable_ctrl(); - the admin queue uses the full queue depth, the linear submission queue enable is ORed into the register, and the NVMMU TCB bases, ASQ, ACQ and AQA are written in the loader's order. Match "apple,t6050-nvme-ans2". Tested on J714c (MacBook Pro 14-inch, M5 Max) in the bring-up tree these changes come from: the internal SSD holds the Omarchy root file system. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The T6050 MTP firmware, like T8142's, waits for the AP power state before it acknowledges its own power state. Wake "apple,t6050-mtp" with apple_rtkit_wake_early_ap() as "apple,t8142-mtp" is. Tested on J714c (MacBook Pro 14-inch, M5 Max) in the bring-up tree these changes come from: the MTP boots and the keyboard and trackpad work. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Probe initialised critical_work twice: once through devm_work_autocancel() and again, with dbg_log_work, after blocking_notifier_chain_register(). An SMC critical-battery event arriving between the two would have its queued work re-initialised under the workqueue. Initialise both before the notifier is registered and drop the second INIT_WORK(). Link: https://github.com/rolotrealanis98/m5pro-linux/blob/main/contrib/pending/smc/patches/linux/0011-power-supply-macsmc-power-init-work-before-notifier.patch Signed-off-by: Rolando Trevino <rolotrealanis@gmail.com> Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com>
Before its display coprocessor driver runs, a built-in Apple panel is a simpledrm framebuffer whose connector is Unknown-1. Omarchy treats every connector that is not eDP, LVDS or DSI as an external monitor, so closing the lid kept the session in clamshell mode instead of locking it. Give a framebuffer node with apple,internal-panel an eDP connector. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the T6050 (M5 Max) SoC and the MacBook Pro (14-inch, M5 Max) board to the Apple platform binding, and the T6050 compatibles to the bindings of the blocks its device tree describes: PMGR and its power states, ASC mailbox, cluster cpufreq, I2C, DART, AICv3, watchdog, FPWM, GPIO, ANS2 NVMe, SART, SPMI, the abbey PMIC NVMEM, SMC, MTP and DockChannel. Its CPU cores are "apple,sotra". Where the device tree keeps an intermediate fallback the drivers match (the MTP DART and AIC on T8142, the GPIO block and NVMe on T8140), the binding lists the T6050 chain as it is. The T6050 NVMe controller has the NVMMU region of T8132 and a fourth power domain, the PCIe lane PHY of its storage link. simple-framebuffer gains apple,internal-panel, which marks a framebuffer as an Apple laptop's built-in panel. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the Apple T6050 (M5 Max) SoC and the 14-inch MacBook Pro with it (J714c), from the J714c Apple Device Tree: - t6050-base.dtsi: 18 CPUs in two M clusters and one P cluster with their OPP tables, the timer and the reference clocks; - t6050-die0.dtsi: AICv3, the serial port, the six PMGR blocks, the cluster cpufreq controllers, the watchdog, the keyboard backlight PWM, the GPIO block, I2C1-3, and the MTP with its mailbox, DART and DockChannel; - t6050-pmgr.dtsi: 302 power domains. The four Type-C ports' CIO domains and atc3_common stay with the firmware: powering them at boot breaks the loader's USB 2.0 host setup; - t6050-nvme.dtsi: the ANS2 NVMe controller with its mailbox and SART; - t6050-smc.dtsi: the SMC with its GPIO, hwmon, RTC and (disabled) reboot children, and nub-spmi0 with the abbey PMIC NVMEM cells the RTC and reboot children read. Based on omarchy-m5's dt/t6050-smc.dtsi (github.com/betizzel/omarchy-m5, GPL-2.0+ OR MIT), with the full 0x4000 nub-spmi0 window from rolotrealanis98's m5pro-linux. nub-spmi0 is polled: the gen 4 SPMI driver has no interrupt support. smc_reboot stays disabled: its restart handler would take over from the watchdog's, and its PMIC scratchpad offsets are not verified; - t6050-j714c.dts: memory, the boot framebuffer marked as the built-in panel, the serial console, the keyboard and trackpad (trackpad firmware apple/tpmtfw-j714c.bin, power method 2 with firmware-managed reset: with power method 1 the MTP firmware answers the power-state request with "unknown power state"), the keyboard backlight (pwm-leds, 40000 ns period), and the SMC with the common, dual-fan and laptop sensors. The J714c SMC spells the fan mode keys F0md and F1md, so the board overrides apple,fan-mode. The keyboard and trackpad need the loader to program the MTP DAPF (m1n1 on T6050). Tested on J714c, this series booted over the resident m1n1 into the Omarchy root on the internal SSD: 18 CPUs with cpufreq on all three clusters, the MTP keyboard and multi-touch devices, the SMC power/lid input, kbd_backlight, AC and battery, the RTC, 13 hwmon inputs, and the panel as eDP-1. Signed-off-by: Eduard Moldovan <edimoldovan@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
[Joshua's agent] @maralcbr @scottjones Could one of you review this? It is mergeable with no conflicts, and 31 commits behind It adds the T6050 (M5 Max) and the 14-inch MacBook Pro (J714c). Per the PR text, the series booted on a J714c over the resident m1n1 proxy. 18 CPUs came online, cpufreq worked on all three clusters, and the root file system ran from NVMe. The keyboard, trackpad, SMC battery and RTC, and the eDP panel also passed. The shipped config is compile-checked only, not booted. One correction to the PR text: it says The series needs macOS 27.3 beta 1 firmware ( |
Base: integration/aurora 6a08a08.
Requires the macOS 27.3 beta 1 system and OS firmware (iBoot
mBoot-20457.60.65.0.1) on the Omarchy volume. On earlier firmware (mBoot-20457.41.3tested) the secondary CPU cores do not start.What it does:
soc: apple: sart: SARTv4, the T6050 register layout.cpufreq: apple: T6050 clusters with the T8142 data.soc: apple: rtkit: the boot loader's endpoint order, no oslog ACK, a wait for the IOP ONstate and a 200 ms AP power ACK window, on "apple,t6050" machines only.
nvme: apple: T6050 ANS2.soc: apple: rtkit-helper: early AP wake for the T6050 MTP.power: supply: macsmc-power: work items initialised before the notifier (Rolando Trevino).drm/sysfb: simpledrm: apple,internal-panel framebuffers report an eDP connector.dt-bindings: the T6050 compatibles, the J714c board, apple,internal-panel.arm64: dts: apple: T6050 and J714c: CPUs, PMGR, NVMe, keyboard, trackpad, keyboardbacklight, SMC (battery, charger, lid, power button, RTC, sensors).
Depends on: omacom/m1n1#26.
Not included: Wi-Fi and Bluetooth, sound, USB, the GPU and the display controller.
Testing
MacBook Pro 14-inch, M5 Max (J714c, Mac17,7), system and OS firmware
mBoot-20457.60.65.0.1 (macOS 27.3 beta 1), Omarchy root on the internal SSD. This series on integration/aurora, booted over the
resident m1n1 proxy (a build with the m1n1 changes of omacom/m1n1#26). The test build used a
J714c config with every driver built in, and added the N1 Wi-Fi commits and their DT nodes,
which are not part of this PR, to reach the Mac over SSH. Built with the shipped linux-aurora
config: compile-check only, not booted.
tested by hand on the bring-up tree these changes come from (edimoldovan/linux-aurora
t6050-j714c83d711c); not repeated on this buildtools/aurora-ci/compile-check.py, every commit: passtools/aurora-ci/dt-check.py: pass; no new schema or binding problems apart from the NCOreference clock without clock-frequency (as on t6031)
scripts/checkpatch.pl --strict: clean, apart from theCo-Authored-Byform🤖 Generated with Claude Code