Skip to content

arm64: dts: apple: t8132: describe the AOP's sensor services - #1483

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
aeries0x:j604-aop-sensors-pr
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
aeries0x:j604-aop-sensors-pr

Conversation

@aeries0x

Copy link
Copy Markdown
Contributor

Summary

The T8132 AOP node has only its audio service. Once the AOP runs (the J713's already does, the J604's with
aurora-silicon/aura#149), the firmware announces its light sensor, lid angle, accelerometer, gyroscope, device-motion
and board temperature services, but the child devices get no OF node and none of the sensor drivers binds, since they
match by compatible only.

This adds the six service nodes to t8132.dtsi, as t6040.dtsi has them for the M4 Pro (and #1466 does for the
J614c/J616c), and the T8132 compatibles to the bindings that list only T6041 (apple,t6041-aop.yaml for als/las,
apple,aop-devmotion.yaml, apple,aop-temp.yaml; apple,aop-motion.yaml already has the T8132 ones). A board whose
ADT lacks a service just gets no device for it. On the laptops (t8132-laptop.dtsi) the accelerometer is labelled
accel-base as on the J614/J616, so userspace doesn't take it for a display sensor. aura already copies the
accelerometer's and gyroscope's calibration into nodes of these names on T8132.

Testing

J604 (Mac16,1), current integration/aurora plus this change, aura with the J604 AOP handoff, tethered RAM-only boot:
all six drivers bind on their own (aop-sensors-{als,las,accel,gyro,devmotion6,als-temp}). Lid angle 33-101°
following the lid, ambient light 2.7 lux / 1250 K, accelerometer -1 g on z at rest and a clear swing when the front is
lifted, board temperature 21.8 °C. Without the nodes the services exist but nothing binds (binding a driver by hand
through driver_override gave the same lid angle and light readings).

The accel-base label was added after that boot (it only sets the IIO label; checked in the built J604 DTB).
dt_binding_check on the three bindings and scripts/dtc/apple-dt-check.sh (base vs head) pass. I could only test
the J604; on the J713 the nodes only matter for services its ADT announces.

Assisted-by: LLM

The T8132 AOP node had only its audio service, so the light sensor,
lid angle, motion and board temperature services the firmware
announces got devices without a node and no driver bound to them
(their drivers match by compatible). Add the nodes as on T6041, and
the T8132 compatibles to the bindings that listed only T6041 (the
motion binding already has them). A board whose ADT lacks a service
gets no device for it; the loader already copies the accelerometer's
and gyroscope's calibration into nodes of these names. On the laptops
the accelerometer is in the base, labelled as on the M4 Pro laptops.

Assisted-by: LLM
Signed-off-by: Friedrich <[email protected]>

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same layout as the M4 Pro AOP nodes, bindings updated, and tested on J604 with all six services binding. Looks good.

@RyanTheTide
RyanTheTide merged commit d3a6a31 into aurora-silicon:integration/aurora Nov 12, 2026
2 checks passed
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