From aee6ef0f9434db13a02b86846bd9ce22b37ec88e Mon Sep 17 00:00:00 2001 From: Chris O'Hearn <137103567+chrisohearn@users.noreply.github.com> Date: Wed, 25 Nov 2026 20:47:31 -0700 Subject: [PATCH] arm64: dts: apple: t6050-k114s: enable the Secure Enclave and Touch ID The K114s ADT describes the same SEP and Touch ID hardware as the J714s and K116s. Add the SEP alias for the boot loader and enable the mailbox and power domain, with the fabric parents firmware-owned. The SEP driver selects the profile by SoC and enables SEP and its DART when the mailbox is available. Describe the fingerprint sensor on SPI2 with the K114s calibration and root key filenames. Expose AP GPIO 138 for its data-ready interrupt and keep the remaining AP GPIOs reserved. Signed-off-by: Chris O'Hearn <137103567+chrisohearn@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-k114s.dts | 69 +++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-k114s.dts b/arch/arm64/boot/dts/apple/t6050-k114s.dts index 2b88e99a6d993..c6ce190998369 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114s.dts @@ -28,6 +28,8 @@ aliases { /* asahi-bless and the boot loader find the NVRAM partition by this alias */ nvram = &nvram; + /* The boot loader reserves SEP firmware and adds its manifests. */ + sep = &sep; }; }; @@ -60,3 +62,70 @@ }; }; }; + +/* + * Expose AP GPIO 138 for Touch ID data ready. Keep all other AP pins + * reserved (reading pin 112 takes an SError). + */ +&pinctrl_ap { + gpio-reserved-ranges = <0 138>, <139 82>; +}; + +/* + * Enable the SEP mailbox and power domain. Leave both fabric parents + * under firmware control, so genpd can vote on them without turning them + * off. apple_sep enables SEP and its DART when the mailbox is available. + */ +&sep_mbox { + status = "okay"; +}; + +&ps_sep { + status = "okay"; +}; + +&ps_fab8_soc { + apple,firmware-owned; + status = "okay"; +}; + +&ps_fab0_piogw { + apple,firmware-owned; + status = "okay"; +}; + +/* + * Touch ID (ADT spi2/mesa): the Mesa sensor on spi2 at 8 MHz, chip select 0, + * powered by NUB GPIO 21 (function-mesa_pwr), data ready on AP GPIO 138, as + * on the J714s and K116s. spi2 runs from the 24 MHz reference (ADT clock-ids 451). + */ +&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-k114s.bin", "apple/msrk-k114s.bin"; + }; +};