summaryrefslogtreecommitdiffstats
path: root/meta-ibm
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-09-27 11:06:23 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-09-27 16:16:57 -0400
commit6b950b052a51071c4008b9a7040432150ec6f021 (patch)
tree46ad7a75bcd6250031f0d47a99fd26e2eb42c756 /meta-ibm
parent9dd6d0e323c3b73628f1d583d00958c6f6bc0584 (diff)
downloadtalos-openbmc-6b950b052a51071c4008b9a7040432150ec6f021.tar.gz
talos-openbmc-6b950b052a51071c4008b9a7040432150ec6f021.zip
meta-romulus: Add GPIOCHIP in iio-hwmon-battery.conf
phosphor-hwmon requires GPIOCHIP to be set for GPIO gating. Add this config for Romulus to make it work. Tested: Verify the rtc voltage is read correctly. (From meta-ibm rev: c7ec794a9542fbce0899f7ed272df835567eb3e1) Change-Id: I8f52c17d4459d04c966b1c20c2d10a2d216c038d Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm')
-rw-r--r--meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf1
1 files changed, 1 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
index c72b3b510..61abf6e4c 100644
--- 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
@@ -2,6 +2,7 @@ LABEL_in1=vbat
GAIN_in1=2.25
# GPIOR3 needs to be pulled high for battery voltage reading
+GPIOCHIP_in1=0
GPIO_in1=139
# Read it every day so it does not impact battery life
OpenPOWER on IntegriCloud