diff --git a/AGENTS.md b/AGENTS.md index b383587cfd09..4a43c0dfde9d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,6 +10,7 @@ matching guide before starting: - [`agents/skills/acceptance-tests.md`](agents/skills/acceptance-tests.md) - writing or running graphical acceptance tests under `test/acceptance.d/` - [`agents/skills/visual-verification.md`](agents/skills/visual-verification.md) - verifying any change with a visual effect in the running UI - [`agents/skills/migrations.md`](agents/skills/migrations.md) - creating or changing migrations under `migrations/` +- [`agents/skills/macbook-support-matrix.md`](agents/skills/macbook-support-matrix.md) - refreshing the Apple Silicon MacBook support matrix under `scripts/macbook-support-matrix/` # Documentation Layout diff --git a/agents/skills/macbook-support-matrix.md b/agents/skills/macbook-support-matrix.md new file mode 100644 index 000000000000..30993acc80ee --- /dev/null +++ b/agents/skills/macbook-support-matrix.md @@ -0,0 +1,51 @@ +# MacBook support matrix + +Read this before refreshing the Apple Silicon MacBook support matrix, or when a kernel or m1n1 change moves what a MacBook model supports. + +The matrix lists every Apple Silicon MacBook (42 boards, M1 to M6 and MacBook Neo) against 16 features, and says for each cell whether linux-aurora and m1n1 drive it today. It is published as the Basecamp document [Omarchy M+ — MacBook support matrix](https://app.basecamp.com/5994298/buckets/48646031/documents/10487174851) and as a standalone HTML page. + +## Files + +Everything lives in `scripts/macbook-support-matrix/`: + +- `boards.json` is the curated matrix and the source of truth. Each board has a `kind` (`base` for a full device tree, `stub` for a tree that describes CPUs and little else, `no-tree`) whose defaults fill every column, and `cells` that override them with the gate, PR or lab result that decides the cell. Notes are HTML; `linux-aurora#123`, `m1n1#31` or `mesa#33` become PR links, and a bare `#123` links to the last repository named in the same note (linux-aurora if none). +- `scan.json` is the device-tree evidence from the last refresh: for each board, its tree and the state of each feature (`driver`, `dt-off`, `no-driver`, `absent`). +- `page.html` is the page template. `matrix.py` fills in the snapshot line and the data. +- `matrix.py` is the stdlib-only CLI that scans, diffs and builds. + +## How a cell is decided + +`matrix.py scan` preprocesses and compiles every MacBook `.dts` in `arch/arm64/boot/dts/apple/`, reads each node's effective status (a node is off if it or a parent is disabled), and matches each enabled node's `compatible` strings against the string literals in `drivers/` and `sound/`. PCI devices match through `pci_ids_with_driver` in `boards.json`. + +Per-board gates then decide the cell: GPU admission tables, the display board table, the speaker table, the SEP profile table, and m1n1's defaults and handoffs. Those are code, but they are not in the device tree, so they are recorded by hand in `boards.json` with the file and line that holds them. `boot_enables` lists the columns m1n1 turns on at boot for nodes the tree ships disabled. `tree_in_pr` marks a board whose tree only exists in an open PR. + +## Refresh for a release candidate + +1. Check out linux-aurora at the release-candidate commit. A blobless sparse checkout of `arch/arm64/boot/dts/apple/`, `include/dt-bindings/`, `scripts/dtc/include-prefixes/`, `drivers/` and `sound/` is enough. `scan` needs `cc` and `dtc`. +2. Scan it and compare with the last refresh: + + ```bash + python3 scripts/macbook-support-matrix/matrix.py scan --kernel ~/src/linux-aurora --out /tmp/scan.json + python3 scripts/macbook-support-matrix/matrix.py diff --new /tmp/scan.json + ``` + +3. For every change the diff lists, and for every merged PR named in a cell, update the cell in `boards.json`. Re-read the gates the evidence notes cite (line numbers move), check m1n1 at the same release for default and handoff changes, and update `snapshot`. +4. Build and check the curated data against the new scan. Every line the check prints needs a gate, a `boot_enables` entry or a fix in `boards.json`: + + ```bash + python3 scripts/macbook-support-matrix/matrix.py build --out /tmp/matrix --scan /tmp/scan.json + ``` + +5. Copy `/tmp/scan.json` over `scripts/macbook-support-matrix/scan.json` and commit it with `boards.json` in one commit. +6. Publish `/tmp/matrix/basecamp.html` as the new body of the Basecamp document, and `/tmp/matrix/index.html` wherever the page is shared: + + ```bash + basecamp files update 10487174851 --type document --in 48646031 --content - < /tmp/matrix/basecamp.html + ``` + +## Rules + +- A cell says what the code does, never what was hoped. On means the code is present and enabled by default; it does not mean the feature passed hardware testing. Test results live in the omarchy-m-testing.org reports and the Basecamp testing doc. +- Lab results go in the cell after the code evidence, labelled `Lab:`, with their date and source in the Power + sleep evidence. +- Add a board when Apple ships a model: take the board code and chip ID from Apple's identification pages and AppleDB, and add it as `no-tree` until a device tree lands. +- Link every PR and commit; never leave a bare number that does not resolve. diff --git a/scripts/macbook-support-matrix/boards.json b/scripts/macbook-support-matrix/boards.json new file mode 100644 index 000000000000..af3db98028bc --- /dev/null +++ b/scripts/macbook-support-matrix/boards.json @@ -0,0 +1,1082 @@ +{ + "snapshot": { + "linux-aurora": { + "sha": "8eddf5aeb6acfb07ec3ca7bdcb62170685493b28", + "date": "8 Nov 2026 09:41 AEST" + }, + "m1n1": { + "sha": "7f6df96591b72c6ac9009cfa7e991dc5eafc7def", + "date": "8 Nov 2026 09:41 AEST" + }, + "catalog": "edge catalog 6 Nov 2026", + "basecamp_date": "8 Nov 2026 (Brisbane)" + }, + "columns": [ + [ + "inst", + "Edge catalog" + ], + [ + "stor", + "Storage" + ], + [ + "kbd", + "Keyboard + trackpad" + ], + [ + "net", + "Wi-Fi + BT" + ], + [ + "spk", + "Speakers" + ], + [ + "jack", + "Jack + mics" + ], + [ + "disp", + "Internal display" + ], + [ + "gpu", + "GPU accel" + ], + [ + "usb", + "USB-C / TB" + ], + [ + "ext", + "External display" + ], + [ + "cam", + "Camera" + ], + [ + "vdec", + "Video decode" + ], + [ + "batt", + "Battery + sensors" + ], + [ + "pwr", + "Power + sleep" + ], + [ + "tid", + "Touch ID" + ], + [ + "xtra", + "Model extras" + ] + ], + "kinds": { + "base": { + "cells": { + "inst": [ + "on" + ], + "stor": [ + "on" + ], + "kbd": [ + "on" + ], + "net": [ + "on" + ], + "spk": [ + "on" + ], + "jack": [ + "on" + ], + "disp": [ + "on" + ], + "gpu": [ + "on" + ], + "usb": [ + "on", + "USB3 + Thunderbolt" + ], + "ext": [ + "on" + ], + "cam": [ + "on" + ], + "vdec": [ + "on" + ], + "batt": [ + "on" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Lab: no measurement." + ], + "tid": [ + "no", + "no SEP profile" + ], + "xtra": [ + "na" + ] + } + }, + "stub": { + "fill": [ + "no", + "not described" + ], + "cells": { + "inst": [ + "no", + "not offered" + ], + "pwr": [ + "no", + "Code: no cpufreq, no cpuidle match." + ], + "xtra": [ + "part", + "keyboard backlight PWM only" + ] + } + }, + "no-tree": { + "fill": [ + "no", + "no device tree" + ], + "cells": { + "inst": [ + "no", + "not offered" + ] + } + } + }, + "pci_ids_with_driver": [ + "pci14e4,4425", + "pci14e4,4433", + "pci14e4,4434", + "pci14e4,5f69", + "pci14e4,5f71", + "pci14e4,5f72", + "pci14c3,7932", + "pci17a0,9755" + ], + "families": [ + { + "name": "M1", + "soc": "T8103", + "boards": [ + { + "id": "j293", + "name": "MacBook Pro 13\"", + "kind": "base", + "cells": { + "ext": [ + "part", + "USB-C DP via ATC PHY; no HDMI port" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "Touch Bar" + ] + } + }, + { + "id": "j313", + "name": "MacBook Air", + "kind": "base", + "cells": { + "ext": [ + "part", + "USB-C DP via ATC PHY" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ] + } + } + ] + }, + { + "name": "M1 Pro / Max", + "soc": "T6000 / T6001", + "boards": [ + { + "id": "j314s", + "name": "MacBook Pro 14\" M1 Pro", + "kind": "base", + "cells": { + "ext": [ + "on", + "HDMI + USB-C" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). PMP sleep path (linux-aurora#123). Lab: 2.25 W asleep (2.72 W before PMP); macOS 0.25 W. RTC wake alarm in linux-aurora#351." + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j314c", + "name": "MacBook Pro 14\" M1 Max", + "kind": "base", + "cells": { + "ext": [ + "on", + "HDMI + USB-C" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j316s", + "name": "MacBook Pro 16\" M1 Pro", + "kind": "base", + "cells": { + "ext": [ + "on", + "HDMI + USB-C" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j316c", + "name": "MacBook Pro 16\" M1 Max", + "kind": "base", + "cells": { + "ext": [ + "on", + "HDMI + USB-C" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + } + ] + }, + { + "name": "M2", + "soc": "T8112", + "boards": [ + { + "id": "j413", + "name": "MacBook Air 13\"", + "kind": "base", + "cells": { + "ext": [ + "part", + "DP PHY node off in DT" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace; untested" + ] + } + }, + { + "id": "j415", + "name": "MacBook Air 15\"", + "kind": "base", + "cells": { + "ext": [ + "part", + "DP PHY node off in DT" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace. Lab: enrol and verify pass" + ] + } + }, + { + "id": "j493", + "name": "MacBook Pro 13\"", + "kind": "base", + "cells": { + "ext": [ + "part", + "DP PHY node off in DT" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "Touch Bar" + ] + } + } + ] + }, + { + "name": "M2 Pro / Max", + "soc": "T6020 / T6021", + "note": "Lab: an M2 Pro lab Mac (board not recorded) sleeps at about 2 W, 3-4 % battery per hour (9 Oct 2026).", + "boards": [ + { + "id": "j414s", + "name": "MacBook Pro 14\" M2 Pro", + "kind": "base", + "cells": { + "ext": [ + "part", + "HDMI described; DP PHY off in DT" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Lab: see family note." + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j414c", + "name": "MacBook Pro 14\" M2 Max", + "kind": "base", + "cells": { + "ext": [ + "part", + "HDMI described; DP PHY off in DT" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j416s", + "name": "MacBook Pro 16\" M2 Pro", + "kind": "base", + "cells": { + "ext": [ + "part", + "HDMI described; DP PHY off in DT" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Lab: see family note." + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j416c", + "name": "MacBook Pro 16\" M2 Max", + "kind": "base", + "cells": { + "ext": [ + "part", + "HDMI described; DP PHY off in DT" + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "on", + "SD card" + ] + } + } + ] + }, + { + "name": "M3", + "soc": "T8122", + "boards": [ + { + "id": "j504", + "name": "MacBook Pro 14\" M3", + "kind": "base", + "cells": { + "disp": [ + "on", + "since linux-aurora#388" + ], + "gpu": [ + "on", + "T8122 admission list" + ], + "ext": [ + "no", + "no USB-C dcpext routes in DT (J613 only). Lab: HDMI fails DP link training" + ], + "tid": [ + "no", + "no SEP profile; sensor wiring unchecked" + ], + "xtra": [ + "on", + "SD card" + ] + }, + "boot_enables": [ + "disp", + "gpu" + ] + }, + { + "id": "j613", + "name": "MacBook Air 13\" M3", + "kind": "base", + "cells": { + "gpu": [ + "on", + "T8122 admission list" + ], + "ext": [ + "opt", + "chosen.asahi,t8122-dcpext=1" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Open sleep fixes: trackpad linux-aurora#343, light sensor linux-aurora#152. Lab: no measurement." + ], + "tid": [ + "part", + "SEP + sensor drivers (linux-aurora#88); needs userspace" + ] + }, + "boot_enables": [ + "disp", + "gpu" + ] + }, + { + "id": "j615", + "name": "MacBook Air 15\" M3", + "kind": "base", + "cells": { + "gpu": [ + "on", + "T8122 admission list" + ], + "ext": [ + "pr", + "no USB-C dcpext routes in DT (J613 only); linux-aurora#356" + ], + "tid": [ + "part", + "SEP + sensor drivers (linux-aurora#88); needs userspace" + ] + }, + "boot_enables": [ + "disp", + "gpu" + ] + } + ] + }, + { + "name": "M3 Pro", + "soc": "T6030", + "boards": [ + { + "id": "j514s", + "name": "MacBook Pro 14\" M3 Pro", + "kind": "base", + "cells": { + "gpu": [ + "part", + "12C CPU / 18C GPU only: the 14C GPU bin's firmware is not pinned, so the GPU is refused; linux-aurora#366" + ], + "ext": [ + "on", + "DT dispext handoff" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Sleep display release and RTC wake alarm (linux-aurora#274). Lab: 1.35 W asleep (2.6 W before #274)." + ], + "tid": [ + "pr", + "SEP in linux-aurora#282" + ], + "xtra": [ + "on", + "SD card" + ] + }, + "boot_enables": [ + "disp", + "gpu", + "ext" + ] + }, + { + "id": "j516s", + "name": "MacBook Pro 16\" M3 Pro", + "kind": "base", + "cells": { + "gpu": [ + "part", + "12C CPU / 18C GPU only: the 14C GPU bin's firmware is not pinned, so the GPU is refused; linux-aurora#390" + ], + "ext": [ + "on", + "DT dispext handoff" + ], + "tid": [ + "no", + "not described" + ], + "xtra": [ + "on", + "SD card" + ] + }, + "boot_enables": [ + "disp", + "gpu", + "ext" + ] + } + ] + }, + { + "name": "M3 Max", + "soc": "T6031 / T6034", + "boards": [ + { + "id": "j516c", + "name": "MacBook Pro 16\" M3 Max", + "config": "16C CPU / 40C GPU · T6031", + "kind": "base", + "cells": { + "gpu": [ + "on", + "reference board" + ], + "ext": [ + "no", + "no dcpext nodes; linux-aurora#292" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Sleep powers off the GPU domain under running firmware: fix in linux-aurora#288; RTC alarm in linux-aurora#285. Lab: 3 of 3 30 s sleeps resumed with those patches." + ], + "tid": [ + "no", + "not described" + ], + "xtra": [ + "on", + "SD card" + ] + }, + "boot_enables": [ + "disp", + "gpu" + ] + }, + { + "id": "j514c", + "name": "MacBook Pro 14\" M3 Max", + "config": "16C CPU / 40C GPU · T6031", + "kind": "base", + "cells": { + "disp": [ + "on", + "default since m1n1#31" + ], + "gpu": [ + "on", + "admitted by linux-aurora#363, default since m1n1#31; J516C power values unqualified" + ], + "ext": [ + "no", + "no dcpext nodes" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). Same T6031 GPU-domain sleep issue as J516C (linux-aurora#288). Lab: no measurement." + ], + "tid": [ + "no", + "not described" + ], + "xtra": [ + "on", + "SD card" + ] + }, + "boot_enables": [ + "disp", + "gpu" + ] + }, + { + "id": "j516m", + "name": "MacBook Pro 16\" M3 Max", + "config": "14C CPU / 30C GPU · T6034", + "kind": "base", + "cells": { + "disp": [ + "no", + "no DCP board entry; boot framebuffer" + ], + "gpu": [ + "no", + "T6034 support admits J514M only; no PR" + ], + "ext": [ + "no", + "no dcpext nodes" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). cpuidle matches T6034; no GPU driver to suspend. Lab: no measurement." + ], + "tid": [ + "no", + "not described" + ], + "xtra": [ + "on", + "SD card" + ] + } + }, + { + "id": "j514m", + "name": "MacBook Pro 14\" M3 Max", + "config": "14C CPU / 30C GPU · T6034", + "kind": "base", + "cells": { + "disp": [ + "pr", + "kernel merged (linux-aurora#408); m1n1 default in m1n1#32, approved, not merged" + ], + "gpu": [ + "pr", + "kernel linux-aurora#408 and Mesa mesa#33 merged; m1n1 default in m1n1#32; J516C power values unqualified. Lab: GL and Vulkan clean, 0 DART faults, Hyprland desktop" + ], + "ext": [ + "no", + "no dcpext nodes" + ], + "pwr": [ + "part", + "Code: cpufreq, cpuidle, s2idle only (no deep sleep). GPU driver has no suspend callbacks. Lab: no measurement." + ], + "tid": [ + "no", + "not described" + ], + "xtra": [ + "on", + "SD card" + ] + } + } + ] + }, + { + "name": "MacBook Neo", + "soc": "T8140", + "boards": [ + { + "id": "j700", + "name": "MacBook Neo", + "kind": "base", + "cells": { + "net": [ + "on", + "MT7932 Wi-Fi + BT" + ], + "spk": [ + "on", + "m1n1 adds speaker-safety node" + ], + "disp": [ + "on", + "m1n1 handoff; framebuffer if checks fail" + ], + "gpu": [ + "on", + "agx-t8140" + ], + "usb": [ + "on", + "USB-C; no Thunderbolt" + ], + "ext": [ + "part", + "dcp_h17p_external_supported gate" + ], + "pwr": [ + "no", + "Code: cpufreq, cpuidle (WFI only on T8140), s2idle offered. Lab: real s2idle does not resume yet; DVFS after resume unverified (linux-aurora#227)." + ], + "tid": [ + "part", + "SEP + sensor drivers; needs userspace" + ], + "xtra": [ + "na", + "no keyboard backlight" + ] + }, + "boot_enables": [ + "disp" + ] + } + ] + }, + { + "name": "M4", + "soc": "T8132", + "note": "Device trees describe CPUs and keyboard backlight only. m1n1 has CPU start code only.", + "boards": [ + { + "id": "j604", + "name": "MacBook Pro 14\" M4", + "kind": "stub" + }, + { + "id": "j713", + "name": "MacBook Air 13\" M4", + "kind": "stub" + }, + { + "id": "j715", + "name": "MacBook Air 15\" M4", + "kind": "stub" + } + ] + }, + { + "name": "M4 Pro / Max", + "soc": "T6040 / T6041", + "note": "No board files. Kernel has a G17 GPU config for agx-t6040; m1n1 has CPU start code only.", + "boards": [ + { + "id": "j614s", + "name": "MacBook Pro 14\" M4 Pro", + "config": "12C/16G or 14C/20G", + "kind": "no-tree" + }, + { + "id": "j614c", + "name": "MacBook Pro 14\" M4 Max", + "config": "14C/32G or 16C/40G", + "kind": "no-tree" + }, + { + "id": "j616s", + "name": "MacBook Pro 16\" M4 Pro", + "config": "14C/20G", + "kind": "no-tree" + }, + { + "id": "j616c", + "name": "MacBook Pro 16\" M4 Max", + "config": "14C/32G or 16C/40G", + "kind": "no-tree" + } + ] + }, + { + "name": "M5", + "soc": "T8142", + "note": "Kernel has CPU IDs and cpufreq for T8142; m1n1 has chip setup, cpufreq and ATC PHY code. Only J813 has a board file.", + "boards": [ + { + "id": "j704", + "name": "MacBook Pro 14\" M5", + "config": "Oct 2025", + "kind": "no-tree" + }, + { + "id": "j813", + "name": "MacBook Air 13\" M5", + "config": "Mar 2026", + "kind": "stub", + "cells": { + "kbd": [ + "on", + "MTP" + ], + "usb": [ + "on", + "USB; no Thunderbolt" + ], + "batt": [ + "on", + "SMC" + ], + "disp": [ + "no", + "DCP node off" + ], + "pwr": [ + "no", + "Code: cpufreq only; no cpuidle match. Lab: untestable, no storage." + ] + } + }, + { + "id": "j815", + "name": "MacBook Air 15\" M5", + "config": "Mar 2026", + "kind": "no-tree" + } + ] + }, + { + "name": "M5 Pro / Max", + "soc": "T6050 / T6051", + "note": "Only J714C has work, all in open PRs: linux-aurora#404 and m1n1#30, #33, #34, #35, #37.", + "boards": [ + { + "id": "j714c", + "name": "MacBook Pro 14\" M5 Max", + "config": "Mar 2026", + "kind": "base", + "cells": { + "inst": [ + "no", + "not offered" + ], + "stor": [ + "pr", + "NVMe in linux-aurora#404" + ], + "kbd": [ + "pr", + "MTP in #404" + ], + "net": [ + "pr", + "N1 opt-in, m1n1#34" + ], + "spk": [ + "no", + "not in #404" + ], + "jack": [ + "no", + "not in #404" + ], + "disp": [ + "pr", + "framebuffer in #404; native opt-in m1n1#35" + ], + "gpu": [ + "pr", + "m1n1 hand-off m1n1#37; no kernel driver in #404" + ], + "usb": [ + "no", + "not in #404" + ], + "ext": [ + "no" + ], + "cam": [ + "no" + ], + "vdec": [ + "no" + ], + "batt": [ + "pr", + "SMC in #404" + ], + "pwr": [ + "pr", + "Code: cpufreq in #404; no cpuidle match. Lab: s2idle offered and lid resume by hand on the bring-up tree (#404)." + ], + "tid": [ + "no" + ], + "xtra": [ + "pr", + "keyboard backlight in #404" + ] + }, + "tree_in_pr": "linux-aurora#404" + }, + { + "id": "j714s", + "name": "MacBook Pro 14\" M5 Pro", + "config": "Mar 2026", + "kind": "no-tree" + }, + { + "id": "j716s", + "name": "MacBook Pro 16\" M5 Pro", + "config": "Mar 2026", + "kind": "no-tree" + }, + { + "id": "j716c", + "name": "MacBook Pro 16\" M5 Max", + "config": "Mar 2026", + "kind": "no-tree" + }, + { + "id": "k114s", + "name": "MacBook Pro 14\" PROLED XDR, M5 Pro", + "config": "6 Nov 2026", + "kind": "no-tree" + }, + { + "id": "k114c", + "name": "MacBook Pro 14\" PROLED XDR, M5 Max", + "config": "6 Nov 2026", + "kind": "no-tree" + }, + { + "id": "k116s", + "name": "MacBook Pro 16\" PROLED XDR, M5 Pro", + "config": "6 Nov 2026", + "kind": "no-tree" + }, + { + "id": "k116c", + "name": "MacBook Pro 16\" PROLED XDR, M5 Max", + "config": "6 Nov 2026", + "kind": "no-tree" + } + ] + }, + { + "name": "M6", + "soc": "T8152", + "note": "Chip work targets the Mac mini J873G (kernel DT, cpufreq; m1n1 display, DCP, ATC PHY; linux-aurora#191 to #198, #359). No MacBook board file.", + "boards": [ + { + "id": "j804", + "name": "MacBook Pro 14\" M6", + "config": "6 Nov 2026", + "kind": "no-tree" + } + ] + } + ], + "basecamp": { + "intro": [ + "What the Omarchy Mac kernel (linux-aurora) and boot loader (m1n1) drive on every Apple Silicon MacBook: 42 boards from M1 to M6, including MacBook Neo. The board list comes from Apple's model identification pages and AppleDB, so models with no code yet are included.", + "Every status comes from code: the board's compiled device tree, a matching kernel driver, and any per-board gate in the driver or m1n1. On means the code is present and enabled by default. It does not mean the feature has passed hardware testing; results live in Omarchy M+ — Hardware testing and validation." + ], + "summary": [ + "M1 to M2 Max (13 boards): every device has a driver; display and GPU are on by default. The gap is external display on M2 (USB-C DisplayPort node disabled).", + "M3 (7 of 9 boards): native display and GPU on by default on J504, J613, J615, J514S, J516S, J516C and J514C. J514C became default with m1n1#31; its GPU power values are copied from the 16\" and unqualified. On M3 Pro only the 12-core CPU / 18-core GPU bin gets the GPU; the 14-core GPU bin loads a firmware the kernel does not pin yet (linux-aurora#366, #390).", + "Power + sleep: sleep is s2idle only on every board; there is no deep sleep. cpufreq and cpuidle are present on M1 to M3 and Neo, and missing on M4 to M6. Measured sleep drain: M1 Pro J314S 2.25 W, M3 Pro J514S 1.35 W, about 2 W on an M2 Pro, against 0.25 W for macOS on the same M1 Pro. Neo does not resume from s2idle yet.", + "Binned M3 Max (T6034): J514M display and GPU are merged in the kernel (linux-aurora#408) and Mesa (mesa#33), and go on by default when m1n1#32 merges (approved). J516M has nothing yet and boots on the basic framebuffer.", + "MacBook Neo: display, GPU, Wi-Fi, Bluetooth and audio on by default. External display and Touch ID partial.", + "Every M4, M5 and M6 MacBook (19 boards) is not installable. 15 have no device tree. J604, J713, J715 and J813 have one with no storage controller. Only the 14\" M5 Max J714C has open bring-up PRs (linux-aurora#404)." + ], + "labels": [ + [ + "on", + "described in the device tree, driver binds, on by default." + ], + [ + "opt", + "code present, but needs a boot.bin line or a pending change." + ], + [ + "part", + "code present with a gap noted." + ], + [ + "pr", + "only in an open, unmerged pull request." + ], + [ + "no", + "no driver, a gate refuses the board, or the hardware is not described." + ], + [ + "na", + "the model does not have that hardware." + ] + ], + "common_note": "The Common hardware column covers storage, keyboard and trackpad, Wi-Fi and Bluetooth, speakers, headphone jack and microphones, USB-C and Thunderbolt, camera, video decode, battery and sensors. It lists only the items that are not On.", + "evidence": [ + "Each board's .dts was preprocessed and compiled, and every node's effective status read (a node is off if it or a parent is disabled). Each enabled node's compatible strings or PCI ID were matched against drivers/ and sound/. All 27 existing MacBook device trees bind a driver for every enabled device, so every gap comes from a per-board gate or an undescribed device.", + "GPU: the driver's device matches (drm/asahi/driver.rs:164-218) cover t8103, t8112, t600x, t602x, t8122, t6030, t6031, t6040 and t8140; the G15 driver (g15/mod.rs:143-157) covers t6030, t6031 and t6034. M3 Air and J504 are admitted by asahi/m3/t8122_admission.rs:9, M3 Pro by asahi/g15/glue.c:229 with one pinned firmware TEXT per board (g15/hw.rs:156-171; the 14-core GPU bin's cd05af6a… image is added by linux-aurora#366 and #390), J516C by g15/hw/t6031.rs:183 and J514C by g15/boot.rs:475 (linux-aurora#363) and J514M by g15/boot.rs:479 (linux-aurora#408); boot.rs:497 refuses every other T6034 board. m1n1 turns graphics on by default for J613, J615, J504, J514S, J516S, J516C and J514C (kboot.c:407-419, J514C added by m1n1#31).", + "Display: M1/M2 use the standard DCP driver. M3 boards need an entry in drm/apple/iomfb_v14_7.c:231-239: T6030 (any M3 Pro), J613, J615, J504 (linux-aurora#388), J516C, J514C and J514M. External displays are native on M3 Pro through the device tree's dispext handoff (dcp.c:1385), need chosen.asahi,t8122-dcpext=1 on J613 (m1n1 kboot.c:2785), are not wired on J615 and J504 because only t8122-j613.dts describes the USB-C routes to dcpext (J615 routes in linux-aurora#356), and have no nodes on M3 Max (linux-aurora#292).", + "Speakers: every MacBook has speakers enabled in sound/soc/apple/macaudio.c:1862, directly or through a compatible fallback. They still need the speakersafetyd daemon in userspace.", + "Touch ID: the SEP driver (drivers/soc/apple/sep.rs) provides enrol and verify through /dev/sep-bio. SEP nodes ship disabled by design and the driver enables them at runtime (sep.rs:10). A board is covered when soc/apple/profile.rs:550-590 has a profile (T8103, T6000/T6001, T6020/T6021, T8112, T8140, and T8122 for J613/J615 only) and its fingerprint sensor node is enabled: every M1, M1 Pro/Max, M2, M2 Pro/Max and M3 Air MacBook, and Neo. M3 Pro SEP is in linux-aurora#282. Touch ID still needs userspace integration.", + "M4 Pro and later: board codes and chip IDs come from Apple's MacBook Pro and MacBook Air pages and AppleDB. m1n1 has only CPU start code for T604x and T605x. M6 work so far targets the Mac mini J873G (linux-aurora#191 to #198, #359). AppleDB gives M5 Pro and M5 Max the same chip ID (0x6050) while m1n1 also defines T6051, so whether M5 Max splits across two chips like M3 Max is not confirmed.", + "Power + sleep: each cell gives code evidence first and lab results second, labelled Code and Lab. Partial means the code paths exist but sleep is s2idle only and drains far more than macOS. cpufreq is an enabled *-cluster-cpufreq node with a driver match. cpuidle starts on t8103, t8112, t8122, t600x, t602x, t6030, t6031, t6032, t6034 and t8140 (drivers/cpuidle/cpuidle-apple.c:173-186; WFI only on T8140), and on no M4, M5 or M6 chip. Apple Silicon has no PSCI system suspend, so mem_sleep offers only s2idle. The display driver has system-sleep handlers for every generation (drm/apple/dcp.c:5086). The GPU driver has none, because its firmware stays resident; on T6031, genpd powers the GPU domain off under it, which linux-aurora#288 fixes (open).", + "Power lab sources: M1 Pro J314S figures are 5 V input measurements from 14 Oct 2026; a live Thunderbolt link adds about 1.3 W in sleep there. The M3 Pro J514S figure is the SMC coulomb counter on battery, from linux-aurora#274. The M2 Pro figure is from the 9 Oct 2026 battery investigation (board not recorded). The Neo resume status comes from the linux-aurora#227 qualification notes.", + "Not covered by code evidence: backlight and fn keys, sustained power and thermals. The 28 Oct test reports still fail display controller, backlight, ambient light, fn key and external display checks on every M3 board that reported." + ], + "titles": { + "gpu": "GPU acceleration" + } + } +} diff --git a/scripts/macbook-support-matrix/matrix.py b/scripts/macbook-support-matrix/matrix.py new file mode 100755 index 000000000000..10a2e6a0ed0c --- /dev/null +++ b/scripts/macbook-support-matrix/matrix.py @@ -0,0 +1,385 @@ +#!/usr/bin/env python3 +"""Build the Apple Silicon MacBook support matrix from code evidence. + +boards.json holds the curated matrix: one cell per board and feature, with +the gate or PR that decides it. The device-tree scan is the evidence behind +those cells, and is kept in scan.json so a refresh can show what changed. + + python3 matrix.py scan --kernel ~/src/linux-aurora --out scan.json + python3 matrix.py diff --old scan.json --new /tmp/scan.json + python3 matrix.py build --out /tmp/matrix [--scan scan.json] + +scan needs a C preprocessor (cc) and dtc. diff and build are stdlib only. +""" + +import argparse +import glob +import html +import json +import os +import re +import subprocess +import sys + +HERE = os.path.dirname(os.path.abspath(__file__)) +GH = "https://github.com/omacom" +REPOS = ("linux-aurora", "m1n1", "mesa", "omarchy-mac", "omarchy-pkgs") +LABELS = {"on": "On", "opt": "Opt-in", "part": "Partial", "pr": "In PR", "no": "Missing", "na": "N/A"} +SOURCE_EXT = (".c", ".h", ".rs") + +# Device-tree features and the compatible pattern that identifies each one. +FEATURES = [ + ("storage", r"-nvme-ans[23]$"), + ("cpufreq", r"-cluster-cpufreq$"), + ("kbd_tp", r"^apple,spi-hid-transport$|^apple,dockchannel-hid$"), + ("wifi", r"^pci14e4,44|^pci14c3,7932$"), + ("bt", r"^pci14e4,5f"), + ("speakers", r"-macaudio$"), + ("jack", r"^cirrus,cs42l8"), + ("mics", r"-aop-audio$"), + ("display", r"^apple,t\d{4}-dcp$"), + ("gpu", r"^apple,agx-"), + ("usb", r"-dwc3$"), + ("tb", r"-usb4-nhi$"), + ("extdisp", r"-dcpext$"), + ("camera", r"-isp$"), + ("vdec", r"-avd$"), + ("sd", r"^pci17a0,9755$"), + ("battery", r"-smc$"), + ("als", r"-aop-als$"), + ("kbdlight", r"^pwm-leds$"), + ("touchbar", r"-touchbar$"), + ("touchid", r"-fingerprint$"), +] + +# Matrix column -> device-tree features that provide it, for build --scan. +COLUMN_FEATURES = { + "stor": ["storage"], "kbd": ["kbd_tp"], "net": ["wifi", "bt"], "spk": ["speakers"], + "jack": ["jack"], "disp": ["display"], "gpu": ["gpu"], "usb": ["usb"], "ext": ["extdisp"], + "cam": ["camera"], "vdec": ["vdec"], "batt": ["battery"], "pwr": ["cpufreq"], "tid": ["touchid"], +} + +LINK_RE = re.compile(r"(?]*>.*?)", text) + repo = "linux-aurora" + out = [] + for part in parts: + if part.startswith("{label}' + + out.append(LINK_RE.sub(sub, part)) + return "".join(out) + + +def load_data(path): + with open(path) as f: + return json.load(f) + + +def cell(v): + return {"s": v[0], "n": link(v[1])} if len(v) > 1 else {"s": v[0]} + + +def expand(data): + """Expand each board's kind defaults and overrides into one cell per column.""" + keys = [k for k, _ in data["columns"]] + families = [] + for f in data["families"]: + boards = [] + for b in f["boards"]: + kind = data["kinds"][b["kind"]] + r = {k: cell(kind["fill"]) for k in keys} if "fill" in kind else {} + r.update({k: cell(v) for k, v in kind.get("cells", {}).items()}) + r.update({k: cell(v) for k, v in b.get("cells", {}).items()}) + missing = [k for k in keys if k not in r] + if missing: + raise SystemExit(f"{b['id']}: no value for {', '.join(missing)}") + boards.append({"id": b["id"], "n": b["name"], "cfg": b.get("config", ""), "kind": b["kind"], + "r": {k: r[k] for k in keys}, "boot_enables": b.get("boot_enables", []), + "tree_in_pr": b.get("tree_in_pr", "")}) + families.append({"name": f["name"], "soc": f["soc"], "note": link(f.get("note", "")), "boards": boards}) + return families + + +# --- scan ------------------------------------------------------------------- + +def parse_dts(text): + """Return [{path, compat, on}] for every node of a dtc -O dts dump.""" + stack, nodes = [], {} + for line in text.splitlines(): + s = line.strip() + m = re.match(r"^(?:[\w,-]+:\s*)*([\w,@.+-]+|/)\s*\{$", s) + if m: + stack.append(m.group(1)) + nodes.setdefault("/".join(stack), {"compat": [], "status": "okay"}) + continue + if s.startswith("};"): + stack.pop() + continue + if not stack: + continue + n = nodes["/".join(stack)] + km = re.match(r"^([\w,#.+-]+)\s*=\s*(.*);$", s) + if not km: + continue + k, v = km.groups() + if k == "compatible": + n["compat"] = re.findall(r'"([^"]+)"', v) + elif k == "status": + n["status"] = re.findall(r'"([^"]+)"', v)[0] + out = [] + for p, n in nodes.items(): + parts = p.split("/") + on = all(nodes.get("/".join(parts[:i]), {"status": "okay"})["status"] in ("okay", "ok") + for i in range(1, len(parts) + 1)) + out.append({"path": p, "compat": n["compat"], "on": on}) + return out + + +def compile_dts(kernel, dts): + apple = os.path.join(kernel, "arch/arm64/boot/dts/apple") + pre = subprocess.run(["cc", "-E", "-nostdinc", "-undef", "-D__DTS__", "-x", "assembler-with-cpp", + "-I", apple, "-I", os.path.join(kernel, "include"), + "-I", os.path.join(kernel, "scripts/dtc/include-prefixes"), dts], + capture_output=True, text=True, check=True).stdout + # dtc cannot parse the floating-point cells some Apple trees carry; they are not needed here. + pre = re.sub(r"<\s*-?\d+\.\d+[^>]*>", "<0>", pre) + return subprocess.run(["dtc", "-q", "-I", "dts", "-O", "dts", "-o", "-", "-"], + input=pre, capture_output=True, text=True, check=True).stdout + + +def driver_strings(kernel): + """Every string literal in drivers/ and sound/ that could be a compatible.""" + found = set() + rx = re.compile(r'"([A-Za-z0-9][\w,.+-]{1,63})"') + for top in ("drivers", "sound"): + for root, _, files in os.walk(os.path.join(kernel, top)): + for name in files: + if name.endswith(SOURCE_EXT): + with open(os.path.join(root, name), errors="replace") as f: + found.update(rx.findall(f.read())) + return found + + +def feature_state(nodes, rx, drivers, pci_ids): + hit = [n for n in nodes if any(re.search(rx, c) for c in n["compat"])] + if not hit: + return "absent", [] + on = [n for n in hit if n["on"]] + if not on: + return "dt-off", hit + ok = [n for n in on if any(c in drivers or c in pci_ids for c in n["compat"])] + return ("driver" if ok else "no-driver"), on + + +def git_head(kernel): + r = subprocess.run(["git", "-C", kernel, "rev-parse", "HEAD"], capture_output=True, text=True) + return r.stdout.strip() if r.returncode == 0 else "" + + +def cmd_scan(args): + data = load_data(args.data) + apple = os.path.join(args.kernel, "arch/arm64/boot/dts/apple") + if not os.path.isdir(apple): + raise SystemExit(f"{apple}: not a linux-aurora tree") + drivers = driver_strings(args.kernel) + pci_ids = set(data["pci_ids_with_driver"]) + boards = {} + for f in data["families"]: + for b in f["boards"]: + trees = sorted(glob.glob(os.path.join(apple, f"t*-{b['id']}.dts"))) + if not trees: + boards[b["id"]] = {"tree": None} + continue + nodes = parse_dts(compile_dts(args.kernel, trees[0])) + feats = {} + for name, rx in FEATURES: + st, hit = feature_state(nodes, rx, drivers, pci_ids) + feats[name] = {"state": st, "compat": sorted({n["compat"][0] for n in hit})[:3]} + boards[b["id"]] = {"tree": os.path.basename(trees[0]), "features": feats} + out = {"kernel": git_head(args.kernel), "boards": boards} + with open(args.out, "w") as f: + json.dump(out, f, indent=1, sort_keys=True) + f.write("\n") + print(f"{len(boards)} boards, {sum(1 for b in boards.values() if b['tree'])} with a device tree -> {args.out}") + + +# --- diff ------------------------------------------------------------------- + +def cmd_diff(args): + old, new = load_data(args.old), load_data(args.new) + print(f"kernel {old.get('kernel', '?')[:12]} -> {new.get('kernel', '?')[:12]}") + changes = 0 + for bid in sorted(set(old["boards"]) | set(new["boards"])): + a, b = old["boards"].get(bid, {"tree": None}), new["boards"].get(bid, {"tree": None}) + if a.get("tree") != b.get("tree"): + print(f"{bid}: device tree {a.get('tree')} -> {b.get('tree')}") + changes += 1 + fa, fb = a.get("features", {}), b.get("features", {}) + for name in sorted(set(fa) | set(fb)): + sa, sb = fa.get(name, {}).get("state", "-"), fb.get(name, {}).get("state", "-") + if sa != sb: + print(f"{bid}: {name} {sa} -> {sb}") + changes += 1 + print(f"{changes} change(s); update boards.json cells for each one that matters") + + +# --- build ------------------------------------------------------------------ + +def snapshot_line(snap): + la, m1 = snap["linux-aurora"], snap["m1n1"] + return (f'linux-aurora {la["sha"][:12]} ({la["date"]}) · ' + f'm1n1 {m1["sha"][:7]} ({m1["date"]}) · {snap["catalog"]}') + + +def page(data, families): + with open(os.path.join(HERE, "page.html")) as f: + tpl = f.read() + blob = json.dumps({"columns": data["columns"], "families": families}, ensure_ascii=False) + return tpl.replace("{{SNAPSHOT}}", snapshot_line(data["snapshot"])).replace("{{DATA}}", blob.replace("{x}

