ASIC part support for Celestica DX010 platform(Three port breakout configurations) (#818)

* ASIC part support for Celestica DX010 platform.
It includes:
*Three different configurations: 32x100G, 64x50G, 96x10G+16x50G.(Script to be includd in the platform directory).
*Data port LED

Also from vendor:
*fancontrol configuration
*eeprom.py/sfpulti.py plugins
*sensor configuration

* Typo fix

* Add the port configuration change script

* move the script to sonic-utilities repo
This commit is contained in:
zhenggen-xu 2017-07-19 17:13:18 -07:00 committed by lguohan
parent 12e5e22572
commit ccb71cd4d6
19 changed files with 5210 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,113 @@
# name lanes alias
Ethernet0 65 tenGigE1/1
Ethernet1 66 tenGigE1/2
Ethernet2 67 tenGigE1/3
Ethernet3 68 tenGigE1/4
Ethernet4 69 tenGigE1/5
Ethernet5 70 tenGigE1/6
Ethernet6 71 tenGigE1/7
Ethernet7 72 tenGigE1/8
Ethernet8 73 tenGigE1/9
Ethernet9 74 tenGigE1/10
Ethernet10 75 tenGigE1/11
Ethernet11 76 tenGigE1/12
Ethernet12 77 tenGigE1/13
Ethernet13 78 tenGigE1/14
Ethernet14 79 tenGigE1/15
Ethernet15 80 tenGigE1/16
Ethernet16 33 tenGigE1/17
Ethernet17 34 tenGigE1/18
Ethernet18 35 tenGigE1/19
Ethernet19 36 tenGigE1/20
Ethernet20 37 tenGigE1/21
Ethernet21 38 tenGigE1/22
Ethernet22 39 tenGigE1/23
Ethernet23 40 tenGigE1/24
Ethernet24 41 tenGigE1/25
Ethernet25 42 tenGigE1/26
Ethernet26 43 tenGigE1/27
Ethernet27 44 tenGigE1/28
Ethernet28 45 tenGigE1/29
Ethernet29 46 tenGigE1/30
Ethernet30 47 tenGigE1/31
Ethernet31 48 tenGigE1/32
Ethernet32 49 tenGigE1/33
Ethernet33 50 tenGigE1/34
Ethernet34 51 tenGigE1/35
Ethernet35 52 tenGigE1/36
Ethernet36 53 tenGigE1/37
Ethernet37 54 tenGigE1/38
Ethernet38 55 tenGigE1/39
Ethernet39 56 tenGigE1/40
Ethernet40 57 tenGigE1/41
Ethernet41 58 tenGigE1/42
Ethernet42 59 tenGigE1/43
Ethernet43 60 tenGigE1/44
Ethernet44 61 tenGigE1/45
Ethernet45 62 tenGigE1/46
Ethernet46 63 tenGigE1/47
Ethernet47 64 tenGigE1/48
Ethernet48 81 tenGigE1/49
Ethernet49 82 tenGigE1/50
Ethernet50 83 tenGigE1/51
Ethernet51 84 tenGigE1/52
Ethernet52 85 tenGigE1/53
Ethernet53 86 tenGigE1/54
Ethernet54 87 tenGigE1/55
Ethernet55 88 tenGigE1/56
Ethernet56 89 tenGigE1/57
Ethernet57 90 tenGigE1/58
Ethernet58 91 tenGigE1/59
Ethernet59 92 tenGigE1/60
Ethernet60 93 tenGigE1/61
Ethernet61 94 tenGigE1/62
Ethernet62 95 tenGigE1/63
Ethernet63 96 tenGigE1/64
Ethernet64 97 tenGigE1/65
Ethernet65 98 tenGigE1/66
Ethernet66 99 tenGigE1/67
Ethernet67 100 tenGigE1/68
Ethernet68 101 tenGigE1/69
Ethernet69 102 tenGigE1/70
Ethernet70 103 tenGigE1/71
Ethernet71 104 tenGigE1/72
Ethernet72 105 tenGigE1/73
Ethernet73 106 tenGigE1/74
Ethernet74 107 tenGigE1/75
Ethernet75 108 tenGigE1/76
Ethernet76 109 tenGigE1/77
Ethernet77 110 tenGigE1/78
Ethernet78 111 tenGigE1/79
Ethernet79 112 tenGigE1/80
Ethernet80 1 tenGigE1/81
Ethernet81 2 tenGigE1/82
Ethernet82 3 tenGigE1/83
Ethernet83 4 tenGigE1/84
Ethernet84 5 tenGigE1/85
Ethernet85 6 tenGigE1/86
Ethernet86 7 tenGigE1/87
Ethernet87 8 tenGigE1/88
Ethernet88 9 tenGigE1/89
Ethernet89 10 tenGigE1/90
Ethernet90 11 tenGigE1/91
Ethernet91 12 tenGigE1/92
Ethernet92 13 tenGigE1/93
Ethernet93 14 tenGigE1/94
Ethernet94 15 tenGigE1/95
Ethernet95 16 tenGigE1/96
Ethernet96 17,18 fiftyGigE1/1
Ethernet98 19,20 fiftyGigE1/2
Ethernet100 21,22 fiftyGigE1/3
Ethernet102 23,24 fiftyGigE1/4
Ethernet104 25,26 fiftyGigE1/5
Ethernet106 27,28 fiftyGigE1/6
Ethernet108 29,30 fiftyGigE1/7
Ethernet110 31,32 fiftyGigE1/8
Ethernet112 113,114 fiftyGigE1/9
Ethernet114 115,116 fiftyGigE1/10
Ethernet116 117,118 fiftyGigE1/11
Ethernet118 119,120 fiftyGigE1/12
Ethernet120 121,122 fiftyGigE1/13
Ethernet122 123,124 fiftyGigE1/14
Ethernet124 125,126 fiftyGigE1/15
Ethernet126 127,128 fiftyGigE1/16

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-seastone-dx010-96x10G-16x50G.config.bcm

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,65 @@
# name lanes alias
Ethernet0 65,66 fiftyGigE1/1
Ethernet2 67,68 fiftyGigE1/2
Ethernet4 69,70 fiftyGigE1/3
Ethernet6 71,72 fiftyGigE1/4
Ethernet8 73,74 fiftyGigE1/5
Ethernet10 75,76 fiftyGigE1/6
Ethernet12 77,78 fiftyGigE1/7
Ethernet14 79,80 fiftyGigE1/8
Ethernet16 33,34 fiftyGigE1/9
Ethernet18 35,36 fiftyGigE1/10
Ethernet20 37,38 fiftyGigE1/11
Ethernet22 39,40 fiftyGigE1/12
Ethernet24 41,42 fiftyGigE1/13
Ethernet26 43,44 fiftyGigE1/14
Ethernet28 45,46 fiftyGigE1/15
Ethernet30 47,48 fiftyGigE1/16
Ethernet32 49,50 fiftyGigE1/17
Ethernet34 51,52 fiftyGigE1/18
Ethernet36 53,54 fiftyGigE1/19
Ethernet38 55,56 fiftyGigE1/20
Ethernet40 57,58 fiftyGigE1/21
Ethernet42 59,60 fiftyGigE1/22
Ethernet44 61,62 fiftyGigE1/23
Ethernet46 63,64 fiftyGigE1/24
Ethernet48 81,82 fiftyGigE1/25
Ethernet50 83,84 fiftyGigE1/26
Ethernet52 85,86 fiftyGigE1/27
Ethernet54 87,88 fiftyGigE1/28
Ethernet56 89,90 fiftyGigE1/29
Ethernet58 91,92 fiftyGigE1/30
Ethernet60 93,94 fiftyGigE1/31
Ethernet62 95,96 fiftyGigE1/32
Ethernet64 97,98 fiftyGigE1/33
Ethernet66 99,100 fiftyGigE1/34
Ethernet68 101,102 fiftyGigE1/35
Ethernet70 103,104 fiftyGigE1/36
Ethernet72 105,106 fiftyGigE1/37
Ethernet74 107,108 fiftyGigE1/38
Ethernet76 109,110 fiftyGigE1/39
Ethernet78 111,112 fiftyGigE1/40
Ethernet80 1,2 fiftyGigE1/41
Ethernet82 3,4 fiftyGigE1/42
Ethernet84 5,6 fiftyGigE1/43
Ethernet86 7,8 fiftyGigE1/44
Ethernet88 9,10 fiftyGigE1/45
Ethernet90 11,12 fiftyGigE1/46
Ethernet92 13,14 fiftyGigE1/47
Ethernet94 15,16 fiftyGigE1/48
Ethernet96 17,18 fiftyGigE1/49
Ethernet98 19,20 fiftyGigE1/50
Ethernet100 21,22 fiftyGigE1/51
Ethernet102 23,24 fiftyGigE1/52
Ethernet104 25,26 fiftyGigE1/53
Ethernet106 27,28 fiftyGigE1/54
Ethernet108 29,30 fiftyGigE1/55
Ethernet110 31,32 fiftyGigE1/56
Ethernet112 113,114 fiftyGigE1/57
Ethernet114 115,116 fiftyGigE1/58
Ethernet116 117,118 fiftyGigE1/59
Ethernet118 119,120 fiftyGigE1/60
Ethernet120 121,122 fiftyGigE1/61
Ethernet122 123,124 fiftyGigE1/62
Ethernet124 125,126 fiftyGigE1/63
Ethernet126 127,128 fiftyGigE1/64

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-seastone-dx010-64x50G.config.bcm

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,33 @@
# name lanes alias
Ethernet0 65,66,67,68 hundredGigE1/1
Ethernet4 69,70,71,72 hundredGigE1/2
Ethernet8 73,74,75,76 hundredGigE1/3
Ethernet12 77,78,79,80 hundredGigE1/4
Ethernet16 33,34,35,36 hundredGigE1/5
Ethernet20 37,38,39,40 hundredGigE1/6
Ethernet24 41,42,43,44 hundredGigE1/7
Ethernet28 45,46,47,48 hundredGigE1/8
Ethernet32 49,50,51,52 hundredGigE1/9
Ethernet36 53,54,55,56 hundredGigE1/10
Ethernet40 57,58,59,60 hundredGigE1/11
Ethernet44 61,62,63,64 hundredGigE1/12
Ethernet48 81,82,83,84 hundredGigE1/13
Ethernet52 85,86,87,88 hundredGigE1/14
Ethernet56 89,90,91,92 hundredGigE1/15
Ethernet60 93,94,95,96 hundredGigE1/16
Ethernet64 97,98,99,100 hundredGigE1/17
Ethernet68 101,102,103,104 hundredGigE1/18
Ethernet72 105,106,107,108 hundredGigE1/19
Ethernet76 109,110,111,112 hundredGigE1/20
Ethernet80 1,2,3,4 hundredGigE1/21
Ethernet84 5,6,7,8 hundredGigE1/22
Ethernet88 9,10,11,12 hundredGigE1/23
Ethernet92 13,14,15,16 hundredGigE1/24
Ethernet96 17,18,19,20 hundredGigE1/25
Ethernet100 21,22,23,24 hundredGigE1/26
Ethernet104 25,26,27,28 hundredGigE1/27
Ethernet108 29,30,31,32 hundredGigE1/28
Ethernet112 113,114,115,116 hundredGigE1/29
Ethernet116 117,118,119,120 hundredGigE1/30
Ethernet120 121,122,123,124 hundredGigE1/31
Ethernet124 125,126,127,128 hundredGigE1/32

View File

@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-seastone-dx010-32x100G.config.bcm

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
CONSOLE_PORT=0x3f8
CONSOLE_DEV=0
CONSOLE_SPEED=115200

View File

@ -0,0 +1,13 @@
02 20 28 67 72 12 30 80 D1 74 02 02 00 28 67 72
12 20 80 D1 74 0D 02 30 28 67 72 02 31 28 67 72
02 32 28 67 72 02 33 28 67 72 02 34 28 67 72 02
35 28 67 72 02 36 28 67 72 02 37 28 67 72 02 38
28 67 72 02 39 28 67 72 02 3A 28 67 72 02 3B 28
67 72 02 3C 28 67 72 02 3D 28 67 72 02 3E 28 67
72 02 3F 28 67 72 12 E0 85 05 D2 05 71 70 52 00
3A 80 67 98 75 B0 77 78 67 9F 75 7E 77 8B 28 67
A6 75 B6 16 E0 DA 04 74 B0 77 B6 28 67 A6 75 B3
16 E0 DA 04 74 B0 77 B3 12 A0 F8 15 1A 00 57 12
A0 F8 15 1A 01 57 28 32 00 32 01 B7 97 77 AF 57
67 B9 57 67 C7 57 67 C0 57 32 0F 87 32 0F 87 57
32 0F 87 32 0E 87 57 32 0E 87 32 0E 87 57 00 00

View File

@ -0,0 +1,13 @@
02 20 28 67 72 12 30 80 D1 74 02 02 00 28 67 72
12 20 80 D1 74 0D 02 30 28 67 72 02 31 28 67 72
02 32 28 67 72 02 33 28 67 72 02 34 28 67 72 02
35 28 67 72 02 36 28 67 72 02 37 28 67 72 02 38
28 67 72 02 39 28 67 72 02 3A 28 67 72 02 3B 28
67 72 02 3C 28 67 72 02 3D 28 67 72 02 3E 28 67
72 02 3F 28 67 72 12 E0 85 05 D2 05 71 70 52 00
3A 80 67 98 75 B0 77 78 67 9F 75 7E 77 8B 28 67
A6 75 B6 16 E0 DA 04 74 B0 77 B6 28 67 A6 75 B3
16 E0 DA 04 74 B0 77 B3 12 A0 F8 15 1A 00 57 12
A0 F8 15 1A 01 57 28 32 00 32 01 B7 97 77 AF 57
67 B9 57 67 C7 57 67 C0 57 32 0F 87 32 0F 87 57
32 0F 87 32 0E 87 57 32 0E 87 32 0E 87 57 00 00

View File

@ -0,0 +1,8 @@
02 01 28 67 16 02 01 28 67 16 12 E0 85 05 D2 05
71 14 52 00 3A 04 67 3C 75 54 77 1C 67 43 75 22
77 2F 28 67 4A 75 57 16 E0 DA 04 74 54 77 57 28
67 4A 75 57 16 E0 DA 04 74 54 77 57 12 A0 F8 15
1A 00 57 12 A0 F8 15 1A 01 57 28 32 00 32 01 B7
97 77 53 57 67 5D 57 67 6B 57 67 64 57 32 0F 87
32 0F 87 57 32 0E 87 32 0F 87 57 32 0E 87 32 0E
87 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00

View File

@ -0,0 +1,11 @@
# Download LED code into LED processor and enable (if applicable).
led 0 load /usr/share/sonic/platform/led-code/ledcode0;
led 0 auto on; led 0 start;
led 1 load /usr/share/sonic/platform/led-code/ledcode1;
led 1 auto on; led 1 start;
led 2 load /usr/share/sonic/platform/led-code/ledcode2;
led 2 auto on; led 2 start

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,23 @@
#!/usr/bin/env python
#############################################################################
# Celestica DX010
#
# Platform and model specific eeprom subclass, inherits from the base class,
# and provides the followings:
# - the eeprom format definition
# - specific encoder/decoder if there is special need
#############################################################################
try:
from sonic_eeprom import eeprom_tlvinfo
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/class/i2c-adapter/i2c-12/12-0050/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

View File

@ -0,0 +1,25 @@
#!/usr/bin/env python
try:
from sonic_sfp.sfputilbase import sfputilbase
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class sfputil(sfputilbase):
"""Platform specific sfputil class"""
port_start = 0
port_end = 31
ports_in_block = 32
port_to_eeprom_mapping = {}
_qsfp_ports = range(0, ports_in_block + 1)
def __init__(self, port_num):
# Override port_to_eeprom_mapping for class initialization
eeprom_path = '/sys/bus/i2c/devices/i2c-{0}/{0}-0050/eeprom'
for x in range(self.port_start, self.port_end + 1):
self.port_to_eeprom_mapping[x] = eeprom_path.format( x + 26 )
sfputilbase.__init__(self, port_num)

View File

@ -0,0 +1,12 @@
# libsensors configuration file
chip "dps460-*"
ignore fan2
ignore fan3
chip "dx010_lm75b-*"
set temp1_max 43
set temp1_max_hyst 28
chip "lm75b-*"
set temp1_max 43
set temp1_max_hyst 28