Skip to content

Commit 29db0ee

Browse files
authored
Merge pull request #2002 from nexthop-ai/lotus-psu-format-hld
[PDDF] PSU data format config HLD
2 parents 47cfaf3 + 9d90fda commit 29db0ee

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

doc/platform/brcm_pdk_pddf.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,14 @@ Description of the fields inside *attr_list*
623623
624624
> **attr_len**: Length of the SysFS attribute in bytes.
625625
626+
> **attr_data_format**: The PMBus numerical data encoding format. Can be `linear11`, `linear16`, or `direct` (refer to [PMBus 1.3.1 section 7](https://pmbusprod.wpenginepowered.com/wp-content/uploads/2022/01/PMBus-Specification-Rev-1-3-1-Part-II-20150313.pdf)). Optional field, defaults to `linear11` if not provided.
627+
628+
> **attr_m**: The PMBus `m` coefficient value (refer to [PMBus 1.3.1 section 7.4.1](https://pmbusprod.wpenginepowered.com/wp-content/uploads/2022/01/PMBus-Specification-Rev-1-3-1-Part-II-20150313.pdf)). Set `m` if and only if `attr_data_format` is `direct`.
629+
630+
> **attr_b**: The PMBus `b` coefficient value (refer to [PMBus 1.3.1 section 7.4.1](https://pmbusprod.wpenginepowered.com/wp-content/uploads/2022/01/PMBus-Specification-Rev-1-3-1-Part-II-20150313.pdf)). Set `b` if and only if `attr_data_format` is `direct`.
631+
632+
> **attr_r**: The PMBus `r` coefficient value (refer to [PMBus 1.3.1 section 7.4.1](https://pmbusprod.wpenginepowered.com/wp-content/uploads/2022/01/PMBus-Specification-Rev-1-3-1-Part-II-20150313.pdf)). Set `r` if and only if `attr_data_format` is `direct`.
633+
626634

627635

628636
```
@@ -650,6 +658,45 @@ Description of the fields inside *attr_list*
650658
]
651659
}
652660
},
661+
"PSU1-PMBUS": {
662+
"i2c": {
663+
"attr_list": [
664+
{
665+
"attr_name": "psu_p_out",
666+
"attr_devaddr": "0x58",
667+
"attr_devtype": "pmbus",
668+
"attr_offset": "0x96",
669+
"attr_mask": "0x0",
670+
"attr_cmpval": "0xff",
671+
"attr_len": "2"
672+
},
673+
{
674+
"attr_name": "psu_v_out",
675+
"attr_devaddr": "0x58",
676+
"attr_devtype": "pmbus",
677+
"attr_offset": "0x8b",
678+
"attr_mask": "0x0",
679+
"attr_cmpval": "0xff",
680+
"attr_data_format": "linear16",
681+
"attr_len": "2"
682+
},
683+
{
684+
"attr_name": "psu_i_out",
685+
"attr_devaddr": "0x58",
686+
"attr_devtype": "pmbus",
687+
"attr_offset": "0x8c",
688+
"attr_mask": "0x0",
689+
"attr_cmpval": "0xff",
690+
"attr_data_format": "direct",
691+
"attr_data_m": "1",
692+
"attr_data_b": "0",
693+
"attr_data_r": "0",
694+
"attr_len": "2"
695+
},
696+
...
697+
]
698+
}
699+
},
653700
```
654701

655702
#### 3.4.4 FAN Component

0 commit comments

Comments
 (0)