meta-ampere: mtjade: Add on-board sensors

Support for Mt. Jade on-board sensors including fans, battery, PSUs,
voltage and temperature sensors.

Tested: check sensor reading from WebUI. All on-board sensors are
displayed with reasonable values.

Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I60abc8ae946ef95c09903ebc5d95d15db6161c1a
diff --git a/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf b/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf
new file mode 100644
index 0000000..50a45e3
--- /dev/null
+++ b/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-hwmon/obmc/mtjade/hwmon/iio-hwmon-battery.conf
@@ -0,0 +1,13 @@
+LABEL_in1=VBAT_RTC
+GAIN_in1=3
+CRITHI_in1=3564
+CRITLO_in1=2106
+WARNHI_in1=3528
+WARNLO_in1=2142
+
+# GPIOS4 needs to be pulled high for battery voltage reading
+GPIOCHIP_in1=0
+GPIO_in1=148
+
+# Read it every day so it does not impact battery life
+INTERVAL=86400000000