tests: build_all: sensor: test composite fuel gauge
Test the composite fuel-gauge driver compiles. Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
parent
39a582a9ec
commit
bbee47c030
2 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
|||
* Application overlay for ADC devices
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/battery/battery.h>
|
||||
|
||||
test_adc_mcp9700a: mcp9700a {
|
||||
status = "okay";
|
||||
compatible = "microchip,mcp970x";
|
||||
|
@ -34,6 +36,16 @@ test_current: current_amp {
|
|||
sense-gain-div = <1>;
|
||||
};
|
||||
|
||||
test_composite_fuel_gauge: composite_fuel_gauge {
|
||||
compatible = "zephyr,fuel-gauge-composite";
|
||||
status = "okay";
|
||||
battery-voltage = <&test_voltage>;
|
||||
battery-current = <&test_current>;
|
||||
device-chemistry = "lithium-ion-polymer";
|
||||
ocv-capacity-table-0 = <BATTERY_OCV_CURVE_LITHIUM_ION_POLYMER_DEFAULT>;
|
||||
charge-full-design-microamp-hours = <1000000>;
|
||||
};
|
||||
|
||||
test_adc_emul: adc-emul {
|
||||
compatible = "zephyr,adc-emul";
|
||||
nchannels = <2>;
|
||||
|
|
|
@ -14,6 +14,7 @@ CONFIG_SPI=y
|
|||
CONFIG_MFD=y
|
||||
CONFIG_W1=y
|
||||
CONFIG_SENSOR=y
|
||||
CONFIG_FUEL_GAUGE=y
|
||||
CONFIG_ICM42605_TRIGGER_NONE=y
|
||||
CONFIG_EMUL=y
|
||||
CONFIG_DHT20_CRC=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue