From 6b950b052a51071c4008b9a7040432150ec6f021 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Thu, 27 Sep 2018 11:06:23 +0800 Subject: 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 Signed-off-by: Brad Bishop --- .../sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-ibm') 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 -- cgit v1.2.3