Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# name lanes alias index speed
Ethernet0 33,34,35,36 Ethernet1/0/1 0 100000
Ethernet4 37,38,39,40 Ethernet1/0/5 1 100000
Ethernet8 41,42,43,44 Ethernet1/0/9 2 100000
Ethernet12 45,46,47,48 Ethernet1/0/13 3 100000
Ethernet16 49,50,51,52 Ethernet1/0/17 4 100000
Ethernet20 53,54,55,56 Ethernet1/0/21 5 100000
Ethernet24 57,58,59,60 Ethernet1/0/25 6 100000
Ethernet28 61,62,63,64 Ethernet1/0/29 7 100000
Ethernet32 65,66,67,68 Ethernet1/0/33 8 100000
Ethernet36 69,70,71,72 Ethernet1/0/37 9 100000
Ethernet40 73,74,75,76 Ethernet1/0/41 10 100000
Ethernet44 77,78,79,80 Ethernet1/0/45 11 100000
Ethernet48 81,82,83,84 Ethernet1/0/49 12 100000
Ethernet52 85,86,87,88 Ethernet1/0/53 13 100000
Ethernet56 89,90,91,92 Ethernet1/0/57 14 100000
Ethernet60 93,94,95,96 Ethernet1/0/61 15 100000
Ethernet64 97,98,99,100 Ethernet1/0/65 16 100000
Ethernet68 101,102,103,104 Ethernet1/0/69 17 100000
Ethernet72 105,106,107,108 Ethernet1/0/73 18 100000
Ethernet76 109,110,111,112 Ethernet1/0/77 19 100000
Ethernet80 113,114,115,116 Ethernet1/0/81 20 100000
Ethernet84 117,118,119,120 Ethernet1/0/85 21 100000
Ethernet88 121,122,123,124 Ethernet1/0/89 22 100000
Ethernet92 125,126,127,128 Ethernet1/0/93 23 100000
Ethernet96 1,2,3,4 Ethernet1/0/97 24 100000
Ethernet100 5,6,7,8 Ethernet1/0/101 25 100000
Ethernet104 9,10,11,12 Ethernet1/0/105 26 100000
Ethernet108 13,14,15,16 Ethernet1/0/109 27 100000
Ethernet112 17,18,19,20 Ethernet1/0/113 28 100000
Ethernet116 21,22,23,24 Ethernet1/0/117 29 100000
Ethernet120 25,26,27,28 Ethernet1/0/121 30 100000
Ethernet124 29,30,31,32 Ethernet1/0/125 31 100000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-snh60a0-32x100G.config.bcm
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# This property file is for ZION-320F 100G mode only.
# Zion-320F uses Tomahawk BCM56960 as its mac. Besides, it is phyless.
# Note: The settings in this file are not verified yet.



# Set stat collection interval in microseconds.
# Setting this to 0 will prevent counters from being started.
bcm_stat_interval.0=1000000

# Linkscan interval in microseconds.
# If non-zero, bcm_init() will start linkscan
bcm_linkscan_interval.0=450000



# BCM56960 : MMU Cell Buffer Allocation Profile to support ASF (cut-thru) Forwarding
# 0: No cut-through support
# 1: Similar speed profile (Default)
# 2: Extreme speed profile

os=unix



# EagleCore ports
#portmap_66=129:10
#portmap_100=131:10

# Loopback ports
portmap_33=132:10
portmap_67=133:10
portmap_101=134:10
portmap_135=135:10

#FalconCore[0 - 7] must map to logical port[1 - 32]
portmap_1=1:100
portmap_2=5:100
portmap_3=9:100
portmap_4=13:100
portmap_5=17:100
portmap_6=21:100
portmap_7=25:100
portmap_8=29:100
#FalconCore[8 - 15] must map to logical port[34 - 65]
portmap_34=33:100
portmap_35=37:100
portmap_36=41:100
portmap_37=45:100
portmap_38=49:100
portmap_39=53:100
portmap_40=57:100
portmap_41=61:100
#FalconCore[16 - 23] must map to logical port[68 - 99]
portmap_68=65:100
portmap_69=69:100
portmap_70=73:100
portmap_71=77:100
portmap_72=81:100
portmap_73=85:100
portmap_74=89:100
portmap_75=93:100
#FalconCore[24 - 31] must map to logical port[102 - 133]
portmap_102=97:100
portmap_103=101:100
portmap_104=105:100
portmap_105=109:100
portmap_106=113:100
portmap_107=117:100
portmap_108=121:100
portmap_109=125:100

pbmp_xport_xe=0x3fd000000ff4000003fc000001fe
pbmp_oversubscribe=0x0000000000000000000000000000000000003fc000000ff0000003fc000001fe



#core-0
xgxs_rx_lane_map_ce0=0x3012
xgxs_rx_lane_map_ce1=0x1230
xgxs_rx_lane_map_ce2=0x3012
xgxs_rx_lane_map_ce3=0x1230
xgxs_rx_lane_map_ce4=0x1230
xgxs_rx_lane_map_ce5=0x1230
xgxs_rx_lane_map_ce6=0x1230
xgxs_rx_lane_map_ce7=0x1230

