Skip to content

dt-bindings: chosen: document Apple T8132 DAPF hand-off properties - #3106

Merged
DjDeveloperr merged 1 commit into
mainfrom
djdev/dt-bindings-chosen-dapf-handoff
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
djdev/dt-bindings-chosen-dapf-handoff

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Summary

Documents the three Apple T8132 /chosen DAPF hand-off properties read by Aura's src/dapf.c and used by t8132-jxxx.dtsi, t8132-laptop.dtsi, t8132-j604.dts, and #2745 (t8132-j715.dts):

  • Documentation/devicetree/bindings/vendor-prefixes.yaml: register ^linux-enablement-mac,.*
  • Documentation/devicetree/bindings/chosen/linux-enablement-mac,dapf-handoff.yaml: document linux-enablement-mac,dapf-handoff, linux-enablement-mac,dapf-power-on-handoff, and linux-enablement-mac,dapf-halted-handoff as string-array

This eliminates the dt-validate warnings on T8132 /chosen nodes and unblocks #2745's dt-checks job.

Risk

  • Risk class: Two-way (schema-only documentation change; no runtime kernel, DTB, or bootloader binary changes; trivially revertible).
  • Affected scope: Devicetree schema validation (CHECK_DTBS and dt_binding_check) only.

Tested

  • YAML schema syntax validated locally at 97d8a30c021a8bdca784e7cccd791d5c6bc3de80.
  • Full CHECK_DTBS across all 138 Apple DTBs and dt_binding_check run via PR dt-checks CI.

Not yet

  • No hardware boot row required (schema-only binding change; compiled DTBs are unchanged).

Register the linux-enablement-mac vendor prefix and describe the three
/chosen string-array properties read by Aura's T8132 DAPF hand-off path
(src/dapf.c) and already used in the T8132 board device trees
(t8132-jxxx.dtsi, t8132-laptop.dtsi, t8132-j604.dts):

- linux-enablement-mac,dapf-handoff
- linux-enablement-mac,dapf-power-on-handoff
- linux-enablement-mac,dapf-halted-handoff

This removes the existing dt-validate warnings on T8132 /chosen nodes
and unblocks board trees adding linux-enablement-mac,dapf-halted-handoff.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 25, 2026 01:11
@github-actions github-actions Bot added blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at 97d8a30c: not ready yet

Check Detail
CI at head running running: dt-checks
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 97d8a30c, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · Risk class: (schema-only documentation change; no runtime kernel, DTB, or bootloader binary changes; trivially revertible). - Affected scope: Devicetree schema validation (CHECK_DTBS and dt_binding_check) only.

Areas: none matched in CODEOWNERS

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

@DjDeveloperr
DjDeveloperr merged commit 3332068 into main Nov 25, 2026
4 checks passed
AxxzyWasTaken pushed a commit to AxxzyWasTaken/linux that referenced this pull request Nov 25, 2026
Upstream dtschema's chosen.yaml sets additionalProperties: false, so
dt-validate still reports every in-tree /chosen property (even those
documented under Documentation/devicetree/bindings/chosen/*.yaml as in
PR aurora-silicon#3106) as not matching any regex in chosen.yaml. Adding another
documented /chosen property (such as linux-enablement-mac,dapf-halted-handoff
in aurora-silicon#2745 for t8132-j715.dtb) changes the quoted property list in that
warning line, causing apple-dt-check.sh to fail with a false positive.

Fix this without shadowing upstream chosen.yaml:
- Document linux-enablement-mac,disk-boot (used in t8132-jxxx.dtsi) in
  Documentation/devicetree/bindings/chosen/linux-enablement-mac,disk-boot.yaml.
- In scripts/dtc/apple-dt-check.sh, parse properties documented under
  Documentation/devicetree/bindings/chosen/*.yaml for each checked
  revision and subtract only those documented property names from
  'chosen: ... do(es) not match any of the regexes:' lines.

Lines are dropped only when every listed property is documented in
bindings/chosen/*.yaml. Any undocumented /chosen property remains
reported (with singular/plural verb normalized), and all non-/chosen
warnings and schema type/value checks continue to fail as before.

Signed-off-by: Diljit Singh <[email protected]>
@RyanTheTide
RyanTheTide deleted the djdev/dt-bindings-chosen-dapf-handoff branch November 27, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant