Skip to content

Commit 9d90fda

Browse files
committed
[PDDF] PSU data format config HLD
1 parent 4fc4f48 commit 9d90fda

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
@@ -621,6 +621,14 @@ Description of the fields inside *attr_list*
621621
622622
> **attr_len**: Length of the SysFS attribute in bytes.
623623
624+
> **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.
625+
626+
> **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`.
627+
628+
> **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`.
629+
630+
> **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`.
631+
624632

625633

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

653700
#### 3.4.4 FAN Component

0 commit comments

Comments
 (0)