Skip to content

Commit 2a96def

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

File tree

2 files changed

+35
-34
lines changed

2 files changed

+35
-34
lines changed

boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2.rst

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -336,24 +336,25 @@ For the LC709203F a devicetree overlay needs to be added to the build.
336336
The overlay can be added via the ``--extra-dtc-overlay`` argument and should most likely includes
337337
the following:
338338

339-
```
340-
/ {
341-
aliases {
342-
fuel-gauge0 = &lc709203f;
343-
};
344-
};
345-
346-
&i2c0 {
347-
lc709203f: lc709203f@0b {
348-
compatible = "onnn,lc709203f";
349-
status = "okay";
350-
reg = <0x0b>;
351-
power-domains = <&i2c_reg>;
352-
apa = "500mAh";
353-
battery-profile = <0x01>;
354-
};
355-
};
356-
```
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+
357358
358359
.. zephyr-app-commands::
359360
:zephyr-app: samples/fuel_gauge

boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2_tft.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -275,22 +275,22 @@ For the MAX17048 a devicetree overlay needs to be added to the build.
275275
The overlay can be added via the ``--extra-dtc-overlay`` argument and should most likely includes
276276
the following:
277277

278-
```
279-
/ {
280-
aliases {
281-
fuel-gauge0 = &max17048;
282-
};
283-
};
284-
285-
&i2c0 {
286-
max17048: max17048@36 {
287-
compatible = "maxim,max17048";
288-
status = "okay";
289-
reg = <0x36 >;
290-
power-domains = <&i2c_reg>;
291-
};
292-
};
293-
```
278+
.. code-block:: devicetree
279+
280+
/ {
281+
aliases {
282+
fuel-gauge0 = &max17048;
283+
};
284+
};
285+
286+
&i2c0 {
287+
max17048: max17048@36 {
288+
compatible = "maxim,max17048";
289+
status = "okay";
290+
reg = <0x36 >;
291+
power-domains = <&i2c_reg>;
292+
};
293+
};
294294
295295
.. zephyr-app-commands::
296296
:zephyr-app: samples/fuel_gauge

0 commit comments

Comments
 (0)