Skip to content

Commit 506e954

Browse files
authored
[device] Upgrade as4630_54pe for new platform (#4268)
- Add port auto-negotiation attribute. - Add CPLD command to disable mode.
1 parent 4511216 commit 506e954

2 files changed

Lines changed: 67 additions & 57 deletions

File tree

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
# name lanes alias index speed
2-
Ethernet0 26 thousandE1 1 1000
3-
Ethernet1 25 thousandE2 2 1000
4-
Ethernet2 28 thousandE3 3 1000
5-
Ethernet3 27 thousandE4 4 1000
6-
Ethernet4 30 thousandE5 5 1000
7-
Ethernet5 29 thousandE6 6 1000
8-
Ethernet6 32 thousandE7 7 1000
9-
Ethernet7 31 thousandE8 8 1000
10-
Ethernet8 38 thousandE9 9 1000
11-
Ethernet9 37 thousandE10 10 1000
12-
Ethernet10 40 thousandE11 11 1000
13-
Ethernet11 39 thousandE12 12 1000
14-
Ethernet12 34 thousandE13 13 1000
15-
Ethernet13 33 thousandE14 14 1000
16-
Ethernet14 36 thousandE15 15 1000
17-
Ethernet15 35 thousandE16 16 1000
18-
Ethernet16 46 thousandE17 17 1000
19-
Ethernet17 45 thousandE18 18 1000
20-
Ethernet18 48 thousandE19 19 1000
21-
Ethernet19 47 thousandE20 20 1000
22-
Ethernet20 42 thousandE21 21 1000
23-
Ethernet21 41 thousandE22 22 1000
24-
Ethernet22 44 thousandE23 23 1000
25-
Ethernet23 43 thousandE24 24 1000
26-
Ethernet24 2 thousandE25 25 1000
27-
Ethernet25 1 thousandE26 26 1000
28-
Ethernet26 4 thousandE27 27 1000
29-
Ethernet27 3 thousandE28 28 1000
30-
Ethernet28 6 thousandE29 29 1000
31-
Ethernet29 5 thousandE30 30 1000
32-
Ethernet30 8 thousandE31 31 1000
33-
Ethernet31 7 thousandE32 32 1000
34-
Ethernet32 10 thousandE33 33 1000
35-
Ethernet33 9 thousandE34 34 1000
36-
Ethernet34 12 thousandE35 35 1000
37-
Ethernet35 11 thousandE36 36 1000
38-
Ethernet36 14 thousandE37 37 1000
39-
Ethernet37 13 thousandE38 38 1000
40-
Ethernet38 16 thousandE39 39 1000
41-
Ethernet39 15 thousandE40 40 1000
42-
Ethernet40 18 thousandE41 41 1000
43-
Ethernet41 17 thousandE42 42 1000
44-
Ethernet42 20 thousandE43 43 1000
45-
Ethernet43 19 thousandE44 44 1000
46-
Ethernet44 22 thousandE45 45 1000
47-
Ethernet45 21 thousandE46 46 1000
48-
Ethernet46 24 thousandE47 47 1000
49-
Ethernet47 23 thousandE48 48 1000
50-
Ethernet48 67 twentyfiveGigE49 49 25000
51-
Ethernet49 66 twentyfiveGigE50 50 25000
52-
Ethernet50 65 twentyfiveGigE51 51 25000
53-
Ethernet51 68 twentyfiveGigE52 52 25000
54-
Ethernet52 73,74,75,76 hundredGigE53 53 100000
55-
Ethernet56 69,70,71,72 hundredGigE54 54 100000
1+
# name lanes alias index speed autoneg
2+
Ethernet0 26 thousandE1 1 1000 1
3+
Ethernet1 25 thousandE2 2 1000 1
4+
Ethernet2 28 thousandE3 3 1000 1
5+
Ethernet3 27 thousandE4 4 1000 1
6+
Ethernet4 30 thousandE5 5 1000 1
7+
Ethernet5 29 thousandE6 6 1000 1
8+
Ethernet6 32 thousandE7 7 1000 1
9+
Ethernet7 31 thousandE8 8 1000 1
10+
Ethernet8 38 thousandE9 9 1000 1
11+
Ethernet9 37 thousandE10 10 1000 1
12+
Ethernet10 40 thousandE11 11 1000 1
13+
Ethernet11 39 thousandE12 12 1000 1
14+
Ethernet12 34 thousandE13 13 1000 1
15+
Ethernet13 33 thousandE14 14 1000 1
16+
Ethernet14 36 thousandE15 15 1000 1
17+
Ethernet15 35 thousandE16 16 1000 1
18+
Ethernet16 46 thousandE17 17 1000 1
19+
Ethernet17 45 thousandE18 18 1000 1
20+
Ethernet18 48 thousandE19 19 1000 1
21+
Ethernet19 47 thousandE20 20 1000 1
22+
Ethernet20 42 thousandE21 21 1000 1
23+
Ethernet21 41 thousandE22 22 1000 1
24+
Ethernet22 44 thousandE23 23 1000 1
25+
Ethernet23 43 thousandE24 24 1000 1
26+
Ethernet24 2 thousandE25 25 1000 1
27+
Ethernet25 1 thousandE26 26 1000 1
28+
Ethernet26 4 thousandE27 27 1000 1
29+
Ethernet27 3 thousandE28 28 1000 1
30+
Ethernet28 6 thousandE29 29 1000 1
31+
Ethernet29 5 thousandE30 30 1000 1
32+
Ethernet30 8 thousandE31 31 1000 1
33+
Ethernet31 7 thousandE32 32 1000 1
34+
Ethernet32 10 thousandE33 33 1000 1
35+
Ethernet33 9 thousandE34 34 1000 1
36+
Ethernet34 12 thousandE35 35 1000 1
37+
Ethernet35 11 thousandE36 36 1000 1
38+
Ethernet36 14 thousandE37 37 1000 1
39+
Ethernet37 13 thousandE38 38 1000 1
40+
Ethernet38 16 thousandE39 39 1000 1
41+
Ethernet39 15 thousandE40 40 1000 1
42+
Ethernet40 18 thousandE41 41 1000 1
43+
Ethernet41 17 thousandE42 42 1000 1
44+
Ethernet42 20 thousandE43 43 1000 1
45+
Ethernet43 19 thousandE44 44 1000 1
46+
Ethernet44 22 thousandE45 45 1000 1
47+
Ethernet45 21 thousandE46 46 1000 1
48+
Ethernet46 24 thousandE47 47 1000 1
49+
Ethernet47 23 thousandE48 48 1000 1
50+
Ethernet48 67 twentyfiveGigE49 49 25000 0
51+
Ethernet49 66 twentyfiveGigE50 50 25000 0
52+
Ethernet50 65 twentyfiveGigE51 51 25000 0
53+
Ethernet51 68 twentyfiveGigE52 52 25000 0
54+
Ethernet52 73,74,75,76 hundredGigE53 53 100000 0
55+
Ethernet56 69,70,71,72 hundredGigE54 54 100000 0

platform/broadcom/sonic-platform-modules-accton/as4630-54pe/utils/accton_as4630_54pe_util.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
"""
1919
Usage: %(scriptName)s [options] command object
20-
2120
options:
2221
-h | --help : this help message
2322
-d | --debug : run with debug mode
@@ -108,7 +107,12 @@
108107
'echo 24c02 0x57 > /sys/bus/i2c/devices/i2c-1/new_device',
109108
]
110109

111-
110+
# Disable CPLD debug mode
111+
cpld_set =[
112+
'i2cset -y -f 3 0x60 0x2a 0xff',
113+
'i2cset -y -f 3 0x60 0x2b 0xff',
114+
'i2cset -y -f 3 0x60 0x86 0x89'
115+
]
112116

113117
FORCE = 0
114118
logging.basicConfig(filename= PROJECT_NAME+'.log', filemode='w',level=logging.DEBUG)
@@ -353,6 +357,12 @@ def do_install():
353357
return status
354358
else:
355359
print PROJECT_NAME.upper()+" devices detected...."
360+
361+
for i in range(len(cpld_set)):
362+
status, output = log_os_system(cpld_set[i], 1)
363+
if status:
364+
if FORCE == 0:
365+
return status
356366
return
357367

358368
def do_uninstall():

0 commit comments

Comments
 (0)