Shawn McCarney | 46b5e69 | 2020-04-30 16:34:39 -0500 | [diff] [blame] | 1 | { |
| 2 | "comments": [ "phosphor-regulators configuration file for IBM Rainier 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 | "chassis": [ |
| 60 | { |
| 61 | "comments": [ "Chassis (drawer) 1", |
| 62 | "Note: Devices not defined yet" ], |
Shawn McCarney | ecbeeea | 2021-04-29 21:08:18 -0500 | [diff] [blame] | 63 | "number": 1, |
| 64 | "inventory_path": "system/chassis" |
Shawn McCarney | 46b5e69 | 2020-04-30 16:34:39 -0500 | [diff] [blame] | 65 | } |
| 66 | ] |
| 67 | } |