summaryrefslogtreecommitdiffstats
path: root/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf')
-rw-r--r--meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
new file mode 100644
index 000000000..172fb20fd
--- /dev/null
+++ b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
@@ -0,0 +1,7 @@
+LABEL_in1=vbat
+GAIN_in1=2.30
+# The battery read is controlled by P2
+GPIOCHIP_in1=0
+GPIO_in1=122
+# Sleep in microseconds (stored into a uint64_t)
+INTERVAL=86400000000
OpenPOWER on IntegriCloud