' + + +def bc_red(x): + return f'{x}' + + +def bc_cell(v): + s = f"{LABELS[v['s']]}" + (f". {v['n']}" if v.get("n") else "") + return bc_red(s) if v["s"] == "no" else s + + +def bc_table(head, rows): + h = "\n" + "".join(f"

{x}

\n" for x in head) + "\n" + b = "".join("\n" + "".join(f"

{x}

\n" for x in r) + "\n" for r in rows) + return f'
\n{h}{b}
' + + +def basecamp(data, families): + """Basecamp (Lexxy) document HTML: Missing cells in red, boards without a tree in their own table.""" + bc = data["basecamp"] + titles = {**dict(data["columns"]), **bc.get("titles", {})} + main = ["inst", "disp", "gpu", "ext", "pwr", "tid", "xtra"] + common = [k for k, _ in data["columns"] if k not in main] + snap = data["snapshot"] + la, m1 = snap["linux-aurora"], snap["m1n1"] + out = [bc_p(link(x)) for x in bc["intro"]] + out.append(bc_p(f'Snapshot: linux-aurora {la["sha"][:12]} and m1n1 ' + f'{m1["sha"][:7]}, {snap["basecamp_date"]}. Installer catalog: {snap["catalog"].replace("edge catalog", "edge,")}.')) + out.append(bc_p("
")) + out.append('

