Repository navigation
arm64: dts: apple: t6050-j714s: add the MagSafe 3 PD controller - #1686
Merged
Merged
Conversation
hpm5 on nub-spmi-a0 (SID 8) is the MagSafe 3 port's PD controller (ADT
port-type 0x11). Like the MagSafe controller on J616s, it has no USB
data path, so it gets no connector node; tipd registers a Type-C port
and a power supply for it. The bus is polled on T6050, so it has no
interrupts, as for hpm1. Its ADT features-supported is <3> ("Power In"
only), so it is marked apple,no-liquid-detection.
Signed-off-by: Diljit Singh <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1685 (the
apple,no-liquid-detectionbinding and tipd change); merge that first.The M5 Pro's MagSafe 3 port has a PD controller that Linux doesn't describe: hpm5 on nub-spmi-a0, SPMI address 8. macOS drives it as "Port-MagSafe 3", feature "Power In" only, and on this machine it's the live power source (a 100 W adapter at 20 V).
The node follows the M4 Pro's MagSafe controller on J616s:
apple,sn201202xwith no connector, since there's no USB data path;apple,no-liquid-detection, because the ADT lists its features-supported as<3>("Power In"), where the USB-C ports' controllers have<1 2 3>("TRM", "LDCM", "Power In").Tested on the M5 Pro (J714s), 7.3.0-m5-intg4
The DTB was built from intg4's tree with only this node added; that tree's DTB rebuilds byte-identical to the default's. It booted the default kernel with #1685's
sn201202x.ko.1-08binds, and its Type-C port is a USB PD sink with nocontaminantattribute.tps6598x-source-psy-1-08reads online / USB PD, matching macOS's Port-MagSafe 3, ConnectionActive.contaminant: none.🤖 Generated with Claude Code