Add "Exposes BMC" fields to configurations
The field is added to the JSON configurations such that when
Entity-Manager detects the corresponding board, an Inventory.Item.BMC
item is created to represent the BMC that runs the current OpenBMC
instance.
Signed-off-by: Sui Chen <suichen@google.com>
Change-Id: I9f1ba1ad107b183edd4a557a27a4865596d68d13
diff --git a/configurations/asrock_e3c246d4i.json b/configurations/asrock_e3c246d4i.json
index b7a73c4..63193d0 100644
--- a/configurations/asrock_e3c246d4i.json
+++ b/configurations/asrock_e3c246d4i.json
@@ -388,6 +388,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "0x4c",
"Bus": 1,
"Name": "MB",
diff --git a/configurations/asrock_romed8hm3.json b/configurations/asrock_romed8hm3.json
index 388a8bc..965057f 100644
--- a/configurations/asrock_romed8hm3.json
+++ b/configurations/asrock_romed8hm3.json
@@ -497,6 +497,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "0x40",
"Bus": 2,
"Labels": [
diff --git a/configurations/fbtp.json b/configurations/fbtp.json
index f271b67..601cfca 100644
--- a/configurations/fbtp.json
+++ b/configurations/fbtp.json
@@ -229,6 +229,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Direction": "Out",
"Index": 33,
"Name": "Reset Out",
diff --git a/configurations/fbyv2.json b/configurations/fbyv2.json
index 1b7c5ce..15acffd 100644
--- a/configurations/fbyv2.json
+++ b/configurations/fbyv2.json
@@ -307,6 +307,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Class": "fan",
"FFGainCoefficient": 1.0,
"FFOffCoefficient": 0.0,
diff --git a/configurations/fbyv35.json b/configurations/fbyv35.json
index 4f39fb7..175bb36 100644
--- a/configurations/fbyv35.json
+++ b/configurations/fbyv35.json
@@ -800,6 +800,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "0x4e",
"Bus": 12,
"Name": "BMC_INLET_TEMP",
diff --git a/configurations/kudo_bmc.json b/configurations/kudo_bmc.json
index 4178621..22b4740 100644
--- a/configurations/kudo_bmc.json
+++ b/configurations/kudo_bmc.json
@@ -2,6 +2,10 @@
{
"Exposes": [
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "$address",
"Bus": "$bus",
"Name": "BMC FRU",
diff --git a/configurations/mt_jade.json b/configurations/mt_jade.json
index 71120e9..6e5ba9a 100644
--- a/configurations/mt_jade.json
+++ b/configurations/mt_jade.json
@@ -1001,6 +1001,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "$address",
"Bus": "$bus",
"Name": "MB FRU",
diff --git a/configurations/r1000_chassis.json b/configurations/r1000_chassis.json
index add657a..c1ab599 100644
--- a/configurations/r1000_chassis.json
+++ b/configurations/r1000_chassis.json
@@ -241,6 +241,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"C1": 36,
"C2": 42,
"MaxCFM": 17.5,
diff --git a/configurations/r2000_chassis.json b/configurations/r2000_chassis.json
index 406815a..9727e7f 100644
--- a/configurations/r2000_chassis.json
+++ b/configurations/r2000_chassis.json
@@ -151,6 +151,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"C1": 36,
"C2": 39,
"MaxCFM": 71,
diff --git a/configurations/stp_baseboard.json b/configurations/stp_baseboard.json
index 44eb756..40c88a9 100644
--- a/configurations/stp_baseboard.json
+++ b/configurations/stp_baseboard.json
@@ -513,6 +513,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Class": "Gpio",
"GpioPolarity": "Low",
"Name": "Chassis Intrusion Sensor",
diff --git a/configurations/stp_p4000_chassis.json b/configurations/stp_p4000_chassis.json
index 4918c7f..39cd3bc 100644
--- a/configurations/stp_p4000_chassis.json
+++ b/configurations/stp_p4000_chassis.json
@@ -121,6 +121,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": [
"0x50",
"0x51"
diff --git a/configurations/tyan_s7106_baseboard.json b/configurations/tyan_s7106_baseboard.json
index c5dfe9b..5206b02 100644
--- a/configurations/tyan_s7106_baseboard.json
+++ b/configurations/tyan_s7106_baseboard.json
@@ -227,6 +227,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "0x28",
"Bus": 0,
"EntityId": 7,
diff --git a/configurations/tyan_s8036_baseboard.json b/configurations/tyan_s8036_baseboard.json
index 2380f65..fc1153c 100644
--- a/configurations/tyan_s8036_baseboard.json
+++ b/configurations/tyan_s8036_baseboard.json
@@ -213,6 +213,10 @@
"Type": "AspeedFan"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "0x28",
"Bus": 5,
"EntityId": 7,
diff --git a/configurations/vegman_n110_baseboard.json b/configurations/vegman_n110_baseboard.json
index c429b2f..c4226c7 100644
--- a/configurations/vegman_n110_baseboard.json
+++ b/configurations/vegman_n110_baseboard.json
@@ -359,6 +359,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Class": "Gpio",
"GpioPolarity": "Low",
"Name": "Chassis Intrusion Sensor",
diff --git a/configurations/vegman_rx20_baseboard.json b/configurations/vegman_rx20_baseboard.json
index 3872798..8c6f0ba 100644
--- a/configurations/vegman_rx20_baseboard.json
+++ b/configurations/vegman_rx20_baseboard.json
@@ -523,6 +523,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Address": "0x44",
"Bus": 3,
"Class": "i2c",
diff --git a/configurations/vegman_sx20_baseboard.json b/configurations/vegman_sx20_baseboard.json
index 775e84c..c81a553 100644
--- a/configurations/vegman_sx20_baseboard.json
+++ b/configurations/vegman_sx20_baseboard.json
@@ -523,6 +523,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Class": "Gpio",
"GpioPolarity": "Low",
"Name": "Chassis Intrusion Sensor",
diff --git a/configurations/wft_baseboard.json b/configurations/wft_baseboard.json
index fc5c45b..992673a 100644
--- a/configurations/wft_baseboard.json
+++ b/configurations/wft_baseboard.json
@@ -528,6 +528,10 @@
"Type": "ADC"
},
{
+ "Name": "BMC",
+ "Type": "BMC"
+ },
+ {
"Name": "Host CPU Utilization",
"Polling": {
"AveragingPeriod": 3000,