Skip to content

Commit 1e17d9c

Browse files
LuiSzeejudyjoseph
authored andcommitted
[centec] support v682-48y8c and v682-48x8c (#9349)
Why I did it Adding platform support for centec v682-48y8c and v682-48x8c. V682-48y8c switch has 48 SFP+ (1G/10G/25G) ports, 8 QSFP28 (40G/100G) ports on CENTEC TsingMa.MX. V682-48y8c is different from V682-48y8c_d in that: transceiver is managed by cpu smbus rather than TsingMa.MX i2c bus. port led is managed by mcu inside TsingMa.MX. fan, psu, sensors, leds are managed by cpu smbus other than the cpu board vendor's close sourse driver. V682-48x8c switch has 48 SFP+ (1G/10G) ports, 8 QSFP28 (40G/100G) ports on CENTEC TsingMa.MX. CPU used in v682-48y8c and v682-48x8c is Intel(R) Xeon(R) CPU D-1527. How I did it Modify related code in platform and device directory. Upgrade centec sai to v1.9. upgrade python to python3 and kernel version to 5.0 for V682-48y8c_d. How to verify it Build centec amd64 sonic image, verify platform functions (port, sfp, led etc) on centec v682-48y8c and v682-48x8c board. Co-authored-by: shil <[email protected]>
1 parent a1e9150 commit 1e17d9c

86 files changed

Lines changed: 10894 additions & 20 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

device/centec/x86_64-centec_v682_48x8c-r0/V682-48x8c/V682-48x8c-board.json

Lines changed: 597 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
#----------------- SDK Feature Support --------------
2+
[MPLS_SUPPORT] = 1;
3+
[APS_SUPPORT] = 1;
4+
[OAM_SUPPORT] = 1;
5+
[PTP_SUPPORT] = 0;
6+
[SYNCE_SUPPORT] = 0;
7+
[STACKING_SUPPORT] = 1;
8+
[BPE_SUPPORT] = 0;
9+
[IPFIX_SUPPORT] = 1;
10+
[MONITOR_SUPPORT] = 1;
11+
[OVERLAY_SUPPORT] = 1;
12+
[EFD_SUPPORT] = 1;
13+
[FCOE_SUPPORT] = 0;
14+
[TRILL_SUPPORT] = 0;
15+
[WLAN_SUPPORT] = 0;
16+
[NPM_SUPPORT] = 1;
17+
[DOT1AE_SUPPORT] = 1;
18+
[SRV6_SUPPORT] = 0;
19+
[DTEL_SUPPORT] = 1;
20+
[FLEXE_SUPPORT] = 0;
21+
[FDBTOKEN_SUPPORT] = 1;
22+
23+
#----------------- Chip Init Parameter --------------
24+
#Local chip number and global chip id
25+
[Local chip_num] = 1
26+
[Local chip0] = 0
27+
[Local chip1] = 1
28+
[Port_phy_mapping] = 1
29+
30+
#Cut through mode 0: Disable; 1:10/40/100G; 2:1/10/100G; 3:1/10/40G; other:Flex, refer to CUT_THROUGH_BITMAP
31+
[CUT_THROUGH_SPEED] = 0
32+
#Flex cut through mode, speed enable by bitmap, refer to ctc_port_speed_t, Notice: 10M/100M/1G treat as the same speed
33+
[CUT_THROUGH_BITMAP] = 0
34+
35+
#Network cpu port
36+
[CPU_NETWORK_PORT_EN] = 0
37+
[CPU_NETWORK_PORT_ID] = 47
38+
39+
#Enable parity error and multi-bit ecc recover
40+
[ECC_RECOVER_EN] = 0
41+
[TCAM_SCAN_EN] = 0
42+
[SDB_EN] = 0
43+
44+
#----------------- KNET Init Parameter --------------
45+
[KNET_EN] = 0
46+
47+
#----------------- FTM Init Parameter --------------
48+
#0: not use; 1: default; 2: layer3; 3: ipv6
49+
[FTM Profile] = 0
50+
51+
#----------------- Interrupt Init Parameter --------------
52+
#0: pin, 1: msi
53+
[Interrupt_mode] = 1
54+
55+
#----------------- NextHop Init Parameter --------------
56+
#0: SDK work in pizzbox (single chip system), 1: SDK work in multi-chip system
57+
[Nexthop Edit Mode] = 0
58+
[External Nexthop Number] = 16384
59+
[MPLS Tunnel Number] = 1024
60+
[H_ECMP_EN] = 0
61+
62+
#----------------- L2 Init Parameter --------------
63+
[FDB Hw Learning] = 0
64+
[Logic Port Num] = 1024
65+
#0: 128 instance per port, 1: 64 instance per port, 2: 32 instance per port
66+
[STP MODE] = 0
67+
[MAX_FID_NUM] = 5120
68+
69+
#----------------- Stats Init Parameter --------------
70+
[STATS_QUEUE_DEQ_EN] = 1
71+
[STATS_QUEUE_DROP_EN] = 1
72+
[STATS_FLOW_POLICER_EN] = 1
73+
[STATS_VLAN_EN] = 0
74+
[STATS_VRF_EN] = 0
75+
[STATS_POLICER_NUM] = 1024
76+
[STATS_PORT_EN] = 0
77+
[STATS_ECMP_EN] = 0
78+
79+
#----------------- BPE Init Parameter --------------
80+
[BPE_BR_PORT_EXTENDER_EN] = 0
81+
[BPE_BR_UC_MAX_ECID] = 1024
82+
[BPE_BR_MC_MAX_ECID] = 4096
83+
[BPE_BR_PORT_BASE] = 0
84+
85+
#----------------- Ipuc Init Parameter --------------
86+
#0: tcam use prefix 16; 1: tcam use prefix 8
87+
[IPUC_TCAM_PREFIX_8] = 1
88+
89+
#----------------- QoS Init Parameter --------------
90+
#QoS policer number support 1K/2K/4K/8K, default 4K
91+
[QOS_POLICER_NUM] = 4096
92+
#qos queue mode 0: 8(basic)+1(cpu)
93+
#qos queue mode 1: 8(basic)+1(span)+1(mcast)
94+
[QOS_QUEUE_MODE] = 0
95+
#QoS port extend queue number support 0/4, default 0
96+
[QOS_PORT_EXT_QUEUE_NUM] = 0
97+
#QoS CPU reason queue number support 128/64/32, default 128
98+
[QOS_CPU_QUEUE_NUM] = 128
99+
[QOS_INGRESS_VLAN_POLICER_NUM] = 0
100+
[QOS_EGRESS_VLAN_POLICER_NUM] = 0
101+
#QoS the max number of igs/egs reserve macro policer,which ACL entry support micro and macro at the same time
102+
[QOS_INGRESS_MACRO_POLICER_NUM] = 0
103+
[QOS_EGRESS_MACRO_POLICER_NUM] = 0
104+
#QOS service queue mode, default 0,0:logic scr port + dstport enq 1:service id + dstport enq
105+
[QOS_SERVICE_QUEUE_MODE] = 0
106+
#mode 0:svc policer used for service policer
107+
#mode 1:svc policer used for stormctl
108+
[QOS_POLICER_SVC_MODE] = 0
109+
110+
#----------------- Stacking Init Parameter --------------
111+
#0: normal mode; 1: spine-leaf mode
112+
[FABRIC MODE] = 0
113+
[STACKING VERSION] = 1
114+
#----------------- LB hash Init Parameter --------------
115+
#0: support 4 select num; 1: support 8 select num; only TM2 support mode 1
116+
[LB_HASH_MODE] = 0

0 commit comments

Comments
 (0)