forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ufispace][PDDF] Add PDDF support on S9180-32X (sonic-net#14909)
* Add s9180-32x pddf support Signed-off-by: cytsai0409 <cytsai0409@gmail.com> * Fix memset_s parameter Signed-off-by: cytsai0409 <cytsai0409@gmail.com> * Update chassis.py and fan.py 1. remove duplicate get_sfp() in chassis.py 2. update get_direction() and get_target_speed() in fan.py Signed-off-by: cytsai0409 <cytsai0409@gmail.com> --------- Signed-off-by: cytsai0409 <cytsai0409@gmail.com>
- Loading branch information
1 parent
d19191f
commit 90f7820
Showing
50 changed files
with
9,414 additions
and
5 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
device/ufispace/x86_64-ufispace_s9180_32x-r0/UFISPACE-S9180-32X/port_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# name lanes alias speed autoneg fec index | ||
Ethernet0 0,1,2,3 Ethernet0 100000 off none 0 | ||
Ethernet4 4,5,6,7 Ethernet4 100000 off none 1 | ||
Ethernet8 8,9,10,11 Ethernet8 100000 off none 2 | ||
Ethernet12 12,13,14,15 Ethernet12 100000 off none 3 | ||
Ethernet16 16,17,18,19 Ethernet16 100000 off none 4 | ||
Ethernet20 20,21,22,23 Ethernet20 100000 off none 5 | ||
Ethernet24 24,25,26,27 Ethernet24 100000 off none 6 | ||
Ethernet28 28,29,30,31 Ethernet28 100000 off none 7 | ||
Ethernet32 32,33,34,35 Ethernet32 100000 off none 8 | ||
Ethernet36 36,37,38,39 Ethernet36 100000 off none 9 | ||
Ethernet40 40,41,42,43 Ethernet40 100000 off none 10 | ||
Ethernet44 44,45,46,47 Ethernet44 100000 off none 11 | ||
Ethernet48 48,49,50,51 Ethernet48 100000 off none 12 | ||
Ethernet52 52,53,54,55 Ethernet52 100000 off none 13 | ||
Ethernet56 56,57,58,59 Ethernet56 100000 off none 14 | ||
Ethernet60 60,61,62,63 Ethernet60 100000 off none 15 | ||
Ethernet64 64,65,66,67 Ethernet64 100000 off none 16 | ||
Ethernet68 68,69,70,71 Ethernet68 100000 off none 17 | ||
Ethernet72 72,73,74,75 Ethernet72 100000 off none 18 | ||
Ethernet76 76,77,78,79 Ethernet76 100000 off none 19 | ||
Ethernet80 80,81,82,83 Ethernet80 100000 off none 20 | ||
Ethernet84 84,85,86,87 Ethernet84 100000 off none 21 | ||
Ethernet88 88,89,90,91 Ethernet88 100000 off none 22 | ||
Ethernet92 92,93,94,95 Ethernet92 100000 off none 23 | ||
Ethernet96 96,97,98,99 Ethernet96 100000 off none 24 | ||
Ethernet100 100,101,102,103 Ethernet100 100000 off none 25 | ||
Ethernet104 104,105,106,107 Ethernet104 100000 off none 26 | ||
Ethernet108 108,109,110,111 Ethernet108 100000 off none 27 | ||
Ethernet112 112,113,114,115 Ethernet112 100000 off none 28 | ||
Ethernet116 116,117,118,119 Ethernet116 100000 off none 29 | ||
Ethernet120 120,121,122,123 Ethernet120 100000 off none 30 | ||
Ethernet124 124,125,126,127 Ethernet124 100000 off none 31 | ||
Ethernet128 128 Ethernet128 10000 off none 32 | ||
Ethernet129 129 Ethernet129 10000 off none 33 |
33 changes: 33 additions & 0 deletions
33
device/ufispace/x86_64-ufispace_s9180_32x-r0/UFISPACE-S9180-32X/switch-sai.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"chip_list": [ | ||
{ | ||
"id": "asic-0", | ||
"chip_family": "Tofino", | ||
"instance": 0, | ||
"pcie_sysfs_prefix": "/sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0", | ||
"pcie_domain": 0, | ||
"pcie_bus": 5, | ||
"pcie_fn": 0, | ||
"pcie_dev": 0, | ||
"pcie_int_mode": 1, | ||
"sds_fw_path": "share/tofino_sds_fw/avago/firmware" | ||
} | ||
], | ||
"instance": 0, | ||
"p4_program_list": [ | ||
{ | ||
"id": "pgm-0", | ||
"instance": 0, | ||
"path": "switch", | ||
"program-name": "switch", | ||
"pd": "lib/tofinopd/switch/libpd.so", | ||
"pd-thrift": "lib/tofinopd/switch/libpdthrift.so", | ||
"table-config": "share/tofinopd/switch/context.json", | ||
"tofino-bin": "share/tofinopd/switch/tofino.bin", | ||
"switchapi": "lib/libswitchapi.so", | ||
"sai": "lib/libsai.so", | ||
"agent0": "lib/platform/x86_64-ufispace_s9180_32x-r0/libpltfm_mgr.so", | ||
"switchapi_port_add": false | ||
} | ||
] | ||
} |
39 changes: 39 additions & 0 deletions
39
device/ufispace/x86_64-ufispace_s9180_32x-r0/UFISPACE-S9180-32X/switch-tna-sai.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"chip_list": [ | ||
{ | ||
"chip_family": "Tofino", | ||
"sds_fw_path": "share/tofino_sds_fw/avago/firmware", | ||
"instance": 0 | ||
} | ||
], | ||
"p4_devices": [ | ||
{ | ||
"device-id": 0, | ||
"agent0": "lib/platform/x86_64-ufispace_s9180_32x-r0/libpltfm_mgr.so", | ||
"p4_programs": [ | ||
{ | ||
"p4_pipelines": [ | ||
{ | ||
"p4_pipeline_name": "pipe", | ||
"config": "share/switch/pipe/tofino.bin", | ||
"context": "share/switch/pipe/context.json" | ||
} | ||
], | ||
"program-name": "switch", | ||
"bfrt-config": "share/switch/bf-rt.json", | ||
"model_json_path" : "share/switch/aug_model.json", | ||
"switchapi_port_add": false, | ||
"non_default_port_ppgs": 5 | ||
} | ||
] | ||
} | ||
], | ||
"switch_options": [ | ||
{ | ||
"device-id": 0, | ||
"model_json_path": "share/switch/aug_model.json", | ||
"non_default_port_ppgs": 5, | ||
"switchapi_port_add": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
UFISPACE-S9180-32X t1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Configuration file generated by pwmconfig, changes will be lost | ||
INTERVAL=10 | ||
DEVPATH= | ||
DEVNAME= | ||
FCTEMPS= | ||
FCFANS= | ||
MINTEMP= | ||
MAXTEMP= | ||
MINSTART= | ||
MINSTOP= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONSOLE_PORT=0x3f8 | ||
CONSOLE_DEV=0 | ||
CONSOLE_SPEED=115200 | ||
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="module_blacklist=gpio_ich nomodeset pcie_aspm=off" |
Oops, something went wrong.