meta-ibm: mihawk: Add 250 soc thermal sensor

Mihawk can use up to eight 250-soc.

Tested:
The user can see the temperature when using 250-soc.

(From meta-ibm rev: 74b7557b08ed2582861cd7da390d84371ec2ff86)

Change-Id: I17b0d969d0902f6470287c6164f542ad84412f7d
Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-ibm/recipes-kernel/linux/linux-aspeed/mihawk.cfg b/meta-ibm/recipes-kernel/linux/linux-aspeed/mihawk.cfg
index 63c39a9..e81c14a 100644
--- a/meta-ibm/recipes-kernel/linux/linux-aspeed/mihawk.cfg
+++ b/meta-ibm/recipes-kernel/linux/linux-aspeed/mihawk.cfg
@@ -1,5 +1,6 @@
 CONFIG_HWMON=y
 CONFIG_SENSORS_IIO_HWMON=y
+CONFIG_SENSORS_TMP401=y
 CONFIG_SENSORS_TMP421=y
 CONFIG_SENSORS_MAX31785=y
 CONFIG_SENSORS_UCD9000=y
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@70/i2c@0/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@70/i2c@0/tmp431@4c.conf
new file mode 100644
index 0000000..1cad7de
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@70/i2c@0/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc2"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@70/i2c@1/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@70/i2c@1/tmp431@4c.conf
new file mode 100644
index 0000000..cd28bd7
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@70/i2c@1/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc3"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@71/i2c@0/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@71/i2c@0/tmp431@4c.conf
new file mode 100644
index 0000000..3346364
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@71/i2c@0/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc0"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@71/i2c@1/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@71/i2c@1/tmp431@4c.conf
new file mode 100644
index 0000000..60dafc6
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545@71/i2c@1/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc1"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@0/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@0/tmp431@4c.conf
new file mode 100644
index 0000000..d8f95b0
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@0/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc6"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@1/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@1/tmp431@4c.conf
new file mode 100644
index 0000000..1b075b3
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@1/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc7"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@0/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@0/tmp431@4c.conf
new file mode 100644
index 0000000..a66df30
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@0/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc5"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@1/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@1/tmp431@4c.conf
new file mode 100644
index 0000000..6d3f24a
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@1/tmp431@4c.conf
@@ -0,0 +1,5 @@
+LABEL_temp2 = "250_soc4"
+WARNHI_temp2 = "95000"
+WARNLO_temp2 = "0"
+CRITHI_temp2 = "100000"
+CRITLO_temp2 = "0"
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
index 36029dd..e2e8402 100644
--- a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
@@ -45,6 +45,14 @@
                bus@1e78a000/i2c-bus@140/ir35221@72 \
                bus@1e78a000/i2c-bus@180/ir35221@70 \
                bus@1e78a000/i2c-bus@180/ir35221@72 \
+               bus@1e78a000/i2c-bus@380/pca9545@70/i2c@0/tmp431@4c \
+               bus@1e78a000/i2c-bus@380/pca9545@70/i2c@1/tmp431@4c \
+               bus@1e78a000/i2c-bus@380/pca9545@71/i2c@0/tmp431@4c \
+               bus@1e78a000/i2c-bus@380/pca9545@71/i2c@1/tmp431@4c \
+               bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@0/tmp431@4c \
+               bus@1e78a000/i2c-bus@3c0/pca9545@70/i2c@1/tmp431@4c \
+               bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@0/tmp431@4c \
+               bus@1e78a000/i2c-bus@3c0/pca9545@71/i2c@1/tmp431@4c \
                bus@1e78a000/i2c-bus@400/tmp275@48 \
                bus@1e78a000/i2c-bus@400/tmp275@49 \
                pwm-tacho-controller@1e786000 \