Skip to content

arm64: dts: apple: t6040-j616s: Add the MagSafe 3 PD controller - #412

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/dts-j616s-magsafe
Oct 24, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/dts-j616s-magsafe

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

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) 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 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/typec lists 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 (full dtbs_check on t6040-j616s currently crashes in dt-validate decoding #403's apple,tunable-common-cfg, so the check ran on a copy without the apple,tunable-* properties). checkpatch --strict clean.

🤖 Generated with Claude Code

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 RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants