diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-06-19 01:34:17 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-06-19 01:34:17 +0300 |
commit | aea9e7cbf9bd7677228747a8e7bab4d22bc80103 (patch) | |
tree | 94f59c0b6566fbd9c459918177ceb49e53128aa7 /meta-inspur/meta-fp5280g2/recipes-phosphor | |
parent | 10bc2ef852277cf8e9858f75cea9f55b482bf85b (diff) | |
parent | f3b2f5e9e3e0fe093d5ab1e3dcdede0aa3000450 (diff) | |
download | openbmc-aea9e7cbf9bd7677228747a8e7bab4d22bc80103.tar.xz |
Merge branch 'master' of ssh://github.com/openbmc/openbmc into intel
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor')
14 files changed, 225 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/host/p9-host-start.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/host/p9-host-start.bbappend new file mode 100644 index 000000000..a2c59c5f8 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/host/p9-host-start.bbappend @@ -0,0 +1 @@ +RDEPENDS_${PN}_remove_fp5280g2 = "p9-vcs-workaround" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/images/obmc-phosphor-image.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/images/obmc-phosphor-image.bbappend new file mode 100644 index 000000000..a19860e12 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/images/obmc-phosphor-image.bbappend @@ -0,0 +1 @@ +OBMC_IMAGE_EXTRA_INSTALL_append_fp5280g2 = " mboxd liberation-fonts uart-render-controller" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/mboxd/mboxd_%.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/mboxd/mboxd_%.bbappend new file mode 100644 index 000000000..b6a7b0ca3 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/mboxd/mboxd_%.bbappend @@ -0,0 +1 @@ +MBOXD_FLASH_SIZE_fp5280g2 = "64M" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@0/tmp112@4a.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@0/tmp112@4a.conf new file mode 100644 index 000000000..3f0260bfe --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@0/tmp112@4a.conf @@ -0,0 +1,5 @@ +LABEL_temp1 = "psu_inlet" +WARNHI_temp1 = "63000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "65000" +CRITLO_temp1 = "0" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@1/tmp112@4a.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@1/tmp112@4a.conf new file mode 100644 index 000000000..7390e7747 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@1/tmp112@4a.conf @@ -0,0 +1,5 @@ +LABEL_temp1 = "ocp_zone" +WARNHI_temp1 = "63000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "65000" +CRITLO_temp1 = "0" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@2/tmp112@4a.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@2/tmp112@4a.conf new file mode 100644 index 000000000..642b3d83d --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@2/tmp112@4a.conf @@ -0,0 +1,5 @@ +LABEL_temp1 = "bmc_zone" +WARNHI_temp1 = "120000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "125000" +CRITLO_temp1 = "0" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/tmp112@48.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/tmp112@48.conf new file mode 100644 index 000000000..4189ab342 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/tmp112@48.conf @@ -0,0 +1,5 @@ +LABEL_temp1 = "inlet" +WARNHI_temp1 = "40000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "42000" +CRITLO_temp1 = "0" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/tmp112@49.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/tmp112@49.conf new file mode 100644 index 000000000..615a1cbc3 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@c0/tmp112@49.conf @@ -0,0 +1,5 @@ +LABEL_temp1 = "outlet" +WARNHI_temp1 = "68000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "70000" +CRITLO_temp1 = "0" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf new file mode 100644 index 000000000..8835411fb --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf @@ -0,0 +1,17 @@ +LABEL_fan1 = "fan0_0" +LABEL_fan2 = "fan0_1" +LABEL_fan3 = "fan1_0" +LABEL_fan4 = "fan1_1" +LABEL_fan5 = "fan2_0" +LABEL_fan6 = "fan2_1" +LABEL_fan7 = "fan3_0" +LABEL_fan8 = "fan3_1" + +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" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf new file mode 100644 index 000000000..0ef4a957b --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,9 @@ +LABEL_in1=p3v_bat +GAIN_in1=3.00 +MINVALUE_in1=2300 +MAXVALUE_in1=5500 +# The battery read is controlled by S5 +GPIOCHIP_in1=0 +GPIO_in1=149 +# Sleep in microseconds (stored into a uint64_t) +INTERVAL=86400000000 diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon.conf new file mode 100644 index 000000000..09a32d36a --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon.conf @@ -0,0 +1,109 @@ +LABEL_in1=P3V3 +GAIN_in1=2.47 +WARNHI_in1=3531 +WARNLO_in1=3069 +CRITHI_in1=3630 +CRITLO_in1=2970 +MINVALUE_in1=3135 +MAXVALUE_in1=3465 +LABEL_in2=P5V +GAIN_in2=4.30 +WARNHI_in2=5350 +WARNLO_in2=4650 +CRITHI_in2=5500 +CRITLO_in2=4500 +MINVALUE_in2=4750 +MAXVALUE_in2=5250 +LABEL_in3=P12V +GAIN_in3=9.22 +WARNHI_in3=12840 +WARNLO_in3=11160 +CRITHI_in3=13200 +CRITLO_in3=10800 +MINVALUE_in3=11400 +MAXVALUE_in3=12600 +LABEL_in4=PVDD_CPU0 +WARNHI_in4=1177 +WARNLO_in4=558 +CRITHI_in4=1210 +CRITLO_in4=540 +MINVALUE_in4=600 +MAXVALUE_in4=1100 +LABEL_in5=PVDD_CPU1 +WARNHI_in5=1177 +WARNLO_in5=558 +CRITHI_in5=1210 +CRITLO_in5=540 +MINVALUE_in5=600 +MAXVALUE_in5=1100 +LABEL_in6=PVCS_CPU0 +WARNHI_in6=1177 +WARNLO_in6=893 +CRITHI_in6=1210 +CRITLO_in6=864 +MINVALUE_in6=960 +MAXVALUE_in6=1100 +LABEL_in7=PVCS_CPU1 +WARNHI_in7=1177 +WARNLO_in7=893 +CRITHI_in7=1210 +CRITLO_in7=864 +MINVALUE_in7=960 +MAXVALUE_in7=1100 +LABEL_in8=PVDN_CPU0 +WARNHI_in8=1177 +WARNLO_in8=605 +CRITHI_in8=1210 +CRITLO_in8=585 +MINVALUE_in8=650 +MAXVALUE_in8=1100 +LABEL_in9=PVDN_CPU1 +WARNHI_in9=1177 +WARNLO_in9=605 +CRITHI_in9=1210 +CRITLO_in9=585 +MINVALUE_in9=650 +MAXVALUE_in9=1100 +LABEL_in10=PVIO_CPU0 +WARNHI_in10=1124 +WARNLO_in10=977 +CRITHI_in10=1155 +CRITLO_in10=945 +MINVALUE_in10=998 +MAXVALUE_in10=1103 +LABEL_in11=PVIO_CPU1 +WARNHI_in11=1124 +WARNLO_in11=977 +CRITHI_in11=1155 +CRITLO_in11=945 +MINVALUE_in11=998 +MAXVALUE_in11=1103 +LABEL_in12=PVDDQ_CPU0_CH01 +WARNHI_in12=1284 +WARNLO_in12=1116 +CRITHI_in12=1320 +CRITLO_in12=1080 +MINVALUE_in12=1140 +MAXVALUE_in12=1260 +LABEL_in13=PVDDQ_CPU0_CH67 +WARNHI_in13=1284 +WARNLO_in13=1116 +CRITHI_in13=1320 +CRITLO_in13=1080 +MINVALUE_in13=1140 +MAXVALUE_in13=1260 +LABEL_in14=PVDDQ_CPU1_CH01 +WARNHI_in14=1284 +WARNLO_in14=1116 +CRITHI_in14=1320 +CRITLO_in14=1080 +MINVALUE_in14=1140 +MAXVALUE_in14=1260 +LABEL_in15=PVDDQ_CPU1_CH67 +WARNHI_in15=1284 +WARNLO_in15=1116 +CRITHI_in15=1320 +CRITLO_in15=1080 +MINVALUE_in15=1140 +MAXVALUE_in15=1260 + diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend new file mode 100644 index 000000000..a2aeb2c6c --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +EXTRA_OECONF_append_fp5280g2= " --enable-negative-errno-on-fail" + +CHIPS = " \ + bus@1e78a000/i2c-bus@c0/tmp112@48 \ + bus@1e78a000/i2c-bus@c0/tmp112@49 \ + bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@0/tmp112@4a \ + bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@1/tmp112@4a \ + bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@2/tmp112@4a \ + pwm-tacho-controller@1e786000 \ + " +ITEMSFMT = "ahb/apb/{0}.conf" + +ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" +ITEMS += "iio-hwmon.conf iio-hwmon-battery.conf" + +ENVS = "obmc/hwmon/{0}" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}" diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json b/meta-inspur/meta-fp5280g2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json new file mode 100644 index 000000000..0809fe6d3 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json @@ -0,0 +1,42 @@ +{ + "gpio_configs": { + + "power_config": { + "power_good_in": "CPLD_BMC_SYS_PWROK", + "power_up_outs": [ + { "name": "BMC_CPLD_SOFTWARE_PG_N", "polarity": false}, + { "name": "BMC_CPLD_SYS_PWRON", "polarity": false} + ], + "reset_outs": [ + ] + } + }, + + "gpio_definitions": [ + { + "name": "BMC_CPLD_SOFTWARE_PG_N", + "pin": "J3", + "direction": "out" + }, + { + "name": "BMC_CPLD_SYS_PWRON", + "pin": "AA7", + "direction": "out" + }, + { + "name": "CPLD_BMC_SYS_PWROK", + "pin": "AA1", + "direction": "in" + }, + { + "name": "POWER_BUTTON", + "pin": "AA6", + "direction": "both" + }, + { + "name": "RESET_BUTTON", + "pin": "AB0", + "direction": "both" + } + ] +} diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend new file mode 100644 index 000000000..27e7cf9cf --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend_fp5280g2 := "${THISDIR}/${PN}:" |