From 9922d6576260eaa5ebab3d806eb01e35b1c532b2 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Wed, 28 Oct 2026 05:11:57 -0647 Subject: [PATCH 1/2] arm64: dts: exynos: google: zumapro-tegu: Add the fuel gauge and USB-C port controller The Pixel 9a's MAX77779 sits on hsi2c6 (USI6, pins gpp12-0/1, 950 kHz as stock): its fuel gauge at 0x36 with the board's 2 mOhm shunt, and its USB-C port controller at 0x25, interrupting on gpa8-3 (active low, as stock's max77759tcpc@25). The port is described as a sink with a dual data role and is not linked to the USB controller's role switch yet: the USB controller stays a peripheral, as today. gpa8 becomes an interrupt controller with its four EINT SPIs (44-47). Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com> --- .../boot/dts/exynos/google/zumapro-tegu.dts | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts index 20e72a61a4..848dd690c5 100644 --- a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts +++ b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts @@ -12,6 +12,7 @@ #include #include #include +#include #include "../exynos-pinctrl.h" #include "zumapro.dtsi" #include "zumapro-reserved-memory.dtsi" @@ -290,6 +291,16 @@ ; }; +/* The USB-C port controller's interrupt (gpa8-3). */ +&gpa8 { + interrupt-controller; + #interrupt-cells = <2>; + interrupts = , + , + , + ; +}; + &gpn0 { interrupt-controller; #interrupt-cells = <2>; @@ -333,6 +344,42 @@ }; }; +/* + * The MAX77779's bus: its fuel gauge and its USB-C port controller, a sink + * with no link to the USB controller's role yet. + */ +&hsi2c6 { + clock-frequency = <950000>; + pinctrl-names = "default"; + pinctrl-0 = <&hsi2c6_bus>; + status = "okay"; + + usb_tcpc: tcpc@25 { + compatible = "maxim,max77779-tcpc"; + reg = <0x25>; + interrupt-parent = <&gpa8>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_pd_irq>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "sink"; + self-powered; + op-sink-microwatt = <2600000>; + sink-pdos = ; + }; + }; + + fuel_gauge: fuel-gauge@36 { + compatible = "maxim,max77779-fg"; + reg = <0x36>; + shunt-resistor-micro-ohms = <2000>; + }; +}; + /* The haptics: a CS40L26 on the 9a's LRA, with Google's limits for it. */ &hsi2c9 { clock-frequency = <100000>; @@ -358,6 +405,13 @@ &pinctrl_alive { status = "okay"; + + usb_pd_irq: usb-pd-irq-pins { + samsung,pins = "gpa8-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = <0>; + }; }; &pinctrl_custom_alive { @@ -397,6 +451,13 @@ samsung,pin-drv = <0>; }; + hsi2c6_bus: hsi2c6-bus-pins { + samsung,pins = "gpp12-0", "gpp12-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = <0>; + }; + touch_reset_held: touch-reset-held-pins { samsung,pins = "gpp1-1"; samsung,pin-function = ; @@ -521,6 +582,10 @@ status = "okay"; }; +&usi6 { + status = "okay"; +}; + &usi9 { status = "okay"; }; From a971fc50eb1c276f8fcff4c8fd711787b241805e Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Sat, 31 Oct 2026 11:02:24 -0643 Subject: [PATCH 2/2] arm64: dts: exynos: google: zumapro-tegu: Add the MAX77779 charger The MAX77779's charger answers at 0x69 on the same bus as its fuel gauge and USB-C port controller. Describe it, and name it as the fuel gauge's power supply, so the max77779-charger driver binds from the device tree and the battery reports charging through it. This node has no interrupt yet; the chip charges on its own, and the driver reports its state and offers charge inhibit. power-supplies is also a device link: the fuel gauge now waits for the charger to probe, so if the charger driver is missing or fails to probe, the battery stays deferred with it. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com> --- arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts index 848dd690c5..e373d05a70 100644 --- a/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts +++ b/arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts @@ -345,8 +345,8 @@ }; /* - * The MAX77779's bus: its fuel gauge and its USB-C port controller, a sink - * with no link to the USB controller's role yet. + * The MAX77779's bus: its USB-C port controller, a sink with no link to the + * USB controller's role yet, its fuel gauge and its charger. */ &hsi2c6 { clock-frequency = <950000>; @@ -377,6 +377,12 @@ compatible = "maxim,max77779-fg"; reg = <0x36>; shunt-resistor-micro-ohms = <2000>; + power-supplies = <&charger>; + }; + + charger: charger@69 { + compatible = "maxim,max77779-charger"; + reg = <0x69>; }; };