diff options
author | Lisa Liu <liuyj19@lenovo.com> | 2019-06-25 12:47:59 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-07-09 14:34:51 +0300 |
commit | f0fef6020b42c72e9eb3e4c1c6fc1205a0272021 (patch) | |
tree | 39fccc0829c48d7205b4a44a72b14eefb8aca78b /meta-lenovo/meta-hr855xg2 | |
parent | 6d5764b338d98771cf2abc24ce528b7c047ab903 (diff) | |
download | openbmc-f0fef6020b42c72e9eb3e4c1c6fc1205a0272021.tar.xz |
meta-lenovo: hr855xg2: Add sensor configs
temperature sensors ambient and outlet of tmp75, adc voltage sensors
and fan-tach sensors.
Tested: Build it in hr855xg2 image, load on hr855xg2 platform,
ensure it could show these sensors correctly with command:
ipmitool sdr list.
(From meta-lenovo rev: 3293e0f1dc327000f173ec59beaea5d5fe266d0a)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Iee53d6dcf05e534f6507775c02b2d631da06d93a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-lenovo/meta-hr855xg2')
6 files changed, 111 insertions, 0 deletions
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@1c0/tmp75@49.conf b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@1c0/tmp75@49.conf new file mode 100644 index 0000000000..1dcd8cbfbd --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@1c0/tmp75@49.conf @@ -0,0 +1,8 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +LABEL_temp1 = "Outlet_Temp" +WARNHI_temp1 = "60000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "70000" +CRITLO_temp1 = "0" diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@1c0/tmp75@4d.conf b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@1c0/tmp75@4d.conf new file mode 100644 index 0000000000..31e44e6dbc --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@1c0/tmp75@4d.conf @@ -0,0 +1,9 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + + +LABEL_temp1 = "Ambient_Temp" +WARNHI_temp1 = "35000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "37000" +CRITLO_temp1 = "0" diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf new file mode 100644 index 0000000000..e84c0162a2 --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf @@ -0,0 +1,40 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + + +# hr855xg2 has 14 fan ports +LABEL_fan1 = "FAN0_Speed" +LABEL_fan2 = "FAN1_Speed" +LABEL_fan3 = "FAN2_Speed" +LABEL_fan4 = "FAN3_Speed" +LABEL_fan5 = "FAN4_Speed" +LABEL_fan6 = "FAN5_Speed" +LABEL_fan7 = "FAN6_Speed" +LABEL_fan8 = "FAN7_Speed" +LABEL_fan9 = "FAN8_Speed" +LABEL_fan10 = "FAN9_Speed" +LABEL_fan11 = "FAN10_Speed" +LABEL_fan12 = "FAN11_Speed" +LABEL_fan13 = "FAN12_Speed" +LABEL_fan14 = "FAN13_Speed" +LABEL_fan15 = "PDB_FAN0_Speed" +LABEL_fan16 = "PDB_FAN1_Speed" +LABEL_fan16 = "PDB_FAN2_Speed" + +PWM_TARGET_fan1 = "1" +PWM_TARGET_fan2 = "1" +PWM_TARGET_fan3 = "2" +PWM_TARGET_fan4 = "2" +PWM_TARGET_fan5 = "3" +PWM_TARGET_fan6 = "3" +PWM_TARGET_fan7 = "4" +PWM_TARGET_fan8 = "4" +PWM_TARGET_fan9 = "5" +PWM_TARGET_fan10 = "5" +PWM_TARGET_fan11 = "6" +PWM_TARGET_fan12 = "6" +PWM_TARGET_fan13 = "7" +PWM_TARGET_fan14 = "7" +PWM_TARGET_fan15 = "8" +PWM_TARGET_fan16 = "8" + diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf new file mode 100644 index 0000000000..8c69aa5d1e --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,12 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +LABEL_in1=P3V_BAT +GAIN_in1=2.00 + +# GPIOS4 needs to be pulled high for battery voltage reading +GPIOCHIP_in1=0 +GPIO_in1=148 + +# Read it every day so it does not impact battery life +INTERVAL=10 diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon.conf b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon.conf new file mode 100644 index 0000000000..f96313837d --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon.conf @@ -0,0 +1,27 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +LABEL_in1=P12V_AUX_1 +GAIN_in1=8.90 +LABEL_in2=P5V_AUX +GAIN_in2=3.68 +LABEL_in3=P3V3_AUX +GAIN_in3=2.435 +LABEL_in4=P1V8_PCH_AUX +GAIN_in4=1.50 +LABEL_in5=PVNN_PCH_AUX +LABEL_in6=P1V05_PCH_AUX +LABEL_in7=P1V2_AUX +LABEL_in8=P1V15_BMC_AUX +LABEL_in9=P12V_AUX_2 +GAIN_in9=8.90 +LABEL_in10=PVCCIO_CPU1 +LABEL_in11=P12V_AUX_3 +GAIN_in11=8.90 +LABEL_in12=PVDDQ_CPU1 +LABEL_in13=P12V +GAIN_in13=8.90 +LABEL_in14=P5V +GAIN_in14=3.68 +LABEL_in15=P3V3 +GAIN_in15=2.435 diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend new file mode 100644 index 0000000000..9a26ca04e1 --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -0,0 +1,15 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +FILESEXTRAPATHS_prepend_hr855xg2 := "${THISDIR}/${PN}:" + +CHIPS = " bus@1e78a000/i2c-bus@1c0/tmp75@49 bus@1e78a000/i2c-bus@1c0/tmp75@4d pwm-tacho-controller@1e786000 " +ITEMSFMT = "ahb/apb/{0}.conf" + +HR855XG2_ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" +HR855XG2_ITEMS += "iio-hwmon.conf" + +HR855XG2_ITEMS += "iio-hwmon-battery.conf" + +ENVS = "obmc/hwmon/{0}" +SYSTEMD_ENVIRONMENT_FILE_${PN}_append_hr855xg2 := "${@compose_list(d, 'ENVS', 'HR855XG2_ITEMS')}" |