From 23ba6565c46ad0983be6ff0fb5feb4f0d080a29c Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 12 Nov 2026 12:54:15 +0700 Subject: [PATCH 1/4] dt-bindings: iio: position: apple,aop-las: Add T8142 The T8142 AOP firmware announces the "las" lid angle service, as T6050's does. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick --- .../devicetree/bindings/iio/position/apple,aop-las.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml b/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml index c1c9dc439985e..5b23d981ab9b3 100644 --- a/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml +++ b/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml @@ -22,6 +22,7 @@ select: - apple,t6020-aop-las - apple,t6050-aop-las - apple,t8112-aop-las + - apple,t8142-aop-las required: - compatible @@ -32,6 +33,7 @@ properties: - apple,t6020-aop-las - apple,t6050-aop-las - apple,t8112-aop-las + - apple,t8142-aop-las - const: apple,aop-las required: From 911b2da3054ba276a2c4abdee22f04f9ddea9457 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 13 Nov 2026 16:16:04 +0700 Subject: [PATCH 2/4] arm64: dts: apple: t8142-j815: Add the lid angle sensor The J815 AOP firmware announces "las": macOS 27.2 binds it on this machine as an AppleSPUHIDDevice with usage page 0x20 and usage 0x8a, the report aop_las decodes. Describe the service. The ADT's i2c1 "mogul-las" is the sensor's authentication chip, not the angle. On J815 the IIO device reads in_angl_raw 109 (scale pi/180), and it still reads after s2idle. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick --- arch/arm64/boot/dts/apple/t8142-j815.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8142-j815.dts b/arch/arm64/boot/dts/apple/t8142-j815.dts index 5abb3dc30eac9..9231b466acb82 100644 --- a/arch/arm64/boot/dts/apple/t8142-j815.dts +++ b/arch/arm64/boot/dts/apple/t8142-j815.dts @@ -163,6 +163,16 @@ aop_als: als { compatible = "apple,t8142-aop-als", "apple,aop-als"; }; + + /* + * Lid angle: the J815 AOP firmware announces a "las" service, which + * macOS 27.2 on this machine binds as an AppleSPUHIDDevice (usage page + * 0x20, usage 0x8a), as on T6050. The ADT's i2c1 "mogul-las" is the + * sensor's authentication chip, not the angle. + */ + aop_las: las { + compatible = "apple,t8142-aop-las", "apple,aop-las"; + }; }; /* From 508b1cdc3de631c4ba1faf94ee5593f969412cc3 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 14 Nov 2026 18:32:10 +0700 Subject: [PATCH 3/4] arm64: dts: apple: t8142-j813: Add the lid angle sensor The J813 AOP firmware registers the same "las" service as the J815's, next to "als". Describe it, as on J815. gig3m tested this on a J813 (Mac17,3, 27.0 stub) by binding aop_las to the service device by hand. in_angl_scale reads 0.017453293, and in_angl_raw reads 107 and follows the lid (107, 53, 129, 23, 116). No extra AOP mailbox interrupts arrive while the lid is still. The node is gig3m's diff. It compiles but has not been booted yet. Link: https://github.com/aurora-silicon/linux/pull/1805#issuecomment-6870566898 Assisted-by: Claude Opus 5.5 Signed-off-by: Nick --- arch/arm64/boot/dts/apple/t8142-j813.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8142-j813.dts b/arch/arm64/boot/dts/apple/t8142-j813.dts index 8435957851436..86df324762ee6 100644 --- a/arch/arm64/boot/dts/apple/t8142-j813.dts +++ b/arch/arm64/boot/dts/apple/t8142-j813.dts @@ -135,6 +135,14 @@ aop_als: als { compatible = "apple,t8142-aop-als", "apple,aop-als"; }; + + /* + * Lid angle: the J813 AOP firmware announces a "las" service, as the + * J815's does, and aop_las reads the hinge angle from it. + */ + aop_las: las { + compatible = "apple,t8142-aop-las", "apple,aop-las"; + }; }; /* From 3f03b24542f26353360727b671bff6cb36a371e3 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Tue, 17 Nov 2026 14:59:26 -0500 Subject: [PATCH 4/4] dt-bindings: iio: position: describe the existing T6030 AOP LAS fallback J514s and J516s already use the T6030, T6020 and generic compatible tuple. Document that exact list without changing the DTS or driver. Signed-off-by: Diljit Singh --- .../bindings/iio/position/apple,aop-las.yaml | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml b/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml index 5b23d981ab9b3..d3564e453f0c4 100644 --- a/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml +++ b/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml @@ -20,6 +20,7 @@ select: contains: enum: - apple,t6020-aop-las + - apple,t6030-aop-las - apple,t6050-aop-las - apple,t8112-aop-las - apple,t8142-aop-las @@ -28,13 +29,18 @@ select: properties: compatible: - items: - - enum: - - apple,t6020-aop-las - - apple,t6050-aop-las - - apple,t8112-aop-las - - apple,t8142-aop-las - - const: apple,aop-las + oneOf: + - items: + - enum: + - apple,t6020-aop-las + - apple,t6050-aop-las + - apple,t8112-aop-las + - apple,t8142-aop-las + - const: apple,aop-las + - items: + - const: apple,t6030-aop-las + - const: apple,t6020-aop-las + - const: apple,aop-las required: - compatible