Repository navigation
dt-bindings: apple: cover every compatible our Apple DTs use (no DTB changes) - #1033
Merged
Merged
Conversation
The T8112 device tree uses apple,t8112-sio with the apple,sio fallback. Every SIO node also takes its pmgr reset through resets; document it. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
… t8112 The T8112 crossbars are compatible with the T8103 ones and the device tree lists apple,t8103-display-crossbar as their fallback. Allow that pair. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The M1 and M2 GPU nodes list an SoC-specific compatible ahead of the generation one: apple,agx-t8103 with apple,agx-g13g and apple,agx-t8112 with apple,agx-g14g. Document both pairs. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Add the MacBook Air (j313, j413, j415), iMac (j456, j457), Mac mini (j473) and 13-inch MacBook Pro (j493) compatibles their device trees already use. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
…s5770l The Apple boards with a TAS5770L describe it as "ti,tas5770l", "ti,tas2770", and the driver binds through the ti,tas2770 fallback. Allow that pair besides the single compatibles. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
…ties The Mac mini disabled the DCP and set a one-entry display iommus list, then enabled the DCP and set the full two-entry list further down the same file. Drop the dead first overrides. The compiled tree does not change. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The M2 Pro/Max/Ultra device trees use "apple,t6020-sio", "apple,t6020-pmp-v2", "apple,t6020-pmp-v2-report-entry" and "apple,t6020-pcie-ge", none of which the bindings list. Add them with the fallbacks the device trees already carry: "apple,sio", "apple,t6000-pmp-v2", "apple,t6000-pmp-v2-report-entry" and "apple,t6020-pcie". Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The M3 Pro, M3 Max and M3 device trees name their DARTs, mailboxes, DWC3 controllers, cluster cpufreq blocks, SPI controllers, display crossbars, NCOs, MCAs, CIO resets, PMPs and PMP reports, SMCs, SARTs, PCIe controllers and NVMe coprocessors with SoC compatibles that the bindings do not list, so every one of those nodes fails to validate. Add them with the fallbacks the device trees already use and the drivers already match: - dart: T6030 and T6031 fall back to apple,t8110-dart. - mailbox: T6031 ASC mailboxes fall back to apple,asc-mailbox-v4; the T6030 GPU mailbox joins the GPU mailboxes without a fallback. - dwc3, spi: T6030, T6031 and T8122 fall back to the T8103 blocks. - cluster-cpufreq: T6030, T6031 and T8122 fall back to T8112. - display-crossbar: T6030 and T8122 fall back to T6020. - nco, mca: T6030, T6031 and T8122 fall back to T8103, as T6020 does. - cio-reset: T6030, T6031 and T8122 fall back to T6000. - pmp: T6030, T6031 and T8122 fall back to apple,t6000-pmp-v2; the T6030 and T8122 reports and the T6031 report with its T6020 fallback are added, and their entries fall back to the T6000 entry. - smc, sart, pcie: T6030 and T6031 join the lists of their T6020 fallbacks' SoCs. - nvme-ans: T6030 and T6031 fall back to T8103; T6031 has the second PCIe power domain as T6000 and T6020 do. With them the M3 boards lose over a thousand dtbs_check warnings. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
…ocked The driver reads apple,externally-clocked and the T6030, T6031 and T8122 device trees set it on their MCA power states, but the binding does not list it, so every such node fails to validate. Describe it: an externally clocked domain only reaches the clock-gated state until its clock runs, and that state then counts as powered up. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
…ntrollers The binding requires interrupt-controller, #interrupt-cells and interrupts on every T6030, T6031 and T8122 SPMI controller. Those SoCs have several SPMI buses, and only the ones with interrupt-capable devices behind them are wired as interrupt controllers; the PMIC bus is polled and has no interrupt, so its node can never satisfy the binding. Require #interrupt-cells and interrupts only together with interrupt-controller, on every SoC. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Add the M3 iMacs (J433, J434), which use the generic machine configuration, and the M3 laptops and Mac Studio (J504, J514, J516, J575, J613, J615), which list the earlier machine whose speaker and jack layout they share (J314, J316, J375, J413, J415) as a fallback before apple,macaudio. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
apple,dapf-ranges was described twice, once as a uint64 matrix of four inclusive start/end pairs and once as a flat array of eight values. YAML does not allow duplicate keys, so dt-schema could not parse the binding at all and every ANE node on every SoC reported "failed to match any schema", which also hid real property checks. Keep the matrix form, which says what the pairs are. Both forms encode the same 64-bit cells, so the existing T6041 and T8140 nodes validate unchanged. With the binding parsing again, dtbs_check loses 49 warnings across the Apple DTBs and gains none. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
…report nodes List the T600x and T602x machines in apple,macaudio: J314, J316, J375 and J180 use their own compatible, while J414, J416, J474 and J475 list the earlier machine with the same speaker and jack layout as a fallback, the way the M3 machines do. Add the T6020 PMP report compatible the T602x device trees use. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Binding coverage for the Apple device trees we ship, collected from the per-family DT work of lane DT. Every compiled Apple DTB is byte-for-byte identical to integration/aurora (all 119 boards, compared decompiled), so this PR changes no hardware description; it only makes the schemas describe what the trees and drivers already use.
apple,dapf-rangeskey. The file was unparsable, so every ANE node on every SoC failed schema matching and none of its property checks ran.resets), display-crossbar (t8103 fallback on t8112), agx, macaudio boards, tas5770l with tas2770 fallback.apple,externally-clockedin pmgr-pwrstate (the driver reads it), SPMI IRQ properties only for interrupt controllers, M3 macaudio machines.Checks (buildbox): dtbs_check over all Apple DTBs goes from 6381 to 4636 warning lines; no node gains a warning (one J504 line changes wording; its compatible order is fixed in #1031). dt_binding_check passes for every touched binding.
Testing: no DTB changes, so nothing changes at boot on any Mac.
The device-tree changes from the same work stay in their own PRs: #1029 (M1/M2), #1030 (M1/M2 Pro/Max/Ultra), #1031 (M3), plus the T8140 and T8132 PRs.
🤖 Generated with Claude Code