configurations: add bletchley frontpanel configuration
1. Add a frontpanel configuration for bletchley and move HDC1080
sensors to frontpanel.
2. Add 2nd source frontpanel config, use Model property in
xyz.openbmc_project.Inventory.Decorator.Asset for proboing correct
config.
Tested on bletchley:
- Main source (HDC1080)
```
root@bletchley:~# cat /var/configuration/system.json \
> | grep "Bletchley_FPB"
"xyz.openbmc_project.Inventory.Decorator.Asset({'Model': 'Bletchley_FPB_HDC1080'})"
root@bletchley:~# busctl get-property xyz.openbmc_project.Settings \
> /xyz/openbmc_project/inventory/system/chassis/frontpanel \
> xyz.openbmc_project.Inventory.Decorator.Asset Model
s "Bletchley_FPB_HDC1080"
root@bletchley:~# busctl get-property xyz.openbmc_project.HwmonTempSensor \
> /xyz/openbmc_project/sensors/temperature/FRONT_PANEL_TEMP \
> xyz.openbmc_project.Sensor.Value Value
d 27.3334
```
- 2nd source (SI7021)
```
root@bletchley:~# cat /var/configuration/system.json \
> | grep "Bletchley_FPB"
"xyz.openbmc_project.Inventory.Decorator.Asset({'Model': 'Bletchley_FPB_SI7021'})"
root@bletchley:~# busctl get-property xyz.openbmc_project.Settings \
> /xyz/openbmc_project/inventory/system/chassis/frontpanel \
> xyz.openbmc_project.Inventory.Decorator.Asset Model
s "Bletchley_FPB_SI7021"
root@bletchley:~# busctl get-property xyz.openbmc_project.HwmonTempSensor \
> /xyz/openbmc_project/sensors/temperature/FRONT_PANEL_TEMP \
> xyz.openbmc_project.Sensor.Value Value
d 28.8612
```
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I40950e876629700afe038d222d00eb6e6bb230f8
diff --git a/configurations/bletchley_frontpanel.json b/configurations/bletchley_frontpanel.json
new file mode 100644
index 0000000..bf433a8
--- /dev/null
+++ b/configurations/bletchley_frontpanel.json
@@ -0,0 +1,70 @@
+[
+ {
+ "Exposes": [
+ {
+ "Address": "0x40",
+ "Bus": 10,
+ "Name": "FRONT_PANEL_TEMP",
+ "Name1": "FRONT_PANEL_HUMIDTY",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Index": 1,
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 40.0
+ },
+ {
+ "Direction": "less than",
+ "Index": 1,
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "HDC1080"
+ }
+ ],
+ "Name": "Bletchley Front Panel Board",
+ "Probe": [
+ "FOUND('Bletchley Baseboard')",
+ "AND",
+ "xyz.openbmc_project.Inventory.Decorator.Asset({'Model': 'Bletchley_FPB_HDC1080'})"
+ ],
+ "Type": "Board"
+ },
+ {
+ "Exposes": [
+ {
+ "Address": "0x40",
+ "Bus": 10,
+ "Name": "FRONT_PANEL_TEMP",
+ "Name1": "FRONT_PANEL_HUMIDTY",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Index": 1,
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 40.0
+ },
+ {
+ "Direction": "less than",
+ "Index": 1,
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "SI7020"
+ }
+ ],
+ "Name": "Bletchley Front Panel Board",
+ "Probe": [
+ "FOUND('Bletchley Baseboard')",
+ "AND",
+ "xyz.openbmc_project.Inventory.Decorator.Asset({'Model': 'Bletchley_FPB_SI7021'})"
+ ],
+ "Type": "Board"
+ }
+]