regulators: Initial JSON config file for Rainier
Create an initial JSON configuration file for IBM Rainier systems. File
does not yet contain any device information.
Also delete the '.keep' file that existed solely to allow the
'config_files' directory to exist. git does not allow empty
directories.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Ie53350ee3e7c94f551a59e608b90690189781a23
diff --git a/phosphor-regulators/config_files/.keep b/phosphor-regulators/config_files/.keep
deleted file mode 100644
index e69de29..0000000
--- a/phosphor-regulators/config_files/.keep
+++ /dev/null
diff --git a/phosphor-regulators/config_files/ibm_rainier.json b/phosphor-regulators/config_files/ibm_rainier.json
new file mode 100644
index 0000000..83f4956
--- /dev/null
+++ b/phosphor-regulators/config_files/ibm_rainier.json
@@ -0,0 +1,66 @@
+{
+ "comments": [ "phosphor-regulators configuration file for IBM Rainier systems" ],
+
+
+ "rules": [
+ {
+ "comments": [ "Rule to set PMBus PAGE to 0" ],
+ "id": "set_page0_rule",
+ "actions": [
+ { "i2c_write_byte": { "register": "0x00", "value": "0x00" } }
+ ]
+ },
+
+
+ {
+ "comments": [ "Rule to set PMBus PAGE to 1" ],
+ "id": "set_page1_rule",
+ "actions": [
+ { "i2c_write_byte": { "register": "0x00", "value": "0x01" } }
+ ]
+ },
+
+
+ {
+ "comments": [ "Rule to set output voltage of a PMBus regulator" ],
+ "id": "set_voltage_rule",
+ "actions": [
+ {
+ "comments": [ "Write volts value to VOUT_COMMAND in linear format.",
+ "Get volts value from configuration. Get exponent",
+ "from VOUT_MODE. Verify write was successful." ],
+ "pmbus_write_vout_command": { "format": "linear", "is_verified": true }
+ }
+ ]
+ },
+
+
+ {
+ "comments": [ "Rule to set output voltage of PAGE 0 of a PMBus regulator" ],
+ "id": "set_voltage_page0_rule",
+ "actions": [
+ { "run_rule": "set_page0_rule" },
+ { "run_rule": "set_voltage_rule" }
+ ]
+ },
+
+
+ {
+ "comments": [ "Rule to set output voltage of PAGE 1 of a PMBus regulator" ],
+ "id": "set_voltage_page1_rule",
+ "actions": [
+ { "run_rule": "set_page1_rule" },
+ { "run_rule": "set_voltage_rule" }
+ ]
+ }
+ ],
+
+
+ "chassis": [
+ {
+ "comments": [ "Chassis (drawer) 1",
+ "Note: Devices not defined yet" ],
+ "number": 1
+ }
+ ]
+}