Repository navigation
arm64: dts: apple: t6040-j616s: Add the MagSafe 3 PD controller - #412
Merged
RyanTheTide merged 1 commit intoOct 24, 2026
Merged
RyanTheTide merged 1 commit into
RyanTheTide merged 1 commit into
Conversation
hpm5 on nub-spmi-a0 (SID 8) is the MagSafe 3 port's PD controller (ADT port-type 0x11, "Power In"). It has no USB data path, so it gets no connector node, like the MagSafe controllers in t8122-usbpd-spmi.dtsi (the same SID and interrupts) and t603x-j514-j516.dtsi. tipd reads the port's capabilities from the controller and registers a Type-C port and a power supply for it. The ADT lists the irq, sleep and wake interrupts; select is irq + 2, as on the other three controllers. Signed-off-by: Jonathan Goyvaerts <[email protected]> Assisted-by: LLM
RyanTheTide
approved these changes
Oct 24, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Thanks. On our J616s with this applied (7.3.0-aurora-73s), spmi 1-08 binds to sn201202x with no errors, and a new Type-C port and its power supply show up. MagSafe wasn't plugged in on that boot, so only the probe is tested here, not charging through it. It's board DT only and dtbs_check is unchanged. Merging.
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.
hpm5 on nub-spmi-a0 (SID 8) is the J616s MagSafe 3 port's PD controller (ADT port-type 0x11, "Power In"). It has no USB data path, so it gets no connector node, like the MagSafe controllers in
t8122-usbpd-spmi.dtsi(the same SID and interrupts) andt603x-j514-j516.dtsi. tipd reads the port's capabilities from the controller and registers a Type-C port and a power supply for it. The ADT lists the irq, sleep and wake interrupts; select is irq + 2, as on the three USB-C controllers #403 added.Hardware tested on: Apple MacBook Pro (16-inch, M4 Pro, 2024), J616s / T6040, macOS 26.6.2 firmware, booted by our own loader.
How tested: the same node has been in our daily device tree since the USB-C bring-up (now 7.3.0-m4.12 on
1aa2857509d):/sys/class/typeclists the MagSafe port (usb-pd reg 0x08) next to the three USB-C ports, with a partner while the MagSafe charger is connected.Not tested / limits: charging control (charge limits, the MagSafe LED) is outside this node.
Base:
integration/aurora(1aa2857509d). The J616s DTB builds; dt-validate against the current bindings reports nothing for the new node and the same 34 reports for the whole tree as without it (fulldtbs_checkon t6040-j616s currently crashes in dt-validate decoding #403'sapple,tunable-common-cfg, so the check ran on a copy without theapple,tunable-*properties). checkpatch --strict clean.🤖 Generated with Claude Code