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..01ef10009a720 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 @@ -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 7eb3a3415d8dd..fe2bf6d363f95 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>; }; /* @@ -490,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; }; }; @@ -587,3 +592,74 @@ #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, except for the PHY's CIO80 RX_TOP tunables below. + */ +#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; +}; + +/* + * 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 { + /delete-property/ apple,tunable-lane0-rx-top-cio; + /delete-property/ apple,tunable-lane1-rx-top-cio; +}; + +/* + * 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" + +/* + * 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"; + }; +}; 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>;