#core-8
xgxs_rx_lane_map_ce8=0x1032
xgxs_rx_lane_map_ce9=0x1230
xgxs_rx_lane_map_ce10=0x1032
xgxs_rx_lane_map_ce11=0x1230
xgxs_rx_lane_map_ce12=0x1230
xgxs_rx_lane_map_ce13=0x3012
xgxs_rx_lane_map_ce14=0x1230
xgxs_rx_lane_map_ce15=0x3012

#core-16
xgxs_rx_lane_map_ce16=0x3012
xgxs_rx_lane_map_ce17=0x3012
xgxs_rx_lane_map_ce18=0x1230
xgxs_rx_lane_map_ce19=0x3012
xgxs_rx_lane_map_ce20=0x3012
xgxs_rx_lane_map_ce21=0x3012
xgxs_rx_lane_map_ce22=0x3012
xgxs_rx_lane_map_ce23=0x3012

#core-24
xgxs_rx_lane_map_ce24=0x3210
xgxs_rx_lane_map_ce25=0x3012
xgxs_rx_lane_map_ce26=0x3210
xgxs_rx_lane_map_ce27=0x3012
xgxs_rx_lane_map_ce28=0x3012
xgxs_rx_lane_map_ce29=0x1230
xgxs_rx_lane_map_ce30=0x3012
xgxs_rx_lane_map_ce31=0x3012

#
# Remap XGXS tx lanes to desired mapping by hardware provide.
#core-0
xgxs_tx_lane_map_ce0=0x3210
xgxs_tx_lane_map_ce1=0x1032
xgxs_tx_lane_map_ce2=0x3210
xgxs_tx_lane_map_ce3=0x1032
xgxs_tx_lane_map_ce4=0x3210
xgxs_tx_lane_map_ce5=0x3210
xgxs_tx_lane_map_ce6=0x3210
xgxs_tx_lane_map_ce7=0x1230

#core-8
xgxs_tx_lane_map_ce8=0x2301
xgxs_tx_lane_map_ce9=0x3210
xgxs_tx_lane_map_ce10=0x2301
xgxs_tx_lane_map_ce11=0x3210
xgxs_tx_lane_map_ce12=0x0123
xgxs_tx_lane_map_ce13=0x3210
xgxs_tx_lane_map_ce14=0x0123
xgxs_tx_lane_map_ce15=0x3210

#core-16
xgxs_tx_lane_map_ce16=0x2301
xgxs_tx_lane_map_ce17=0x3210
xgxs_tx_lane_map_ce18=0x0123
xgxs_tx_lane_map_ce19=0x1032
xgxs_tx_lane_map_ce20=0x0123
xgxs_tx_lane_map_ce21=0x1032
xgxs_tx_lane_map_ce22=0x0123
xgxs_tx_lane_map_ce23=0x1032

#core-24
xgxs_tx_lane_map_ce24=0x1032
xgxs_tx_lane_map_ce25=0x1032
xgxs_tx_lane_map_ce26=0x1032
xgxs_tx_lane_map_ce27=0x1032
xgxs_tx_lane_map_ce28=0x1032
xgxs_tx_lane_map_ce29=0x1032
xgxs_tx_lane_map_ce30=0x3210
xgxs_tx_lane_map_ce31=0x3210



ptp_ts_pll_fref=25000000
ptp_bs_fref=25000000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Alphanetworks-SNH60A0-320FV2 t1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
INTERVAL=10
FCTEMPS=/sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/4-004d/hwmon/hwmon3/temp1_input
FCFANS=/sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan1_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan2_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan3_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan4_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan5_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan6_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan11_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan12_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan13_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan14_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan15_input /sys/bus/i2c/devices/0-005e/fan_pwm=/sys/bus/i2c/devices/0-005e/fan16_input
MINTEMP=/sys/bus/i2c/devices/0-005e/fan_pwm=50
MAXTEMP=/sys/bus/i2c/devices/0-005e/fan_pwm=70
MINSTART=/sys/bus/i2c/devices/0-005e/fan_pwm=100
MINSTOP=/sys/bus/i2c/devices/0-005e/fan_pwm=100
MINPWM=/sys/bus/i2c/devices/0-005e/fan_pwm=100
MAXPWM=/sys/bus/i2c/devices/0-005e/fan_pwm=200
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONSOLE_PORT=0x2f8
CONSOLE_DEV=1
CONSOLE_SPEED=115200
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# LED microprocessor initialization for alphanetworks snh60a0-320fv2

