summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2017-03-22 10:38:03 -0700
committerPatrick Williams <patrick@stwcx.xyz>2017-05-24 12:26:21 +0000
commit532779589a09ae9bb6b53875efc7e6b9314b94da (patch)
tree6633d34f60bea7ecc10e8b58286aad560c3e4c6b
parentf7de6310d5cf4d3e4c70cba4e13d53965e8a07f9 (diff)
downloadtalos-openbmc-532779589a09ae9bb6b53875efc7e6b9314b94da.tar.gz
talos-openbmc-532779589a09ae9bb6b53875efc7e6b9314b94da.zip
quanta-q71l: add phosphor-hwmon configs
This provides configurations for phosphor-hwmon to provide fans and temperature sensors. They also need to be in the devicetree, but this is where they would be if they were. Change-Id: I33911818d0a315dc156bff28c70ec3e91403f0bb Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%.bbappend12
-rw-r--r--meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4c.conf1
-rw-r--r--meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4e.conf1
-rw-r--r--meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4f.conf1
-rw-r--r--meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/pwm-tacho-controller@1e786000.conf10
5 files changed, 25 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%.bbappend b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
new file mode 100644
index 000000000..28357d18c
--- /dev/null
+++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
@@ -0,0 +1,12 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+# More conf files can be added as sensors are added.
+
+ITEMS = "pwm-tacho-controller@1e786000.conf"
+
+TEMPS = "tmp75@4c tmp75@4e tmp75@4f"
+TEMPBASE = "apb/i2c@1e78a000/i2c-bus@80/{0}.conf"
+ITEMS += "${@compose_list(d, 'TEMPBASE', 'TEMPS')}"
+
+ENVS = "obmc/hwmon/ahb/{0}"
+SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}"
diff --git a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4c.conf b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4c.conf
new file mode 100644
index 000000000..4ac0ebfc9
--- /dev/null
+++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4c.conf
@@ -0,0 +1 @@
+LABEL_temp1=temp2_inlet
diff --git a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4e.conf b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4e.conf
new file mode 100644
index 000000000..504e4cfeb
--- /dev/null
+++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4e.conf
@@ -0,0 +1 @@
+LABEL_temp1=temp3
diff --git a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4f.conf b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4f.conf
new file mode 100644
index 000000000..10ec2653b
--- /dev/null
+++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@80/tmp75@4f.conf
@@ -0,0 +1 @@
+LABEL_temp1=temp1
diff --git a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/pwm-tacho-controller@1e786000.conf b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/pwm-tacho-controller@1e786000.conf
new file mode 100644
index 000000000..286c0f2a3
--- /dev/null
+++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/pwm-tacho-controller@1e786000.conf
@@ -0,0 +1,10 @@
+# The labels are +1 to match the silkscreen.
+LABEL_fan0=fan1
+LABEL_fan1=fan2
+LABEL_fan2=fan3
+LABEL_fan3=fan4
+LABEL_fan4=fan5
+LABEL_fan5=fan6
+LABEL_fan6=fan7
+LABEL_fan7=fan8
+
OpenPOWER on IntegriCloud