Skip to content

arm64: apple: enable M5 J813 temperatures, input and keyboard backlight - #164

Merged
Acelogic merged 5 commits into
aurora-wipfrom
codex/m5-input-thermal
Oct 2, 2026
Merged

Acelogic merged 5 commits into
aurora-wipfrom
codex/m5-input-thermal

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Enable M5 J813 temperature monitoring, built-in keyboard and trackpad, and keyboard-backlight control on aurora-wip.

  • Discover readable floating-point temperature keys from the running SMC. Labels retain key identities without assigning sensor locations or a new thermal policy.
  • Describe the J813 MTP, SMC and PWM resources, support firmware-owned trackpad reset, and handle the MTP RTKit startup ordering. Existing board paths retain their behavior.
  • Obtain keyboard layout from the machine's boot environment, request touch firmware externally as apple/tpmtfw-j813.bin, and use the standard LED/PWM interfaces with a linear brightness scale.

No Apple firmware, extracted calibration, captured command buffers, fixed sensor inventory or per-machine keyboard layout is included. Users must provide their own trackpad firmware, extracted from an appropriate Apple IPSW either manually or automatically as an installation step, and make it available locally as apple/tpmtfw-j813.bin. Firmware extraction and installer integration are outside the scope of this PR.

Validation:

  • Built the J813 kernel and all 113 Apple DTBs. Changed binding checks and the selected J813 DTB checks pass; legacy schema diagnostics are unchanged against the base.
  • Booted J813 from RAM through public m1n1 0c89fc1c and U-Boot 5a510be0, with uploaded payload hashes verified.
  • Hardware check passed two reads of 129 SMC temperature channels, 198 keyboard events and 97,458 trackpad events, without detected kernel faults. The channel count includes virtual/inactive keys and is not a physical sensor count.
  • Missing and truncated touch firmware were rejected; valid firmware subsequently started successfully. Firmware stayed in a private test initramfs.
  • Backlight requests at 0/127/255 and restoration passed sysfs checks. The user confirmed visibly lit keys at full brightness; the device is left at 255/255 at their request.
  • Ten CPUs passed advancing-timer and pinned SHA-256 workload checks. The manual hardware test builds/installs through kselftest, skips other machines, and records event counts without retaining key codes or pointer coordinates.

This adds temperature reporting, not cooling-policy or sustained-load qualification. Suspend/resume and fresh physical boots on older chips remain unqualified. Reproduction steps and the external-firmware contract are in Documentation/arch/arm64/apple-j813.rst.

Describe the T8142 mailbox, SMC, MTP, DART and PWM resources. Add
explicit contracts for runtime temperature discovery and firmware-owned
trackpad reset without embedding sensor tables or calibration.

Signed-off-by: Acelogic <[email protected]>
Enumerate readable float temperature keys from the running SMC and label
them by key identity. Keep dynamically assigned channels separate from
static thermal policy, and leave existing board sensor definitions
unchanged.

Signed-off-by: Acelogic <[email protected]>
Support power method 2 when the MTP firmware owns reset, reject
conflicting GPIO ownership, and announce AP readiness before the T8142
MTP power acknowledgment. Preserve the existing sequence for other
coprocessors and host-controlled trackpads.

Signed-off-by: Acelogic <[email protected]>
Describe the MTP, SMC and PWM resources needed by the existing generic
drivers. Request trackpad firmware externally, obtain keyboard layout
through the loader, and use runtime sensor discovery with a linear LED
brightness scale.

Signed-off-by: Acelogic <[email protected]>
Document the external firmware contract and qualification limits. Add an
explicitly manual RAM-boot check that records temperatures, restores
backlight brightness and counts physical input events without retaining
key codes or pointer coordinates.

Signed-off-by: Acelogic <[email protected]>
@Acelogic Acelogic changed the title arm64: apple: add M5 J813 temperature monitoring and built-in input arm64: apple: enable M5 J813 temperatures, input and keyboard backlight Oct 2, 2026
@Acelogic
Acelogic merged commit 70dc750 into aurora-wip Oct 2, 2026
@RyanTheTide
RyanTheTide deleted the codex/m5-input-thermal branch October 8, 2026 09:06
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.

1 participant