@@ -16,7 +16,7 @@ Hardware
16
16
- 320KB SRAM, 4MB flash + 2MB PSRAM
17
17
- USB-C directly connected to the ESP32-S2 for USB
18
18
- 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
20
20
- Built-in NeoPixel indicator RGB LED
21
21
- STEMMA QT connector for I2C devices, with switchable power for low-power mode
22
22
@@ -28,12 +28,10 @@ Hardware
28
28
overlay. All boards, except the `Adafruit ESP32-S2 Feather with BME280 Sensor `_ have a
29
29
space for it, but will not be shipped with.
30
30
- 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
32
32
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.
37
35
- For the `Adafruit ESP32-S2 Feather `_ there are two different Revisions ``rev B `` and
38
36
``rev C ``. The ``rev C `` board has revised the power circuitry for the NeoPixel and I2C
39
37
QT port. Instead of a transistor the ``rev C `` has a LDO regulator. To enable the
@@ -304,19 +302,64 @@ functioning correctly with Zephyr:
304
302
:board: adafruit_feather_esp32s2@C
305
303
:goals: build flash
306
304
307
- Testing the Fuel Gauge (MAX17048)
308
- *********************************
305
+ Testing the Fuel Gauge
306
+ **********************
309
307
310
- There is a sample available to verify that the MAX17048 fuel gauge on the board are
311
- functioning correctly with Zephyr:
308
+ There is a sample available to verify that the MAX17048 or LC709203F fuel gauge on the board are
309
+ functioning correctly with Zephyr
312
310
313
311
.. 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
315
313
to the MAX17048.
316
314
315
+ **Rev B **
316
+
317
+ For the Rev B a devicetree overlay for the LC709203F fuel gauge already exists in the
318
+ ``samples/fuel_gauge/boards `` folder.
319
+
320
+ .. zephyr-app-commands ::
321
+ :zephyr-app: samples/fuel_gauge
322
+ :board: adafruit_feather_esp32s2@B
323
+ :goals: build flash
324
+
325
+ **Rev C **
326
+
327
+ For the Rev C a devicetree overlay for the MAX17048 fuel gauge already exists in the
328
+ ``samples/fuel_gauge/boards `` folder.
329
+
330
+ .. zephyr-app-commands ::
331
+ :zephyr-app: samples/fuel_gauge
332
+ :board: adafruit_feather_esp32s2@C
333
+ :goals: build flash
334
+
335
+ For the LC709203F a devicetree overlay needs to be added to the build.
336
+ The overlay can be added via the ``--extra-dtc-overlay `` argument and should most likely includes
337
+ the following:
338
+
339
+ .. code-block :: devicetree
340
+
341
+ / {
342
+ aliases {
343
+ fuel-gauge0 = &lc709203f;
344
+ };
345
+ };
346
+
347
+ &i2c0 {
348
+ lc709203f: lc709203f@0b {
349
+ compatible = "onnn,lc709203f";
350
+ status = "okay";
351
+ reg = <0x0b>;
352
+ power-domains = <&i2c_reg>;
353
+ apa = "500mAh";
354
+ battery-profile = <0x01>;
355
+ };
356
+ };
357
+
358
+
317
359
.. zephyr-app-commands ::
318
- :zephyr-app: samples/fuel_gauge/max17048/
360
+ :zephyr-app: samples/fuel_gauge
319
361
:board: adafruit_feather_esp32s2@C
362
+ :west-args: --extra-dtc-overlay="boards/name_of_your.overlay"
320
363
:goals: build flash
321
364
322
365
Testing Wi-Fi
0 commit comments