Summary

') + out.append('") + out.append(bc_p("
")) + out.append('

Status labels

') + out.append('") + out.append(bc_p("
")) + out.append('

Support by board

') + out.append(bc_p(bc["common_note"])) + for f in families: + out.append(f'

{f["name"]} ({f["soc"]})

') + if f["note"]: + out.append(bc_p(f["note"])) + rows = [b for b in f["boards"] if b["kind"] != "no-tree"] + if rows: + out.append(bc_table(["Board"] + [titles[k] for k in main] + ["Common hardware"], [ + [f"{b['n']}
{b['id'].upper()}" + (f" · {b['cfg']}" if b["cfg"] else "")] + + [bc_cell(b["r"][k]) for k in main] + + ["
".join(f"{titles[k]}: {bc_cell(b['r'][k])}" for k in common if b["r"][k]["s"] != "on") or "All on"] + for b in rows])) + nodt = [b for b in f["boards"] if b["kind"] == "no-tree"] + if nodt: + out.append(bc_table(["Board", "Released", "State"], [ + [bc_red(b["n"]) + f"
{b['id'].upper()}", bc_red(b["cfg"]), + bc_red("Missing. No device tree; not in the catalog.")] for b in nodt])) + out.append(bc_p("
")) + out.append('

Evidence

