meta-q71l: phosphor: sensors: Add iio-hwmon config
Change-Id: I39148a5229dbe6d86f40a2c1e18f53f76b7a9880
Signed-off-by: Patrick Venture <venture@google.com>
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 fb58eeb..64cf9a5 100644
--- a/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
+++ b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
@@ -5,8 +5,9 @@
ITEMS = "pwm-tacho-controller@1e786000.conf"
TEMPS = "tmp75@4c tmp75@4e tmp75@4f"
-TEMPBASE = "ahb/apb/i2c@1e78a000/i2c-bus@80/{0}.conf"
+TEMPBASE = "ahb/apb/i2c/i2c-bus@80/{0}.conf"
ITEMS += "${@compose_list(d, 'TEMPBASE', 'TEMPS')}"
+ITEMS += "iio-hwmon.conf"
ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE_${PN}_append_quanta-q71l := " ${@compose_list(d, 'ENVS', 'ITEMS')}"
diff --git a/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon.conf b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon.conf
new file mode 100644
index 0000000..8ac1109
--- /dev/null
+++ b/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon.conf
@@ -0,0 +1,12 @@
+LABEL_in1=p3v3_scaled
+LABEL_in2=p5v_scaled
+LABEL_in3=p12v_aux_scaled
+LABEL_in4=p1v1_ssb
+LABEL_in5=pvcc_cpu0
+LABEL_in6=pvcc_cpu1
+LABEL_in7=p3v3_aux_scaled
+LABEL_in8=p5v_aux_scaled
+LABEL_in9=pvcc_cpu2
+LABEL_in10=pvcc_cpu3
+LABEL_in11=p12v_scaled
+LABEL_in12=p3v_vbat