summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf
diff options
context:
space:
mode:
authorThang Q. Nguyen <thang@os.amperecomputing.com>2020-12-28 10:46:59 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2021-02-01 16:44:47 +0300
commite37d98b766a26c073d78af823915d4c8b0381559 (patch)
tree8d376047046dd3ba81e984dbb92586491de4f312 /meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf
parentb73f730d756c2129902b73d17639bd948ca5b171 (diff)
downloadopenbmc-e37d98b766a26c073d78af823915d4c8b0381559.tar.xz
meta-ampere: mtjade: Add on-board sensors
Support for Mt. Jade on-board sensors including fans, battery, PSUs, voltage and temperature sensors. Tested: check sensor reading from WebUI. All on-board sensors are displayed with reasonable values. Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I60abc8ae946ef95c09903ebc5d95d15db6161c1a
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.conf13
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