Repository navigation
kboot: pass the AOP motion sensor calibration on T6000 and T8112 - #124
Merged
Merged
Conversation
The M1 Pro (T6000) and M2 (T8112) ADTs carry the accelerometer and gyroscope calibration in the same accel-/gyro- properties and container format as the M4 Pro, but kboot only copied them on T6040, T6041 and T8132, where it also hands the AOP firmware segments over. Without the properties the Linux aop_motion driver leaves both sensors off. On T6000 and T8112, copy just the calibration into the accel and gyro children of the OS AOP node. iBoot already runs the AOP firmware there, so nothing else changes. A missing node, child or property is skipped as before. Assisted-by: LLM Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Contributor
Author
M2 (j413, T8112) receipt (GAPS10, silent)Setup: aura-try RAM-only Stage 2 = aura#124 head over the live recipe, with the j413 accel/gyro nodes enabled as in linux#1288. Kernel: 7.3.0-aurora-gaps10aop2 = integration 83df8e4b + linux#1288 (0064b755 + 9330cb74), with no test-only code. Stage 2 was not committed and Stage 1 was not touched.
Without the nCal change (the test kernel showed this), Linux overwrites the firmware's nCal and the AOP never announces accel or gyro. The M1 Pro (T6000) row follows. |
Contributor
Author
M1 Pro (j316s, T6000) receipt (GAPS10, silent)The setup is the same as the M2 row: aura#124 head, j316s accel/gyro enabled, kernel gaps10aop2 (integration 83df8e4b + linux#1288, no test-only code), aura-try RAM-only, Stage 2 not committed.
Both T8112 and T6000 are now proven. |
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.
Extends aura#35 (motion calibration handover) to the M1 Pro (T6000) and M2 (T8112).
The ADTs on both have
/arm-io/aop/iop-aop-nub/{accel,gyro}with the same six*-calproperties and the same container layout as the J616s (header byte 3 = 1, one location-0 entry). kboot only copied them insidedt_set_aop_firmware(), which returns early on everything except T6040/T6041/T8132. On T6000 and T8112, kboot now finds the OS AOP node (apple,t6000-aop/apple,t8112-aop, status okay) and runs the existingdt_set_aop_motion_cal()on it. Nothing else changes: iBoot already runs the AOP there, so there are no firmware segments to hand over.The J316s and J413 DTs already describe the
accelandgyrochildren (linux#1094). The Linuxaop_motiondriver reads the properties and otherwise logs "no ... from the bootloader, sensor left off".Status
Draft. Trials pending (lane GAPS10), as aura-try one-shots on the M1 Pro and the M2:
/proc/device-tree/aop@*/{accel,gyro}, byte-identical to the ADT;aop-sensors-acceland-gyroIIO devices report: |a| ~ 9.8 m/s^2 at rest, gyro ~ 0;If the M1/M2 firmware needs a different
nCalboot argument (as T6040 did, linux#745), that is a kernel follow-up.🤖 Generated with Claude Code