configurations: yosemite4: Support third sources Fan Board
To add third sources fan board config.
Test Case: Sensor config and sensors can be loaded and read.
Change-Id: Ia096092a2b5e376d2a3c0a22c08702346850e7fa
Signed-off-by: Ian Chien <ianchien.wiwynn@gmail.com>
diff --git a/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json b/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json
new file mode 100644
index 0000000..d58cac9
--- /dev/null
+++ b/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json
@@ -0,0 +1,706 @@
+{
+ "Exposes": [
+ {
+ "Address": "0x1f",
+ "Bus": "$bus",
+ "Labels": [
+ "in0",
+ "in1",
+ "in2",
+ "in3",
+ "in4",
+ "in5",
+ "in6",
+ "in7"
+ ],
+ "Name": "FANBOARD$bus % 30 ADC",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Label": "in0",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in0",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.156
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in0",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.058
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.156
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.058
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in2",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in2",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.156
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in2",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.058
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in3",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in3",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.156
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in3",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.058
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in4",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in4",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.156
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in4",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.058
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in5",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in5",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.156
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in5",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 2.058
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in6",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 60
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in6",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 53.28
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in6",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 52.8
+ },
+ {
+ "Direction": "less than",
+ "Label": "in6",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 43.2
+ },
+ {
+ "Direction": "less than",
+ "Label": "in6",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 42.72
+ },
+ {
+ "Direction": "less than",
+ "Label": "in6",
+ "Name": "lower non recoverable",
+ "Severity": 4,
+ "Value": 40
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in7",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 3.83
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in7",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 3.432
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in7",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 3.399
+ },
+ {
+ "Direction": "less than",
+ "Label": "in7",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 3.201
+ },
+ {
+ "Direction": "less than",
+ "Label": "in7",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 3.168
+ },
+ {
+ "Direction": "less than",
+ "Label": "in7",
+ "Name": "lower non recoverable",
+ "Severity": 4,
+ "Value": 2.64
+ }
+ ],
+ "Type": "ADC128D818",
+ "in0_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 8 CURR_A",
+ "in0_Scale": 240,
+ "in1_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 4 CURR_A",
+ "in1_Scale": 240,
+ "in2_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 0 CURR_A",
+ "in2_Scale": 240,
+ "in3_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 9 CURR_A",
+ "in3_Scale": 240,
+ "in4_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 5 CURR_A",
+ "in4_Scale": 240,
+ "in5_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 1 CURR_A",
+ "in5_Scale": 240,
+ "in6_Name": "FANBOARD$bus % 30 ADC_48V_AUX_VOLT_V",
+ "in6_Scale": 31.9458,
+ "in7_Name": "FANBOARD$bus % 30 ADC_3V3_STBY_VOLT_V",
+ "in7_Scale": 500
+ },
+ {
+ "Address": "$address",
+ "Bus": "$bus",
+ "Name": "Fan Board $bus % 30 FRU",
+ "Type": "EEPROM"
+ },
+ {
+ "Address": "0x20",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 TACH_IL",
+ "Pwm": 2,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 PWM",
+ "Tachs": [
+ 3
+ ]
+ },
+ "Index": 3,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 TACH_IL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 17380
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 13140
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x20",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 TACH_OL",
+ "Pwm": 2,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 PWM",
+ "Tachs": [
+ 10
+ ]
+ },
+ "Index": 10,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 0 TACH_OL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 15950
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 11970
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x2f",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 1 TACH_IL",
+ "Pwm": 2,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 1 PWM",
+ "Tachs": [
+ 3
+ ]
+ },
+ "Index": 3,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 1 TACH_IL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 17380
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 13140
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x2f",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 1 TACH_OL",
+ "Pwm": 2,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 1 PWM",
+ "Tachs": [
+ 10
+ ]
+ },
+ "Index": 10,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 1 TACH_OL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 15950
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 11970
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x20",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 4 TACH_IL",
+ "Pwm": 1,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 4 PWM",
+ "Tachs": [
+ 2
+ ]
+ },
+ "Index": 2,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 4 TACH_IL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 17380
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 13140
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x20",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 4 TACH_OL",
+ "Pwm": 1,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 4 PWM",
+ "Tachs": [
+ 9
+ ]
+ },
+ "Index": 9,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 4 TACH_OL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 15950
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 11970
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x2f",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 5 TACH_IL",
+ "Pwm": 1,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 5 PWM",
+ "Tachs": [
+ 2
+ ]
+ },
+ "Index": 2,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 5 TACH_IL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 17380
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 13140
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x2f",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 5 TACH_OL",
+ "Pwm": 1,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 5 PWM",
+ "Tachs": [
+ 9
+ ]
+ },
+ "Index": 9,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 5 TACH_OL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 15950
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 11970
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x20",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 8 TACH_IL",
+ "Pwm": 0,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 8 PWM",
+ "Tachs": [
+ 0
+ ]
+ },
+ "Index": 0,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 8 TACH_IL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 17380
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 13140
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x20",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 8 TACH_OL",
+ "Pwm": 0,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 8 PWM",
+ "Tachs": [
+ 1
+ ]
+ },
+ "Index": 1,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 8 TACH_OL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 15950
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 11970
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x2f",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 9 TACH_IL",
+ "Pwm": 0,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 9 PWM",
+ "Tachs": [
+ 0
+ ]
+ },
+ "Index": 0,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 9 TACH_IL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 17380
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 13140
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ },
+ {
+ "Address": "0x2f",
+ "Bus": "$bus",
+ "Connector": {
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 9 TACH_OL",
+ "Pwm": 0,
+ "PwmName": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 9 PWM",
+ "Tachs": [
+ 1
+ ]
+ },
+ "Index": 1,
+ "Name": "FANBOARD$bus % 30 FAN$bus % 30 * 2 + 9 TACH_OL",
+ "PowerState": "Always",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 15950
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 11970
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1000
+ }
+ ],
+ "Type": "I2CFan"
+ }
+ ],
+ "Name": "Yosemite 4 Fan Board $bus % 30",
+ "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'Fan Board FSC-MAX ADC-TI LED-NXP EFUSE-MAX', 'PRODUCT_PRODUCT_NAME': 'Yosemite V4'})",
+ "Type": "Board",
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "BuildDate": "$BOARD_MANUFACTURE_DATE",
+ "Manufacturer": "$BOARD_MANUFACTURER",
+ "Model": "$BOARD_PRODUCT_NAME",
+ "PartNumber": "$BOARD_PART_NUMBER",
+ "SerialNumber": "$BOARD_SERIAL_NUMBER",
+ "SparePartNumber": "$BOARD_INFO_AM1"
+ },
+ "xyz.openbmc_project.Inventory.Decorator.AssetTag": {
+ "AssetTag": "$PRODUCT_ASSET_TAG"
+ },
+ "xyz.openbmc_project.Inventory.Decorator.Revision": {
+ "Version": "$PRODUCT_VERSION"
+ },
+ "xyz.openbmc_project.Inventory.Decorator.Slot": {
+ "SlotNumber": "$bus % 30"
+ }
+}
diff --git a/meson.build b/meson.build
index e6ddbdd..d090fbb 100644
--- a/meson.build
+++ b/meson.build
@@ -195,6 +195,7 @@
'vegman_sx20_baseboard.json',
'wft_baseboard.json',
'yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_mps.json',
+ 'yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json',
'yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_mps.json',
'yosemite4_sentineldome_t1.json',
'yosemite4_sentineldome_t1_retimer.json',