Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[platform]: Add S8900 two series for ingrasys #517

Closed
wants to merge 1 commit into from
Closed
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,55 @@
# name lanes alias
Ethernet0 1 Ethernet0
Ethernet1 2 Ethernet1
Ethernet2 3 Ethernet2
Ethernet3 4 Ethernet3
Ethernet4 5 Ethernet4
Ethernet5 6 Ethernet5
Ethernet6 7 Ethernet6
Ethernet7 8 Ethernet7
Ethernet8 9 Ethernet8
Ethernet9 10 Ethernet9
Ethernet10 11 Ethernet10
Ethernet11 12 Ethernet11
Ethernet12 21 Ethernet12
Ethernet13 22 Ethernet13
Ethernet14 23 Ethernet14
Ethernet15 24 Ethernet15
Ethernet16 33 Ethernet16
Ethernet17 34 Ethernet17
Ethernet18 35 Ethernet18
Ethernet19 36 Ethernet19
Ethernet20 37 Ethernet20
Ethernet21 38 Ethernet21
Ethernet22 39 Ethernet22
Ethernet23 40 Ethernet23
Ethernet24 41 Ethernet24
Ethernet25 42 Ethernet25
Ethernet26 43 Ethernet26
Ethernet27 44 Ethernet27
Ethernet28 49 Ethernet28
Ethernet29 50 Ethernet29
Ethernet30 51 Ethernet30
Ethernet31 52 Ethernet31
Ethernet32 53 Ethernet32
Ethernet33 54 Ethernet33
Ethernet34 55 Ethernet34
Ethernet35 56 Ethernet35
Ethernet36 65 Ethernet36
Ethernet37 66 Ethernet37
Ethernet38 67 Ethernet38
Ethernet39 68 Ethernet39
Ethernet40 69 Ethernet40
Ethernet41 70 Ethernet41
Ethernet42 71 Ethernet42
Ethernet43 72 Ethernet43
Ethernet44 81 Ethernet44
Ethernet45 82 Ethernet45
Ethernet46 83 Ethernet46
Ethernet47 84 Ethernet47
Ethernet48 85,86,87,88 Ethernet48
Ethernet52 97,98,99,100 Ethernet52
Ethernet56 101,102,103,104 Ethernet56
Ethernet60 105,106,107,108 Ethernet60
Ethernet64 109,110,111,112 Ethernet64
Ethernet68 117,118,119,120 Ethernet68
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-s8900-48x25G+6x100G.config.bcm
3 changes: 3 additions & 0 deletions device/ingrasys/x86_64-ingrasys_s8900_54xc-r0/installer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONSOLE_PORT=0x2f8
CONSOLE_DEV=1
CONSOLE_SPEED=115200
121 changes: 121 additions & 0 deletions device/ingrasys/x86_64-ingrasys_s8900_54xc-r0/minigraph.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<DeviceMiniGraph xmlns="Microsoft.Search.Autopilot.Evolution" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CpgDec>
<IsisRouters xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
<PeeringSessions>
<BGPSession>
<StartRouter>OCPSCH0104001MS</StartRouter>
<StartPeer>10.10.1.30</StartPeer>
<EndRouter>OCPSCH01040HHLF</EndRouter>
<EndPeer>10.10.1.29</EndPeer>
<Multihop>1</Multihop>
<HoldTime>10</HoldTime>
<KeepAliveTime>3</KeepAliveTime>
</BGPSession>
<BGPSession>
<StartRouter>OCPSCH0104002MS</StartRouter>
<StartPeer>10.10.2.30</StartPeer>
<EndRouter>OCPSCH01040HHLF</EndRouter>
<EndPeer>10.10.2.29</EndPeer>
<Multihop>1</Multihop>
<HoldTime>10</HoldTime>
<KeepAliveTime>3</KeepAliveTime>
</BGPSession>
</PeeringSessions>
<Routers xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:BGPRouterDeclaration>
<a:ASN>64536</a:ASN>
<a:Hostname>OCPSCH01040HHLF</a:Hostname>
<a:Peers>
<BGPPeer>
<Address>10.10.1.30</Address>
<RouteMapIn i:nil="true"/>
<RouteMapOut i:nil="true"/>
</BGPPeer>
<BGPPeer>
<Address>10.10.2.30</Address>
<RouteMapIn i:nil="true"/>
<RouteMapOut i:nil="true"/>
</BGPPeer>
</a:Peers>
<a:RouteMaps/>
</a:BGPRouterDeclaration>
<a:BGPRouterDeclaration>
<a:ASN>64542</a:ASN>
<a:Hostname>OCPSCH0104001MS</a:Hostname>
<a:RouteMaps/>
</a:BGPRouterDeclaration>
<a:BGPRouterDeclaration>
<a:ASN>64543</a:ASN>
<a:Hostname>OCPSCH0104002MS</a:Hostname>
<a:RouteMaps/>
</a:BGPRouterDeclaration>
</Routers>
</CpgDec>
<DpgDec>
<DeviceDataPlaneInfo>
<IPSecTunnels/>
<LoopbackIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
<a:LoopbackIPInterface>
<Name>HostIP</Name>
<AttachTo>Loopback0</AttachTo>
<a:Prefix xmlns:b="Microsoft.Search.Autopilot.NetMux">
<b:IPPrefix>100.0.0.10/32</b:IPPrefix>
</a:Prefix>
<a:PrefixStr>100.0.0.10/32</a:PrefixStr>
</a:LoopbackIPInterface>
</LoopbackIPInterfaces>
<ManagementIPInterfaces xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution">
</ManagementIPInterfaces>
<MplsInterfaces/>
<MplsTeInterfaces/>
<RsvpInterfaces/>
<Hostname>OCPSCH01040HHLF</Hostname>
<PortChannelInterfaces/>
<VlanInterfaces/>
<IPInterfaces>
<IPInterface>
<Name i:nil="true"/>
<AttachTo>Ethernet48</AttachTo>
<Prefix>10.10.1.29/30</Prefix>
</IPInterface>
<IPInterface>
<Name i:nil="true"/>
<AttachTo>Ethernet52</AttachTo>
<Prefix>10.10.2.29/30</Prefix>
</IPInterface>
</IPInterfaces>
<DataAcls/>
<AclInterfaces/>
<DownstreamSummaries/>
<DownstreamSummarySet xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Search.Autopilot.Evolution"/>
</DeviceDataPlaneInfo>
</DpgDec>
<PngDec>
<DeviceInterfaceLinks>
<DeviceLinkBase i:type="DeviceInterfaceLink">
<Bandwidth>40000</Bandwidth>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>OCPSCH0104001MS</EndDevice>
<EndPort>Ethernet48</EndPort>
<StartDevice>OCPSCH01040HHLF</StartDevice>
<StartPort>Ethernet48</StartPort>
</DeviceLinkBase>
<DeviceLinkBase i:type="DeviceInterfaceLink">
<Bandwidth>40000</Bandwidth>
<ElementType>DeviceInterfaceLink</ElementType>
<EndDevice>OCPSCH0104002MS</EndDevice>
<EndPort>Ethernet0</EndPort>
<StartDevice>OCPSCH01040HHLF</StartDevice>
<StartPort>Ethernet52</StartPort>
</DeviceLinkBase>
</DeviceInterfaceLinks>
<Devices>
<Device i:type="LeafRouter">
<Hostname>OCPSCH01040HHLF</Hostname>
<HwSku>INGRASYS-S8900-54XC</HwSku>
</Device>
</Devices>
</PngDec>
<Hostname>OCPSCH01040HHLF</Hostname>
<HwSku>INGRASYS-S8900-54XC</HwSku>
</DeviceMiniGraph>
23 changes: 23 additions & 0 deletions device/ingrasys/x86_64-ingrasys_s8900_54xc-r0/plugins/eeprom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python

