diff options
Diffstat (limited to 'meta-ibm/recipes-phosphor/sensors')
12 files changed, 87 insertions, 1 deletions
diff --git a/meta-ibm/recipes-phosphor/sensors/dbus-sensors_%.bbappend b/meta-ibm/recipes-phosphor/sensors/dbus-sensors_%.bbappend new file mode 100644 index 000000000..3f2661301 --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/dbus-sensors_%.bbappend @@ -0,0 +1 @@ +PACKAGECONFIG_rainier = "hwmontempsensor" 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 000000000..33463645b --- /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 000000000..60dafc672 --- /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@380/pca9545riser@70/i2c@0/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545riser@70/i2c@0/tmp431@4c.conf new file mode 100644 index 000000000..1cad7deb8 --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545riser@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/pca9545riser@70/i2c@1/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545riser@70/i2c@1/tmp431@4c.conf new file mode 100644 index 000000000..cd28bd793 --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@380/pca9545riser@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@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 000000000..a66df302f --- /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 000000000..6d3f24a5e --- /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/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545riser@70/i2c@0/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545riser@70/i2c@0/tmp431@4c.conf new file mode 100644 index 000000000..d8f95b047 --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545riser@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/pca9545riser@70/i2c@1/tmp431@4c.conf b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545riser@70/i2c@1/tmp431@4c.conf new file mode 100644 index 000000000..1b075b30f --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon/mihawk/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@3c0/pca9545riser@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_%.bbappend b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend index 36029dd72..6cba8537d 100644 --- a/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -45,6 +45,14 @@ CHIPS_mihawk = " \ 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/pca9545riser@70/i2c@0/tmp431@4c \ + bus@1e78a000/i2c-bus@380/pca9545riser@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/pca9545riser@70/i2c@0/tmp431@4c \ + bus@1e78a000/i2c-bus@3c0/pca9545riser@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 \ @@ -104,7 +112,7 @@ SYSTEMD_SERVICE_${PN}_append_ibm-ac-server = " max31785-hwmon-helper@.service" do_install_append_ibm-ac-server() { install -d ${D}/${base_libdir}/udev/rules.d/ - install ${WORKDIR}/70-max31785-hwmon.rules ${D}/${base_libdir}/udev/rules.d/ + install -m 0644 ${WORKDIR}/70-max31785-hwmon.rules ${D}/${base_libdir}/udev/rules.d/ install -d ${D}${bindir} install -m 0755 ${WORKDIR}/start_max31785_hwmon.sh ${D}${bindir} diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json new file mode 100644 index 000000000..df51c66ab --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json @@ -0,0 +1,31 @@ +[ + { + "Desc": + { + "Name": "Ambient_Virtual_Temp", + "SensorType": "temperature" + }, + "Threshold" : + { + "CriticalHigh": 100, + "CriticalLow": 0, + "WarningHigh": 100, + "WarningLow": 0 + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "T0", + "Desc": + { + "Name": "Ambient_0_Temp", + "SensorType": "temperature" + } + } + ] + }, + "Expression": "T0" + } +] diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend new file mode 100644 index 000000000..53f8905be --- /dev/null +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend @@ -0,0 +1,6 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI += "file://virtual_sensor_config.json" + +do_install_append_rainier() { + install -m 0644 ${WORKDIR}/virtual_sensor_config.json ${D}${datadir}/phosphor-virtual-sensor/ +} |