Skip to content

Input: apple_z2: select D20/D201 touch personalities and HBPP framing - #101

Closed
MasadaIV wants to merge 3 commits into
OrchardLinux:mainfrom
MasadaIV:codex/c1f5d-public-touch-review
Closed

MasadaIV wants to merge 3 commits into
OrchardLinux:mainfrom
MasadaIV:codex/c1f5d-public-touch-review

Conversation

@MasadaIV

@MasadaIV MasadaIV commented Dec 2, 2026 •

Copy link
Copy Markdown

D20/D201 currently select C1F5D,3 for every unit. The tested D201 reports C1F5D,4, whose working private calibration packets use full-word HBPP 0x103 lengths; the dynamic encoder always subtracts one word.

Select the separate public firmware from the bootloader's C1F5D,3/C1F5D,4 personality, reject missing or unknown values, and use firmware-name prefixes in the iPhone 8 trees. Honor explicitly declared HBPP framing in the container. Existing containers without the new validity bit retain the current minus-one behavior. The iPhone 8 Plus retains its own filename. Bindings, shared driver changes and device trees are separate commits.

Validation: this series has the exact source tree of local revision d8515d297036167ff3f76159bda78702f62ace74, compiled via orchard build --device d201 --kernel TREE. The binding passed dt-doc-validate and all three commits passed checkpatch. A packed-image audit confirmed D20/D201 prefixes, unchanged D21/D211 selection, the new module and public firmware with provider references. The series merges cleanly with upstream main at preparation time; the resulting upstream integration tree has not been built locally.

Keep draft: the new kernel/public container has not been boot-tested. The successful earlier RAM test used the released v0.3.18 driver and private embedded calibration, bypassing this encoder. Other users of the shared backend retain their default framing; hardware regression testing remains outstanding.

Requires the companion tools converter and Orchard recipes. The pinned m1n1 already forwards personality and calibration; no m1n1 change is proposed. No installation or internal-storage claim. Qualified earlier hardware report: OrchardLinux/orchard#456.

Companion changes: OrchardLinux/tools#130 and OrchardLinux/orchard#457.

Allow the bootloader-supplied personality and document variant firmware-
name prefixes. Restrict the supported personality values only for D20
and D201.

Assisted-by: LLM
Signed-off-by: MasadaIV <6883111+MasadaIV@users.noreply.github.com>
Choose the distinct public firmware variant from the boot personality.
Honor explicitly declared 0x103 full-word calibration framing while
preserving legacy containers and other boards.

Assisted-by: LLM
Signed-off-by: MasadaIV <6883111+MasadaIV@users.noreply.github.com>
Let the driver append the variant selected from the boot personality.
Remove the D20 override so it inherits the shared iPhone 8 prefix.
The iPhone 8 Plus keeps its separate firmware filename.

Assisted-by: LLM
Signed-off-by: MasadaIV <6883111+MasadaIV@users.noreply.github.com>
@henrikklee

Copy link
Copy Markdown

Thank you, MasadaIV, for this work on the iPhone 8 touch personalities and HBPP framing. Your three commits went into #113 unchanged, with you as their author, and #113 is now merged: apple_z2 now loads the firmware for each unit's own personality (<prefix>-<personality>.bin). Closing this draft as superseded by #113.

@henrikklee henrikklee closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants