Skip to content

Commit 2a4c054

Browse files
committed
drivers: fuelgauge: Add Onsemi LC709203F driver
Update documentation for the Adafruit Feather ESP32-S2 boards Signed-off-by: Philipp Steiner <[email protected]>
1 parent 9a2dcdf commit 2a4c054

File tree

3 files changed

+47
-33
lines changed

3 files changed

+47
-33
lines changed

boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2.rst

+22-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Hardware
1616
- 320KB SRAM, 4MB flash + 2MB PSRAM
1717
- USB-C directly connected to the ESP32-S2 for USB
1818
- LiPo connector and built-in battery charging when powered via USB-C
19-
- LC709203 or MAX17048 fuel gauge for battery voltage and state-of-charge reporting
19+
- LC709203F or MAX17048 fuel gauge for battery voltage and state-of-charge reporting
2020
- Built-in NeoPixel indicator RGB LED
2121
- STEMMA QT connector for I2C devices, with switchable power for low-power mode
2222

@@ -28,12 +28,10 @@ Hardware
2828
overlay. All boards, except the `Adafruit ESP32-S2 Feather with BME280 Sensor`_ have a
2929
space for it, but will not be shipped with.
3030
- As of May 31, 2023 - Adafruit has changed the battery monitor chip from the
31-
now-discontinued LC709203 to the MAX17048. Check the back silkscreen of your Feather to
31+
now-discontinued LC709203F to the MAX17048. Check the back silkscreen of your Feather to
3232
see which chip you have.
33-
- For the MAX17048 a driver in zephyr exists and is supported, but needs to be added via
34-
a devicetree overlay.
35-
- For the LC709203 a driver does'nt exists yet and the fuel gauge for boards with this IC
36-
is not available.
33+
- For the MAX17048 and LC709203F a driver in zephyr exists and is supported, but needs to be
34+
added via a devicetree overlay.
3735
- For the `Adafruit ESP32-S2 Feather`_ there are two different Revisions ``rev B`` and
3836
``rev C``. The ``rev C`` board has revised the power circuitry for the NeoPixel and I2C
3937
QT port. Instead of a transistor the ``rev C`` has a LDO regulator. To enable the
@@ -304,19 +302,30 @@ functioning correctly with Zephyr:
304302
:board: adafruit_feather_esp32s2@C
305303
:goals: build flash
306304

307-
Testing the Fuel Gauge (MAX17048)
308-
*********************************
305+
Testing the Fuel Gauge
306+
**********************
309307

310-
There is a sample available to verify that the MAX17048 fuel gauge on the board are
311-
functioning correctly with Zephyr:
308+
There are samples available to verify that the MAX17048 or LC709203F fuel gauge on the board are
309+
functioning correctly with Zephyr
312310

313311
.. note::
314-
As of May 31, 2023 Adafruit changed the battery monitor chip from the now-discontinued LC709203
312+
As of May 31, 2023 Adafruit changed the battery monitor chip from the now-discontinued LC709203F
315313
to the MAX17048.
316314

315+
**MAX17048 Fuel Gauge**
316+
317317
.. zephyr-app-commands::
318-
:zephyr-app: samples/fuel_gauge/max17048/
319-
:board: adafruit_feather_esp32s2@C
318+
:zephyr-app: samples/fuel_gauge
319+
:board: adafruit_feather_esp32s2
320+
:west-args: --extra-dtc-overlay="boards/adafruit_feather_esp32s2_max17048.overlay"
321+
:goals: build flash
322+
323+
**LC709203F Fuel Gauge**
324+
325+
.. zephyr-app-commands::
326+
:zephyr-app: samples/fuel_gauge
327+
:board: adafruit_feather_esp32s2
328+
:west-args: --extra-dtc-overlay="boards/adafruit_feather_esp32s2_lc709203f.overlay"
320329
:goals: build flash
321330

322331
Testing Wi-Fi

boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2_tft.rst

+21-12
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Hardware
1616
- 320KB SRAM, 4MB flash + 2MB PSRAM
1717
- USB-C directly connected to the ESP32-S2 for USB
1818
- LiPo connector and built-in battery charging when powered via USB-C
19-
- LC709203 or MAX17048 fuel gauge for battery voltage and state-of-charge reporting
19+
- LC709203F or MAX17048 fuel gauge for battery voltage and state-of-charge reporting
2020
- Charging indicator LED, user LED, reset and boot buttons.
2121
- Built-in NeoPixel indicator RGB LED
2222
- STEMMA QT connector for I2C devices, with switchable power for low-power mode
@@ -26,12 +26,10 @@ Hardware
2626

