summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-01 22:03:51 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-02-04 16:50:52 +0300
commit4fe4a5730f3b0d0e39f5dfef868edc591bc8bcde (patch)
tree10a8dda6dafc1c47c811e0f41ffa895a790d0f22 /meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon
parente368179c364e704ffe9fb11687bae4124ef96dfc (diff)
downloadopenbmc-4fe4a5730f3b0d0e39f5dfef868edc591bc8bcde.tar.xz
meta-quanta: q71l: add iio-hwmon-battery sensor
Add the iio-hwmon-battery sensor from device-tree to dbus. (From meta-quanta rev: 277985acdc85091dcad500e43042eeb68198d977) Change-Id: Ia0b4b1e68aa8c70760548545db6c55328548a6e9 Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon')
-rw-r--r--meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
new file mode 100644
index 0000000000..b33ef4d39a
--- /dev/null
+++ b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
@@ -0,0 +1,7 @@
+LABEL_in1=p3v_vbat
+GAIN_in1=3.000
+# The battery read is controlled by G5
+GPIOCHIP_in1=0
+GPIO_in1=53
+# Sleep in microseconds (stored into a uint64_t)
+INTERVAL=86400000000