From d12e42ee4a02dc2a435678d919cebfd6661cd9b8 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Tue, 2 Oct 2018 13:50:46 -0700 Subject: meta-ibm: romulus: rename phosphor-hwmon Rename phosphor-hwmon%.bbappend to phosphor-hwmon_%.bbappend. Tested: Built romulus and verified hwmon confs were in rootfs. (From meta-ibm rev: 1b03bd798e93438e60d16ea7ada0917a658f798a) Change-Id: Ic248bd7a7e17da96e813c665f76ed1767f792d9f Signed-off-by: Patrick Venture Signed-off-by: Brad Bishop --- .../sensors/phosphor-hwmon%.bbappend | 25 -------- .../apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf | 17 ------ .../ahb/apb/pwm-tacho-controller@1e786000.conf | 8 --- .../00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf | 67 ---------------------- .../01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf | 67 ---------------------- .../obmc/hwmon/iio-hwmon-battery.conf | 9 --- .../apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf | 17 ++++++ .../ahb/apb/pwm-tacho-controller@1e786000.conf | 8 +++ .../00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf | 67 ++++++++++++++++++++++ .../01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf | 67 ++++++++++++++++++++++ .../obmc/hwmon/iio-hwmon-battery.conf | 9 +++ .../sensors/phosphor-hwmon_%.bbappend | 25 ++++++++ 12 files changed, 193 insertions(+), 193 deletions(-) delete mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend delete mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf delete mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf delete mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf delete mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf delete mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf create mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf create mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf create mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf create mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf create mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf create mode 100644 meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend (limited to 'meta-ibm') diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend deleted file mode 100644 index 1d1243021..000000000 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend +++ /dev/null @@ -1,25 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - -EXTRA_OECONF_append_romulus = " --enable-negative-errno-on-fail" - -CHIPS = " \ - i2c@1e78a000/i2c-bus@440/w83773g@4c \ - pwm-tacho-controller@1e786000 \ - " -ITEMSFMT = "ahb/apb/{0}.conf" - -ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" - -ITEMS += "iio-hwmon-battery.conf" - -OCCS = " \ - 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ - 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ - " - -OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" -OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}" - -ENVS = "obmc/hwmon/{0}" -SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}" -SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'OCCITEMS')}" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf deleted file mode 100644 index 86a802698..000000000 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf +++ /dev/null @@ -1,17 +0,0 @@ -LABEL_temp1 = "outlet" -WARNHI_temp1 = "60000" -WARNLO_temp1 = "0" -CRITHI_temp1 = "70000" -CRITLO_temp1 = "0" - -LABEL_temp2 = "inlet_cpu" -WARNHI_temp2 = "60000" -WARNLO_temp2 = "0" -CRITHI_temp2 = "70000" -CRITLO_temp2 = "0" - -LABEL_temp3 = "inlet_io" -WARNHI_temp3 = "60000" -WARNLO_temp3 = "0" -CRITHI_temp3 = "70000" -CRITLO_temp3 = "0" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf deleted file mode 100644 index 374115ca5..000000000 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf +++ /dev/null @@ -1,8 +0,0 @@ -# Romulus has 7 fan ports but only 3 are used -LABEL_fan9 = "fan0" -LABEL_fan11 = "fan1" -LABEL_fan13 = "fan2" - -PWM_TARGET_fan9 = "1" -PWM_TARGET_fan11 = "2" -PWM_TARGET_fan13 = "1" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf deleted file mode 100644 index 792ae092c..000000000 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf +++ /dev/null @@ -1,67 +0,0 @@ -MODE_temp1 = "label" -MODE_temp2 = "label" -MODE_temp3 = "label" -MODE_temp4 = "label" -MODE_temp5 = "label" -MODE_temp6 = "label" -MODE_temp7 = "label" -MODE_temp8 = "label" -MODE_temp9 = "label" -MODE_temp10 = "label" -MODE_temp11 = "label" -MODE_temp12 = "label" -MODE_temp13 = "label" -MODE_temp14 = "label" -MODE_temp15 = "label" -MODE_temp16 = "label" -MODE_temp17 = "label" -MODE_temp18 = "label" -MODE_temp19 = "label" -MODE_temp20 = "label" -MODE_temp21 = "label" -MODE_temp22 = "label" -MODE_temp23 = "label" -MODE_temp24 = "label" -MODE_temp25 = "label" -MODE_temp26 = "label" -MODE_temp27 = "label" -MODE_temp28 = "label" -MODE_temp29 = "label" -MODE_temp30 = "label" -MODE_temp31 = "label" -MODE_temp32 = "label" -LABEL_temp91 = "p0_core0_temp" -LABEL_temp92 = "p0_core1_temp" -LABEL_temp93 = "p0_core2_temp" -LABEL_temp94 = "p0_core3_temp" -LABEL_temp95 = "p0_core4_temp" -LABEL_temp96 = "p0_core5_temp" -LABEL_temp97 = "p0_core6_temp" -LABEL_temp98 = "p0_core7_temp" -LABEL_temp99 = "p0_core8_temp" -LABEL_temp100 = "p0_core9_temp" -LABEL_temp101 = "p0_core10_temp" -LABEL_temp102 = "p0_core11_temp" -LABEL_temp103 = "p0_core12_temp" -LABEL_temp104 = "p0_core13_temp" -LABEL_temp105 = "p0_core14_temp" -LABEL_temp106 = "p0_core15_temp" -LABEL_temp107 = "p0_core16_temp" -LABEL_temp108 = "p0_core17_temp" -LABEL_temp109 = "p0_core18_temp" -LABEL_temp110 = "p0_core19_temp" -LABEL_temp111 = "p0_core20_temp" -LABEL_temp112 = "p0_core21_temp" -LABEL_temp113 = "p0_core22_temp" -LABEL_temp114 = "p0_core23_temp" -LABEL_temp27 = "dimm0_temp" -LABEL_temp28 = "dimm1_temp" -LABEL_temp29 = "dimm2_temp" -LABEL_temp30 = "dimm3_temp" -LABEL_temp31 = "dimm4_temp" -LABEL_temp32 = "dimm5_temp" -LABEL_temp33 = "dimm6_temp" -LABEL_temp34 = "dimm7_temp" -LABEL_power2 = "p0_power" -LABEL_power3 = "p0_vdd_power" -LABEL_power4 = "p0_vdn_power" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf deleted file mode 100644 index 383c70dac..000000000 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf +++ /dev/null @@ -1,67 +0,0 @@ -MODE_temp1 = "label" -MODE_temp2 = "label" -MODE_temp3 = "label" -MODE_temp4 = "label" -MODE_temp5 = "label" -MODE_temp6 = "label" -MODE_temp7 = "label" -MODE_temp8 = "label" -MODE_temp9 = "label" -MODE_temp10 = "label" -MODE_temp11 = "label" -MODE_temp12 = "label" -MODE_temp13 = "label" -MODE_temp14 = "label" -MODE_temp15 = "label" -MODE_temp16 = "label" -MODE_temp17 = "label" -MODE_temp18 = "label" -MODE_temp19 = "label" -MODE_temp20 = "label" -MODE_temp21 = "label" -MODE_temp22 = "label" -MODE_temp23 = "label" -MODE_temp24 = "label" -MODE_temp25 = "label" -MODE_temp26 = "label" -MODE_temp27 = "label" -MODE_temp28 = "label" -MODE_temp29 = "label" -MODE_temp30 = "label" -MODE_temp31 = "label" -MODE_temp32 = "label" -LABEL_temp115 = "p1_core0_temp" -LABEL_temp116 = "p1_core1_temp" -LABEL_temp117 = "p1_core2_temp" -LABEL_temp118 = "p1_core3_temp" -LABEL_temp119 = "p1_core4_temp" -LABEL_temp120 = "p1_core5_temp" -LABEL_temp121 = "p1_core6_temp" -LABEL_temp122 = "p1_core7_temp" -LABEL_temp123 = "p1_core8_temp" -LABEL_temp124 = "p1_core9_temp" -LABEL_temp125 = "p1_core10_temp" -LABEL_temp126 = "p1_core11_temp" -LABEL_temp127 = "p1_core12_temp" -LABEL_temp128 = "p1_core13_temp" -LABEL_temp129 = "p1_core14_temp" -LABEL_temp130 = "p1_core15_temp" -LABEL_temp131 = "p1_core16_temp" -LABEL_temp132 = "p1_core17_temp" -LABEL_temp133 = "p1_core18_temp" -LABEL_temp134 = "p1_core19_temp" -LABEL_temp135 = "p1_core20_temp" -LABEL_temp136 = "p1_core21_temp" -LABEL_temp137 = "p1_core22_temp" -LABEL_temp138 = "p1_core23_temp" -LABEL_temp35 = "dimm8_temp" -LABEL_temp36 = "dimm9_temp" -LABEL_temp37 = "dimm10_temp" -LABEL_temp38 = "dimm11_temp" -LABEL_temp39 = "dimm12_temp" -LABEL_temp40 = "dimm13_temp" -LABEL_temp41 = "dimm14_temp" -LABEL_temp42 = "dimm15_temp" -LABEL_power2 = "p1_power" -LABEL_power3 = "p1_vdd_power" -LABEL_power4 = "p1_vdn_power" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf deleted file mode 100644 index 61abf6e4c..000000000 --- a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf +++ /dev/null @@ -1,9 +0,0 @@ -LABEL_in1=vbat -GAIN_in1=2.25 - -# GPIOR3 needs to be pulled high for battery voltage reading -GPIOCHIP_in1=0 -GPIO_in1=139 - -# Read it every day so it does not impact battery life -INTERVAL=86400000000 diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf new file mode 100644 index 000000000..86a802698 --- /dev/null +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf @@ -0,0 +1,17 @@ +LABEL_temp1 = "outlet" +WARNHI_temp1 = "60000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "70000" +CRITLO_temp1 = "0" + +LABEL_temp2 = "inlet_cpu" +WARNHI_temp2 = "60000" +WARNLO_temp2 = "0" +CRITHI_temp2 = "70000" +CRITLO_temp2 = "0" + +LABEL_temp3 = "inlet_io" +WARNHI_temp3 = "60000" +WARNLO_temp3 = "0" +CRITHI_temp3 = "70000" +CRITLO_temp3 = "0" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf new file mode 100644 index 000000000..374115ca5 --- /dev/null +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf @@ -0,0 +1,8 @@ +# Romulus has 7 fan ports but only 3 are used +LABEL_fan9 = "fan0" +LABEL_fan11 = "fan1" +LABEL_fan13 = "fan2" + +PWM_TARGET_fan9 = "1" +PWM_TARGET_fan11 = "2" +PWM_TARGET_fan13 = "1" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf new file mode 100644 index 000000000..792ae092c --- /dev/null +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--06/sbefifo1-dev0/occ-hwmon.1.conf @@ -0,0 +1,67 @@ +MODE_temp1 = "label" +MODE_temp2 = "label" +MODE_temp3 = "label" +MODE_temp4 = "label" +MODE_temp5 = "label" +MODE_temp6 = "label" +MODE_temp7 = "label" +MODE_temp8 = "label" +MODE_temp9 = "label" +MODE_temp10 = "label" +MODE_temp11 = "label" +MODE_temp12 = "label" +MODE_temp13 = "label" +MODE_temp14 = "label" +MODE_temp15 = "label" +MODE_temp16 = "label" +MODE_temp17 = "label" +MODE_temp18 = "label" +MODE_temp19 = "label" +MODE_temp20 = "label" +MODE_temp21 = "label" +MODE_temp22 = "label" +MODE_temp23 = "label" +MODE_temp24 = "label" +MODE_temp25 = "label" +MODE_temp26 = "label" +MODE_temp27 = "label" +MODE_temp28 = "label" +MODE_temp29 = "label" +MODE_temp30 = "label" +MODE_temp31 = "label" +MODE_temp32 = "label" +LABEL_temp91 = "p0_core0_temp" +LABEL_temp92 = "p0_core1_temp" +LABEL_temp93 = "p0_core2_temp" +LABEL_temp94 = "p0_core3_temp" +LABEL_temp95 = "p0_core4_temp" +LABEL_temp96 = "p0_core5_temp" +LABEL_temp97 = "p0_core6_temp" +LABEL_temp98 = "p0_core7_temp" +LABEL_temp99 = "p0_core8_temp" +LABEL_temp100 = "p0_core9_temp" +LABEL_temp101 = "p0_core10_temp" +LABEL_temp102 = "p0_core11_temp" +LABEL_temp103 = "p0_core12_temp" +LABEL_temp104 = "p0_core13_temp" +LABEL_temp105 = "p0_core14_temp" +LABEL_temp106 = "p0_core15_temp" +LABEL_temp107 = "p0_core16_temp" +LABEL_temp108 = "p0_core17_temp" +LABEL_temp109 = "p0_core18_temp" +LABEL_temp110 = "p0_core19_temp" +LABEL_temp111 = "p0_core20_temp" +LABEL_temp112 = "p0_core21_temp" +LABEL_temp113 = "p0_core22_temp" +LABEL_temp114 = "p0_core23_temp" +LABEL_temp27 = "dimm0_temp" +LABEL_temp28 = "dimm1_temp" +LABEL_temp29 = "dimm2_temp" +LABEL_temp30 = "dimm3_temp" +LABEL_temp31 = "dimm4_temp" +LABEL_temp32 = "dimm5_temp" +LABEL_temp33 = "dimm6_temp" +LABEL_temp34 = "dimm7_temp" +LABEL_power2 = "p0_power" +LABEL_power3 = "p0_vdd_power" +LABEL_power4 = "p0_vdn_power" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf new file mode 100644 index 000000000..383c70dac --- /dev/null +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/devices/platform/gpio-fsi/fsi0/slave@00--00/00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2.conf @@ -0,0 +1,67 @@ +MODE_temp1 = "label" +MODE_temp2 = "label" +MODE_temp3 = "label" +MODE_temp4 = "label" +MODE_temp5 = "label" +MODE_temp6 = "label" +MODE_temp7 = "label" +MODE_temp8 = "label" +MODE_temp9 = "label" +MODE_temp10 = "label" +MODE_temp11 = "label" +MODE_temp12 = "label" +MODE_temp13 = "label" +MODE_temp14 = "label" +MODE_temp15 = "label" +MODE_temp16 = "label" +MODE_temp17 = "label" +MODE_temp18 = "label" +MODE_temp19 = "label" +MODE_temp20 = "label" +MODE_temp21 = "label" +MODE_temp22 = "label" +MODE_temp23 = "label" +MODE_temp24 = "label" +MODE_temp25 = "label" +MODE_temp26 = "label" +MODE_temp27 = "label" +MODE_temp28 = "label" +MODE_temp29 = "label" +MODE_temp30 = "label" +MODE_temp31 = "label" +MODE_temp32 = "label" +LABEL_temp115 = "p1_core0_temp" +LABEL_temp116 = "p1_core1_temp" +LABEL_temp117 = "p1_core2_temp" +LABEL_temp118 = "p1_core3_temp" +LABEL_temp119 = "p1_core4_temp" +LABEL_temp120 = "p1_core5_temp" +LABEL_temp121 = "p1_core6_temp" +LABEL_temp122 = "p1_core7_temp" +LABEL_temp123 = "p1_core8_temp" +LABEL_temp124 = "p1_core9_temp" +LABEL_temp125 = "p1_core10_temp" +LABEL_temp126 = "p1_core11_temp" +LABEL_temp127 = "p1_core12_temp" +LABEL_temp128 = "p1_core13_temp" +LABEL_temp129 = "p1_core14_temp" +LABEL_temp130 = "p1_core15_temp" +LABEL_temp131 = "p1_core16_temp" +LABEL_temp132 = "p1_core17_temp" +LABEL_temp133 = "p1_core18_temp" +LABEL_temp134 = "p1_core19_temp" +LABEL_temp135 = "p1_core20_temp" +LABEL_temp136 = "p1_core21_temp" +LABEL_temp137 = "p1_core22_temp" +LABEL_temp138 = "p1_core23_temp" +LABEL_temp35 = "dimm8_temp" +LABEL_temp36 = "dimm9_temp" +LABEL_temp37 = "dimm10_temp" +LABEL_temp38 = "dimm11_temp" +LABEL_temp39 = "dimm12_temp" +LABEL_temp40 = "dimm13_temp" +LABEL_temp41 = "dimm14_temp" +LABEL_temp42 = "dimm15_temp" +LABEL_power2 = "p1_power" +LABEL_power3 = "p1_vdd_power" +LABEL_power4 = "p1_vdn_power" diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf new file mode 100644 index 000000000..61abf6e4c --- /dev/null +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,9 @@ +LABEL_in1=vbat +GAIN_in1=2.25 + +# GPIOR3 needs to be pulled high for battery voltage reading +GPIOCHIP_in1=0 +GPIO_in1=139 + +# Read it every day so it does not impact battery life +INTERVAL=86400000000 diff --git a/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend new file mode 100644 index 000000000..1d1243021 --- /dev/null +++ b/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -0,0 +1,25 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +EXTRA_OECONF_append_romulus = " --enable-negative-errno-on-fail" + +CHIPS = " \ + i2c@1e78a000/i2c-bus@440/w83773g@4c \ + pwm-tacho-controller@1e786000 \ + " +ITEMSFMT = "ahb/apb/{0}.conf" + +ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" + +ITEMS += "iio-hwmon-battery.conf" + +OCCS = " \ + 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ + 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ + " + +OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" +OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}" + +ENVS = "obmc/hwmon/{0}" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'OCCITEMS')}" -- cgit v1.2.3