From dc1465a38ad225d063902bdb3c1938729a5f223e Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 19 Nov 2026 22:23:20 +1100 Subject: [PATCH] arm64: dts: apple: t600x, t8112: describe the AOP motion sensor on every laptop The AOP accelerometer and gyroscope children were described only in t6000-j316s.dts and t8112-j413.dts, the two machines whose Apple device trees were at hand. The other 14" and 16" M1 Pro/Max MacBook Pros (J314s, J314c, J316c) and the other M2 laptops (J415, J493) share the same AOP and are left without them. Nothing in the description is board specific. The AOP core creates a service device only when the firmware announces the "accel" or "gyro" service, and gives it the AOP child of the same name. The driver then starts the sensor only with the calibration the bootloader copies into that child from the Apple device tree, and returns -ENODEV with one info line otherwise. On a machine without the sensor the child stays unused. Move the children to t600x-j314-j316.dtsi, next to the AOP enable of every M1 Pro/Max laptop, and to the AOP node in t8112.dtsi, next to the las and als services that are already there. The T8112 Mac mini (J473) keeps its AOP disabled, so the children are inert there. The J316s and J413 DTBs are byte-identical before and after. Fixes: 165f4bd7ffcf ("arm64: dts: apple: describe reference Mac motion and peripheral endpoints") Signed-off-by: Ryan Murray Co-Authored-By: Claude Opus 5.5 --- arch/arm64/boot/dts/apple/t6000-j316s.dts | 10 ---------- arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 16 +++++++++++++++- arch/arm64/boot/dts/apple/t8112-j413.dts | 8 -------- arch/arm64/boot/dts/apple/t8112.dtsi | 14 ++++++++++++++ 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6000-j316s.dts b/arch/arm64/boot/dts/apple/t6000-j316s.dts index 7643def3427d2..f471286b9c132 100644 --- a/arch/arm64/boot/dts/apple/t6000-j316s.dts +++ b/arch/arm64/boot/dts/apple/t6000-j316s.dts @@ -81,16 +81,6 @@ apple,machine-kind = "MacBook Pro"; }; -&aop { - accel { - compatible = "apple,t6000-aop-accel", "apple,aop-accel"; - }; - - gyro { - compatible = "apple,t6000-aop-gyro", "apple,aop-gyro"; - }; -}; - &nub_spmi1 { pmic@e { compatible = "apple,maverick-pmic", "apple,spmi-nvmem"; diff --git a/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi b/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi index f9bb3d9d03497..ab3fc1edd5dff 100644 --- a/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi @@ -855,7 +855,21 @@ }; &aop { - status = "okay"; + status = "okay"; + + /* + * Every 14" and 16" M1 Pro/Max MacBook Pro has the same AOP-hosted + * inertial sensor. The child only binds once the AOP firmware announces + * the service, and the sensor starts only with the calibration that the + * bootloader copies in from the Apple device tree. + */ + accel { + compatible = "apple,t6000-aop-accel", "apple,aop-accel"; + }; + + gyro { + compatible = "apple,t6000-aop-gyro", "apple,aop-gyro"; + }; }; / { diff --git a/arch/arm64/boot/dts/apple/t8112-j413.dts b/arch/arm64/boot/dts/apple/t8112-j413.dts index ff99c23afb7a9..4e7dea85c1f47 100644 --- a/arch/arm64/boot/dts/apple/t8112-j413.dts +++ b/arch/arm64/boot/dts/apple/t8112-j413.dts @@ -192,14 +192,6 @@ &aop { status = "okay"; - - accel { - compatible = "apple,t8112-aop-accel", "apple,aop-accel"; - }; - - gyro { - compatible = "apple,t8112-aop-gyro", "apple,aop-gyro"; - }; }; &aop_audio { diff --git a/arch/arm64/boot/dts/apple/t8112.dtsi b/arch/arm64/boot/dts/apple/t8112.dtsi index 882965a8db382..2ef3972cef4cc 100644 --- a/arch/arm64/boot/dts/apple/t8112.dtsi +++ b/arch/arm64/boot/dts/apple/t8112.dtsi @@ -1755,6 +1755,20 @@ las { compatible = "apple,t8112-aop-las", "apple,aop-las"; }; + + /* + * The AOP-hosted inertial sensor. The children only + * bind once the AOP firmware announces the service, + * and the sensor starts only with the calibration the + * bootloader copies in from the Apple device tree. + */ + accel { + compatible = "apple,t8112-aop-accel", "apple,aop-accel"; + }; + + gyro { + compatible = "apple,t8112-aop-gyro", "apple,aop-gyro"; + }; }; mtp: mtp@24e400000 {