mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
AS7712 Fixes
This commit is contained in:
1
packages/platforms/accton/x86-64/Makefile
Normal file
1
packages/platforms/accton/x86-64/Makefile
Normal file
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/pkg.mk
|
||||
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/pkg.mk
|
||||
@@ -1,15 +1,15 @@
|
||||
############################################################
|
||||
# <bsn.cl fy=2013 v=none>
|
||||
#
|
||||
# Copyright 2013, 2014 BigSwitch Networks, Inc.
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# Copyright 2013, 2014 BigSwitch Networks, Inc.
|
||||
#
|
||||
#
|
||||
#
|
||||
# </bsn.cl>
|
||||
############################################################
|
||||
# Platform data goes here.
|
||||
|
||||
platform_installer() {
|
||||
# Standard isntallation to an available GPT partition
|
||||
installer_standard_gpt_install /dev/sda
|
||||
installer_standard_gpt_install /dev/sdb
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.accton import *
|
||||
|
||||
class OnlPlatform_x86_64_accton_as7712_32x_r0(OnlPlatformAccton):
|
||||
|
||||
def model(self):
|
||||
return "AS7712-32X"
|
||||
|
||||
def platform(self):
|
||||
return "x86-64-accton-as7712-32x-r0"
|
||||
|
||||
def sys_oid_platform(self):
|
||||
return ".7712.32"
|
||||
|
||||
def baseconfig(self):
|
||||
########### initialize I2C bus 0 ###########
|
||||
# initialize multiplexer (PCA9548)
|
||||
self.new_i2c_devices(
|
||||
[
|
||||
('pca9458', 0x76, 0),
|
||||
]
|
||||
)
|
||||
|
||||
# initiate chassis fan
|
||||
self.new_i2c_devices(
|
||||
[
|
||||
('as7712_32x_fan', 0x66, 2),
|
||||
]
|
||||
)
|
||||
|
||||
# inititate LM75
|
||||
self.new_i2c_devices(
|
||||
[
|
||||
('lm75', 0x48, 3),
|
||||
('lm75', 0x49, 3),
|
||||
('lm75', 0x4a, 3),
|
||||
]
|
||||
)
|
||||
# initialize CPLD
|
||||
self.new_i2c_devices(
|
||||
[
|
||||
('accton_i2c_cpld', 0x60, 4),
|
||||
('accton_i2c_cpld', 0x62, 5),
|
||||
('accton_i2c_cpld', 0x64, 6),
|
||||
]
|
||||
)
|
||||
########### initialize I2C bus 1 ###########
|
||||
self.new_i2c_devices(
|
||||
[
|
||||
# initiate multiplexer (PCA9548)
|
||||
('pca9548', 0x71, 1),
|
||||
|
||||
# initiate PSU-1
|
||||
('as7712_32x_psu1', 0x53, 11),
|
||||
('ym2651', 0x5b, 11),
|
||||
|
||||
# initiate PSU-2
|
||||
('as7712_32x_psu2', 0x50, 10),
|
||||
('ym2651', 0x58, 10),
|
||||
|
||||
# initiate multiplexer (PCA9548)
|
||||
('pca9548', 0x72, 1),
|
||||
('pca9548', 0x73, 1),
|
||||
('pca9548', 0x74, 1),
|
||||
('pca9548', 0x75, 1),
|
||||
]
|
||||
)
|
||||
|
||||
# initialize QSFP port 1~32
|
||||
|
||||
self.new_i2c_device('as7712_32x_sfp1', 0x50, 22)
|
||||
self.new_i2c_device('as7712_32x_sfp2', 0x50, 23)
|
||||
self.new_i2c_device('as7712_32x_sfp3', 0x50, 24)
|
||||
self.new_i2c_device('as7712_32x_sfp4', 0x50, 25)
|
||||
self.new_i2c_device('as7712_32x_sfp5', 0x50, 27)
|
||||
self.new_i2c_device('as7712_32x_sfp6', 0x50, 26)
|
||||
self.new_i2c_device('as7712_32x_sfp7', 0x50, 29)
|
||||
self.new_i2c_device('as7712_32x_sfp8', 0x50, 28)
|
||||
self.new_i2c_device('as7712_32x_sfp9', 0x50, 18)
|
||||
self.new_i2c_device('as7712_32x_sfp10, 0x50, 19)
|
||||
self.new_i2c_device('as7712_32x_sfp11, 0x50, 20)
|
||||
self.new_i2c_device('as7712_32x_sfp12, 0x50, 21)
|
||||
self.new_i2c_device('as7712_32x_sfp13, 0x50, 30)
|
||||
self.new_i2c_device('as7712_32x_sfp14, 0x50, 31)
|
||||
self.new_i2c_device('as7712_32x_sfp15, 0x50, 32)
|
||||
self.new_i2c_device('as7712_32x_sfp16, 0x50, 33)
|
||||
self.new_i2c_device('as7712_32x_sfp17, 0x50, 34)
|
||||
self.new_i2c_device('as7712_32x_sfp18, 0x50, 35)
|
||||
self.new_i2c_device('as7712_32x_sfp19, 0x50, 36)
|
||||
self.new_i2c_device('as7712_32x_sfp20, 0x50, 37)
|
||||
self.new_i2c_device('as7712_32x_sfp21, 0x50, 46)
|
||||
self.new_i2c_device('as7712_32x_sfp22, 0x50, 47)
|
||||
self.new_i2c_device('as7712_32x_sfp23, 0x50, 48)
|
||||
self.new_i2c_device('as7712_32x_sfp24, 0x50, 49)
|
||||
self.new_i2c_device('as7712_32x_sfp25, 0x50, 38)
|
||||
self.new_i2c_device('as7712_32x_sfp26, 0x50, 39)
|
||||
self.new_i2c_device('as7712_32x_sfp27, 0x50, 40)
|
||||
self.new_i2c_device('as7712_32x_sfp28, 0x50, 41)
|
||||
self.new_i2c_device('as7712_32x_sfp29, 0x50, 42)
|
||||
self.new_i2c_device('as7712_32x_sfp30, 0x50, 43)
|
||||
self.new_i2c_device('as7712_32x_sfp31, 0x50, 44)
|
||||
self.new_i2c_device('as7712_32x_sfp32, 0x50, 45)
|
||||
]
|
||||
)
|
||||
|
||||
return True
|
||||
@@ -0,0 +1,94 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.accton import *
|
||||
|
||||
class OnlPlatform_x86_64_accton_as7712_32x_r0(OnlPlatformAccton):
|
||||
|
||||
def model(self):
|
||||
return "AS7712-32X"
|
||||
|
||||
def platform(self):
|
||||
return "x86-64-accton-as7712-32x-r0"
|
||||
|
||||
def sys_oid_platform(self):
|
||||
return ".7712.32"
|
||||
|
||||
def baseconfig(self):
|
||||
########### initialize I2C bus 0 ###########
|
||||
self.new_i2c_devices([
|
||||
|
||||
# initialize multiplexer (PCA9548)
|
||||
('pca9548', 0x76, 0),
|
||||
|
||||
# initiate chassis fan
|
||||
('as7712_32x_fan', 0x66, 2),
|
||||
|
||||
# inititate LM75
|
||||
('lm75', 0x48, 3),
|
||||
('lm75', 0x49, 3),
|
||||
('lm75', 0x4a, 3),
|
||||
|
||||
('accton_i2c_cpld', 0x60, 4),
|
||||
('accton_i2c_cpld', 0x62, 5),
|
||||
('accton_i2c_cpld', 0x64, 6),
|
||||
])
|
||||
|
||||
########### initialize I2C bus 1 ###########
|
||||
self.new_i2c_devices(
|
||||
[
|
||||
# initiate multiplexer (PCA9548)
|
||||
('pca9548', 0x71, 1),
|
||||
|
||||
# initiate PSU-1
|
||||
('as7712_32x_psu1', 0x53, 11),
|
||||
('ym2651', 0x5b, 11),
|
||||
|
||||
# initiate PSU-2
|
||||
('as7712_32x_psu2', 0x50, 10),
|
||||
('ym2651', 0x58, 10),
|
||||
|
||||
# initiate multiplexer (PCA9548)
|
||||
('pca9548', 0x72, 1),
|
||||
('pca9548', 0x73, 1),
|
||||
('pca9548', 0x74, 1),
|
||||
('pca9548', 0x75, 1),
|
||||
]
|
||||
)
|
||||
|
||||
# initialize QSFP port 1~32
|
||||
self.new_i2c_devices([
|
||||
('as7712_32x_sfp9', 0x50, 18),
|
||||
('as7712_32x_sfp10', 0x50, 19),
|
||||
('as7712_32x_sfp11', 0x50, 20),
|
||||
('as7712_32x_sfp12', 0x50, 21),
|
||||
('as7712_32x_sfp1', 0x50, 22),
|
||||
('as7712_32x_sfp2', 0x50, 23),
|
||||
('as7712_32x_sfp3', 0x50, 24),
|
||||
('as7712_32x_sfp4', 0x50, 25),
|
||||
('as7712_32x_sfp6', 0x50, 26),
|
||||
('as7712_32x_sfp5', 0x50, 27),
|
||||
('as7712_32x_sfp8', 0x50, 28),
|
||||
('as7712_32x_sfp7', 0x50, 29),
|
||||
('as7712_32x_sfp13', 0x50, 30),
|
||||
('as7712_32x_sfp14', 0x50, 31),
|
||||
('as7712_32x_sfp15', 0x50, 32),
|
||||
('as7712_32x_sfp16', 0x50, 33),
|
||||
('as7712_32x_sfp17', 0x50, 34),
|
||||
('as7712_32x_sfp18', 0x50, 35),
|
||||
('as7712_32x_sfp19', 0x50, 36),
|
||||
('as7712_32x_sfp20', 0x50, 37),
|
||||
('as7712_32x_sfp25', 0x50, 38),
|
||||
('as7712_32x_sfp26', 0x50, 39),
|
||||
('as7712_32x_sfp27', 0x50, 40),
|
||||
('as7712_32x_sfp28', 0x50, 41),
|
||||
('as7712_32x_sfp29', 0x50, 42),
|
||||
('as7712_32x_sfp30', 0x50, 43),
|
||||
('as7712_32x_sfp31', 0x50, 44),
|
||||
('as7712_32x_sfp32', 0x50, 45),
|
||||
('as7712_32x_sfp21', 0x50, 46),
|
||||
('as7712_32x_sfp22', 0x50, 47),
|
||||
('as7712_32x_sfp23', 0x50, 48),
|
||||
('as7712_32x_sfp24', 0x50, 49),
|
||||
])
|
||||
|
||||
self.new_i2c_device('24c02', 0x57, 1)
|
||||
return True
|
||||
Reference in New Issue
Block a user