diff options
Diffstat (limited to 'meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf')
-rw-r--r-- | meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf b/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf new file mode 100644 index 000000000..50a45e3b4 --- /dev/null +++ b/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,13 @@ +LABEL_in1=VBAT_RTC +GAIN_in1=3 +CRITHI_in1=3564 +CRITLO_in1=2106 +WARNHI_in1=3528 +WARNLO_in1=2142 + +# GPIOS4 needs to be pulled high for battery voltage reading +GPIOCHIP_in1=0 +GPIO_in1=148 + +# Read it every day so it does not impact battery life +INTERVAL=86400000000 |