xref: /openbmc/phosphor-power/phosphor-regulators/docs/config_file/chassis.md (revision 6151c286a8737f22e5297ff556f7304bd548ed0a)
1876ae819SShawn McCarney# chassis
2876ae819SShawn McCarney
3876ae819SShawn McCarney## Description
40dbce568SPatrick Williams
5876ae819SShawn McCarneyA chassis within the system.
6876ae819SShawn McCarney
70dbce568SPatrick WilliamsChassis are large enclosures that can be independently powered off and on by the
80dbce568SPatrick WilliamsBMC. Small and mid-sized systems may contain a single chassis. In a large
9876ae819SShawn McCarneyrack-mounted system, each drawer may correspond to a chassis.
10876ae819SShawn McCarney
11876ae819SShawn McCarneyA chassis only needs to be defined in the config file if it contains regulators
12876ae819SShawn McCarneythat need to be configured or monitored.
13876ae819SShawn McCarney
14876ae819SShawn McCarney## Properties
150dbce568SPatrick Williams
16876ae819SShawn McCarney| Name           | Required | Type                          | Description                                                                                                                                                                                              |
170dbce568SPatrick Williams| :------------- | :------: | :---------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18876ae819SShawn McCarney| comments       |    no    | array of strings              | One or more comment lines describing this chassis.                                                                                                                                                       |
19876ae819SShawn McCarney| number         |   yes    | number                        | Chassis number within the system. Chassis numbers start at 1 because chassis 0 represents the entire system.                                                                                             |
20ecbeeea7SShawn McCarney| inventory_path |   yes    | string                        | Specify the relative D-Bus inventory path of the chassis. Full inventory paths begin with the root "/xyz/openbmc_project/inventory". Specify the relative path below the root, such as "system/chassis". |
21876ae819SShawn McCarney| devices        |    no    | array of [devices](device.md) | One or more devices within the chassis. The array should contain regulator devices and any related devices required to perform regulator operations.                                                     |
22876ae819SShawn McCarney
23876ae819SShawn McCarney## Example
240dbce568SPatrick Williams
25*6151c286SGeorge Liu```json
26876ae819SShawn McCarney{
27876ae819SShawn McCarney  "comments": [ "Chassis number 1 containing CPUs and memory" ],
28876ae819SShawn McCarney  "number": 1,
29ecbeeea7SShawn McCarney  "inventory_path": "system/chassis",
30876ae819SShawn McCarney  "devices": [
31876ae819SShawn McCarney    {
32876ae819SShawn McCarney      "id": "vdd_regulator",
33876ae819SShawn McCarney      ... details omitted ...
34876ae819SShawn McCarney    },
35876ae819SShawn McCarney    {
36876ae819SShawn McCarney      "id": "vio_regulator",
37876ae819SShawn McCarney      ... details omitted ...
38876ae819SShawn McCarney    }
39876ae819SShawn McCarney  ]
40876ae819SShawn McCarney}
41876ae819SShawn McCarney```
42