#############################################################################
# Dell Z9100
#
# 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-17/17-0054/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

82 changes: 82 additions & 0 deletions device/ingrasys/x86_64-ingrasys_s8900_54xc-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/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 = 53
ports_in_block = 54

port_to_eeprom_mapping = {}
port_to_i2c_mapping = {
0: 18,
1: 19,
2: 20,
3: 21,
4: 22,
5: 23,
6: 24,
7: 25,
8: 26,
9: 27,
10: 28,
11: 29,
12: 30,
13: 31,
14: 32,
15: 33,
16: 34,
17: 35,
18: 36,
19: 37,
20: 38,
21: 39,
22: 40,
23: 41,
24: 42,
25: 43,
26: 44,
27: 45,
28: 46,
29: 47,
30: 48,
31: 49,
32: 50,
33: 51,
34: 52,
35: 53,
36: 54,
37: 55,
38: 56,
39: 57,
40: 58,
41: 59,
42: 60,
43: 61,
44: 62,
45: 63,
46: 64,
47: 65,
48: 66,
49: 67,
50: 68,
51: 69,
52: 70,
53: 71
}

_qsfp_ports = range(0, ports_in_block + 1)

def __init__(self, port_num):
# Override port_to_eeprom_mapping for class initialization
eeprom_path = '/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom'
for x in range(self.port_start, self.port_end + 1):
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x])
self.port_to_eeprom_mapping[x] = port_eeprom_path
sfputilbase.__init__(self, port_num)
35 changes: 35 additions & 0 deletions device/ingrasys/x86_64-ingrasys_s8900_54xc-r0/sensors.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# libsensors configuration file
chip "i350bb-*"
ignore loc1

