-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[device/Arista] Add support for the 7280CR3-32P4 (#2910)
* Add boot0 support for the 7280CR3 * Add platform and plugins for 7280CR3 * Add port config for 7280CR3 * Add platform_reboot for 7280CR3 * Add support for 7280CR3-32D4 based on the 7280CR3-32P4 * Update arista driver submodules - Introduce new 7280CR3-32P4 - Improve to the led plugin for OSFP
- Loading branch information
Showing
14 changed files
with
164 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x86_64-arista_7280cr3_32p4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Arista-7280CR3-C32P4 |
37 changes: 37 additions & 0 deletions
37
device/arista/x86_64-arista_7280cr3_32p4/Arista-7280CR3-C32P4/port_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# name lanes alias index speed | ||
Ethernet0 1,2 Ethernet1/1 1 100000 | ||
Ethernet4 3,4 Ethernet2/1 2 100000 | ||
Ethernet8 5,6 Ethernet3/1 3 100000 | ||
Ethernet12 7,8 Ethernet4/1 4 100000 | ||
Ethernet16 9,10 Ethernet5/1 5 100000 | ||
Ethernet20 11,12 Ethernet6/1 6 100000 | ||
Ethernet24 13,14 Ethernet7/1 7 100000 | ||
Ethernet28 15,16 Ethernet8/1 8 100000 | ||
Ethernet32 17,18 Ethernet9/1 9 100000 | ||
Ethernet36 19,20 Ethernet10/1 10 100000 | ||
Ethernet40 21,22 Ethernet11/1 11 100000 | ||
Ethernet44 23,24 Ethernet12/1 12 100000 | ||
Ethernet48 25,26 Ethernet13/1 13 100000 | ||
Ethernet52 27,28 Ethernet14/1 14 100000 | ||
Ethernet56 29,30 Ethernet15/1 15 100000 | ||
Ethernet60 31,32 Ethernet16/1 16 100000 | ||
Ethernet64 73,74 Ethernet17/1 17 100000 | ||
Ethernet68 75,76 Ethernet18/1 18 100000 | ||
Ethernet72 77,78 Ethernet19/1 19 100000 | ||
Ethernet76 79,80 Ethernet20/1 20 100000 | ||
Ethernet80 65,66 Ethernet21/1 21 100000 | ||
Ethernet84 67,68 Ethernet22/1 22 100000 | ||
Ethernet88 69,70 Ethernet23/1 23 100000 | ||
Ethernet92 71,72 Ethernet24/1 24 100000 | ||
Ethernet96 57,58 Ethernet25/1 25 100000 | ||
Ethernet100 59,60 Ethernet26/1 26 100000 | ||
Ethernet104 61,62 Ethernet27/1 27 100000 | ||
Ethernet108 63,64 Ethernet28/1 28 100000 | ||
Ethernet112 49,50 Ethernet29/1 29 100000 | ||
Ethernet116 51,52 Ethernet30/1 30 100000 | ||
Ethernet120 53,54 Ethernet31/1 31 100000 | ||
Ethernet124 55,56 Ethernet32/1 32 100000 | ||
Ethernet128 33,34,35,36,37,38,39,40 Ethernet33/1 33 400000 | ||
Ethernet132 41,42,43,44,45,46,47,48 Ethernet34/1 34 400000 | ||
Ethernet136 89,90,91,92,93,94,95,96 Ethernet35/1 35 400000 | ||
Ethernet140 81,82,83,84,85,86,87,88 Ethernet36/1 36 400000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Arista-7280CR3-C32P4 t1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
INTERVAL=5 | ||
DEVPATH=hwmon2=devices/pci0000:00/0000:00:09.0 hwmon4=devices/pci0000:00/0000:00:09.0/i2c-56/56-004c | ||
DEVNAME=hwmon2=scd_fan_p3 hwmon4=max6658 | ||
FCTEMPS=hwmon2/pwm6=hwmon4/temp1_input hwmon2/pwm5=hwmon4/temp1_input hwmon2/pwm4=hwmon4/temp1_input hwmon2/pwm4=hwmon4/temp1_input hwmon2/pwm2=hwmon4/temp1_input hwmon2/pwm1=hwmon4/temp1_input | ||
FCFANS=hwmon2/pwm6=hwmon2/fan6_input hwmon2/pwm5=hwmon2/fan5_input hwmon2/pwm4=hwmon2/fan4_input hwmon2/pwm3=hwmon2/fan3_input hwmon2/pwm2=hwmon2/fan2_input hwmon2/pwm1=hwmon2/fan1_input | ||
MINTEMP=hwmon2/pwm6=50 hwmon2/pwm5=50 hwmon2/pwm4=50 hwmon2/pwm3=50 hwmon2/pwm2=50 hwmon2/pwm1=50 | ||
MINPWM=hwmon2/pwm6=128 hwmon2/pwm5=128 hwmon2/pwm4=128 hwmon2/pwm3=128 hwmon2/pwm2=128 hwmon2/pwm1=128 | ||
MAXTEMP=hwmon2/pwm6=60 hwmon2/pwm5=60 hwmon2/pwm4=60 hwmon2/pwm3=60 hwmon2/pwm2=60 hwmon2/pwm1=60 | ||
MINSTART=hwmon2/pwm6=128 hwmon2/pwm5=128 hwmon2/pwm4=128 hwmon2/pwm3=128 hwmon2/pwm2=128 hwmon2/pwm1=128 | ||
MINSTOP=hwmon2/pwm6=128 hwmon2/pwm5=128 hwmon2/pwm4=128 hwmon2/pwm3=128 hwmon2/pwm2=128 hwmon2/pwm1=128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../x86_64-arista_common/platform_reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
import arista.utils.sonic_eeprom as arista_eeprom | ||
except ImportError as e: | ||
raise ImportError("%s - required module not found" % str(e)) | ||
|
||
board = arista_eeprom.getTlvInfoDecoder() |
8 changes: 8 additions & 0 deletions
8
device/arista/x86_64-arista_7280cr3_32p4/plugins/led_control.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
import arista.utils.sonic_leds as arista_leds | ||
except ImportError as e: | ||
raise ImportError("%s - required module not found" % str(e)) | ||
|
||
LedControl = arista_leds.getLedControl() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# psuutil.py | ||
|
||
try: | ||
import arista.utils.sonic_psu as arista_psuutil | ||
except ImportError as e: | ||
raise ImportError("%s - required module not found" % str(e)) | ||
|
||
PsuUtil = arista_psuutil.getPsuUtil() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
import arista.utils.sonic_sfputil as arista_sfputil | ||
except ImportError as e: | ||
raise ImportError("%s - required module not found" % str(e)) | ||
|
||
SfpUtil = arista_sfputil.getSfpUtil() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# libsensors configuration file for DCS-7280CR3-32P4 | ||
# ------------------------------------------------# | ||
|
||
bus "i2c-8" "SCD 0000:02:00.0 SMBus master 0 bus 0" | ||
bus "i2c-14" "SCD 0000:02:00.0 SMBus master 0 bus 6" | ||
bus "i2c-15" "SCD 0000:02:00.0 SMBus master 0 bus 7" | ||
bus "i2c-56" "SCD 0000:00:09.0 SMBus master 0 bus 0" | ||
|
||
chip "tmp468-i2c-8-48" | ||
label temp1 "Board sensor" | ||
label temp2 "Front air (inlet) sensor" | ||
label temp3 "Rear air sensor" | ||
label temp4 "Front left sensor" | ||
label temp5 "Front right sensor" | ||
label temp6 "Rear left sensor" | ||
label temp7 "Rear right sensor" | ||
label temp8 "Asic temp sensor 1" | ||
label temp9 "Asic temp sensor 2" | ||
|
||
set temp1_max 75 | ||
set temp1_crit 80 | ||
set temp2_max 65 | ||
set temp2_crit 75 | ||
set temp3_max 65 | ||
set temp3_crit 75 | ||
ignore temp4 | ||
ignore temp5 | ||
ignore temp6 | ||
ignore temp7 | ||
set temp8_max 100 | ||
set temp8_crit 110 | ||
set temp9_max 100 | ||
set temp9_crit 110 | ||
|
||
chip "pmbus-i2c-14-58" | ||
label temp1 "Power supply 1 hotspot sensor" | ||
label temp2 "Power supply 1 inlet temp sensor" | ||
label temp3 "Power supply 1 exhaust temp sensor" | ||
|
||
# setting maximum and critical thresholds is not supported for this psu | ||
# fault and warning limits defined internally by hardware | ||
|
||
ignore fan2 | ||
ignore fan3 | ||
ignore fan4 | ||
|
||
chip "pmbus-i2c-15-58" | ||
label temp1 "Power supply 2 hotspot sensor" | ||
label temp2 "Power supply 2 inlet temp sensor" | ||
label temp3 "Power supply 2 exhaust temp sensor" | ||
|
||
# setting maximum and critical thresholds is not supported for this psu | ||
# fault and warning limits defined internally by hardware | ||
|
||
ignore fan2 | ||
ignore fan3 | ||
ignore fan4 | ||
|
||
chip "max6658-i2c-56-4c" | ||
label temp1 "Back panel temp sensor 1" | ||
label temp2 "Back panel temp sensor 2" | ||
|
||
set temp1_max 75 | ||
set temp1_crit 85 | ||
set temp2_max 75 | ||
set temp2_crit 85 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule sonic-platform-modules-arista
updated
11 files
+23 −0 | arista/components/phy.py | |
+26 −0 | arista/components/scd.py | |
+12 −18 | arista/core/inventory.py | |
+1 −0 | arista/platforms/__init__.py | |
+139 −0 | arista/platforms/a7280cr3.py | |
+51 −29 | arista/utils/sonic_leds.py | |
+4 −4 | arista/utils/sonic_sfputil.py | |
+12 −9 | arista/utils/sonic_utils.py | |
+1 −0 | src/Makefile | |
+3 −0 | src/scd.c | |
+494 −0 | src/tmp468.c |
Submodule sonic-platform-modules-arista
updated
11 files
+23 −0 | arista/components/phy.py | |
+26 −0 | arista/components/scd.py | |
+12 −18 | arista/core/inventory.py | |
+1 −0 | arista/platforms/__init__.py | |
+139 −0 | arista/platforms/a7280cr3.py | |
+51 −29 | arista/utils/sonic_leds.py | |
+4 −4 | arista/utils/sonic_sfputil.py | |
+12 −9 | arista/utils/sonic_utils.py | |
+1 −0 | src/Makefile | |
+3 −0 | src/scd.c | |
+494 −0 | src/tmp468.c |