Repository navigation
kboot: pass the AOP motion sensor calibration to the OS - #35
Merged
Merged
Conversation
The AOP accelerometer and gyroscope take the machine's calibration from the OS, as three per-sensor packets. Copy the accel and gyro calibration properties from the ADT AOP services into the matching children of the OS AOP node, where the OS driver reads them. A missing service or property is skipped. Ported from aurora-silicon/m1n1#61. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Contributor
Author
|
Merged with every check green except 🤖 Generated with Claude Code |
Contributor
Author
|
Follow-up evidence: with this calibration copy and linux#745 (merged as 3412c752), Ryan's motion test on J616s passed. Accel tilt tracked about 90 deg left/right and the front lift, |a| was 9.6 m/s^2 at rest, and integrating gyro z gave 92 deg for a quarter-turn spin. 🤖 Generated with Claude Code |
Merged
dmitzsaz
pushed a commit
to dmitzsaz/aura
that referenced
this pull request
Nov 6, 2026
…-bringup kboot: add J713/T8132 (M4 MacBook Air) boot handoffs
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.
Copy the AOP accelerometer and gyroscope calibration from the ADT into the OS device tree. Ported from aurora-silicon/m1n1#61.
kboot reads
accel-{range-intr,nominal-extr,range-extr}-caland the matchinggyro-properties from/arm-io/aop/iop-aop-nub/{accel,gyro}. It writes them asapple,range-intrinsic-cal,apple,nominal-extrinsic-calandapple,range-extrinsic-calon theaccelandgyrochildren of the OS AOP node. The Linuxaop_motiondriver sends these packets to the AOP before it starts the reports. A missing service, child or property is skipped and logged, so boards without motion services are unaffected.Hardware result (J616s, M4 Pro)
Stage 2 is aura main 999b72e plus this commit (same tree as 174a42c; only the message changed) plus the aurora-wip DTB. Kernel 7.3.0-aurora-tt3.
/proc/device-tree/aop@510600000/{accel,gyro}. They are byte-identical to the macOS 27.0 (26A428) ADT values: 60/56/56 bytes, single location-0 entries.journalctl -b -p 3is empty, all three DCPs bind, the panel and both external displays come up, and ALS, LAS and the audio cards probe.nCalboot argument at its firmware default (linked from the kernel PR), both IIO devices report.Tests
tests/python,test_t8122_gpu_reader.py,test_t8122_gpu_resources.py.make ARCH=aarch64-linux-gnu- CHAINLOADING=1 EXTRA_CFLAGS='-Wstack-usage=2048 -Os'.🤖 Generated with Claude Code