2727
- The board has a space for a BME280, but will not be shipped with.
2828
- As of May 31, 2023 - Adafruit has changed the battery monitor chip from the
29-
now-discontinued LC709203 to the MAX17048. Check the back silkscreen of your Feather to
29+
now-discontinued LC709203F to the MAX17048. Check the back silkscreen of your Feather to
3030
see which chip you have.
31-
- For the MAX17048 a driver in zephyr exists and is supported, but needs to be added via
32-
a devicetree overlay.
33-
- For the LC709203 a driver does'nt exists yet and the fuel gauge for boards with this IC
34-
is not available.
31+
- For the MAX17048 and LC709203F a driver in zephyr exists and is supported, but needs to be
32+
added via a devicetree overlay.
3533

3634
Supported Features
3735
==================
@@ -252,19 +250,30 @@ Testing the TFT
252250
:board: adafruit_feather_esp32s2_tft
253251
:goals: build flash
254252

255-
Testing the Fuel Gauge (MAX17048)
256-
*********************************
253+
Testing the Fuel Gauge
254+
**********************
257255

258-
There is a sample available to verify that the MAX17048 fuel gauge on the board are
259-
functioning correctly with Zephyr:
256+
There are samples available to verify that the MAX17048 or LC709203F fuel gauge on the board are
257+
functioning correctly with Zephyr
260258

261259
.. note::
262-
As of May 31, 2023 Adafruit changed the battery monitor chip from the now-discontinued LC709203
260+
As of May 31, 2023 Adafruit changed the battery monitor chip from the now-discontinued LC709203F
263261
to the MAX17048.
264262

263+
**MAX17048 Fuel Gauge**
264+
265+
.. zephyr-app-commands::
266+
:zephyr-app: samples/fuel_gauge
267+
:board: adafruit_feather_esp32s2_tft
268+
:west-args: --extra-dtc-overlay="boards/adafruit_feather_esp32s2_max17048.overlay"
269+
:goals: build flash
270+
271+
**LC709203F Fuel Gauge**
272+
265273
.. zephyr-app-commands::
266-
:zephyr-app: samples/fuel_gauge/max17048/
274+
:zephyr-app: samples/fuel_gauge
267275
:board: adafruit_feather_esp32s2_tft
276+
:west-args: --extra-dtc-overlay="boards/adafruit_feather_esp32s2_max17048.overlay"
268277
:goals: build flash
269278

270279
Testing Wi-Fi

boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2_tft_reverse.rst

+4-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Hardware
1616
- 320KB SRAM, 4MB flash + 2MB PSRAM
1717
- USB-C directly connected to the ESP32-S2 for USB
1818
- LiPo connector and built-in battery charging when powered via USB-C
19-
- LC709203 or MAX17048 fuel gauge for battery voltage and state-of-charge reporting
19+
- MAX17048 fuel gauge for battery voltage and state-of-charge reporting
2020
- Charging indicator LED, user LED, reset and boot buttons and has 2 additional buttons.
2121
- Built-in NeoPixel indicator RGB LED
2222
- 240x135 pixel IPS TFT color display with 1.14" diagonal and ST7789 chipset.
@@ -249,18 +249,14 @@ functioning correctly with Zephyr:
249249
:board: adafruit_feather_esp32s2_tft_reverse
250250
:goals: build flash
251251

252-
Testing the Fuel Gauge (MAX17048)
253-
*********************************
252+
Testing the Fuel Gauge
253+
**********************
254254

255255
There is a sample available to verify that the MAX17048 fuel gauge on the board are
256256
functioning correctly with Zephyr:
257257

258-
.. note::
259-
As of May 31, 2023 Adafruit changed the battery monitor chip from the now-discontinued LC709203
260-
to the MAX17048.
261-
262258
.. zephyr-app-commands::
263-
:zephyr-app: samples/fuel_gauge/max17048/
259+
:zephyr-app: samples/fuel_gauge
264260
:board: adafruit_feather_esp32s2_tft_reverse
265261
:goals: build flash
266262

0 commit comments

Comments
 (0)