[PATCH 4/4] arm64: dts: exynos: gs101-oriole: enable Maxim max77759 fuel gauge
Thomas Antoine via B4 Relay
devnull+t.antoine.uclouvain.be at kernel.org
Mon Dec 2 05:07:18 PST 2024
From: Thomas Antoine <t.antoine at uclouvain.be>
Add the node for the max77759 fuel gauge as a slave of the i2c.
The fuel gauge has been tested and seems to give coherent results.
Manual activation of the charger via i2cset shows that the sign of
the current does indicate charging/discharging status.
Signed-off-by: Thomas Antoine <t.antoine at uclouvain.be>
---
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
index 387fb779bd29ea3812331a7951f03b181c5fe659..4c45dd6fd0173889234b7b04d7abb4b382c7706c 100644
--- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
+++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
@@ -90,6 +90,13 @@ eeprom: eeprom at 50 {
&hsi2c_12 {
status = "okay";
/* TODO: add the devices once drivers exist */
+
+ fuel-gauge at 36 {
+ compatible = "maxim,max77759-fg";
+ reg = <0x36>;
+ reg-names = "m5";
+ };
+
};
&pinctrl_far_alive {
--
2.47.1
More information about the linux-arm-kernel
mailing list