From c3e48b37c6a93e0c0d8dea8dfcefa8f2958b4440 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 15 Nov 2026 00:05:18 +0700 Subject: [PATCH] arm64: dts: apple: t8142-j815: Add the MagSafe 3 PD controller hpm5 on nub-spmi-a0 (SID 8) is the MagSafe 3 port's PD controller (ADT port-type 0x11). It has no USB data path, so it gets no connector node; tipd registers a Type-C port and a power supply for it, as on J714s. The bus is polled on T8142, so like hpm0 and hpm1 it has no interrupts. Its ADT features-supported is <3> ("Power In" only), so it is marked apple,no-liquid-detection. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick --- arch/arm64/boot/dts/apple/t8142-j815.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8142-j815.dts b/arch/arm64/boot/dts/apple/t8142-j815.dts index c45d185c87c4c..9a265e5567868 100644 --- a/arch/arm64/boot/dts/apple/t8142-j815.dts +++ b/arch/arm64/boot/dts/apple/t8142-j815.dts @@ -471,3 +471,18 @@ &jpeg1 { status = "okay"; }; + +/* + * The MagSafe 3 port's PD controller: ADT hpm5 on nub-spmi-a0, SID 8, port-type + * 0x11. It has no USB data path, so it gets no connector node; tipd registers a + * Type-C port and a power supply for it, as on J714s. The bus is polled on + * T8142, so like hpm0 and hpm1 it has no interrupts. Its ADT features-supported + * is <3>, "Power In" only: no liquid detection. + */ +&nub_spmi_a0 { + hpm5: usb-pd@8 { + compatible = "apple,sn201202x"; + reg = <0x8 SPMI_USID>; + apple,no-liquid-detection; + }; +};