Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions arch/arm64/boot/dts/apple/t8142-j704.dts
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,53 @@
#include "t8142-j704-hdmi.dtsi"
#include "t8142-j704-audio.dtsi"
#include "t8142-j704-usbc-display.dtsi"

/* Touch ID uses SPI2, with power on NUB GPIO 36 and data ready on AP GPIO 200. */
&pmgr {
ps_spi2: power-controller@440 {
compatible = "apple,t8142-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate";
reg = <0x440 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
power-domains = <&ps_spi_p>;
label = "spi2";
};
};

&{/soc} {
spi2: spi@3a5108000 {
compatible = "apple,t8142-spi", "apple,t8103-spi";
reg = <0x3 0xa5108000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1241 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkref>;
power-domains = <&ps_spi2>;
#address-cells = <1>;
#size-cells = <0>;
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 = <&pinctrl_nub 36 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&pinctrl_ap>;
interrupts = <200 IRQ_TYPE_EDGE_RISING>;
/* Per-device files, built from the Mac's own factory records. */
firmware-name = "apple/mesacal-j704.bin", "apple/msrk-j704.bin";
status = "okay";
};
};
};

/* Expose the sensor's two pins next to the ones sound uses. */
&pinctrl_ap {
gpio-reserved-ranges = <0 100>, <101 49>, <152 48>, <201 23>;
};

&pinctrl_nub {
gpio-reserved-ranges = <0 18>, <19 17>, <37 3>;
};
Loading