Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/apple/t8132-j604.dts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
label = "USB-C Left Rear";
};

/* hpm3 is ATC3's port controller; hpm5, the MagSafe port's, is not wired. */
/* hpm3 is ATC3's port controller. The MagSafe port's, hpm5, is in t8132-laptop.dtsi. */
&nub_spmi_a1 {
status = "okay";

Expand Down
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/apple/t8132-laptop.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,23 @@
spi-cs-hold-delay-ns = <20>;
status = "okay";
};

/*
* The MagSafe 3 port's PD controller, on nub-spmi-a0 next to ATC0 and ATC1's
* (SID 8, port-type 0x11, the same in each laptop's ADT). It has no USB data
* path, so it gets no connector node; tipd registers a Type-C port and a power
* supply for it. Its event, sleep and wake interrupts are 63, 69 and 71 in the
* same order as hpm0's. Its ADT features-supported is <3>, "Power In" only: no
* liquid detection.
*/
&nub_spmi_a0 {
hpm5: usb-pd@8 {
compatible = "apple,t8132-sn201202x", "apple,sn201202x";
reg = <0x8 SPMI_USID>;
interrupts = <63 IRQ_TYPE_EDGE_RISING>,
<69 IRQ_TYPE_EDGE_RISING>,
<71 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "sleep", "wake";
apple,no-liquid-detection;
};
};
Loading