diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/README.md b/receipts/2026-10-01-aurora-pr65-ane-binding/README.md new file mode 100644 index 00000000..67446fdd --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/README.md @@ -0,0 +1,189 @@ +# DT bindings for the ANE nodes of aurora-silicon/linux#65 (2026-10-01) + +## Result + +[aurora-silicon/linux#65](https://github.com/aurora-silicon/linux/pull/65) +adds Neural Engine nodes for T8103, T6000 and T6021 with no binding, and +its T602x ANE mailbox fails `apple,mailbox.yaml`. Two binding commits now +sit on the PR's head branch (`joshuaswarren/linux` `ane-dt-polltx-aurora`), +pushed as a fast-forward from `bc41726b524d`: + +| Commit | Subject | +| --- | --- | +| [`13ed770050d9`](https://github.com/joshuaswarren/linux/commit/13ed770050d9a18320fbbd044c618c5787955b12) | `dt-bindings: npu: apple,ane: Add the Apple Neural Engine` | +| [`30071bf4d66f`](https://github.com/joshuaswarren/linux/commit/30071bf4d66f1f199d90992d917bb0a2849ee986) | `dt-bindings: mailbox: apple,mailbox: Allow the ANE mailbox variant` | + +The PR head is now `30071bf4d66f1f199d90992d917bb0a2849ee986` (6 commits). +GitHub compare `bc41726b...30071bf4`: ahead 2, behind 0, three files. + +With both commits, `dtbs_check` over the 111 Apple DTBs drops from 9002 +to 8927 lines. The 75 removed lines are all on ANE nodes, nothing is added, +and the dtc W=1 warnings are unchanged. + +## The schemas + +**`Documentation/devicetree/bindings/npu/apple,ane.yaml`** (new). Neither +mainline nor the Asahi trees (`asahi`, `asahi-wip`, `asahi-wip-7.2`) have +an Apple ANE binding. Mainline keeps neural processing units in +`bindings/npu/` (`arm,ethos.yaml`, `rockchip,rk3588-rknn-core.yaml`), and +#65's tree has that directory, so the schema goes there. `bindings/misc/` +holds no Apple file. + +- `compatible`: one of `apple,t8103-ane`, `apple,t6000-ane`, + `apple,t6021-ane`, as the #65 nodes use them (no fallback). +- Always required: `reg` + `reg-names` (`engine`), one interrupt named + `ane`, three `iommus`, `power-domains`. +- `apple,t6021-ane`: three `reg` entries (`engine`, `pmgr`, `set`), eight + power domains, and required `resets`, `mboxes` and `memory-region` (one + each). +- T8103 and T6000: exactly one `reg`, five power domains, and no + `resets`, `mboxes` or `memory-region`. +- `additionalProperties: false`. Two examples (T8103, T6021). +- MAINTAINERS: ARM/APPLE MACHINE SUPPORT lists each Apple binding file by + name (no glob), so the binding commit adds + `F: Documentation/devicetree/bindings/npu/apple,ane.yaml` there. + +**`apple,mailbox.yaml`** (changed). The poll-TX commit of #65 (`4ffb24d36001`) +changes only `drivers/soc/apple/mailbox.c` and its header. The binding +still required the four ASC interrupts in the order `send-empty`, +`send-not-empty`, `recv-empty`, `recv-not-empty`. + +- New `oneOf` entry: `apple,t6021-ane-mailbox` with the + `apple,asc-mailbox-v4` fallback. +- For that compatible, `interrupt-names` starts with `recv-not-empty`, and + `send-empty`, `send-not-empty` and `recv-empty` may follow in that order. + #65's node (`recv-not-empty` alone) and the follow-on branch + `t6021-ane-node` (`recv-not-empty`, `send-empty`) both fit. +- The top-level interrupt minimum goes from 2 to 1. The other variants + keep their limits. The four-interrupt rule moves into its own `if` that + excludes the ANE and AOP setup mailboxes. The AOP setup mailbox gets + `minItems: 2`, because before this change only the top-level minimum + gave it that limit. The boundary case `F_mb_aop_1irq_2names` caught this + on the first draft. + +## Validation + +Build host: x86_64, Debian 12. Tree: sparse worktree, kernel 7.1.12 +(aurora-wip plus #65), arm64 defconfig, kbuild `dtc` 1.7.2-g53373d13, +dtschema 2026.9 (pylibfdt 1.7.2.post2, jsonschema 4.26.0, yamllint 1.38.0). + +```sh +make ARCH=arm64 O= dt_binding_check DT_SCHEMA_FILES=apple,ane.yaml +make ARCH=arm64 O= dt_binding_check DT_SCHEMA_FILES=apple,mailbox.yaml +make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O= W=1 CHECK_DTBS=y -j8 -O apple/.dtb +./scripts/checkpatch.pl --strict patches/000{1,2}-*.patch +``` + +| Check | `bc41726b` (PR head before) | `30071bf4` (PR head now) | +| --- | --- | --- | +| `dt_binding_check`, both schemas | not applicable | exit 0, no findings ([log](dt_binding_check.txt)) | +| dtc W=1 warning lines | 533 | 533, identical list | +| dt-validate lines (`.dtb:`) | 9002 | 8927 | +| ANE lines | 75 ([list](base.ane-lines.txt)) | 0 | +| Lines added | | 0 ([diff](findings.diff): 75 removed, 0 added) | +| checkpatch --strict | | 0 errors, 0 warnings, 0 checks per commit ([output](checkpatch-strict.txt)) | + +The 75 ANE lines at `bc41726b`: + +```text + 5 ane@26bc04000 failed to match any schema ['apple,t8103-ane'] + 6 ane@285c04000 failed to match any schema ['apple,t6000-ane'] + 8 ane@284000000 failed to match any schema ['apple,t6021-ane'] + 8 mailbox@285408000 failed to match any schema ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] + 8 mailbox@285408000 compatible: 'oneOf' conditional failed + 8 mailbox@285408000 interrupt-names:0: 'send-empty' was expected + 16 mailbox@285408000 interrupt-names: ['recv-not-empty'] is too short + 16 mailbox@285408000 interrupts: [[0, 0, 884, 4]] is too short +``` + +One side effect in the indented explanation text, not in the findings: 28 +explanation lines `'apple,t6021-ane-mailbox' was expected` now appear +inside `compatible: 'oneOf'` errors that fail the same way before and +after, on the `apple,t6030-asc-mailbox` and `apple,t6031-asc-mailbox` +nodes. Those compatibles have no binding in this tree. dt-validate lists +every `oneOf` alternative, so the new entry shows up there +([explanation-lines.diff.txt](explanation-lines.diff.txt)). + +**Boundary cases** ([boundary-cases/](boundary-cases/)): 22 small DTBs +validated with `dt-validate -m` against each tree's processed schema. At +`30071bf4` all 22 give the expected verdict +([result](boundary-cases/result-30071bf4.txt)). Valid nodes: T8103 ANE, +T6021 ANE, ANE mailbox with one or two IRQs, ASC with four, AOP with two. +Invalid nodes: T8103 with three `reg` entries, `mboxes` or two `iommus`; +T6021 with one `reg`, five domains, no `mboxes` or an unknown compatible; +ANE mailbox with `send-empty` first, without the fallback or with +`iommus`; ASC with one or two IRQs; M3 with one; AOP with one. At +`bc41726b` only the four valid ANE cases change verdict (they fail); every +case for the existing variants gives the same verdict as at `30071bf4` +([result](boundary-cases/result-bc41726b.txt)). + +## Deviations from the brief + +- Path `npu/apple,ane.yaml` and subject prefix `dt-bindings: npu:` + instead of `misc/`. The brief allowed the directory upstream uses. No + Apple ANE binding exists anywhere, but mainline's NPU directory is `npu/`. +- Subjects use the kernel's capitalised verb (`Add`, `Allow`), as the + existing `apple,mailbox.yaml` history does. +- The ANE mailbox schema accepts the four ASC names only as an ordered + prefix starting with `recv-not-empty`, not in any order. + +## What the maintainers will question + +1. **Patch order.** The bindings come after the DTS commits that use them. + An upstream series puts bindings first. Fixing that needs a rebase, + which the no-force rule for this branch rules out. +2. **Node name.** `ane@` is not a generic node name. DT reviewers ask for + `npu@`. The DTS commits use `ane@`, and the binding examples match them. +3. **T6021 compatibles in shared die 0 code.** `t602x-die0.dtsi` serves + T6020, T6021 and T6022. In that file the DART and NCO use `apple,t6020-*`, + but the ANE and its mailbox use `apple,t6021-*`, so an M2 Pro would carry + an M2 Max compatible. The omarchy-ane driver already matches + `apple,t6020-ane`. Reviewers will also ask why the mailbox needs a block + specific compatible (`apple,t6021-ane-mailbox`) next to + `apple,t6020-asc-mailbox`. The answer is that the new compatible keeps + the relaxed interrupt rule away from the other ASC mailboxes. +4. **Power domains without names.** There are five or eight domains, and + their meaning and order differ per SoC (T8103: set1-5; T6000: sys_cpu, + set1-4; T6021: sys_mpm, td, base, set1-4, cpu). The schema gives only + counts. Expect a request for `power-domain-names` or per-item + descriptions. +5. **Overlapping `reg`.** The T6021 `engine` range (32 MiB at + 0x284000000) contains the mailbox (0x285408000) and the three DARTs + (0x285800000-0x285820000). `pmgr` (0x28e080000, 0x4034 bytes) overlaps + the PMGR syscon node (0x28e080000, 0xc000 bytes), and `set` is the next + window up, at PMGR + 0xc000. dtc W=1 does not flag overlap between + nodes. Reviewers will ask why the driver maps PMGR registers itself when + it also has the power domains. +6. **Shared interrupt.** AIC 884 is the `ane` interrupt of the engine node + and `recv-not-empty` of the mailbox node. +7. **Maintainer address.** The schema's maintainer is a GitHub noreply + address. An upstream binding needs an address that receives mail. +8. **No in-tree user.** No in-tree driver matches any of the three + compatibles. The users are the out-of-tree omarchy-ane (T8103, T6000) + and ane_t6021 modules. +9. **Hardware evidence.** As the #65 commits record it: the T8103 nodes + equal the live tree of an M1 MacBook Pro (j293), and the T6000 nodes + the overlay that booted on an M1 Max (j316c), both with the driver + bound. The T6021 node is the tree an out-of-tree driver ran on the M2 + Max. M1 Pro, M1 Ultra, M2 Pro and M2 Ultra have not run them. This + change was checked statically only; nothing was booted. + +## Stale text in the #65 description (not edited) + +The PR body still says "Four commits". It also says that checkpatch on +the DT commits reports the four ANE compatibles as undocumented (true per +commit, but not at the series head now), and ends with "I can add both +bindings if you want them before merge". These need updating when the PR +is next edited. + +## Receipts + +- Private notebook entry + `entries/AuroraBinding/20261001T135457Z-ct-pr65-ane-binding.md` and + `artifacts/AuroraBinding/verify/` (`SHA256SUMS`): check script, both make + logs and normalised findings (xz), counts, dtc warning lists, ANE line + lists, the findings diff, the boundary cases, checkpatch and + dt_binding_check output, patches, identity record. +- This directory: the two patches, the findings diff, the 75 base ANE + lines, the explanation-line diff, checkpatch and dt_binding_check output, + the boundary cases with both results. Hashes in `SHA256SUMS`. diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/SHA256SUMS b/receipts/2026-10-01-aurora-pr65-ane-binding/SHA256SUMS new file mode 100644 index 00000000..019294e1 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/SHA256SUMS @@ -0,0 +1,34 @@ +61ca107d68256942bbc9207d2efb73ff4c673128a146294b3ddfb00b0ee48242 ./README.md +2f5892e497414a64e4435240b4bfe472439721038b864326396e92a795a4a9e7 ./base.ane-lines.txt +7e0841cb6abbfc77798dd4fa13fded4b903fdf6fbfb7c83baebaf17e91e95fcb ./boundary-cases/F_ane_badcompat.dts +b9e5046a20436ba2352b494fea4821d5a6cca4eb5be5d68f3f56673757cb2717 ./boundary-cases/F_ane_t6021_1reg.dts +d6d5a50c58a4fb38157bf48ce6731f48cb15a4161acb5db385892a688f98a189 ./boundary-cases/F_ane_t6021_5pd.dts +c5d60e49a327d6d43a5394eb07c5b253d10b02cefb47aa61653181d2cce6e970 ./boundary-cases/F_ane_t6021_nombox.dts +9f7ec23f2f76292a3643f5a92555e0829e3926b76d4da755371060bad27430e4 ./boundary-cases/F_ane_t8103_2iommu.dts +505aa22c9947c51c5ca9c54f95da259df5021bccd36af1a02712d2807ff8ff1d ./boundary-cases/F_ane_t8103_3reg.dts +6ec2186c896931a0ea519ba6d4cee250dc07fadb8e4baf7aaaf17fbf3d332479 ./boundary-cases/F_ane_t8103_mbox.dts +3c343a7486d88a93ba57a6b985b54e627af38829bb8b3ca1654347050496b212 ./boundary-cases/F_mb_ane_iommus.dts +ffbf4466534ed1944f46a11d2b51022c78bbae4c5d54eb1d4594fba05505bf44 ./boundary-cases/F_mb_ane_nofallback.dts +79488e53b2f4a80683ff255fcc13a818589435c8f958d9c9bbea6156c384f3c9 ./boundary-cases/F_mb_ane_wrongfirst.dts +971b0bfb21c539a6bde419dd45df99519fad9939b1536812251361a94ace3a60 ./boundary-cases/F_mb_aop_1irq.dts +3d51458e54055105d64a7b410aacefa973b88b16ddaaf3e089083c2ba3551d0b ./boundary-cases/F_mb_aop_1irq_2names.dts +190b74dbce93bd05c7ea186aed96dc2613f266241fb9f6bb8c1dc829b1a91ce0 ./boundary-cases/F_mb_asc_1irq.dts +7587b2cc41c219ddfdeba2a9bc461cbd07999ecd3f86309ac19ae96083ec21af ./boundary-cases/F_mb_asc_1irq_4names.dts +ff45bc30b13a3de70b66584a768338859614b383715c014621c65787562ac0d0 ./boundary-cases/F_mb_asc_2irq.dts +98c3f1e78bbc3ae25d3ef7f57c9b08f1256cd8c5575ed9156c68459f8e380599 ./boundary-cases/F_mb_m3_1irq.dts +69718510087a9cc5d8388ec9e2c9a3b2d904367629595baacda43f02691f33b2 ./boundary-cases/P_ane_t6021.dts +edaafc3c130ea38242097084650529e7bbea6fffa04cfd9d5df83dc5fb5b3afa ./boundary-cases/P_ane_t8103.dts +fff7049df9062a44ed92645d33ba6910e6df32e6fbb7565f4a49ce6955c6e151 ./boundary-cases/P_mb_ane_1.dts +3f23234056fb18daeab49e5ba063919f38dbafbc9233e8c33cbf6a5fbe91c1b5 ./boundary-cases/P_mb_ane_2.dts +dbda3e851a7fdd0e4209bb836719db6c3770f4896db384bb46b6a70514e730fc ./boundary-cases/P_mb_aop_2irq.dts +3766d464ad9d50f6d27c313143a0394f414ac7c309f405a47db4051977f9ae79 ./boundary-cases/P_mb_asc_4irq.dts +a2d886d94502e85a2e136ecb19c832824a77fd3797ef6a551b9fc8ee9996cf7b ./boundary-cases/common.dtsi +3237dc33464527e1fa573070aa5aeca328799de9b02123bd5a3d965683a5615f ./boundary-cases/result-30071bf4.txt +b512e2b3f86d98f83ef5a4ba60d2f697c545e2884b7922a7b416da0ae5002c61 ./boundary-cases/result-bc41726b.txt +1f179bb0c019c4be173f8558b1ec183982e2704b4f110bb58040a2c544f3fbd5 ./boundary-cases/run.sh +ee60f995406fe351a3aaaef877d3aa359de755447ac8f90793d4fc68f57917ff ./checkpatch-strict.txt +cd58c1846b237519cec5e95b48ec5815e411957bbc6e28ee6e09fa0d67dd24e4 ./dt_binding_check.txt +1a4febf85675396557f017c3171e1fadb931229e87a0c6055c5b61f83e0266ff ./explanation-lines.diff.txt +8ca66f882ca6462deed82f65e33841be7feab74b0f7b0e0011a216c5922e63bb ./findings.diff +445ef53e59c177faa314f7f0f43930d694b7e20a9453579211d246bf8711dd4c ./patches/0001-dt-bindings-npu-apple-ane-Add-the-Apple-Neural-Engin.patch +c4336a1d262c6b5208077bb628521231bff4df02946491b26c9afc6a68262c30 ./patches/0002-dt-bindings-mailbox-apple-mailbox-Allow-the-ANE-mail.patch diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/base.ane-lines.txt b/receipts/2026-10-01-aurora-pr65-ane-binding/base.ane-lines.txt new file mode 100644 index 00000000..a534dd75 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/base.ane-lines.txt @@ -0,0 +1,75 @@ +arch/arm64/boot/dts/apple/t6000-j314s.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +arch/arm64/boot/dts/apple/t6000-j316s.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +arch/arm64/boot/dts/apple/t6001-j314c.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +arch/arm64/boot/dts/apple/t6001-j316c.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +arch/arm64/boot/dts/apple/t6001-j375c.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +arch/arm64/boot/dts/apple/t6002-j375d.dtb: /soc@200000000/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +arch/arm64/boot/dts/apple/t6020-j414s.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6020-j414s.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6020-j416s.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6020-j416s.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6020-j474s.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6020-j474s.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6021-j414c.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6021-j414c.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6021-j416c.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6021-j416c.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6021-j475c.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6021-j475c.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6022-j180d.dtb: /soc@200000000/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6022-j180d.dtb: /soc@200000000/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6022-j475d.dtb: /soc@200000000/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +arch/arm64/boot/dts/apple/t6022-j475d.dtb: /soc@200000000/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +arch/arm64/boot/dts/apple/t8103-j274.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +arch/arm64/boot/dts/apple/t8103-j293.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +arch/arm64/boot/dts/apple/t8103-j313.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +arch/arm64/boot/dts/apple/t8103-j456.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +arch/arm64/boot/dts/apple/t8103-j457.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_badcompat.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_badcompat.dts new file mode 100644 index 00000000..587385a0 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_badcompat.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@284000000 { compatible = "apple,t6020-ane"; reg = <0x2 0x84000000 0x0 0x2000000>, <0x2 0x8e080000 0x0 0x4034>, <0x2 0x8e08c000 0x0 0x4000>; reg-names = "engine", "pmgr", "set"; interrupt-parent = <&aic>; interrupts = <0 884 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p0>, <&p1>, <&p2>, <&p3>, <&p4>, <&p5>, <&p6>, <&p7>; resets = <&p0>; mboxes = <&mb>; memory-region = <&rm>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_1reg.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_1reg.dts new file mode 100644 index 00000000..e6723901 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_1reg.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@284000000 { compatible = "apple,t6021-ane"; reg = <0x2 0x84000000 0x0 0x2000000>; reg-names = "engine"; interrupt-parent = <&aic>; interrupts = <0 884 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p0>, <&p1>, <&p2>, <&p3>, <&p4>, <&p5>, <&p6>, <&p7>; resets = <&p0>; mboxes = <&mb>; memory-region = <&rm>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_5pd.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_5pd.dts new file mode 100644 index 00000000..e60d443a --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_5pd.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@284000000 { compatible = "apple,t6021-ane"; reg = <0x2 0x84000000 0x0 0x2000000>, <0x2 0x8e080000 0x0 0x4034>, <0x2 0x8e08c000 0x0 0x4000>; reg-names = "engine", "pmgr", "set"; interrupt-parent = <&aic>; interrupts = <0 884 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p0>, <&p1>, <&p2>, <&p3>, <&p4>, <&p7>; resets = <&p0>; mboxes = <&mb>; memory-region = <&rm>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_nombox.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_nombox.dts new file mode 100644 index 00000000..be1eb35f --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t6021_nombox.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@284000000 { compatible = "apple,t6021-ane"; reg = <0x2 0x84000000 0x0 0x2000000>, <0x2 0x8e080000 0x0 0x4034>, <0x2 0x8e08c000 0x0 0x4000>; reg-names = "engine", "pmgr", "set"; interrupt-parent = <&aic>; interrupts = <0 884 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p0>, <&p1>, <&p2>, <&p3>, <&p4>, <&p5>, <&p6>, <&p7>; resets = <&p0>; memory-region = <&rm>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_2iommu.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_2iommu.dts new file mode 100644 index 00000000..b1dcb9f4 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_2iommu.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@26bc04000 { compatible = "apple,t8103-ane"; reg = <0x2 0x6bc04000 0x0 0x24000>; reg-names = "engine"; interrupt-parent = <&aic>; interrupts = <0 416 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>; power-domains = <&p1>, <&p2>, <&p3>, <&p4>, <&p5>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_3reg.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_3reg.dts new file mode 100644 index 00000000..1c32adc9 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_3reg.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@26bc04000 { compatible = "apple,t8103-ane"; reg = <0x2 0x6bc04000 0x0 0x24000>, <0x2 0x8e080000 0x0 0x4034>, <0x2 0x8e08c000 0x0 0x4000>; reg-names = "engine", "pmgr", "set"; interrupt-parent = <&aic>; interrupts = <0 416 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p1>, <&p2>, <&p3>, <&p4>, <&p5>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_mbox.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_mbox.dts new file mode 100644 index 00000000..3393405a --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_ane_t8103_mbox.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@26bc04000 { compatible = "apple,t8103-ane"; reg = <0x2 0x6bc04000 0x0 0x24000>; reg-names = "engine"; interrupt-parent = <&aic>; interrupts = <0 416 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p1>, <&p2>, <&p3>, <&p4>, <&p5>; mboxes = <&mb>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_iommus.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_iommus.dts new file mode 100644 index 00000000..dcb564f1 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_iommus.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6021-ane-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "recv-not-empty"; iommus = <&d0 0>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_nofallback.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_nofallback.dts new file mode 100644 index 00000000..9c04c995 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_nofallback.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6021-ane-mailbox"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_wrongfirst.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_wrongfirst.dts new file mode 100644 index 00000000..47c7df7a --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_ane_wrongfirst.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6021-ane-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "send-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_aop_1irq.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_aop_1irq.dts new file mode 100644 index 00000000..af3f7296 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_aop_1irq.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t8140-aop-setup-mailbox"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; iommus = <&d0 0>; apple,dma-range = /bits/ 64 <0x0 0x1000>; interrupts = <0 884 4>; interrupt-names = "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_aop_1irq_2names.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_aop_1irq_2names.dts new file mode 100644 index 00000000..089cb0a5 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_aop_1irq_2names.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t8140-aop-setup-mailbox"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; iommus = <&d0 0>; apple,dma-range = /bits/ 64 <0x0 0x1000>; interrupts = <0 884 4>; interrupt-names = "send-empty", "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_1irq.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_1irq.dts new file mode 100644 index 00000000..f0abb455 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_1irq.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6020-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_1irq_4names.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_1irq_4names.dts new file mode 100644 index 00000000..dc2b61aa --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_1irq_4names.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6020-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_2irq.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_2irq.dts new file mode 100644 index 00000000..f7f77fe5 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_asc_2irq.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6020-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 1 4>, <0 4 4>; interrupt-names = "send-empty", "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_m3_1irq.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_m3_1irq.dts new file mode 100644 index 00000000..3761921d --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/F_mb_m3_1irq.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t8103-m3-mailbox", "apple,m3-mailbox-v2"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_ane_t6021.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_ane_t6021.dts new file mode 100644 index 00000000..8a4c22ff --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_ane_t6021.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@284000000 { compatible = "apple,t6021-ane"; reg = <0x2 0x84000000 0x0 0x2000000>, <0x2 0x8e080000 0x0 0x4034>, <0x2 0x8e08c000 0x0 0x4000>; reg-names = "engine", "pmgr", "set"; interrupt-parent = <&aic>; interrupts = <0 884 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p0>, <&p1>, <&p2>, <&p3>, <&p4>, <&p5>, <&p6>, <&p7>; resets = <&p0>; mboxes = <&mb>; memory-region = <&rm>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_ane_t8103.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_ane_t8103.dts new file mode 100644 index 00000000..c236269f --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_ane_t8103.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + ane@26bc04000 { compatible = "apple,t8103-ane"; reg = <0x2 0x6bc04000 0x0 0x24000>; reg-names = "engine"; interrupt-parent = <&aic>; interrupts = <0 416 4>; interrupt-names = "ane"; iommus = <&d0 0>, <&d1 0>, <&d2 0>; power-domains = <&p1>, <&p2>, <&p3>, <&p4>, <&p5>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_ane_1.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_ane_1.dts new file mode 100644 index 00000000..74152375 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_ane_1.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6021-ane-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>; interrupt-names = "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_ane_2.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_ane_2.dts new file mode 100644 index 00000000..70cd3f52 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_ane_2.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6021-ane-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 884 4>, <0 1833 4>; interrupt-names = "recv-not-empty", "send-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_aop_2irq.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_aop_2irq.dts new file mode 100644 index 00000000..0830ee65 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_aop_2irq.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t8140-aop-setup-mailbox"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; iommus = <&d0 0>; apple,dma-range = /bits/ 64 <0x0 0x1000>; interrupts = <0 1 4>, <0 4 4>; interrupt-names = "send-empty", "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_asc_4irq.dts b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_asc_4irq.dts new file mode 100644 index 00000000..29c44cc2 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/P_mb_asc_4irq.dts @@ -0,0 +1,4 @@ +/include/ "common.dtsi" +/ { + mailbox@285408000 { compatible = "apple,t6020-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0x85408000 0x0 0x4000>; interrupt-parent = <&aic>; #mbox-cells = <0>; interrupts = <0 1 4>, <0 2 4>, <0 3 4>, <0 4 4>; interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/common.dtsi b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/common.dtsi new file mode 100644 index 00000000..688d6b06 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/common.dtsi @@ -0,0 +1,21 @@ +/dts-v1/; +/ { + #address-cells = <2>; + #size-cells = <2>; + compatible = "test,board"; + model = "test"; + aic: interrupt-controller { interrupt-controller; #interrupt-cells = <3>; }; + d0: d0 { #iommu-cells = <1>; }; + d1: d1 { #iommu-cells = <1>; }; + d2: d2 { #iommu-cells = <1>; }; + p0: p0 { #power-domain-cells = <0>; #reset-cells = <0>; }; + p1: p1 { #power-domain-cells = <0>; }; + p2: p2 { #power-domain-cells = <0>; }; + p3: p3 { #power-domain-cells = <0>; }; + p4: p4 { #power-domain-cells = <0>; }; + p5: p5 { #power-domain-cells = <0>; }; + p6: p6 { #power-domain-cells = <0>; }; + p7: p7 { #power-domain-cells = <0>; }; + rm: rm { reg = <0 0 0 0x1000>; }; + mb: mb { #mbox-cells = <0>; }; +}; diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/result-30071bf4.txt b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/result-30071bf4.txt new file mode 100644 index 00000000..fb9a9adc --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/result-30071bf4.txt @@ -0,0 +1,50 @@ +##### AFTER +F_ane_badcompat want=F got=F ok + F_ane_badcompat.dtb: /ane@284000000: failed to match any schema with compatible: ['apple,t6020-ane'] +F_ane_t6021_1reg want=F got=F ok + F_ane_t6021_1reg.dtb: ane@284000000 (apple,t6021-ane): reg: [[2, 2214592512, 0, 33554432]] is too short + F_ane_t6021_1reg.dtb: ane@284000000 (apple,t6021-ane): reg-names: ['engine'] is too short +F_ane_t6021_5pd want=F got=F ok + F_ane_t6021_5pd.dtb: ane@284000000 (apple,t6021-ane): power-domains: [[5], [6], [7], [8], [9], [10]] is too short +F_ane_t6021_nombox want=F got=F ok + F_ane_t6021_nombox.dtb: ane@284000000 (apple,t6021-ane): 'mboxes' is a required property +F_ane_t8103_2iommu want=F got=F ok + F_ane_t8103_2iommu.dtb: ane@26bc04000 (apple,t8103-ane): iommus: [[2, 0], [3, 0]] is too short +F_ane_t8103_3reg want=F got=F ok + F_ane_t8103_3reg.dtb: ane@26bc04000 (apple,t8103-ane): reg: [[2, 1807761408, 0, 147456], [2, 2382888960, 0, 16436], [2, 2382938112, 0, 16384]] is too long + F_ane_t8103_3reg.dtb: ane@26bc04000 (apple,t8103-ane): reg-names: ['engine', 'pmgr', 'set'] is too long +F_ane_t8103_mbox want=F got=F ok + F_ane_t8103_mbox.dtb: ane@26bc04000 (apple,t8103-ane): False schema does not allow [[10]] +F_mb_ane_iommus want=F got=F ok + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): False schema does not allow [[2, 0]] +F_mb_ane_nofallback want=F got=F ok + F_mb_ane_nofallback.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +F_mb_ane_wrongfirst want=F got=F ok + F_mb_ane_wrongfirst.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'recv-not-empty' was expected +F_mb_aop_1irq want=F got=F ok + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_aop_1irq_2names want=F got=F ok + F_mb_aop_1irq_2names.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_asc_1irq want=F got=F ok + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_asc_1irq_4names want=F got=F ok + F_mb_asc_1irq_4names.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_asc_2irq want=F got=F ok + F_mb_asc_2irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names:1: 'send-not-empty' was expected + F_mb_asc_2irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names: ['send-empty', 'recv-not-empty'] is too short + F_mb_asc_2irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 1, 4], [0, 4, 4]] is too short +F_mb_m3_1irq want=F got=F ok + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupts: [[0, 884, 4]] is too short +P_ane_t6021 want=P got=P ok +P_ane_t8103 want=P got=P ok +P_mb_ane_1 want=P got=P ok +P_mb_ane_2 want=P got=P ok +P_mb_aop_2irq want=P got=P ok +P_mb_asc_4irq want=P got=P ok +after_exit=0 diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/result-bc41726b.txt b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/result-bc41726b.txt new file mode 100644 index 00000000..a5c22b16 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/result-bc41726b.txt @@ -0,0 +1,81 @@ +##### BEFORE (bc41726b schema) +F_ane_badcompat want=F got=F ok + F_ane_badcompat.dtb: /ane@284000000: failed to match any schema with compatible: ['apple,t6020-ane'] +F_ane_t6021_1reg want=F got=F ok + F_ane_t6021_1reg.dtb: /ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +F_ane_t6021_5pd want=F got=F ok + F_ane_t6021_5pd.dtb: /ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +F_ane_t6021_nombox want=F got=F ok + F_ane_t6021_nombox.dtb: /ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +F_ane_t8103_2iommu want=F got=F ok + F_ane_t8103_2iommu.dtb: /ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +F_ane_t8103_3reg want=F got=F ok + F_ane_t8103_3reg.dtb: /ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +F_ane_t8103_mbox want=F got=F ok + F_ane_t8103_mbox.dtb: /ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +F_mb_ane_iommus want=F got=F ok + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): False schema does not allow [[2, 0]] + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_ane_iommus.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_ane_iommus.dtb: /mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +F_mb_ane_nofallback want=F got=F ok + F_mb_ane_nofallback.dtb: /mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox'] +F_mb_ane_wrongfirst want=F got=F ok + F_mb_ane_wrongfirst.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['send-empty'] is too short + F_mb_ane_wrongfirst.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_ane_wrongfirst.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + F_mb_ane_wrongfirst.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['send-empty'] is too short + F_mb_ane_wrongfirst.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_ane_wrongfirst.dtb: /mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +F_mb_aop_1irq want=F got=F ok + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_aop_1irq.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_aop_1irq_2names want=F got=F ok + F_mb_aop_1irq_2names.dtb: mailbox@285408000 (apple,t8140-aop-setup-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_asc_1irq want=F got=F ok + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_asc_1irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_asc_1irq_4names want=F got=F ok + F_mb_asc_1irq_4names.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_asc_1irq_4names.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 884, 4]] is too short +F_mb_asc_2irq want=F got=F ok + F_mb_asc_2irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names:1: 'send-not-empty' was expected + F_mb_asc_2irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupt-names: ['send-empty', 'recv-not-empty'] is too short + F_mb_asc_2irq.dtb: mailbox@285408000 (apple,t6020-asc-mailbox): interrupts: [[0, 1, 4], [0, 4, 4]] is too short +F_mb_m3_1irq want=F got=F ok + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupt-names:0: 'send-empty' was expected + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupts: [[0, 884, 4]] is too short + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupt-names: ['recv-not-empty'] is too short + F_mb_m3_1irq.dtb: mailbox@285408000 (apple,t8103-m3-mailbox): interrupts: [[0, 884, 4]] is too short +P_ane_t6021 want=P got=F MISMATCH + P_ane_t6021.dtb: /ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +P_ane_t8103 want=P got=F MISMATCH + P_ane_t8103.dtb: /ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +P_mb_ane_1 want=P got=F MISMATCH + P_mb_ane_1.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected + P_mb_ane_1.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short + P_mb_ane_1.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4]] is too short + P_mb_ane_1.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + P_mb_ane_1.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short + P_mb_ane_1.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4]] is too short + P_mb_ane_1.dtb: /mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +P_mb_ane_2 want=P got=F MISMATCH + P_mb_ane_2.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected + P_mb_ane_2.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:1: 'send-not-empty' was expected + P_mb_ane_2.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty', 'send-empty'] is too short + P_mb_ane_2.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 884, 4], [0, 1833, 4]] is too short + P_mb_ane_2.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + P_mb_ane_2.dtb: /mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +P_mb_aop_2irq want=P got=P ok +P_mb_asc_4irq want=P got=P ok +before_exit=1 diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/run.sh b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/run.sh new file mode 100755 index 00000000..ccf20ea7 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/boundary-cases/run.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# usage: run.sh -> one line per case: case expected result +set -uo pipefail +cd "$(dirname "$0")" +schema=$1 dtc=$2 +# needs dtschema 2026.9 (dt-validate) on PATH +bad=0 +for f in [PF]_*.dts; do + c=${f%.dts} + "$dtc" -q -I dts -O dtb -o "$c.dtb" "$f" || { echo "$c dtc-failed"; bad=1; continue; } + out=$(dt-validate -m -s "$schema" "$c.dtb" 2>&1 | grep -E '(ane|mailbox)@') + if [ -n "$out" ]; then got=F; else got=P; fi + want=${c%%_*} + [ "$got" = "$want" ] && r=ok || { r=MISMATCH; bad=1; } + echo "$c want=$want got=$got $r" + [ -n "$out" ] && echo "$out" | sed 's/^/ /' +done +exit $bad diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/checkpatch-strict.txt b/receipts/2026-10-01-aurora-pr65-ane-binding/checkpatch-strict.txt new file mode 100644 index 00000000..b308857d --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/checkpatch-strict.txt @@ -0,0 +1,10 @@ +=== 0001-dt-bindings-npu-apple-ane-Add-the-Apple-Neural-Engin.patch +total: 0 errors, 0 warnings, 0 checks, 166 lines checked + +patches/0001-dt-bindings-npu-apple-ane-Add-the-Apple-Neural-Engin.patch has no obvious style problems and is ready for submission. +exit=0 +=== 0002-dt-bindings-mailbox-apple-mailbox-Allow-the-ANE-mail.patch +total: 0 errors, 0 warnings, 0 checks, 75 lines checked + +patches/0002-dt-bindings-mailbox-apple-mailbox-Allow-the-ANE-mail.patch has no obvious style problems and is ready for submission. +exit=0 diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/dt_binding_check.txt b/receipts/2026-10-01-aurora-pr65-ane-binding/dt_binding_check.txt new file mode 100644 index 00000000..b43e05e1 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/dt_binding_check.txt @@ -0,0 +1,16 @@ +=== apple,ane.yaml +make[1]: Entering directory '' + SCHEMA Documentation/devicetree/bindings/processed-schema.json + CHKDT /Documentation/devicetree/bindings + LINT /Documentation/devicetree/bindings + DTC [C] Documentation/devicetree/bindings/npu/apple,ane.example.dtb +make[1]: Leaving directory '' +exit=0 +=== apple,mailbox.yaml +make[1]: Entering directory '' + CHKDT /Documentation/devicetree/bindings + LINT /Documentation/devicetree/bindings + DTEX Documentation/devicetree/bindings/mailbox/apple,mailbox.example.dts + DTC [C] Documentation/devicetree/bindings/mailbox/apple,mailbox.example.dtb +make[1]: Leaving directory '' +exit=0 diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/explanation-lines.diff.txt b/receipts/2026-10-01-aurora-pr65-ane-binding/explanation-lines.diff.txt new file mode 100644 index 00000000..4e723320 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/explanation-lines.diff.txt @@ -0,0 +1,20 @@ +# dt-validate explanation (indented) lines, multiset diff base -> new +## removed + 8 'apple,m3-mailbox-v2' was expected + 8 'apple,t6021-ane-mailbox' is not one of ['apple,t8103-asc-mailbox', 'apple,t8112-asc-mailbox', 'apple,t8122-asc-mailbox', 'apple,t8140-asc-mailbox', 'apple,t6000-asc-mailbox', 'apple,t6020-asc-mailbox'] + 8 'apple,t6021-ane-mailbox' is not one of ['apple,t8103-m3-mailbox', 'apple,t8112-m3-mailbox', 'apple,t6000-m3-mailbox'] + 8 'apple,t8015-asc-mailbox' was expected + 8 'apple,t8140-aop-setup-mailbox' was expected + 8 ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] is too long + 48 from schema $id: http://devicetree.org/schemas/mailbox/apple,mailbox.yaml +## added + 28 'apple,t6021-ane-mailbox' was expected +## findings (unchanged in base and new) that now list the new oneOf alternative + 5 mbox@2a4408000 (apple,t6031-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 5 mbox@2a8408000 (apple,t6031-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 5 mbox@2ac408000 (apple,t6031-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 5 mbox@349408000 (apple,t6031-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 2 mbox@36c408000 (apple,t6030-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 2 mbox@374408000 (apple,t6030-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 2 mbox@37a408000 (apple,t6030-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: + 2 mbox@389408000 (apple,t6030-asc-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/findings.diff b/receipts/2026-10-01-aurora-pr65-ane-binding/findings.diff new file mode 100644 index 00000000..42b82427 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/findings.diff @@ -0,0 +1,110 @@ +534d533 +< arch/arm64/boot/dts/apple/t6000-j314s.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +663d661 +< arch/arm64/boot/dts/apple/t6000-j316s.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +794d791 +< arch/arm64/boot/dts/apple/t6001-j314c.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +931d927 +< arch/arm64/boot/dts/apple/t6001-j316c.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +1070d1065 +< arch/arm64/boot/dts/apple/t6001-j375c.dtb: /soc/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +1192d1186 +< arch/arm64/boot/dts/apple/t6002-j375d.dtb: /soc@200000000/ane@285c04000: failed to match any schema with compatible: ['apple,t6000-ane'] +1351d1344 +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +1377d1369 +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +1500,1505d1491 +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6020-j414s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +1938d1923 +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +1964d1948 +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +2088,2093d2071 +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6020-j416s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +2526d2503 +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +2549d2525 +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +2662,2667d2637 +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6020-j474s.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +3098d3067 +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +3128d3096 +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +3279,3284d3246 +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6021-j414c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +3799d3760 +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +3829d3789 +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +3981,3986d3940 +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6021-j416c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +4501d4454 +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: /soc/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +4524d4476 +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: /soc/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +4652,4657d4603 +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6021-j475c.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +5169d5114 +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: /soc@200000000/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +5188d5132 +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: /soc@200000000/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +5335,5340d5278 +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6022-j180d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +6344d6281 +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: /soc@200000000/ane@284000000: failed to match any schema with compatible: ['apple,t6021-ane'] +6363d6299 +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: /soc@200000000/mailbox@285408000: failed to match any schema with compatible: ['apple,t6021-ane-mailbox', 'apple,asc-mailbox-v4'] +6506,6511d6441 +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): compatible: 'oneOf' conditional failed, one must be fixed: +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names: ['recv-not-empty'] is too short +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupt-names:0: 'send-empty' was expected +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +< arch/arm64/boot/dts/apple/t6022-j475d.dtb: mailbox@285408000 (apple,t6021-ane-mailbox): interrupts: [[0, 0, 884, 4]] is too short +8305d8234 +< arch/arm64/boot/dts/apple/t8103-j274.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +8398d8326 +< arch/arm64/boot/dts/apple/t8103-j293.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +8508d8435 +< arch/arm64/boot/dts/apple/t8103-j313.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +8610d8536 +< arch/arm64/boot/dts/apple/t8103-j456.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] +8705d8630 +< arch/arm64/boot/dts/apple/t8103-j457.dtb: /soc/ane@26bc04000: failed to match any schema with compatible: ['apple,t8103-ane'] diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/patches/0001-dt-bindings-npu-apple-ane-Add-the-Apple-Neural-Engin.patch b/receipts/2026-10-01-aurora-pr65-ane-binding/patches/0001-dt-bindings-npu-apple-ane-Add-the-Apple-Neural-Engin.patch new file mode 100644 index 00000000..d7e1004e --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/patches/0001-dt-bindings-npu-apple-ane-Add-the-Apple-Neural-Engin.patch @@ -0,0 +1,213 @@ +From 13ed770050d9a18320fbbd044c618c5787955b12 Mon Sep 17 00:00:00 2001 +From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> +Date: Thu, 1 Oct 2026 09:11:26 -0500 +Subject: [PATCH 1/2] dt-bindings: npu: apple,ane: Add the Apple Neural Engine + +The arm64 Apple device trees describe the Neural Engine (ANE) of T8103 +(M1), T6000 (M1 Pro, Max and Ultra) and T6021 (M2 Max) as +apple,t8103-ane, apple,t6000-ane and apple,t6021-ane, and dtbs_check +finds no schema for these nodes. + +On T8103 and T6000 the node has the engine register window, one +interrupt, the three ANE DARTs and five power domains. On T6021 a +coprocessor runs the ANE firmware, so the node also has the PMGR and +power state windows, eight power domains, the coprocessor reset and +mailbox, and an IOVA-only reservation for the firmware entry alias. + +The T8103 node equals the live device tree of an M1 MacBook Pro (j293), +and the T6000 node the overlay that booted on an M1 Max MacBook Pro +(j316c), both with the out-of-tree omarchy-ane driver bound. The T6021 +node has the properties of the device tree an out-of-tree driver ran on +an M2 Max. The M1 Pro, M1 Ultra, M2 Pro and M2 Ultra have not run these +nodes. + +The schema goes in npu/ with the other neural processing units, and in +the ARM/APPLE MACHINE SUPPORT entry with the other Apple bindings. + +Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> +--- + .../devicetree/bindings/npu/apple,ane.yaml | 159 ++++++++++++++++++ + MAINTAINERS | 1 + + 2 files changed, 160 insertions(+) + create mode 100644 Documentation/devicetree/bindings/npu/apple,ane.yaml + +diff --git a/Documentation/devicetree/bindings/npu/apple,ane.yaml b/Documentation/devicetree/bindings/npu/apple,ane.yaml +new file mode 100644 +index 000000000000..8a704e759b69 +--- /dev/null ++++ b/Documentation/devicetree/bindings/npu/apple,ane.yaml +@@ -0,0 +1,159 @@ ++# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) ++%YAML 1.2 ++--- ++$id: http://devicetree.org/schemas/npu/apple,ane.yaml# ++$schema: http://devicetree.org/meta-schemas/core.yaml# ++ ++title: Apple Neural Engine ++ ++maintainers: ++ - Joshua Warren <816217+joshuaswarren@users.noreply.github.com> ++ ++description: ++ The Apple Neural Engine (ANE) is the neural network accelerator of Apple ++ SoCs. It accesses memory through three DARTs. On T8103 and T6000 the host ++ drives the engine through its register window. On T6021 a coprocessor ++ runs the ANE firmware and the host talks to it through an ASC mailbox. ++ ++properties: ++ compatible: ++ enum: ++ - apple,t8103-ane ++ - apple,t6000-ane ++ - apple,t6021-ane ++ ++ reg: ++ minItems: 1 ++ items: ++ - description: Engine registers. On T6021 this is the whole ANE ++ block, including the coprocessor. ++ - description: Power manager (PMGR) registers of the ANE ++ - description: ANE power state registers in the PMGR ++ ++ reg-names: ++ minItems: 1 ++ items: ++ - const: engine ++ - const: pmgr ++ - const: set ++ ++ interrupts: ++ maxItems: 1 ++ ++ interrupt-names: ++ items: ++ - const: ane ++ ++ iommus: ++ maxItems: 3 ++ ++ power-domains: ++ description: ++ The power states the engine needs, five on T8103 and T6000, eight on ++ T6021. ++ minItems: 5 ++ maxItems: 8 ++ ++ resets: ++ maxItems: 1 ++ description: Reset of the ANE coprocessor ++ ++ mboxes: ++ maxItems: 1 ++ description: Mailbox of the ANE coprocessor ++ ++ memory-region: ++ maxItems: 1 ++ description: ++ IOVA-only reservation of the firmware entry alias in the ANE DART ++ address space. ++ ++required: ++ - compatible ++ - reg ++ - reg-names ++ - interrupts ++ - interrupt-names ++ - iommus ++ - power-domains ++ ++allOf: ++ - if: ++ properties: ++ compatible: ++ contains: ++ const: apple,t6021-ane ++ then: ++ properties: ++ reg: ++ minItems: 3 ++ reg-names: ++ minItems: 3 ++ power-domains: ++ minItems: 8 ++ required: ++ - resets ++ - mboxes ++ - memory-region ++ else: ++ properties: ++ reg: ++ maxItems: 1 ++ reg-names: ++ maxItems: 1 ++ power-domains: ++ maxItems: 5 ++ resets: false ++ mboxes: false ++ memory-region: false ++ ++additionalProperties: false ++ ++examples: ++ - | ++ #include ++ #include ++ ++ soc { ++ #address-cells = <2>; ++ #size-cells = <2>; ++ ++ ane@26bc04000 { ++ compatible = "apple,t8103-ane"; ++ reg = <0x2 0x6bc04000 0x0 0x24000>; ++ reg-names = "engine"; ++ interrupt-parent = <&aic>; ++ interrupts = ; ++ interrupt-names = "ane"; ++ iommus = <&ane_dart0 0>, <&ane_dart1 0>, <&ane_dart2 0>; ++ power-domains = <&ps_ane_set1>, <&ps_ane_set2>, ++ <&ps_ane_set3>, <&ps_ane_set4>, <&ps_ane_set5>; ++ }; ++ }; ++ ++ - | ++ #include ++ #include ++ ++ soc { ++ #address-cells = <2>; ++ #size-cells = <2>; ++ ++ ane@284000000 { ++ compatible = "apple,t6021-ane"; ++ reg = <0x2 0x84000000 0x0 0x2000000>, ++ <0x2 0x8e080000 0x0 0x4034>, ++ <0x2 0x8e08c000 0x0 0x4000>; ++ reg-names = "engine", "pmgr", "set"; ++ interrupt-parent = <&aic>; ++ interrupts = ; ++ interrupt-names = "ane"; ++ iommus = <&ane_dart0 0>, <&ane_dart1 0>, <&ane_dart2 0>; ++ power-domains = <&ps_ane_sys_mpm>, <&ps_ane_td>, ++ <&ps_ane_base>, <&ps_ane_set1>, <&ps_ane_set2>, ++ <&ps_ane_set3>, <&ps_ane_set4>, <&ps_ane_cpu>; ++ resets = <&ps_ane_cpu>; ++ mboxes = <&ane_mbox>; ++ memory-region = <&ane_alias_iova>; ++ }; ++ }; +diff --git a/MAINTAINERS b/MAINTAINERS +index 368bf2b43af1..6cbc8ab2d367 100644 +--- a/MAINTAINERS ++++ b/MAINTAINERS +@@ -2570,6 +2570,7 @@ F: Documentation/devicetree/bindings/leds/backlight/apple,dwi-bl.yaml + F: Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml + F: Documentation/devicetree/bindings/mfd/apple,smc.yaml + F: Documentation/devicetree/bindings/net/bluetooth/brcm,bcm4377-bluetooth.yaml ++F: Documentation/devicetree/bindings/npu/apple,ane.yaml + F: Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml + F: Documentation/devicetree/bindings/nvmem/apple,efuses.yaml + F: Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml +-- +2.39.5 + diff --git a/receipts/2026-10-01-aurora-pr65-ane-binding/patches/0002-dt-bindings-mailbox-apple-mailbox-Allow-the-ANE-mail.patch b/receipts/2026-10-01-aurora-pr65-ane-binding/patches/0002-dt-bindings-mailbox-apple-mailbox-Allow-the-ANE-mail.patch new file mode 100644 index 00000000..5736c9a5 --- /dev/null +++ b/receipts/2026-10-01-aurora-pr65-ane-binding/patches/0002-dt-bindings-mailbox-apple-mailbox-Allow-the-ANE-mail.patch @@ -0,0 +1,115 @@ +From 30071bf4d66f1f199d90992d917bb0a2849ee986 Mon Sep 17 00:00:00 2001 +From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> +Date: Thu, 1 Oct 2026 09:11:27 -0500 +Subject: [PATCH 2/2] dt-bindings: mailbox: apple,mailbox: Allow the ANE + mailbox variant + +The T6021 ANE coprocessor mailbox is an ASC mailbox, but only its +recv-not-empty interrupt is known: the Apple device tree gives the ANE a +single interrupt line. The binding requires the four ASC mailbox +interrupts in a fixed order, so the T602x ANE mailbox node fails +dtbs_check. + +Add the apple,t6021-ane-mailbox compatible with the apple,asc-mailbox-v4 +fallback. For it, recv-not-empty is the only required interrupt; +send-empty, send-not-empty and recv-empty may follow in that order. +Without send-empty, apple-mailbox polls the FIFO status to send (the +poll-TX change earlier in this series). + +The other variants keep their constraints. The four-interrupt rule moves +into a condition that excludes the ANE and AOP setup mailboxes, and the +AOP setup mailbox states its minimum of two interrupts, which the +top-level limit gave it before. + +Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> +--- + .../bindings/mailbox/apple,mailbox.yaml | 42 +++++++++++++++++-- + 1 file changed, 38 insertions(+), 4 deletions(-) + +diff --git a/Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml b/Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml +index ee40e13c9a2b..96675c53c3dd 100644 +--- a/Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml ++++ b/Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml +@@ -36,6 +36,13 @@ properties: + - apple,t6020-asc-mailbox + - const: apple,asc-mailbox-v4 + ++ - description: ++ The T6021 ANE coprocessor mailbox is an ASC mailbox. Only its ++ recv-not-empty interrupt is known. ++ items: ++ - const: apple,t6021-ane-mailbox ++ - const: apple,asc-mailbox-v4 ++ + - description: + AOP setup-port mailbox with a separate register layout. + const: apple,t8140-aop-setup-mailbox +@@ -62,11 +69,11 @@ properties: + maxItems: 1 + + interrupts: +- minItems: 2 ++ minItems: 1 + maxItems: 4 + + interrupt-names: +- minItems: 2 ++ minItems: 1 + maxItems: 4 + + iommus: +@@ -95,6 +102,7 @@ allOf: + then: + properties: + interrupts: ++ minItems: 2 + maxItems: 2 + interrupt-names: + items: +@@ -104,6 +112,34 @@ allOf: + - iommus + - apple,dma-range + else: ++ properties: ++ iommus: false ++ apple,dma-range: false ++ ++ - if: ++ properties: ++ compatible: ++ contains: ++ const: apple,t6021-ane-mailbox ++ then: ++ properties: ++ interrupt-names: ++ minItems: 1 ++ items: ++ - const: recv-not-empty ++ - const: send-empty ++ - const: send-not-empty ++ - const: recv-empty ++ ++ - if: ++ properties: ++ compatible: ++ not: ++ contains: ++ enum: ++ - apple,t6021-ane-mailbox ++ - apple,t8140-aop-setup-mailbox ++ then: + properties: + interrupts: + minItems: 4 +@@ -113,8 +149,6 @@ allOf: + - const: send-not-empty + - const: recv-empty + - const: recv-not-empty +- iommus: false +- apple,dma-range: false + + required: + - compatible +-- +2.39.5 +