From 9bdc92a1391eec1cc01004ec356ba54562008a18 Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:59:57 -0500 Subject: [PATCH 1/7] arm64: dts: apple: t6050-j716s: hand the SEP over The J716s's SEP (ADT sep, dart-sep) is the J716c's and the J714s's: the same mailbox, power domain and fabric parents. Include the J716c's SEP hand-off: the "sep" alias through which the boot loader reserves the SEP firmware and adds its manifests, the mailbox and ps_sep, and FAB8_SOC and FAB0_PIOGW left to the firmware while the pre-booted enclave owns them. The driver selects its T6050 profile by the SoC. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-j716s.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 7eb3a3415d8dd..01ee7b0e421ef 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -587,3 +587,10 @@ #define T6050_J716S #include "t6050-peripherals.dtsi" + +/* + * The SEP (ADT sep, dart-sep): the same hand-off as the J716c's and the J714s's. The boot + * loader reserves its firmware and adds its manifests through the "sep" alias; its mailbox + * and power domain are on, with the two fabric parents left to the firmware. + */ +#include "t6050-j716c-sep.dtsi" From 1a343daebf0f7db7f8a8bafa6295c6e85535dbcb Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:59:58 -0500 Subject: [PATCH 2/7] arm64: dts: apple: t6050-j716s: describe the Touch ID sensor The J716sAP ADT's spi2/mesa is wired as on the J714s and the J716c: the Mesa sensor (sensor-id 0x3356) at 8 MHz on chip select 0, powered by NUB GPIO 21 and signalling data ready on AP GPIO 138. Describe it with this board's factory data names, and expose AP GPIO 138: the reserved ranges covered it, so the sensor's interrupt failed to map (hwirq 0x8a, -6). 112 and the other unnamed pins stay reserved. The J716s ADT coverage manifest names the sensor's node. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- .../dts/apple/adt-coverage/t6050-j716s.txt | 2 +- arch/arm64/boot/dts/apple/t6050-j716s.dts | 42 ++++++++++++++++++- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt b/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt index b7d69b9fd04ad..51557e614f2ea 100644 --- a/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt +++ b/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt @@ -72,7 +72,7 @@ /arm-io/i2c8 0x505030000 -> /soc/i2c@505030000 /arm-io/i2c8/pcon0 /arm-io/i2c8@0x8 -> MISSING /arm-io/spi2 0x505108000 -> /soc/spi@505108000 -/arm-io/spi2/mesa /arm-io/spi2@0x0 -> MISSING +/arm-io/spi2/mesa /arm-io/spi2@0x0 -> /soc/spi@505108000/fingerprint@0 /arm-io/spi4 0x505110000 -> /soc/spi@505110000 /arm-io/spi4/dp855 /arm-io/spi4@0x0 -> MISSING /arm-io/spi4/dp855/lcd-pmicwp /arm-io/spi4/dp855@0x4f -> MISSING diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 01ee7b0e421ef..727e73cc4a4dc 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -458,10 +458,11 @@ /* * Pin 112 takes an SError when read (as on the J716c), so only the pins a node - * here names are exposed: 80 (PCIe port 0's PERST#). + * here names are exposed: 80 (PCIe port 0's PERST#) and 138 (the Touch ID + * sensor's data-ready line). */ &pinctrl_ap { - gpio-reserved-ranges = <0 80>, <81 140>; + gpio-reserved-ranges = <0 80>, <81 57>, <139 82>; }; /* @@ -594,3 +595,40 @@ * and power domain are on, with the two fabric parents left to the firmware. */ #include "t6050-j716c-sep.dtsi" + +/* + * Touch ID (ADT spi2/mesa), wired as on the J714s and the J716c: the Mesa sensor + * (sensor-id 0x3356) at 8 MHz on chip select 0, powered by NUB GPIO 21 + * (function-mesa_pwr), data ready on AP GPIO 138. The controller's clock is the + * 24 MHz reference. + */ +&ps_nub_gpio { + status = "okay"; +}; + +&nub_gpio0 { + status = "okay"; +}; + +&ps_spi2 { + status = "okay"; +}; + +&spi2 { + clocks = <&clkref>; + status = "okay"; + + mesa: fingerprint@0 { + compatible = "apple,mesa-fingerprint"; + reg = <0>; + spi-max-frequency = <8000000>; + spi-cpol; + spi-cs-setup-delay-ns = <20>; + spi-cs-hold-delay-ns = <20>; + enable-gpios = <&nub_gpio0 21 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&pinctrl_ap>; + interrupts = <138 IRQ_TYPE_EDGE_RISING>; + /* Per-device factory data from this Mac's own iBoot system container */ + firmware-name = "apple/mesacal-j716s.bin", "apple/msrk-j716s.bin"; + }; +}; From 95c7b767404e11187cbe4f358255a53706e176e1 Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:59:58 -0500 Subject: [PATCH 3/7] arm64: dts: apple: t6050-j716s: let userspace set the fans The J716s SMC takes a manual target for either fan as the J714s's does: writing a speed sets F0md/F1md to manual and F0Tg/F1Tg to the target, the fan follows it, and writing 0 returns the fan to the SMC, which then drives it as before (it stops it at idle). Mark both fans with apple,fan-manual-control, as on the J714s and the J716c. The driver clamps a target to the fan's own F*Mn..F*Mx range, read from the SMC. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-j716s.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 727e73cc4a4dc..1e2bf9a41597e 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -491,15 +491,19 @@ /delete-node/ temperature-TW0P; /* - * The T6050 SMC spells the fan mode keys F0md/F1md, as on the J775D. No - * apple,fan-manual-control: the SMC drives the fans. + * The T6050 SMC spells the fan mode keys F0md/F1md, as on the J775D. The + * SMC drives the fans; as on the J714s, it also accepts a manual speed for + * either from userspace, within the fan's own minimum and maximum, and + * takes the fan back when the target is set to 0. */ fan-F0Ac { apple,fan-mode = "F0md"; + apple,fan-manual-control; }; fan-F1Ac { apple,fan-mode = "F1md"; + apple,fan-manual-control; }; }; From 42ea73ea610e55cfd440232b5ef89ec1768957fc Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:59:59 -0500 Subject: [PATCH 4/7] arm64: dts: apple: t6050-j716s: add the left-front port's USB4 router The J716sAP ADT's left-front router (/arm-io/acio1, acio-cpu1, dart-acio1, apciec1, dart-apciec1) has the J714s's addresses, interrupts, LSTX pin (AOP 79) and router, NHI, DART and PCIe tunnel tunables, and the same host DROM (UID 1). Take t6050-j714s-left-usb4.dtsi as it is and override the one difference: this board's atc-phy1 tunable_LN0/LN1_RX_TOP_CIO_DFLT leave the RX_TOP field at 0 (<0x35c 0xe00 0x0>, as ATC2's do), where the J714s's set it to 0x200. t6050-peripherals.dtsi leaves its inventory apciec1_dart out for the J716s too, as for the J714s and the J716c: the router dtsi has its own in the pcie-tunnel-1 container. The J716s ADT coverage manifest names the router, its DART and mailbox, the tunnel, and dart-apciec1's new path. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- .../boot/dts/apple/adt-coverage/t6050-j716s.txt | 12 ++++++------ arch/arm64/boot/dts/apple/t6050-j716s.dts | 14 ++++++++++++++ arch/arm64/boot/dts/apple/t6050-peripherals.dtsi | 2 +- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt b/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt index 51557e614f2ea..01ef10009a720 100644 --- a/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt +++ b/arch/arm64/boot/dts/apple/adt-coverage/t6050-j716s.txt @@ -186,13 +186,13 @@ /arm-io/dart-acio0/mapper-acio0-rx-11 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. /arm-io/acio-cpu0 0x2a1108000 -> MISSING /arm-io/acio-cpu0/iop-acio0-nub - -> WAIVED: Firmware endpoint container; hosting coprocessor is inventoried separately. -/arm-io/apciec1 0x1c60000000 -> MISSING +/arm-io/apciec1 0x1c60000000 -> /pcie-tunnel-1/pcie@1c60000000 /arm-io/apciec1/pcic1-bridge - -> WAIVED: PCI root-port topology; PCIe controller hardware is inventoried separately. -/arm-io/dart-apciec1 0x2ac000000 -> /soc/iommu@2ac000000 -/arm-io/dart-apciec1/mapper-apciec1-piodma - -> /soc/iommu@2ac000000 +/arm-io/dart-apciec1 0x2ac000000 -> /pcie-tunnel-1/iommu@2ac000000 +/arm-io/dart-apciec1/mapper-apciec1-piodma - -> /pcie-tunnel-1/iommu@2ac000000 /arm-io/apciec1-piodma 0x2ac068000 -> /soc/dma-controller@2ac068000 -/arm-io/acio1 0x2a9f00000 -> MISSING -/arm-io/dart-acio1 0x2a9a80000 -> MISSING +/arm-io/acio1 0x2a9f00000 -> /soc@200000000/acio@2a9ac0000/nhi@f00000 +/arm-io/dart-acio1 0x2a9a80000 -> /soc@200000000/acio@2a9ac0000/iommu@a80000 /arm-io/dart-acio1/mapper-acio1-tx-0 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. /arm-io/dart-acio1/mapper-acio1-tx-1 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. /arm-io/dart-acio1/mapper-acio1-tx-2 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. @@ -217,7 +217,7 @@ /arm-io/dart-acio1/mapper-acio1-rx-9 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. /arm-io/dart-acio1/mapper-acio1-rx-10 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. /arm-io/dart-acio1/mapper-acio1-rx-11 - -> WAIVED: IOMMU stream, described by iommus or iommu-map; DART hardware is inventoried separately. -/arm-io/acio-cpu1 0x2a9108000 -> MISSING +/arm-io/acio-cpu1 0x2a9108000 -> /soc@200000000/mailbox@2a9108000 /arm-io/acio-cpu1/iop-acio1-nub - -> WAIVED: Firmware endpoint container; hosting coprocessor is inventoried separately. /arm-io/apciec2 0x1c70000000 -> MISSING /arm-io/apciec2/pcic2-bridge - -> WAIVED: PCI root-port topology; PCIe controller hardware is inventoried separately. diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 1e2bf9a41597e..ee01f4977d7f2 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -593,6 +593,20 @@ #define T6050_J716S #include "t6050-peripherals.dtsi" +/* + * Left-front port (ATC1): the USB4/Thunderbolt router and its PCIe tunnel. The J716sAP ADT's + * /arm-io/acio1, acio-cpu1, dart-acio1, apciec1 and dart-apciec1 have the J714s's addresses, + * interrupts, LSTX pin (AOP 79) and tunables, and the same host DROM (UID 1), so the J714s's + * description is taken as it is. Only the PHY's CIO80 RX_TOP tunables differ: this board's + * atc-phy1 tunable_LN0/LN1_RX_TOP_CIO_DFLT leave the field at 0, as ATC2's do. + */ +#include "t6050-j714s-left-usb4.dtsi" + +&atc1_phy { + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x0>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x0>; +}; + /* * The SEP (ADT sep, dart-sep): the same hand-off as the J716c's and the J714s's. The boot * loader reserves its firmware and adds its manifests through the "sep" alias; its mailbox diff --git a/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi b/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi index c7a6178d27371..46b1057b0a14f 100644 --- a/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi @@ -1596,7 +1596,7 @@ status = "disabled"; }; -#if !defined(T6050_J714S) && !defined(T6050_J716C) +#if !defined(T6050_J714S) && !defined(T6050_J716C) && !defined(T6050_J716S) apciec1_dart: iommu@2ac000000 { compatible = "apple,t6050-dart", "apple,t8110-dart"; reg = <0x2 0xac000000 0x0 0x20000>; From 2204099f1900fc2b3c5bb0e6a6696ac920e54502 Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Fri, 27 Nov 2026 07:27:44 -0500 Subject: [PATCH 5/7] arm64: dts: apple: t6050-j716s: drop interrupt-names from the left USB4 PCIe tunnel The apple,pcie binding forbids interrupt-names on an apple,t6050-pciec node: only the apple,t6040-pciec branch names its interrupts. The PCIe-C driver takes its single port interrupt by index, so the "port0" name was never read. Enabling the node on the J716s makes CHECK_DTBS report "False schema does not allow ['port0']" for t6050-j716s.dtb, a warning the J714s description already carries. Drop the unused name from the shared J714s/J716s left-port description. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi b/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi index 081f17d51e47e..5a95b84680fc9 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi @@ -191,7 +191,6 @@ reg-names = "config", "rc", "port0", "fabric", "debug", "ltssm", "intr2axi"; /* The port's: link events and INTx */ interrupts = ; - interrupt-names = "port0"; power-domains = <&ps_atc1_pcie>; /* No boot loader hands the port over: the kernel cold-initializes it. */ apple,pciec-kernel-init; From 253afd9aca15b8483db2a67357d157208af3a272 Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Fri, 27 Nov 2026 08:59:00 -0500 Subject: [PATCH 6/7] arm64: dts: apple: t6050-j716s: drop the tunnel's interrupt-names in the board file Commit 2204099f1900 ("arm64: dts: apple: t6050-j716s: drop interrupt-names from the left USB4 PCIe tunnel") removed the "port0" name from t6050-j714s-left-usb4.dtsi, which the J714s also includes, so it changed an existing board's description as well. Put the line back in the shared file and delete the property from &apciec1 in t6050-j716s.dts instead. The apple,pcie binding names interrupts only on apple,t6040-pciec, and the PCIe-C driver maps the port interrupt by index, so the J716s's CHECK_DTBS warning goes away while the J714s and J716c DTBs stay as they are on main. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi | 1 + arch/arm64/boot/dts/apple/t6050-j716s.dts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi b/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi index 5a95b84680fc9..081f17d51e47e 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi @@ -191,6 +191,7 @@ reg-names = "config", "rc", "port0", "fabric", "debug", "ltssm", "intr2axi"; /* The port's: link events and INTx */ interrupts = ; + interrupt-names = "port0"; power-domains = <&ps_atc1_pcie>; /* No boot loader hands the port over: the kernel cold-initializes it. */ apple,pciec-kernel-init; diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index ee01f4977d7f2..d9f756ded95f1 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -602,6 +602,14 @@ */ #include "t6050-j714s-left-usb4.dtsi" +/* + * The apple,pcie binding names interrupts only on apple,t6040-pciec; the PCIe-C driver takes + * the port interrupt by index. Leave the shared description's "port0" name out on this board. + */ +&apciec1 { + /delete-property/ interrupt-names; +}; + &atc1_phy { apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x0>; apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x0>; From d1551b6727155370eba82b55d98425951db23d33 Mon Sep 17 00:00:00 2001 From: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> Date: Fri, 27 Nov 2026 08:59:26 -0500 Subject: [PATCH 7/7] arm64: dts: apple: t6050-j716s: leave the left-front PHY's RX_TOP CIO tunables to the boot loader The left-front port's PHY (atc1_phy) carried this board's CIO80 RX_TOP tunables (ADT atc-phy1 tunable_LN0/LN1_RX_TOP_CIO_DFLT) as literal values in the board file. Tunables are board data the boot loader copies from the ADT, so they should not be repeated in the source. Drop the literals. Delete the two properties from &atc1_phy instead, so the J714s's own values in t6050-j714s-left-usb4.dtsi are not inherited either. The apple,combo-phy binding makes the CIO tunables optional and the PHY driver skips an absent one, so the port probes as before; the RX_TOP CIO step is applied once the boot loader fills these properties from the ADT. Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-j716s.dts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index d9f756ded95f1..fe2bf6d363f95 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -597,8 +597,7 @@ * Left-front port (ATC1): the USB4/Thunderbolt router and its PCIe tunnel. The J716sAP ADT's * /arm-io/acio1, acio-cpu1, dart-acio1, apciec1 and dart-apciec1 have the J714s's addresses, * interrupts, LSTX pin (AOP 79) and tunables, and the same host DROM (UID 1), so the J714s's - * description is taken as it is. Only the PHY's CIO80 RX_TOP tunables differ: this board's - * atc-phy1 tunable_LN0/LN1_RX_TOP_CIO_DFLT leave the field at 0, as ATC2's do. + * description is taken as it is, except for the PHY's CIO80 RX_TOP tunables below. */ #include "t6050-j714s-left-usb4.dtsi" @@ -610,9 +609,15 @@ /delete-property/ interrupt-names; }; +/* + * The PHY's CIO80 RX_TOP tunables are this board's own (ADT atc-phy1 + * tunable_LN0/LN1_RX_TOP_CIO_DFLT), not the J714s's: drop the J714s's from the shared + * description. The boot loader is to copy this board's from the ADT; until it does, the + * PHY driver skips the RX_TOP CIO step, as it does for any CIO80 tunable that is absent. + */ &atc1_phy { - apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x0>; - apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x0>; + /delete-property/ apple,tunable-lane0-rx-top-cio; + /delete-property/ apple,tunable-lane1-rx-top-cio; }; /*