-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Edgecore][as4560-52p] Add new platform
MAC: Marvell 98DX3530 with integrated CPU PHY: Marvell 88E1780 x 4 (1G port 16~32) Marvell 88E2780 x 2 (Migi-G port 33-48) DRAM: 8GB(MAC) DDR4 SDRAM AirFlow: Front To Back Function port: 1 x USB port 1 x RJ45 Mgmt port 1 x RJ45 Console port Ethernet Port: 48 x 1G Uplink port: 4xSFP+ PoE: Microsemi PD69208M x 12 + PD69210 x 2 Signed-off-by: Brandon Chuang <[email protected]>
- Loading branch information
1 parent
fdb2eef
commit 2b6f91c
Showing
48 changed files
with
5,837 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
2 changes: 2 additions & 0 deletions
2
packages/platforms/accton/arm64/as456x-52p/as4560-52p/.gitignore
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,2 @@ | ||
*arm64*accton*as4560*52p.mk | ||
onlpdump.mk |
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 @@ | ||
include $(ONL)/make/pkg.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/modules/Makefile
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 @@ | ||
include $(ONL)/make/pkg.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/modules/PKG.yml
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 @@ | ||
!include $ONL_TEMPLATES/platform-modules.yml ARCH=arm64 VENDOR=accton BASENAME=arm64-accton-as4560-52p KERNELS="onl-kernel-5.15-lts-arm64-all:arm64" |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/modules/builds/.gitignore
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 @@ | ||
lib |
7 changes: 7 additions & 0 deletions
7
packages/platforms/accton/arm64/as456x-52p/as4560-52p/modules/builds/Makefile
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,7 @@ | ||
KERNELS := onl-kernel-5.15-lts-arm64-all:arm64 | ||
KMODULES := $(ONL)/packages/platforms/accton/arm64/as456x-52p/src/modules/ | ||
VENDOR := accton | ||
BASENAME := arm64-accton-as4560-52p | ||
ARCH := arm64 | ||
include $(ONL)/make/kmodule.mk | ||
export CROSS_COMPILE=aarch64-linux-gnu- |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/onlp/Makefile
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 @@ | ||
include $(ONL)/make/pkg.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/onlp/PKG.yml
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 @@ | ||
!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=arm64-accton-as4560-52p ARCH=arm64 TOOLCHAIN=aarch64-linux-gnu |
2 changes: 2 additions & 0 deletions
2
packages/platforms/accton/arm64/as456x-52p/as4560-52p/onlp/builds/Makefile
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,2 @@ | ||
FILTER=src | ||
include $(ONL)/make/subdirs.mk |
3 changes: 3 additions & 0 deletions
3
packages/platforms/accton/arm64/as456x-52p/as4560-52p/onlp/builds/lib/Makefile
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,3 @@ | ||
PLATFORM := arm64-accton-as4560-52p | ||
PLATFORM_MODULE := arm64_accton_as456x_52p | ||
include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk |
3 changes: 3 additions & 0 deletions
3
packages/platforms/accton/arm64/as456x-52p/as4560-52p/onlp/builds/onlpdump/Makefile
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,3 @@ | ||
PLATFORM := arm64-accton-as4560-52p | ||
PLATFORM_MODULE := arm64_accton_as456x_52p | ||
include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/platform-config/Makefile
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 @@ | ||
include $(ONL)/make/pkg.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/platform-config/r0/Makefile
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 @@ | ||
include $(ONL)/make/pkg.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/as4560-52p/platform-config/r0/PKG.yml
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 @@ | ||
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=arm64 VENDOR=accton BASENAME=arm64-accton-as4560-52p REVISION=r0 |
43 changes: 43 additions & 0 deletions
43
...ton/arm64/as456x-52p/as4560-52p/platform-config/r0/src/lib/arm64-accton-as4560-52p-r0.yml
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,43 @@ | ||
--- | ||
|
||
###################################################################### | ||
# | ||
# platform-config for AS4560-52P | ||
# | ||
###################################################################### | ||
|
||
arm64-accton-as4560-52p-r0: | ||
flat_image_tree: | ||
kernel: | ||
<<: *arm64-kernel-5-15 | ||
dtb: | ||
=: accton-as4560-52p.dtb | ||
<<: *arm64-kernel-5-15-package | ||
itb: | ||
<<: *arm64-itb | ||
|
||
loader: | ||
device: /dev/mmcblk0 | ||
##partition: /dev/sda1 | ||
loadaddr: 0x220000000 | ||
nos_bootcmds: *mmc_bootcmds | ||
|
||
setenv: | ||
- bootargs: >- | ||
console=ttyS0,115200 | ||
onl_platform=$onl_platform | ||
arm-smmu.disable_bypass=n | ||
maxcpus=8 | ||
pci=pcie_bus_perf | ||
cpuidle.off=1 | ||
environment: | ||
- device: /dev/mmcblk0boot0 | ||
env_offset: 0x001e0000 | ||
env_size: 0x00010000 | ||
sector_size: 0x00010000 | ||
|
||
network: | ||
interfaces: | ||
eth0: | ||
name: eth0 |
51 changes: 51 additions & 0 deletions
51
...s456x-52p/as4560-52p/platform-config/r0/src/python/arm64_accton_as4560_52p_r0/__init__.py
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,51 @@ | ||
#!/usr/bin/python | ||
|
||
from onl.platform.base import * | ||
from onl.platform.accton import * | ||
|
||
class OnlPlatform_arm64_accton_as4560_52p_r0(OnlPlatformAccton, | ||
OnlPlatformPortConfig_48x1_4x10): | ||
PLATFORM='arm64-accton-as4560-52p-r0' | ||
MODEL="AS4560-52P" | ||
SYS_OBJECT_ID=".4560.52.1" | ||
|
||
def baseconfig(self): | ||
self.insmod('optoe') | ||
self.insmod('dps850') | ||
|
||
# Insert platform drivers | ||
for m in [ 'mux', 'cpld', 'psu' ]: | ||
self.insmod("arm64-accton-as456x-52p-%s" % m) | ||
|
||
########### initialize I2C bus 1 ########### | ||
self.new_i2c_devices( | ||
[ | ||
# initialize CPLD | ||
('pca9641_mux', 0x73, 0), # i2c-2 | ||
('as456x_cpldm_mux', 0x76, 0), # i2c-3 ~ i2c-8 | ||
('as4560_cpld_m', 0x42, 0), | ||
('as456x_cpld_s', 0x62, 2), | ||
('as456x_psu1', 0x50, 6), | ||
('dps850', 0x58, 6), | ||
('as456x_psu2', 0x51, 5), | ||
('dps850', 0x59, 5), | ||
('pca9546', 0x71, 7), # i2c-9 ~ i2c-12 | ||
('pca9546', 0x70, 8), # i2c-13 ~ i2c-16 | ||
('tmp175', 0x48, 10), | ||
('tmp175', 0x49, 10), | ||
('tmp175', 0x4b, 10), | ||
('tmp175', 0x4c, 10), | ||
('24c64', 0x54, 9) | ||
] | ||
) | ||
|
||
# Insert platform drivers | ||
for m in [ 'fan', 'sfp' ]: | ||
self.insmod("arm64-accton-as456x-52p-%s" % m) | ||
|
||
# initialize SFP devices | ||
for port in range(49, 53): | ||
self.new_i2c_device('optoe2', 0x50, port-36) | ||
subprocess.call('echo port%d > /sys/bus/i2c/devices/%d-0050/port_name' % (port, port-36), shell=True) | ||
|
||
return True |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/src/arm64_accton_as456x_52p/.gitignore
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 @@ | ||
arm64_accton_as456x_52p.mk |
1 change: 1 addition & 0 deletions
1
packages/platforms/accton/arm64/as456x-52p/src/arm64_accton_as456x_52p/.module
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 @@ | ||
name: arm64_accton_as456x_52p |
9 changes: 9 additions & 0 deletions
9
packages/platforms/accton/arm64/as456x-52p/src/arm64_accton_as456x_52p/Makefile
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,9 @@ | ||
############################################################ | ||
# | ||
# | ||
# | ||
############################################################ | ||
include $(ONL)/make/config.mk | ||
MODULE := arm64_accton_as456x_52p | ||
AUTOMODULE := arm64_accton_as456x_52p | ||
include $(BUILDER)/definemodule.mk |
Oops, something went wrong.