Commit 2f59460
[Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. (sonic-net#10377)
* Support new platform SN2201 and RJ45 port
Signed-off-by: Kebo Liu <[email protected]>
* remove unused import and redundant function
Signed-off-by: Kebo Liu <[email protected]>
* fix error introduced by rebase
Signed-off-by: Kebo Liu <[email protected]>
* Revert the special handling of RJ45 ports (#56)
* Revert the special handling of RJ45 ports
sfp.py
sfp_event.py
chassis.py
Signed-off-by: Stephen Sun <[email protected]>
* Remove deadcode
Signed-off-by: Stephen Sun <[email protected]>
* Support CPLD update for SN2201
A new class is introduced, deriving from ComponentCPLD and overloading _install_firmware
Change _install_firmware from private (starting with __) to protected, making it overloadable
Signed-off-by: Stephen Sun <[email protected]>
* Initialize component BIOS/CPLD
Signed-off-by: Stephen Sun <[email protected]>
* Remove swb_amb which doesn't on DVT board any more
Signed-off-by: Stephen Sun <[email protected]>
* Remove the unexisted sensor - switch board ambient - from platform.json
Signed-off-by: Stephen Sun <[email protected]>
* Do not report error on receiving unknown status on RJ45 ports
Translate it to disconnect for RJ45 ports
Report error for xSFP ports
Signed-off-by: Stephen Sun <[email protected]>
* Add reinit for RJ45 to avoid exception
Signed-off-by: Stephen Sun <[email protected]>
Co-authored-by: Stephen Sun <[email protected]>
Co-authored-by: Stephen Sun <[email protected]>1 parent 71f47ed commit 2f59460
File tree
15 files changed
+569
-65
lines changed- device/mellanox/x86_64-nvidia_sn2201-r0
- platform/mellanox
- mlnx-platform-api
- sonic_platform
- tests
15 files changed
+569
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
Lines changed: 25 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
| |||
242 | 249 | | |
243 | 250 | | |
244 | 251 | | |
245 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
246 | 256 | | |
247 | 257 | | |
248 | 258 | | |
249 | 259 | | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
253 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
254 | 267 | | |
255 | 268 | | |
256 | 269 | | |
257 | 270 | | |
258 | 271 | | |
259 | 272 | | |
260 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
261 | 277 | | |
262 | 278 | | |
263 | 279 | | |
| |||
324 | 340 | | |
325 | 341 | | |
326 | 342 | | |
327 | | - | |
| 343 | + | |
328 | 344 | | |
329 | 345 | | |
330 | 346 | | |
| |||
340 | 356 | | |
341 | 357 | | |
342 | 358 | | |
343 | | - | |
| 359 | + | |
| 360 | + | |
344 | 361 | | |
345 | 362 | | |
346 | 363 | | |
| |||
515 | 532 | | |
516 | 533 | | |
517 | 534 | | |
518 | | - | |
519 | | - | |
| 535 | + | |
| 536 | + | |
520 | 537 | | |
521 | 538 | | |
522 | 539 | | |
| |||
Lines changed: 66 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
140 | 151 | | |
141 | 152 | | |
142 | 153 | | |
| |||
336 | 347 | | |
337 | 348 | | |
338 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
339 | 353 | | |
340 | 354 | | |
341 | 355 | | |
| |||
698 | 712 | | |
699 | 713 | | |
700 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
701 | 746 | | |
702 | 747 | | |
703 | 748 | | |
| |||
744 | 789 | | |
745 | 790 | | |
746 | 791 | | |
747 | | - | |
| 792 | + | |
748 | 793 | | |
749 | 794 | | |
750 | 795 | | |
| |||
830 | 875 | | |
831 | 876 | | |
832 | 877 | | |
833 | | - | |
| 878 | + | |
834 | 879 | | |
835 | | - | |
| 880 | + | |
836 | 881 | | |
837 | 882 | | |
838 | 883 | | |
| |||
845 | 890 | | |
846 | 891 | | |
847 | 892 | | |
848 | | - | |
| 893 | + | |
849 | 894 | | |
850 | 895 | | |
851 | 896 | | |
852 | | - | |
| 897 | + | |
853 | 898 | | |
854 | 899 | | |
855 | 900 | | |
| |||
862 | 907 | | |
863 | 908 | | |
864 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| |||
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
0 commit comments