modreg CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=31 REMAP_PORT_1=30 REMAP_PORT_2=29 REMAP_PORT_3=28
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=27 REMAP_PORT_5=26 REMAP_PORT_6=25 REMAP_PORT_7=24
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=23 REMAP_PORT_9=22 REMAP_PORT_10=21 REMAP_PORT_11=20
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=19 REMAP_PORT_13=18 REMAP_PORT_14=17 REMAP_PORT_15=16
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=15 REMAP_PORT_17=14 REMAP_PORT_18=13 REMAP_PORT_19=12
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=11 REMAP_PORT_21=10 REMAP_PORT_22=9 REMAP_PORT_23=8
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=7 REMAP_PORT_25=6 REMAP_PORT_26=5 REMAP_PORT_27=4
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=3 REMAP_PORT_29=2 REMAP_PORT_30=1 REMAP_PORT_31=0
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=63 REMAP_PORT_33=62 REMAP_PORT_34=61 REMAP_PORT_35=60
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=59 REMAP_PORT_37=58 REMAP_PORT_38=57 REMAP_PORT_39=56
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=55 REMAP_PORT_41=54 REMAP_PORT_42=53 REMAP_PORT_43=52
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=51 REMAP_PORT_45=50 REMAP_PORT_46=49 REMAP_PORT_47=48
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=47 REMAP_PORT_49=46 REMAP_PORT_50=45 REMAP_PORT_51=44
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=43 REMAP_PORT_53=42 REMAP_PORT_54=41 REMAP_PORT_55=40
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=39 REMAP_PORT_57=38 REMAP_PORT_58=37 REMAP_PORT_59=36
modreg CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=35 REMAP_PORT_61=34 REMAP_PORT_62=33 REMAP_PORT_63=32

modreg CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=3 REMAP_PORT_1=2 REMAP_PORT_2=1 REMAP_PORT_3=0
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=7 REMAP_PORT_5=6 REMAP_PORT_6=5 REMAP_PORT_7=4
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=11 REMAP_PORT_9=10 REMAP_PORT_10=9 REMAP_PORT_11=8
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=15 REMAP_PORT_13=14 REMAP_PORT_14=13 REMAP_PORT_15=12
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=19 REMAP_PORT_17=18 REMAP_PORT_18=17 REMAP_PORT_19=16
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=23 REMAP_PORT_21=22 REMAP_PORT_22=21 REMAP_PORT_23=20
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=27 REMAP_PORT_25=26 REMAP_PORT_26=25 REMAP_PORT_27=24
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=31 REMAP_PORT_29=30 REMAP_PORT_30=29 REMAP_PORT_31=28
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=35 REMAP_PORT_33=34 REMAP_PORT_34=33 REMAP_PORT_35=32
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=39 REMAP_PORT_37=38 REMAP_PORT_38=37 REMAP_PORT_39=36
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=43 REMAP_PORT_41=42 REMAP_PORT_42=41 REMAP_PORT_43=40
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=47 REMAP_PORT_45=46 REMAP_PORT_46=45 REMAP_PORT_47=44
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=51 REMAP_PORT_49=50 REMAP_PORT_50=49 REMAP_PORT_51=48
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=55 REMAP_PORT_53=54 REMAP_PORT_54=53 REMAP_PORT_55=52
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=59 REMAP_PORT_57=58 REMAP_PORT_58=57 REMAP_PORT_59=56
modreg CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=62 REMAP_PORT_62=61 REMAP_PORT_63=60

led 0 stop
led 0 prog 2A 01 86 FF 06 FF C2 7F 60 FF 02 20 60 FE 67 2E 06 FE F2 04 60 FE D2 40 74 0E 70 1C 02 00 60 FE 67 2E 06 FE F2 04 60 FE D2 20 74 20 70 70 02 A0 F6 FE 04 D2 01 70 39 74 5F 06 FE 28 32 00 32 01 B7 97 71 46 75 4E 06 FF C2 04 74 4E 70 5F 67 76 67 72 67 76 67 76 67 76 67 76 67 76 67 76 57 67 76 67 76 67 76 67 76 67 76 67 76 67 76 67 76 57 3A 80 32 0E 87 57 32 0F 87 57
led 0 auto on
led 0 start

led 1 stop
led 1 prog 2A 01 86 FF 06 FF C2 7F 60 FF 02 00 60 FE 67 1C 06 FE F2 04 60 FE D2 40 74 0E 70 5E 02 A0 F6 FE 04 D2 01 70 27 74 4D 06 FE 28 32 00 32 01 B7 97 71 34 75 3C 06 FF C2 04 74 3C 70 4D 67 64 67 60 67 64 67 64 67 64 67 64 67 64 67 64 57 67 64 67 64 67 64 67 64 67 64 67 64 67 64 67 64 57 3A 80 32 0E 87 57 32 0F 87 57
led 1 auto on
led 1 start
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python

try:
import exceptions
import binascii
import time
import optparse
import warnings
import os
import sys
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
import subprocess
except ImportError, e:
raise ImportError (str(e) + "- required module not found")

class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/bus/i2c/devices/1-0056/eeprom"
#Two i2c buses might get flipped order, check them both.
if not os.path.exists(self.eeprom_path):
self.eeprom_path = "/sys/bus/i2c/devices/0-0056/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)
Loading