pseq: Create Bonnell configuration file
Create the power sequencer configuration file for Bonnell systems. This
file identifies the PMBus rails and the GPIO lines/pins that should be
checked when a pgood failure occurs.
On Bonnell systems no GPIO lines need to be checked.
Tested:
* Configuration file loading
* Verified file is found on Bonnell systems using D-Bus property
* Verified file is loaded successfully without errors
* Verified all rails in file are stored in C++ data structures
* Verified having empty pin array does not cause an error
* Tested where file contains a syntax error
* Verified error message is written to journal
* Verified no error log created
* pgood detection
* Verified system powers on cleanly when no pgood error is present
* chassison
* Verified chassis is powered on
* Verified no error logs created
* Verified no error messages written to the journal
* poweron
* Verified system is powered on
* Verified no error logs created
* Verified no error messages written to the journal
* Verified system powers off cleanly when no pgood error is present
* chassisoff
* Verified chassis is powered off
* Verified no error logs created
* Verified no error messages written to the journal
* poweroff
* Verified system is powered off
* Verified no error logs created
* Verified no error messages written to the journal
* Test where a pgood error is detected in a rail
* Verified pgood failure is detected
* Verified error message written to the journal
* Verified GPIO values written to the journal
* Verified error log is created
* Tested with a pgood error on each rail in the config file
* Test where pgood failure occurs during power on attempt
* Test where pgood failure occurs after system was successfully
powered on
Change-Id: I431d2dd7e99f2a99bbab936d6fad03af5654886f
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/config_files/UCD90160Monitor_ibm,bonnell.json b/phosphor-power-sequencer/config_files/UCD90160Monitor_ibm,bonnell.json
new file mode 100644
index 0000000..2df270a
--- /dev/null
+++ b/phosphor-power-sequencer/config_files/UCD90160Monitor_ibm,bonnell.json
@@ -0,0 +1,22 @@
+{
+ "rails": [
+ { "name": "12.0VA" },
+ { "name": "5.0VCS" },
+ { "name": "1.8V" },
+ { "name": "0.9V" },
+ { "name": "3.3V" },
+ { "name": "1.5V_AVDD" },
+ { "name": "0.65V_VDN" },
+ { "name": "0.7VA_VDD" },
+ { "name": "0.7VB_VDD" },
+ { "name": "0.75V_VCS" },
+ { "name": "0.9V_VIO" },
+ { "name": "0.85V_VPCIE" },
+ { "name": "PMIC2_PG" },
+ { "name": "PMIC3_PG" },
+ { "name": "VDDR_1.2VB" },
+ { "name": "VDDR_1.2VA" }
+ ],
+
+ "pins": []
+}