chip "jc42-*"
label temp1 "DIMM Temp"
set temp1_max 50
set temp1_crit 85

chip "w83795adg-*"
label in0 "1.0V"
label in1 "1.0V_ROV"
label in2 "1.25V"
label in3 "1.8V"
ignore in4
ignore in5
ignore in6
ignore in7
label in12 "+3.3V"
ignore in14
ignore in15
ignore in16
label fan1 "FANTRAY 1-A"
label fan2 "FANTRAY 1-B"
label fan3 "FANTRAY 2-A"
label fan4 "FANTRAY 2-B"
label fan5 "FANTRAY 3-A"
label fan6 "FANTRAY 3-B"
label fan7 "FANTRAY 4-A"
label fan8 "FANTRAY 4-B"
label temp1 "Front MAC Temp"
label temp2 "Rear MAC Temp"
ignore temp3
ignore temp4
ignore intrusion0
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# name lanes alias
Ethernet0 17 Ethernet0
Ethernet1 18 Ethernet1
Ethernet2 19 Ethernet2
Ethernet3 20 Ethernet3
Ethernet4 24 Ethernet4
Ethernet5 23 Ethernet5
Ethernet6 22 Ethernet6
Ethernet7 21 Ethernet7
Ethernet8 28 Ethernet8
Ethernet9 27 Ethernet9
Ethernet10 26 Ethernet10
Ethernet11 25 Ethernet11
Ethernet12 32 Ethernet12
Ethernet13 31 Ethernet13
Ethernet14 30 Ethernet14
Ethernet15 29 Ethernet15
Ethernet16 1 Ethernet16
Ethernet17 2 Ethernet17
Ethernet18 3 Ethernet18
Ethernet19 4 Ethernet19
Ethernet20 8 Ethernet20
Ethernet21 7 Ethernet21
Ethernet22 6 Ethernet22
Ethernet23 5 Ethernet23
Ethernet24 12 Ethernet24
Ethernet25 11 Ethernet25
Ethernet26 10 Ethernet26
Ethernet27 9 Ethernet27
Ethernet28 13 Ethernet28
Ethernet29 14 Ethernet29
Ethernet30 15 Ethernet30
Ethernet31 16 Ethernet31
Ethernet32 33 Ethernet32
Ethernet33 34 Ethernet33
Ethernet34 35 Ethernet34
Ethernet35 36 Ethernet35
Ethernet36 38 Ethernet36
Ethernet37 39 Ethernet37
Ethernet38 40 Ethernet38
Ethernet39 37 Ethernet39
Ethernet40 41 Ethernet40
Ethernet41 42 Ethernet41
Ethernet42 43 Ethernet42
Ethernet43 44 Ethernet43
Ethernet44 48 Ethernet44
Ethernet45 45 Ethernet45
Ethernet46 46 Ethernet46
Ethernet47 47 Ethernet47
Ethernet48 49,50,51,52 Ethernet48
Ethernet52 53,54,55,56 Ethernet52
Ethernet56 57,58,59,60 Ethernet56
Ethernet60 61,62,63,64 Ethernet60
Ethernet64 65,66,67,68 Ethernet64
Ethernet68 69,70,71,72 Ethernet68
Ethernet72 73,74,75,76 Ethernet72
Ethernet76 77,78,79,80 Ethernet76
Ethernet80 81,82,83,84 Ethernet80
Ethernet84 85,86,87,88 Ethernet84
Ethernet88 89,90,91,92 Ethernet88
Ethernet92 93,94,95,96 Ethernet92
Ethernet96 97,98,99,100 Ethernet96
Ethernet100 101,102,103,104 Ethernet100
Ethernet104 105,106,107,108 Ethernet104
Ethernet108 109,110,111,112 Ethernet108
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/etc/bcm/th-s8900-48x25G+16x100G.config.bcm
3 changes: 3 additions & 0 deletions device/ingrasys/x86_64-ingrasys_s8900_64xc-r0/installer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONSOLE_PORT=0x2f8
CONSOLE_DEV=1
CONSOLE_SPEED=115200
Loading