From eb0f5e01760905f27d6a78fd3f47114e8cfe9e39 Mon Sep 17 00:00:00 2001 From: Alejandro Garcia Date: Sun, 1 Nov 2026 11:27:10 -0800 Subject: [PATCH] arm64: dts: exynos: google: gs201-panther: add the MAX77759 PMIC for its charger Describe the MAX77759's PMIC at 0x66 on USI13, as on the Pixel 7 Pro: its interrupt on gpa9-4, low, with a pull-up, as in the Pixel 7's live device tree, its GPIO cell, and the battery as its monitored-battery, so that the charger cell can bind. Give the battery the charger limits: 4.45 V, the top of stock's float voltage tiers, and 0.3 C, the lowest charge current stock allows from 10 to 46 degC at any tier (1283100 uA of 4277 mAh), rounded down to the charger step 0x13, 1266720 uA. The Type-C port controller stays undescribed. The charger driver keeps charging off at probe unless it is given a default input limit, which the device package sets. Note the PCA9468 direct charger at 0x57 on this bus in the comment, as stock's charging tree has it. Tested on a Pixel 7 since 2026-11-01, with the device package's default_ilim_ua=500000 and temp_guard=1: the charger probed at mode 5 with a 4450 mV float voltage, 1266720 uA fast charge and a 500 mA input limit, went from constant current into constant voltage and reached 100 %. The guard applied stock's band at room temperature, stopped charging while the gauge gave no reading and resumed after it. Assisted-by: LLM Signed-off-by: Alejandro Garcia --- .../boot/dts/exynos/google/gs201-panther.dts | 46 +++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs201-panther.dts b/arch/arm64/boot/dts/exynos/google/gs201-panther.dts index 25594305a5..1d82504ced 100644 --- a/arch/arm64/boot/dts/exynos/google/gs201-panther.dts +++ b/arch/arm64/boot/dts/exynos/google/gs201-panther.dts @@ -58,6 +58,15 @@ /* google,fv-max-uv; VEmpty of the live tree's gauge models */ voltage-max-design-microvolt = <4450000>; voltage-min-design-microvolt = <3300000>; + /* + * Charger limits without Google's step charging: the float + * voltage is fv-max-uv, the top of google,chg-cv-limits + * (4.2/4.3/4.45 V). The fast charge current is 0.3 C, the + * lowest google,chg-cc-limits entry at any voltage tier from + * 10 to 46 degC, rounded down to a charger step (0x13). + */ + constant-charge-voltage-max-microvolt = <4450000>; + constant-charge-current-max-microamp = <1266720>; }; /* The same pins as cheetah's (Google's gs201-common.dtsi). */ @@ -266,9 +275,13 @@ /* * MAX77759 (charger, Type-C port controller, fuel gauge) on USI13, as on * the Pixel 7 Pro: TCPC 0x25, PMIC 0x66, fuel gauge 0x36, charger 0x69, - * bus pins gpp25-0/1. Only the fuel gauge is described: the Type-C port - * controller would take over VBUS and the data role from the forced-VBUS - * setup the USB PHY uses, and the USB link is our only way into the phone. + * bus pins gpp25-0/1; stock also has the PCA9468 direct charger at 0x57 + * on this bus. The Type-C port controller is not described: it would take + * over VBUS and the data role from the forced-VBUS setup the USB PHY uses, + * and the USB link is our only way into the phone. The charger has no DT + * node of its own (it is an MFD cell of pmic@66, which carries its + * monitored-battery); its probe turns charging off until a "tcpm-source" + * power supply reports a source, unless it is loaded with default_ilim_ua. */ &usi13 { samsung,mode = ; @@ -336,6 +349,26 @@ 0x2d00 /* TaskPeriod */ >; }; + + pmic@66 { + compatible = "maxim,max77759"; + reg = <0x66>; + interrupts-extended = <&gpa9 4 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&if_pmic_int>; + pinctrl-names = "default"; + interrupt-controller; + #interrupt-cells = <2>; + /* for the charger cell */ + monitored-battery = <&battery>; + + gpio { + compatible = "maxim,max77759-gpio"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; }; /* @@ -368,6 +401,13 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + if_pmic_int: if-pmic-int-pins { + samsung,pins = "gpa9-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_peric0 {