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>
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 0000000..b33ef4d
--- /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
diff --git a/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
index 8632f97..6c36686 100644
--- a/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
+++ b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
@@ -14,6 +14,7 @@
 Q71L_ITEMS += "${@compose_list(d, 'Q71L_TEMPBASE', 'Q71L_TEMPS')}"
 
 Q71L_ITEMS += "iio-hwmon.conf"
+Q71L_ITEMS += "iio-hwmon-battery.conf"
 
 ENVS = "obmc/hwmon/{0}"
 SYSTEMD_ENVIRONMENT_FILE_${PN}_append_quanta-q71l := " ${@compose_list(d, 'ENVS', 'Q71L_ITEMS')}"