Skip to content

[devices]: Add lpmode in sfputil.py for Accton AS6712-32X #3095

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

Merged
merged 1 commit into from
Jun 29, 2019

Conversation

brandonchuang
Copy link
Contributor

Signed-off-by: brandon_chuang [email protected]

CPU: Intel C2538 2.4GHz 3.0V FCBGA1283
MAC: Broadcom Trident2 BCM56850, 1 pcs, 1280Gbs multi-layer Ethernet switch controller
BMC: None

What I did
Add lpmode in sfputil.py for as6712-32x.
.

How I did it
Implement get_low_power_mode/set_low_power_mode in sfputil.py

How to verify it
sfputil show lpmode
sfputil lpmode off
sfputil lpmode on

Description for the changelog
Access eeprom from transceiver to get/set lpmode status
If "Power override" bit is not set, return the LPMode register value read from CPLD
If "Power override" bit is set, retrun the S/W lpmode status read from eeprom.

Below is the Power Mode Truth Table defined in sff-8436

LPMode_Pin Power_overide_Bit Power_set_Bit Module_Power_Allowed
1 0 X Low Power
0 0 X High Power
X 1 1 Low Power
X 1 0 High Power

@lguohan lguohan merged commit 0b8c1a1 into sonic-net:master Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants