[PATCH v2] arm64: dts: exynos: gs101-pixel-common: add Maxim MAX77759 fuel gauge

André Draszik posted 1 patch 1 month, 1 week ago
.../boot/dts/exynos/google/gs101-pixel-common.dtsi     | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
[PATCH v2] arm64: dts: exynos: gs101-pixel-common: add Maxim MAX77759 fuel gauge
Posted by André Draszik 1 month, 1 week ago
On Pixel 6 (and Pro), a MAX77759 companion PMIC for USB Type-C
applications is used, which contains four functional blocks (at
distinct I2C addresses):
  * top (including GPIO & NVMEM)
  * charger
  * fuel gauge
  * TCPCi

This change adds the fuel gauge.

Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Tested-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
---
Changes in v2:
- typo Maxin -> Maxim in subject
- collect tags
- Link to v1: https://lore.kernel.org/r/20260227-max77759-fg-dts-v1-1-16c5733e946c@linaro.org
---
For DT validation purposes, this patch depends on the binding updates
from https://lore.kernel.org/r/20260226-max77759-fg-v1-0-ff0a08a70a9f@linaro.org
They have been ACKed, but not merged yet.
---
 .../boot/dts/exynos/google/gs101-pixel-common.dtsi     | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/google/gs101-pixel-common.dtsi b/arch/arm64/boot/dts/exynos/google/gs101-pixel-common.dtsi
index 93892adaa679..c01fec7c867d 100644
--- a/arch/arm64/boot/dts/exynos/google/gs101-pixel-common.dtsi
+++ b/arch/arm64/boot/dts/exynos/google/gs101-pixel-common.dtsi
@@ -225,6 +225,17 @@ usbc0_role_sw: endpoint {
 		};
 	};
 
+	fuel-gauge@36 {
+		compatible = "maxim,max77759-fg";
+		reg = <0x36>;
+
+		pinctrl-0 = <&if_pmic_fg_int>;
+		pinctrl-names = "default";
+		interrupts-extended = <&gpa9 3 IRQ_TYPE_LEVEL_LOW>;
+
+		shunt-resistor-micro-ohms = <5000>;
+	};
+
 	pmic@66 {
 		compatible = "maxim,max77759";
 		reg = <0x66>;
@@ -317,6 +328,13 @@ pmic_int: pmic-int-pins {
 		samsung,pin-pud = <GS101_PIN_PULL_NONE>;
 	};
 
+	if_pmic_fg_int: if-pmic-fg-int-pins {
+		samsung,pins = "gpa9-3";
+		samsung,pin-function = <GS101_PIN_FUNC_EINT>;
+		samsung,pin-pud = <GS101_PIN_PULL_UP>;
+		samsung,pin-drv = <GS101_PIN_DRV_2_5_MA>;
+	};
+
 	key_power: key-power-pins {
 		samsung,pins = "gpa10-1";
 		samsung,pin-function = <GS101_PIN_FUNC_EINT>;

---
base-commit: 3fa5e5702a82d259897bd7e209469bc06368bf31
change-id: 20260227-max77759-fg-dts-b12ebd5a90b3

Best regards,
-- 
André Draszik <andre.draszik@linaro.org>

Re: [PATCH v2] arm64: dts: exynos: gs101-pixel-common: add Maxim MAX77759 fuel gauge
Posted by Krzysztof Kozlowski 1 month ago
On Mon, 02 Mar 2026 12:35:22 +0000, André Draszik wrote:
> On Pixel 6 (and Pro), a MAX77759 companion PMIC for USB Type-C
> applications is used, which contains four functional blocks (at
> distinct I2C addresses):
>   * top (including GPIO & NVMEM)
>   * charger
>   * fuel gauge
>   * TCPCi
> 
> [...]

Applied, thanks!

[1/1] arm64: dts: exynos: gs101-pixel-common: add Maxim MAX77759 fuel gauge
      https://git.kernel.org/krzk/linux/c/3d7bd20e026687db513887e4d066121cb0a49852

Best regards,
-- 
Krzysztof Kozlowski <krzk@kernel.org>

Re: [PATCH v2] arm64: dts: exynos: gs101-pixel-common: add Maxim MAX77759 fuel gauge
Posted by André Draszik 1 month ago
On Mon, 2026-03-02 at 12:35 +0000, André Draszik wrote:
> For DT validation purposes, this patch depends on the binding updates
> from https://lore.kernel.org/r/20260226-max77759-fg-v1-0-ff0a08a70a9f@linaro.org
> They have been ACKed, but not merged yet.

Just FYI, that series (including binding updates) has been merged and is available
in linux-next.

Cheers,
Andre'