diff options
author | Lei YU <mine260309@gmail.com> | 2018-07-27 08:30:59 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-13 15:49:01 +0300 |
commit | 25a5906613c4142919e8941dc985c14628db1896 (patch) | |
tree | 8d70cb03f2e511ac9e652aaf75d1a3493d81a696 /meta-ibm/meta-romulus/recipes-phosphor/sensors | |
parent | 74246de09de7414271434a2a5ee2269605fd0758 (diff) | |
download | openbmc-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')
-rw-r--r-- | meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend | 2 | ||||
-rw-r--r-- | meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend index 536d797fa6..1d12430219 100644 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend @@ -10,6 +10,8 @@ ITEMSFMT = "ahb/apb/{0}.conf" ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" +ITEMS += "iio-hwmon-battery.conf" + OCCS = " \ 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ 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 0000000000..c72b3b5105 --- /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 |