From 880c421ecd62d0d23803870094a3fde0f59dbe8c Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Wed, 25 Nov 2026 09:18:25 +1100 Subject: [PATCH] arm64: dts: apple: t8112: macOS 27 firmware trees for the J415 and J493 U-Boot used to give every T8112 laptop on macOS 27.x firmware two MTP changes: hand the MTP over running, and send the trackpad the two-stage power command. Since 63e2e4f3 it reads both from the device tree, and only t8112-j413-fw27 sets them, so a MacBook Air 15" (J415) or MacBook Pro 13" (J493) on the 27.x stub lost them. Move the two MTP properties into t8112-mtp-fw27.dtsi and add J415 and J493 trees for macOS 27 firmware that use it, as the J413 one now does. All three laptops' 27.2 (26B123) MtpFirmware images are the same MTP firmware train (6310.85.7) and their trees already wire the trackpad's AFE reset line that power method 2 needs. The J413 tree compiles to the same DTB as before. The J415 and J493 ones differ from their base trees only by the two properties. Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/Makefile | 2 ++ arch/arm64/boot/dts/apple/t8112-j413-fw27.dts | 16 +-------------- arch/arm64/boot/dts/apple/t8112-j415-fw27.dts | 4 ++++ arch/arm64/boot/dts/apple/t8112-j493-fw27.dts | 4 ++++ arch/arm64/boot/dts/apple/t8112-mtp-fw27.dtsi | 20 +++++++++++++++++++ 5 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 arch/arm64/boot/dts/apple/t8112-j415-fw27.dts create mode 100644 arch/arm64/boot/dts/apple/t8112-j493-fw27.dts create mode 100644 arch/arm64/boot/dts/apple/t8112-mtp-fw27.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index 256662c18acd6..12dee08996515 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -115,9 +115,11 @@ dtb-$(CONFIG_ARCH_APPLE) += t6050-k116s.dtb dtb-$(CONFIG_ARCH_APPLE) += t8112-j413.dtb dtb-$(CONFIG_ARCH_APPLE) += t8112-j413-fw27.dtb dtb-$(CONFIG_ARCH_APPLE) += t8112-j415.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8112-j415-fw27.dtb dtb-$(CONFIG_ARCH_APPLE) += t8112-j473.dtb dtb-$(CONFIG_ARCH_APPLE) += t8112-j473-fw27.dtb dtb-$(CONFIG_ARCH_APPLE) += t8112-j493.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8112-j493-fw27.dtb dtb-$(CONFIG_ARCH_APPLE) += t8122-j433.dtb dtb-$(CONFIG_ARCH_APPLE) += t8122-j434.dtb dtb-$(CONFIG_ARCH_APPLE) += t8122-j504.dtb diff --git a/arch/arm64/boot/dts/apple/t8112-j413-fw27.dts b/arch/arm64/boot/dts/apple/t8112-j413-fw27.dts index ae41133aa6785..42bbfe557bd2c 100644 --- a/arch/arm64/boot/dts/apple/t8112-j413-fw27.dts +++ b/arch/arm64/boot/dts/apple/t8112-j413-fw27.dts @@ -1,18 +1,4 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT /* J413 with macOS 27 system firmware (27.2 stub). */ #include "t8112-j413.dts" - -/* - * The 27.x MTP firmware cannot be restarted once quiesced: a boot stage that - * starts it hands it over running (apple,rtkit-handoff). - */ -&mtp { - apple,rtkit-keep-running; -}; - -/* The 27.x trackpad firmware answers only the two-stage power command. */ -&mtp_hid { - multi-touch { - apple,power-method = <2>; - }; -}; +#include "t8112-mtp-fw27.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8112-j415-fw27.dts b/arch/arm64/boot/dts/apple/t8112-j415-fw27.dts new file mode 100644 index 0000000000000..043e97b0b60ac --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-j415-fw27.dts @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* J415 with macOS 27 system firmware (27.2 stub). */ +#include "t8112-j415.dts" +#include "t8112-mtp-fw27.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8112-j493-fw27.dts b/arch/arm64/boot/dts/apple/t8112-j493-fw27.dts new file mode 100644 index 0000000000000..5dbac9ea74833 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-j493-fw27.dts @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* J493 with macOS 27 system firmware (27.2 stub). */ +#include "t8112-j493.dts" +#include "t8112-mtp-fw27.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8112-mtp-fw27.dtsi b/arch/arm64/boot/dts/apple/t8112-mtp-fw27.dtsi new file mode 100644 index 0000000000000..2803018fcfe56 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-mtp-fw27.dtsi @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * The MTP (keyboard and trackpad) of a T8112 laptop with macOS 27 system + * firmware. Every one of these laptops gets the same 27.x MTP firmware train. + */ + +/* + * The 27.x MTP firmware cannot be restarted once quiesced: a boot stage that + * starts it hands it over running (apple,rtkit-handoff). + */ +&mtp { + apple,rtkit-keep-running; +}; + +/* The 27.x trackpad firmware answers only the two-stage power command. */ +&mtp_hid { + multi-touch { + apple,power-method = <2>; + }; +};