sonic-buildimage/device/centec/x86_64-centec_v682_48y8c-r0/V682-48y8c/V682-48y8c-board.json
LuiSzee 1e17d9c5b2 [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 <shil@centecnetworks.com>
2021-12-26 20:57:12 -08:00

598 lines
20 KiB
JSON

{
"macleds" : {
"polarity" : 1,
"cpumode" : 1,
"maps" : [
{
"port_id" : 32,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port0/brightness"
},
{
"port_id" : 33,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port1/brightness"
},
{
"port_id" : 34,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port2/brightness"
},
{
"port_id" : 35,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port3/brightness"
},
{
"port_id" : 0,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port4/brightness"
},
{
"port_id" : 4,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port5/brightness"
},
{
"port_id" : 8,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port6/brightness"
},
{
"port_id" : 12,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port7/brightness"
},
{
"port_id" : 16,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port8/brightness"
},
{
"port_id" : 20,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port9/brightness"
},
{
"port_id" : 24,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port10/brightness"
},
{
"port_id" : 28,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port11/brightness"
},
{
"port_id" : 40,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port12/brightness"
},
{
"port_id" : 44,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port13/brightness"
},
{
"port_id" : 48,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port14/brightness"
},
{
"port_id" : 52,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port15/brightness"
},
{
"port_id" : 56,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port16/brightness"
},
{
"port_id" : 60,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port17/brightness"
},
{
"port_id" : 64,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port18/brightness"
},
{
"port_id" : 68,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port19/brightness"
},
{
"port_id" : 72,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port20/brightness"
},
{
"port_id" : 73,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port21/brightness"
},
{
"port_id" : 74,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port22/brightness"
},
{
"port_id" : 75,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port23/brightness"
},
{
"port_id" : 120,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port48/brightness"
},
{
"port_id" : 124,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port49/brightness"
},
{
"port_id" : 80,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port50/brightness"
},
{
"port_id" : 84,
"lchip" : 0,
"ctl_id" : 0,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port51/brightness"
},
{
"port_id" : 232,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port24/brightness"
},
{
"port_id" : 233,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port25/brightness"
},
{
"port_id" : 234,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port26/brightness"
},
{
"port_id" : 235,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port27/brightness"
},
{
"port_id" : 200,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port28/brightness"
},
{
"port_id" : 204,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port29/brightness"
},
{
"port_id" : 208,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port30/brightness"
},
{
"port_id" : 212,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port31/brightness"
},
{
"port_id" : 216,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port32/brightness"
},
{
"port_id" : 220,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port33/brightness"
},
{
"port_id" : 224,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port34/brightness"
},
{
"port_id" : 228,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port35/brightness"
},
{
"port_id" : 160,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port36/brightness"
},
{
"port_id" : 164,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port37/brightness"
},
{
"port_id" : 168,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port38/brightness"
},
{
"port_id" : 172,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port39/brightness"
},
{
"port_id" : 176,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port40/brightness"
},
{
"port_id" : 180,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port41/brightness"
},
{
"port_id" : 184,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port42/brightness"
},
{
"port_id" : 188,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port43/brightness"
},
{
"port_id" : 192,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port44/brightness"
},
{
"port_id" : 193,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port45/brightness"
},
{
"port_id" : 194,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port46/brightness"
},
{
"port_id" : 195,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port47/brightness"
},
{
"port_id" : 240,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 0,
"sysfs_path" : "/sys/class/leds/port52/brightness"
},
{
"port_id" : 244,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port53/brightness"
},
{
"port_id" : 280,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port54/brightness"
},
{
"port_id" : 284,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_2_FORCE_OFF",
"fixed" : 1,
"sysfs_path" : "/sys/class/leds/port55/brightness"
},
{
"port_id" : 161,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 162,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 165,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
},
{
"port_id" : 166,
"lchip" : 0,
"ctl_id" : 1,
"mode" : "LED_MODE_1_FORCE_OFF",
"fixed" : 0
}
]
},
"ffe" : {
"board_material" : "BOARD_MATERIAL_M4",
"config" : [
{
"serdes_id" : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75],
"is_dac" : 1,
"speed" : [10000, 25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [2, -13, 46, 0, 0]
},
{
"serdes_id" : [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 52, 53, 54, 55, 56, 57, 58, 59],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 46, -8, 0]
},
{
"serdes_id" : [0, 1, 16, 17, 18, 19, 20, 21, 22, 23],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -6, 0]
},
{
"serdes_id" : [24, 25, 26, 27, 72, 74, 75],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
},
{
"serdes_id" : [48, 49, 51, 64, 65, 66, 67, 68, 69, 70, 71, 73],
"is_dac" : 0,
"speed" : [10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -6, 0]
},
{
"serdes_id" : [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 50, 52, 53, 54, 55, 56, 57, 58, 59],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 44, -14, -1]
},
{
"serdes_id" : [0, 1, 16, 17, 18, 19, 20, 21, 22, 23],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 38, -10, -2]
},
{
"serdes_id" : [24, 25, 26, 27, 72, 74, 75],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 36, -6, -2]
},
{
"serdes_id" : [48, 49, 51, 64, 65, 66, 67, 68, 69, 70, 71, 73],
"is_dac" : 0,
"speed" : [25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 38, -10, -2]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 1,
"speed" : [100000, 25000, 40000, 10000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [2, -13, 46, 0, 0]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 1,
"speed" : [1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 0,
"speed" : [100000, 25000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 36, -6, -2]
},
{
"serdes_id" : [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95],
"is_dac" : 0,
"speed" : [40000, 10000, 1000],
"mode" : "CTC_CHIP_SERDES_FFE_MODE_DEFINE",
"cfg" : [0, 0, 42, -4, 0]
}
]
}
}