diff options
author | Alexander Filippov <a.filippov@yadro.com> | 2020-04-13 18:06:40 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-04-30 04:47:19 +0300 |
commit | d85f9936db6707c38e2b29338f534ed25f08073d (patch) | |
tree | 463d14463cae39efeaae7e74e3ebb586fc6126d9 /meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc | |
parent | abce80903a005c006cebb5447898a270691f4a75 (diff) | |
download | openbmc-d85f9936db6707c38e2b29338f534ed25f08073d.tar.xz |
nicole: Add iio-hwmon-battery config
Nicole has RTC battery monitored by aspeed adc.
This commit adds the config for hwmon to create
/xyz/openbmc_project/sensors/voltage/vbat dbus object.
(From meta-yadro rev: 00a58de373844c2819c88993242a6bbda6235e8a)
Change-Id: Ib9eacb8884d793b3895f6dd4749512517c9d8988
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc')
-rw-r--r-- | meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf new file mode 100644 index 000000000..290a72252 --- /dev/null +++ b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,9 @@ +LABEL_in1=vbat +GAIN_in1=2.25 + +# GPIOP2 needs to be pulled high for battery voltage reading +GPIOCHIP_in1=0 +GPIO_in1=122 + +# Read it every day so it does not impact battery life +INTERVAL=86400000000 |