From 6ad8ca9c64a1e013371fa289cd2b58e75f088b99 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Sun, 25 Aug 2024 11:37:28 +1000 Subject: [PATCH] boards: thingy53: define composite fuel gauge Add a composite fuel-gauge device to the Thingy53 to enable converting the raw voltage to a battery percentage. Signed-off-by: Jordan Yates --- boards/nordic/thingy53/thingy53_nrf5340_common.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boards/nordic/thingy53/thingy53_nrf5340_common.dtsi b/boards/nordic/thingy53/thingy53_nrf5340_common.dtsi index 782174d48b0..20a4e19d1d5 100644 --- a/boards/nordic/thingy53/thingy53_nrf5340_common.dtsi +++ b/boards/nordic/thingy53/thingy53_nrf5340_common.dtsi @@ -5,6 +5,7 @@ */ #include "thingy53_nrf5340_common-pinctrl.dtsi" #include +#include / { chosen { @@ -97,6 +98,14 @@ power-gpios = <&gpio0 16 0>; }; + fuel_gauge: fuel_gauge { + compatible = "zephyr,fuel-gauge-composite"; + battery-voltage = <&vbatt>; + device-chemistry = "lithium-ion-polymer"; + ocv-capacity-table-0 = ; + charge-full-design-microamp-hours = <1350000>; + }; + regulator_3v3: regulator-3v3-ctrl { compatible = "regulator-fixed"; regulator-name = "ncp114";