swift: Add pcie temp sensor hwmon configs
Swift uses 2 TMP275s to monitor the PCIE inlet temp, one between
cards 0 and 1, and the other between cards 2 and 3. They are both
on I2C bus 12.
Tested: Built an image and checked rootfs for the config files.
(From meta-ibm rev: bd2a3a2a9b6bde8207f1d4f4a81ffab27f0b14b1)
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I51c449ad9c2a212693d28ed82e79f913bb096e29
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
index 039450e..c0f95f9 100644
--- a/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend
@@ -23,6 +23,10 @@
bus@1e78a000/i2c-bus@180/ir35221@71 \
bus@1e78a000/i2c-bus@380/tmp275@4a \
"
+CHIPS_append_swift = " \
+ bus@1e78a000/i2c-bus@440/tmp275@4a \
+ bus@1e78a000/i2c-bus@440/tmp275@48 \
+ "
ITEMSFMT = "ahb/apb/{0}.conf"
ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/swift-phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@440/tmp275@48.conf b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/swift-phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@440/tmp275@48.conf
new file mode 100644
index 0000000..a96bb93
--- /dev/null
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/swift-phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@440/tmp275@48.conf
@@ -0,0 +1,5 @@
+LABEL_temp1 = "pcie0_1"
+WARNHI_temp1 = "60000"
+WARNLO_temp1 = "0"
+CRITHI_temp1 = "70000"
+CRITLO_temp1 = "0"
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/swift-phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@440/tmp275@4a.conf b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/swift-phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@440/tmp275@4a.conf
new file mode 100644
index 0000000..188898b
--- /dev/null
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/sensors/swift-phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@440/tmp275@4a.conf
@@ -0,0 +1,5 @@
+LABEL_temp1 = "pcie2_3"
+WARNHI_temp1 = "60000"
+WARNLO_temp1 = "0"
+CRITHI_temp1 = "70000"
+CRITLO_temp1 = "0"