blob: d0fe2290965412b409c06c988f5c1483a1bd5cbe [file] [log] [blame]
Shawn McCarneye35831f2021-01-12 11:29:10 -06001{
2 "comments": [ "phosphor-regulators configuration file for IBM Everest systems" ],
3
4
5 "rules": [
6 {
7 "comments": [ "Rule to set PMBus PAGE to 0" ],
8 "id": "set_page0_rule",
9 "actions": [
10 { "i2c_write_byte": { "register": "0x00", "value": "0x00" } }
11 ]
12 },
13
14
15 {
16 "comments": [ "Rule to set PMBus PAGE to 1" ],
17 "id": "set_page1_rule",
18 "actions": [
19 { "i2c_write_byte": { "register": "0x00", "value": "0x01" } }
20 ]
21 },
22
23
24 {
25 "comments": [ "Rule to set output voltage of a PMBus regulator" ],
26 "id": "set_voltage_rule",
27 "actions": [
28 {
29 "comments": [ "Write volts value to VOUT_COMMAND in linear format.",
30 "Get volts value from configuration. Get exponent",
31 "from VOUT_MODE. Verify write was successful." ],
32 "pmbus_write_vout_command": { "format": "linear", "is_verified": true }
33 }
34 ]
35 },
36
37
38 {
39 "comments": [ "Rule to set output voltage of PAGE 0 of a PMBus regulator" ],
40 "id": "set_voltage_page0_rule",
41 "actions": [
42 { "run_rule": "set_page0_rule" },
43 { "run_rule": "set_voltage_rule" }
44 ]
45 },
46
47
48 {
49 "comments": [ "Rule to set output voltage of PAGE 1 of a PMBus regulator" ],
50 "id": "set_voltage_page1_rule",
51 "actions": [
52 { "run_rule": "set_page1_rule" },
53 { "run_rule": "set_voltage_rule" }
54 ]
55 },
56
57
58 {
59 "comments": [ "Rule to set output voltage of a PMBus regulator using",
60 "PMBus OPERATION and VOUT_COMMAND" ],
61 "id": "set_operation_and_voltage_rule",
62 "actions": [
63 {
64 "comments": [ "Set PMBus OPERATION to 0x80 indicating output voltage",
65 "is set by the PMBus VOUT_COMMAND" ],
66 "i2c_write_byte": { "register": "0x01", "value": "0x80" }
67 },
68
69 {
70 "comments": [ "Set the output voltage using the PMBus VOUT_COMMAND" ],
71 "run_rule": "set_voltage_rule"
72 },
73
74 {
75 "comments": [ "Set PMBus OPERATION to 0xB0 indicating output voltage",
76 "will now be set by AVSBus (AVS_VOUT_COMMAND).",
77 "Hardware settings cause the VOUT_COMMAND value to be",
78 "the initial voltage value for AVSBus." ],
79 "i2c_write_byte": { "register": "0x01", "value": "0xB0" }
80 }
81 ]
82 }
83 ],
84
85
86 "chassis": [
87 {
88 "comments": [ "Chassis (drawer) 1",
89 "Note: Devices not defined yet" ],
90 "number": 1
91 }
92 ]
93}