') + out.append('") + return "".join(out) + + +def disagreements(families, scan): + """Cells the curated data and the device-tree scan disagree on.""" + out = [] + for f in families: + for b in f["boards"]: + s = scan["boards"].get(b["id"], {"tree": None}) + if b["tree_in_pr"] and s.get("tree") is None: + continue + if (b["kind"] == "no-tree") != (s.get("tree") is None): + out.append(f"{b['id']}: kind {b['kind']} but scan tree is {s.get('tree')}") + continue + if not s.get("tree"): + continue + for col, feats in COLUMN_FEATURES.items(): + states = {s["features"][x]["state"] for x in feats} + v = b["r"][col] + if col in b["boot_enables"] and "dt-off" in states: + continue + if v["s"] == "on" and "driver" not in states: + out.append(f"{b['id']}: {col} is On but the scan finds {'/'.join(sorted(states))}") + elif v["s"] == "no" and v.get("n") == "not described" and "absent" not in states: + out.append(f"{b['id']}: {col} says not described but the scan finds {'/'.join(sorted(states))}") + return out + + +def cmd_build(args): + data = load_data(args.data) + families = expand(data) + os.makedirs(args.out, exist_ok=True) + with open(os.path.join(args.out, "index.html"), "w") as f: + f.write(page(data, families)) + with open(os.path.join(args.out, "basecamp.html"), "w") as f: + f.write(basecamp(data, families)) + with open(os.path.join(args.out, "matrix-data.json"), "w") as f: + json.dump([{**f, "boards": [{k: b[k] for k in ("id", "n", "cfg", "r")} for b in f["boards"]]} for f in families], + f, indent=1, ensure_ascii=False) + f.write("\n") + count = sum(len(f["boards"]) for f in families) + print(f"{count} boards -> {args.out}/index.html, basecamp.html, matrix-data.json") + if args.scan: + found = disagreements(families, load_data(args.scan)) + for line in found: + print("check:", line) + print(f"{len(found)} cell(s) disagree with the scan; each needs a gate or note in boards.json, or a fix") + + +def main(argv=None): + ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0]) + sub = ap.add_subparsers(dest="cmd", required=True) + s = sub.add_parser("scan", help="compile every MacBook device tree and record which features bind a driver") + s.add_argument("--kernel", required=True, help="linux-aurora checkout") + s.add_argument("--data", default=os.path.join(HERE, "boards.json")) + s.add_argument("--out", required=True) + d = sub.add_parser("diff", help="compare two scans") + d.add_argument("--old", default=os.path.join(HERE, "scan.json")) + d.add_argument("--new", required=True) + b = sub.add_parser("build", help="write the page, the Basecamp document and matrix-data.json") + b.add_argument("--data", default=os.path.join(HERE, "boards.json")) + b.add_argument("--out", required=True) + b.add_argument("--scan", help="also list cells that disagree with this scan") + args = ap.parse_args(argv) + {"scan": cmd_scan, "diff": cmd_diff, "build": cmd_build}[args.cmd](args) + + +if __name__ == "__main__": + main() diff --git a/scripts/macbook-support-matrix/page.html b/scripts/macbook-support-matrix/page.html new file mode 100644 index 000000000000..eb9b76ba8031 --- /dev/null +++ b/scripts/macbook-support-matrix/page.html @@ -0,0 +1,196 @@ + + + + +MacBook Support Matrix + + + + +
+
+

Apple Silicon MacBook support matrix

+

What the Omarchy Mac kernel (linux-aurora) and boot loader (m1n1) actually drive on every Apple Silicon MacBook: 42 boards from M1 to M6, including MacBook Neo. The board list comes from Apple's model pages and AppleDB, so models that have no code yet are included. Every cell comes from code: the compiled device tree for that board, a matching kernel driver, and any per-board gate in the driver or m1n1. A green cell means the code is there and enabled by default. It does not mean the feature has passed hardware testing.

+

{{SNAPSHOT}}

+
+ +
+ +
+
On described, driver binds, on by default
+
Opt-in code present, needs a boot.bin line or pending change
+
Partial code present with a gap noted
+
In PR in an open, unmerged pull request
+
Missing no driver, gate refuses, or not described
+
N/A hardware not on this model
+
+ +
+
+
+ +

Evidence

+
+
+

How a cell is decided

+
    +
  • Each board's .dts is preprocessed and compiled, then every node's effective status is read (a node is off if it or a parent is disabled).
  • +
  • Each enabled node's compatible strings, or its PCI ID, are matched against drivers/ and sound/. All 27 trees bind a driver for every enabled device.
  • +
  • Per-board gates then override that: GPU admission tables, display board tables, the audio speaker table, and m1n1's defaults and handoffs.
  • +
+
+
+

GPU gates

+
    +
  • OF matches: asahi/driver.rs:164-218 covers t8103, t8112, t600x, t602x, t8122, t6030, t6031, t8140; the G15 driver (g15/mod.rs:143-157) covers t6030, t6031 and t6034.
  • +
  • M3 Air / J504: asahi/m3/t8122_admission.rs:9 admits only J613, J615, J504.
  • +
  • M3 Pro: asahi/g15/glue.c:229 admits only J514S, J516S, and g15/hw.rs:156-171 pins one firmware TEXT for each. The 11-core CPU / 14-core GPU bin loads a different firmware (TEXT cd05af6a…), so its GPU is refused; linux-aurora#366 (J514S) and #390 (J516S) add it.
  • +
  • M3 Max: g15/hw/t6031.rs:183 is J516C. J514C is admitted by g15/boot.rs:475 (linux-aurora#363), which logs that its power values are inherited from the J516C and unqualified. J514M (T6034) is admitted by g15/boot.rs:479 (linux-aurora#408, with mesa#33); boot.rs:497 refuses every other T6034 board, so J516M stays off. m1n1 has no T6034 path until m1n1#32 merges.
  • +
  • m1n1 defaults: kboot.c:407-419 turns graphics on for J613, J615, J504, J514S, J516S, J516C and J514C (added by m1n1#31).
  • +
+
+
+

Display gates

+
    +
  • M1/M2 families use the standard DCP driver (apple,t8103-dcp and successors).
  • +
  • M3 boards: drm/apple/iomfb_v14_7.c:231-239 lists T6030 (any M3 Pro), J613, J615, J504, J516C, J514C and J514M. J516M has no entry.
  • +
  • External displays: M3 Pro is native when the device tree's asahi,t6030-dispext = "1" handoff is present (dcp.c:1385). J613 needs chosen.asahi,t8122-dcpext=1 (m1n1 kboot.c:2785). Only t8122-j613.dts describes the USB-C routes to dcpext; J615 and J504 have none, so the switch does nothing there (J615 routes in linux-aurora#356). M3 Max has no external display nodes yet (linux-aurora#292). Neo is gated by dcp_h17p_external_supported (apple_drv.c:901).
  • +
+
+
+

Audio, Touch ID, Neo

+
    +
  • Speakers: sound/soc/apple/macaudio.c:1862. Every MacBook config has speakers enabled, either directly or through a compatible fallback (M2 Pro to J314/J316, M3 to J314/J316/J413/J415). Speakers still need the speakersafetyd daemon in userspace.
  • +
  • Touch ID: the SEP driver (drivers/soc/apple/sep.rs) exposes enrol/verify through /dev/sep-bio. SEP nodes ship disabled by design and the driver enables them at runtime (sep.rs:10), so a board is covered when soc/apple/profile.rs:550-590 has a profile for it (T8103, T6000/T6001, T6020/T6021, T8112, T8140, and T8122 for J613/J615 only) and its fingerprint sensor node is enabled. That covers every M1, M1 Pro/Max, M2, M2 Pro/Max and M3 Air MacBook, and Neo. M3 Pro SEP is in linux-aurora#282. Touch ID still needs userspace integration.
  • +
  • Neo: Wi-Fi and Bluetooth use the MT7932 drivers. m1n1 disables Neo PCIe only if its PCIe setup fails (kboot.c:6693).
  • +
+
+
+

Power + sleep

+
    +
  • Each cell gives code evidence first and lab results second, labelled "Code" and "Lab". Partial means the code paths exist but sleep is s2idle only and drains far more than macOS.
  • +
  • cpufreq: an enabled *-cluster-cpufreq node with a driver match (drivers/cpufreq/apple-soc-cpufreq.c). It is present on M1 to M3, Neo and J813. The M4 trees have none.
  • +
  • cpuidle: drivers/cpuidle/cpuidle-apple.c:173-186 starts on t8103, t8112, t8122, t600x, t602x, t6030, t6031, t6032, t6034 and t8140 (WFI only on T8140). It does not start on any M4, M5 or M6 chip.
  • +
  • s2idle: Apple Silicon has no PSCI system suspend, so mem_sleep offers only s2idle on every board. There is no S3-style deep sleep.
  • +
  • Display sleep: the DCP driver has system-sleep handlers for every generation (drm/apple/dcp.c:5086, apple_drv.c:1291). GPU: the GPU driver has no system-sleep callbacks; its firmware stays resident. On T6031, genpd powers the GPU domain off under it, which linux-aurora#288 fixes (open).
  • +
  • Lab: M1 Pro J314S figures are 5 V input measurements from 14 Oct 2026. The M3 Pro J514S figure is the SMC coulomb counter on battery, from linux-aurora#274. The M2 Pro figure is from the 9 Oct 2026 battery investigation. A live Thunderbolt link adds about 1.3 W in sleep on the M1 Pro.
  • +
+
+
+

M4 Pro and later

+
    +
  • Board codes and chip IDs come from Apple's MacBook Pro and MacBook Air identification pages and AppleDB. The tree has no .dts for any of these 15 boards.
  • +
  • Chip-level code only: m1n1 soc.h defines T6040, T6041, T6050, T6051, T8142 and T8152. For T604x and T605x, m1n1 has only CPU start code (smp.c). The kernel has a G17 GPU config for agx-t6040 (asahi/driver.rs:168) but no T6040 device tree to use it.
  • +
  • M5 Max J714C: linux-aurora#404 adds T6050 and J714C. It covers CPUs, NVMe, keyboard, trackpad, keyboard backlight and SMC, with the panel as a framebuffer. It leaves out Wi-Fi/BT, sound, USB, GPU and the display controller. The m1n1 side is m1n1#30, #33, #34 (N1 Wi-Fi, opt-in), #37 (GPU) and #35 (display, opt-in).
  • +
  • M6 (T8152): the kernel has the Mac mini J873G device tree, CPU IDs and cpufreq, and m1n1 has display, DCP and ATC PHY code for the chip. All of it targets the Mac mini (linux-aurora#191 to #198, #359). The J804 MacBook Pro has no board file.
  • +
  • AppleDB gives M5 Pro and M5 Max the same chip ID (0x6050), while m1n1 also defines T6051. Whether the M5 Max splits across two chips, as the M3 Max did, is not confirmed.
  • +
+
+
+ + +
+ + + diff --git a/scripts/macbook-support-matrix/scan.json b/scripts/macbook-support-matrix/scan.json new file mode 100644 index 000000000000..0ce6e662dc37 --- /dev/null +++ b/scripts/macbook-support-matrix/scan.json @@ -0,0 +1,3351 @@ +{ + "boards": { + "j293": { + "features": { + "als": { + "compat": [ + "apple,t8103-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8103-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f69" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8103-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8103-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8103-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t8103-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t8103" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l83" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,spi-hid-transport" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8103-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j293-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8103-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8103-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [ + "apple,j293-touchbar" + ], + "state": "driver" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8103-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8103-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4425" + ], + "state": "driver" + } + }, + "tree": "t8103-j293.dts" + }, + "j313": { + "features": { + "als": { + "compat": [ + "apple,t8103-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8103-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f69" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8103-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8103-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8103-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t8103-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t8103" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l83" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,spi-hid-transport" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8103-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j313-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8103-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8103-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8103-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8103-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4425" + ], + "state": "driver" + } + }, + "tree": "t8103-j313.dts" + }, + "j314c": { + "features": { + "als": { + "compat": [ + "apple,t6000-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6000-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6000-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6000-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6000-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6000-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6001" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,spi-hid-transport" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6000-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j314-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6000-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6000-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6000-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6000-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6001-j314c.dts" + }, + "j314s": { + "features": { + "als": { + "compat": [ + "apple,t6000-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6000-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6000-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6000-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6000-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6000-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6000" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,spi-hid-transport" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6000-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j314-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6000-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6000-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6000-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6000-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6000-j314s.dts" + }, + "j316c": { + "features": { + "als": { + "compat": [ + "apple,t6000-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6000-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6000-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6000-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6000-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6000-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6001" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,spi-hid-transport" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6000-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j316-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6000-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6000-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6000-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6000-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6001-j316c.dts" + }, + "j316s": { + "features": { + "als": { + "compat": [ + "apple,t6000-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6000-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6000-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6000-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6000-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6000-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6000" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,spi-hid-transport" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6000-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j316-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6000-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6000-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6000-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6000-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6000-j316s.dts" + }, + "j413": { + "features": { + "als": { + "compat": [ + "apple,t8112-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8112-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8112-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8112-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8112-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t8112-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t8112" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8112-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j413-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8112-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8112-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8112-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8112-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t8112-j413.dts" + }, + "j414c": { + "features": { + "als": { + "compat": [ + "apple,t6020-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6020-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6020-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6020-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6020-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6020-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6021" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6020-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j414-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6020-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6020-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6020-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6020-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t6021-j414c.dts" + }, + "j414s": { + "features": { + "als": { + "compat": [ + "apple,t6020-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6020-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6020-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6020-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6020-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6020-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6020" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6020-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j414-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6020-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6020-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6020-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6020-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t6020-j414s.dts" + }, + "j415": { + "features": { + "als": { + "compat": [ + "apple,t8112-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8112-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8112-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8112-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8112-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t8112-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t8112" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8112-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j415-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8112-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8112-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8112-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8112-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t8112-j415.dts" + }, + "j416c": { + "features": { + "als": { + "compat": [ + "apple,t6020-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6020-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6020-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6020-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6020-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6020-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6021" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6020-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j416-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6020-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6020-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6020-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6020-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t6021-j416c.dts" + }, + "j416s": { + "features": { + "als": { + "compat": [ + "apple,t6020-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6020-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6020-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6020-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6020-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t6020-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t6020" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6020-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j416-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6020-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6020-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t6020-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6020-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t6020-j416s.dts" + }, + "j493": { + "features": { + "als": { + "compat": [ + "apple,t8112-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8112-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f69" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8112-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8112-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8112-dcp" + ], + "state": "driver" + }, + "extdisp": { + "compat": [ + "apple,t8112-dcpext" + ], + "state": "driver" + }, + "gpu": { + "compat": [ + "apple,agx-t8112" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8112-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j493-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8112-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8112-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [ + "apple,j493-touchbar" + ], + "state": "driver" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8112-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8112-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4425" + ], + "state": "driver" + } + }, + "tree": "t8112-j493.dts" + }, + "j504": { + "features": { + "als": { + "compat": [ + "apple,t8122-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8122-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8122-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8122-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8122-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [ + "apple,t8122-dcpext" + ], + "state": "dt-off" + }, + "gpu": { + "compat": [ + "apple,agx-t8122" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8122-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j314-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8122-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8122-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "dt-off" + }, + "usb": { + "compat": [ + "apple,t8122-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8122-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t8122-j504.dts" + }, + "j514c": { + "features": { + "als": { + "compat": [ + "apple,t6031-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6031-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6031-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6031-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6031-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [ + "apple,agx-t6031" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6031-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j514-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6031-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6031-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t6031-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6031-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6031-j514c.dts" + }, + "j514m": { + "features": { + "als": { + "compat": [ + "apple,t6031-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6031-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6031-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6031-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6034-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [ + "apple,agx-t6034" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6031-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j514-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6031-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6031-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t6031-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6031-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6034-j514m.dts" + }, + "j514s": { + "features": { + "als": { + "compat": [ + "apple,t6030-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6030-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6030-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6030-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6030-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [ + "apple,t6030-dcpext" + ], + "state": "dt-off" + }, + "gpu": { + "compat": [ + "apple,agx-t6030" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6030-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j514-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6030-nvme-ans3" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6030-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t6030-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6030-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6030-j514s.dts" + }, + "j516c": { + "features": { + "als": { + "compat": [ + "apple,t6031-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6031-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6031-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6031-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6031-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [ + "apple,agx-t6031" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6031-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j516-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6031-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6031-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t6031-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6031-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6031-j516c.dts" + }, + "j516m": { + "features": { + "als": { + "compat": [ + "apple,t6031-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6031-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6031-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6031-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [], + "state": "absent" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [ + "apple,agx-t6034" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6031-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j516-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6031-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6031-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t6031-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6031-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6034-j516m.dts" + }, + "j516s": { + "features": { + "als": { + "compat": [ + "apple,t6030-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t6030-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f71" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t6030-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t6030-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t6030-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [ + "apple,t6030-dcpext" + ], + "state": "dt-off" + }, + "gpu": { + "compat": [ + "apple,agx-t6030" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t6030-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [ + "pci17a0,9755" + ], + "state": "driver" + }, + "speakers": { + "compat": [ + "apple,j516-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t6030-nvme-ans3" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t6030-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t6030-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t6030-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4433" + ], + "state": "driver" + } + }, + "tree": "t6030-j516s.dts" + }, + "j604": { + "features": { + "als": { + "compat": [], + "state": "absent" + }, + "battery": { + "compat": [], + "state": "absent" + }, + "bt": { + "compat": [], + "state": "absent" + }, + "camera": { + "compat": [], + "state": "absent" + }, + "cpufreq": { + "compat": [], + "state": "absent" + }, + "display": { + "compat": [], + "state": "absent" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [], + "state": "absent" + }, + "jack": { + "compat": [], + "state": "absent" + }, + "kbd_tp": { + "compat": [], + "state": "absent" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [], + "state": "absent" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [], + "state": "absent" + }, + "storage": { + "compat": [], + "state": "absent" + }, + "tb": { + "compat": [], + "state": "absent" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [], + "state": "absent" + }, + "vdec": { + "compat": [], + "state": "absent" + }, + "wifi": { + "compat": [], + "state": "absent" + } + }, + "tree": "t8132-j604.dts" + }, + "j613": { + "features": { + "als": { + "compat": [ + "apple,t8122-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8122-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8122-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8122-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8122-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [ + "apple,t8122-dcpext" + ], + "state": "dt-off" + }, + "gpu": { + "compat": [ + "apple,agx-t8122" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8122-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j613-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8122-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8122-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8122-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8122-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t8122-j613.dts" + }, + "j614c": { + "tree": null + }, + "j614s": { + "tree": null + }, + "j615": { + "features": { + "als": { + "compat": [ + "apple,t8122-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8122-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [ + "pci14e4,5f72" + ], + "state": "driver" + }, + "camera": { + "compat": [ + "apple,t8122-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8122-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8122-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [ + "apple,t8122-dcpext" + ], + "state": "dt-off" + }, + "gpu": { + "compat": [ + "apple,agx-t8122" + ], + "state": "dt-off" + }, + "jack": { + "compat": [ + "cirrus,cs42l84" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [ + "apple,t8122-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j615-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8122-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [ + "apple,t8122-usb4-nhi" + ], + "state": "driver" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8122-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8122-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14e4,4434" + ], + "state": "driver" + } + }, + "tree": "t8122-j615.dts" + }, + "j616c": { + "tree": null + }, + "j616s": { + "tree": null + }, + "j700": { + "features": { + "als": { + "compat": [ + "apple,t8140-aop-als" + ], + "state": "driver" + }, + "battery": { + "compat": [ + "apple,t8140-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [], + "state": "absent" + }, + "camera": { + "compat": [ + "apple,t8140-isp" + ], + "state": "driver" + }, + "cpufreq": { + "compat": [ + "apple,t8140-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8140-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [ + "apple,t8140-dcpext" + ], + "state": "dt-off" + }, + "gpu": { + "compat": [ + "apple,agx-t8140" + ], + "state": "driver" + }, + "jack": { + "compat": [ + "cirrus,cs42l83" + ], + "state": "driver" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [], + "state": "absent" + }, + "mics": { + "compat": [ + "apple,t8140-aop-audio" + ], + "state": "driver" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [ + "apple,j700-macaudio" + ], + "state": "driver" + }, + "storage": { + "compat": [ + "apple,t8140-nvme-ans2" + ], + "state": "driver" + }, + "tb": { + "compat": [], + "state": "absent" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [ + "apple,mesa-fingerprint" + ], + "state": "driver" + }, + "usb": { + "compat": [ + "apple,t8140-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [ + "apple,t8140-avd" + ], + "state": "driver" + }, + "wifi": { + "compat": [ + "pci14c3,7932" + ], + "state": "driver" + } + }, + "tree": "t8140-j700.dts" + }, + "j704": { + "tree": null + }, + "j713": { + "features": { + "als": { + "compat": [], + "state": "absent" + }, + "battery": { + "compat": [], + "state": "absent" + }, + "bt": { + "compat": [], + "state": "absent" + }, + "camera": { + "compat": [], + "state": "absent" + }, + "cpufreq": { + "compat": [], + "state": "absent" + }, + "display": { + "compat": [], + "state": "absent" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [], + "state": "absent" + }, + "jack": { + "compat": [], + "state": "absent" + }, + "kbd_tp": { + "compat": [], + "state": "absent" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [], + "state": "absent" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [], + "state": "absent" + }, + "storage": { + "compat": [], + "state": "absent" + }, + "tb": { + "compat": [], + "state": "absent" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [], + "state": "absent" + }, + "vdec": { + "compat": [], + "state": "absent" + }, + "wifi": { + "compat": [], + "state": "absent" + } + }, + "tree": "t8132-j713.dts" + }, + "j714c": { + "tree": null + }, + "j714s": { + "tree": null + }, + "j715": { + "features": { + "als": { + "compat": [], + "state": "absent" + }, + "battery": { + "compat": [], + "state": "absent" + }, + "bt": { + "compat": [], + "state": "absent" + }, + "camera": { + "compat": [], + "state": "absent" + }, + "cpufreq": { + "compat": [], + "state": "absent" + }, + "display": { + "compat": [], + "state": "absent" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [], + "state": "absent" + }, + "jack": { + "compat": [], + "state": "absent" + }, + "kbd_tp": { + "compat": [], + "state": "absent" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [], + "state": "absent" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [], + "state": "absent" + }, + "storage": { + "compat": [], + "state": "absent" + }, + "tb": { + "compat": [], + "state": "absent" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [], + "state": "absent" + }, + "vdec": { + "compat": [], + "state": "absent" + }, + "wifi": { + "compat": [], + "state": "absent" + } + }, + "tree": "t8132-j715.dts" + }, + "j716c": { + "tree": null + }, + "j716s": { + "tree": null + }, + "j804": { + "tree": null + }, + "j813": { + "features": { + "als": { + "compat": [], + "state": "absent" + }, + "battery": { + "compat": [ + "apple,t8142-smc" + ], + "state": "driver" + }, + "bt": { + "compat": [], + "state": "absent" + }, + "camera": { + "compat": [], + "state": "absent" + }, + "cpufreq": { + "compat": [ + "apple,t8142-cluster-cpufreq" + ], + "state": "driver" + }, + "display": { + "compat": [ + "apple,t8142-dcp" + ], + "state": "dt-off" + }, + "extdisp": { + "compat": [], + "state": "absent" + }, + "gpu": { + "compat": [], + "state": "absent" + }, + "jack": { + "compat": [], + "state": "absent" + }, + "kbd_tp": { + "compat": [ + "apple,dockchannel-hid" + ], + "state": "driver" + }, + "kbdlight": { + "compat": [ + "pwm-leds" + ], + "state": "driver" + }, + "mics": { + "compat": [], + "state": "absent" + }, + "sd": { + "compat": [], + "state": "absent" + }, + "speakers": { + "compat": [], + "state": "absent" + }, + "storage": { + "compat": [], + "state": "absent" + }, + "tb": { + "compat": [], + "state": "absent" + }, + "touchbar": { + "compat": [], + "state": "absent" + }, + "touchid": { + "compat": [], + "state": "absent" + }, + "usb": { + "compat": [ + "apple,t8142-dwc3" + ], + "state": "driver" + }, + "vdec": { + "compat": [], + "state": "absent" + }, + "wifi": { + "compat": [], + "state": "absent" + } + }, + "tree": "t8142-j813.dts" + }, + "j815": { + "tree": null + }, + "k114c": { + "tree": null + }, + "k114s": { + "tree": null + }, + "k116c": { + "tree": null + }, + "k116s": { + "tree": null + } + }, + "kernel": "8eddf5aeb6acfb07ec3ca7bdcb62170685493b28" +} diff --git a/tests/test-macbook-support-matrix.py b/tests/test-macbook-support-matrix.py new file mode 100755 index 000000000000..7357dac0a9ce --- /dev/null +++ b/tests/test-macbook-support-matrix.py @@ -0,0 +1,121 @@ +#!/usr/bin/env python3 +"""Checks for the MacBook support matrix generator (stdlib only). + +Run: python3 tests/test-macbook-support-matrix.py +""" + +import json +import os +import sys +import tempfile +import unittest + +ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +sys.path.insert(0, os.path.join(ROOT, "scripts", "macbook-support-matrix")) + +import matrix # noqa: E402 + + +def read(path): + with open(path) as f: + return f.read() + + +class LinkTest(unittest.TestCase): + def test_repo_and_bare_numbers(self): + out = matrix.link("in linux-aurora#404 and m1n1#30, #33") + self.assertIn('href="https://github.com/omacom/linux-aurora/pull/404">linux-aurora#404', out) + self.assertIn('href="https://github.com/omacom/m1n1/pull/30">m1n1#30', out) + self.assertIn('href="https://github.com/omacom/m1n1/pull/33">#33', out) + + def test_bare_number_defaults_to_kernel(self): + self.assertIn("linux-aurora/pull/274", matrix.link("before #274")) + + def test_existing_links_and_entities_untouched(self): + a = 'mesa#33' + out = matrix.link(a + " then #34") + self.assertTrue(out.startswith(a + " then ]*>.*?", "", v.get("n", "")) + self.assertNotRegex(rest, r"(?