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 <jordan@embeint.com>
This commit is contained in:
parent
bbee47c030
commit
6ad8ca9c64
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
#include "thingy53_nrf5340_common-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
#include <zephyr/dt-bindings/battery/battery.h>
|
||||
|
||||
/ {
|
||||
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 = <BATTERY_OCV_CURVE_LITHIUM_ION_POLYMER_DEFAULT>;
|
||||
charge-full-design-microamp-hours = <1350000>;
|
||||
};
|
||||
|
||||
regulator_3v3: regulator-3v3-ctrl {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "ncp114";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue