diff options
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf new file mode 100644 index 000000000..5b2833a14 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,15 @@ +LABEL_in1 = "p3v_bat_adc" +CRITLO_in1 = "2690" +CRITHI_in1 = "3480" +WARNHI_in1 = "3480" +WARNLO_in1 = "2690" +MINVALUE_in1 = "0" +MAXVALUE_in1 = "4" + +# The battery read is controlled by GPIO18 +GPIOCHIP_in1=0 +GPIO_in1=18 +GAIN_in1 = "3.35" + +# Sleep 24hrs per poll. Number is in microseconds. +INTERVAL=86400000000 |