Skip to content

Commit bd362a5

Browse files
committed
boards: add axp2101-fuel-gauge to all boards with an AXP2101 PMIC
Multi-function PMIC AXP2101 now has a fuel gauge driver. Add the corresponding node to all boards with such a PMIC (also checked their datasheets and confirmed these actually have a battery correctly connected to the PMIC). Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 9db3a1a commit bd362a5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

boards/lilygo/twatch_s3/twatch_s3_procpu.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
watchdog0 = &wdt0;
2121
rtc = &pfc8563_rtc;
2222
pwm-led0 = &backlight_pwm;
23+
fuel-gauge0 = &fuel_gauge;
2324
};
2425

2526
chosen {
@@ -228,6 +229,10 @@
228229
regulator-boot-off;
229230
};
230231
};
232+
233+
fuel_gauge: fuel_gauge {
234+
compatible = "x-powers,axp2101-fuel-gauge";
235+
};
231236
};
232237
};
233238

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
rtc = &bm8563_rtc;
3333
sdhc0 = &sd0;
3434
led0 = &axp2101_led;
35+
fuel-gauge0 = &fuel_gauge;
3536
};
3637

3738
lvgl_pointer {
@@ -165,6 +166,10 @@
165166
status = "okay";
166167
x-powers,mode = "by-reg";
167168
};
169+
170+
fuel_gauge: fuel_gauge {
171+
compatible = "x-powers,axp2101-fuel-gauge";
172+
};
168173
};
169174

170175
bm8563_rtc: bm8563@51 {

0 commit comments

Comments
 (0)