commit | 6b950b052a51071c4008b9a7040432150ec6f021 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Thu Sep 27 11:06:23 2018 +0800 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Thu Sep 27 16:16:57 2018 -0400 |
tree | 46ad7a75bcd6250031f0d47a99fd26e2eb42c756 | |
parent | 9dd6d0e323c3b73628f1d583d00958c6f6bc0584 [diff] |
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>
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 c72b3b5..61abf6e 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 @@ 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