summaryrefslogtreecommitdiff
path: root/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-07-27 08:30:59 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-09-13 15:49:01 +0300
commit25a5906613c4142919e8941dc985c14628db1896 (patch)
tree8d70cb03f2e511ac9e652aaf75d1a3493d81a696 /meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%
parent74246de09de7414271434a2a5ee2269605fd0758 (diff)
downloadopenbmc-25a5906613c4142919e8941dc985c14628db1896.tar.xz
meta-romulus: Add iio-hwmon-battery config
Romulus has RTC battery monitored by aspeed adc, add the config for hwmon to create /xyz/openbmc_project/sensors/voltage/vbat dbus object. Tested: With romulus dts enabled iio-hwmon-battery, verify the above vbat dbus object is created and the value is expected. (From meta-ibm rev: 72cab616d3ba7ecb777e6e53d1d0f602ea25da58) Change-Id: I1acb4890aa68cb87f145d28e3fbcac1264ed4285 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%')
-rw-r--r--meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf
new file mode 100644
index 000000000..c72b3b510
--- /dev/null
+++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf
@@ -0,0 +1,8 @@
+LABEL_in1=vbat
+GAIN_in1=2.25
+
+# GPIOR3 needs to be pulled high for battery voltage reading
+GPIO_in1=139
+
+# Read it every day so it does not impact battery life
+INTERVAL=86400000000