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

add front panel led support and transceiver monitor for inventec d7054 and d7032 #1660

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
136 changes: 136 additions & 0 deletions device/inventec/x86_64-inventec_d7032q28b-r0/led_proc_init.soc
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=31
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_1=30
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_2=29
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=27
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_5=26
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_6=25
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=23
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_9=22
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_10=21
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=19
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_13=18
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_14=17
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=16
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=15
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_17=14
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_18=13
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=11
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_21=10
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_22=9
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=7
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_25=6
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_26=5
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=3
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_29=2
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_30=1
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=0
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_33=62
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_34=61
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=59
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_37=58
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_38=57
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=56
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=55
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_41=54
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_42=53
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=52
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=51
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_45=50
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_46=49
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=48
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=47
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_49=46
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_50=45
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=44
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=43
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_53=42
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_54=41
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=40
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=39
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_57=38
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_58=37
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=36
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=35
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_61=34
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_62=33
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=3
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_1=2
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_2=1
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=7
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_5=6
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_6=5
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=11
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_9=10
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_10=9
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=15
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_13=14
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_14=13
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=19
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_17=18
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_18=17
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=23
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_21=22
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_22=21
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=27
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_25=26
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_26=25
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=31
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_29=30
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_30=29
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=35
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_33=34
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_34=33
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=39
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_37=38
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_38=37
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=36
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=43
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_41=42
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_42=41
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=40
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=47
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_45=46
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_46=45
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=44
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=51
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_49=50
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_50=49
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=48
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=55
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_53=54
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_54=53
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=52
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=59
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_57=58
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_58=57
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=56
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_61=62
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_62=61
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=60

led 0 stop
led 0 prog 02 00 60 F1 12 00 DE F6 70 10 67 47 67 42 77 06 06 F2 60 F0 12 00 06 F0 4A 04 27 67 42 4A 03 27 67 42 4A 07 27 67 42 4A 00 27 67 42 DE F4 70 34 86 F0 77 16 12 00 DE F8 70 40 67 4A 67 42 77 36 3E F1 87 86 F1 81 57 17 27 57 07 27 57 00 00 00
led 0 start

led 1 stop
led 1 prog 02 00 60 F1 12 00 DE F6 70 10 67 47 67 42 77 06 06 F2 60 F0 12 00 06 F0 4A 04 27 67 42 4A 03 27 67 42 4A 07 27 67 42 4A 00 27 67 42 DE F4 70 34 86 F0 77 16 12 00 DE F8 70 40 67 4A 67 42 77 36 3E F1 87 86 F1 81 57 17 27 57 07 27 57 00 00 00
led 1 start
10 changes: 10 additions & 0 deletions device/inventec/x86_64-inventec_d7032q28b-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class SfpUtil(SfpUtilBase):
PORT_START = 0
PORT_END = 31
PORTS_IN_BLOCK = 32
QSFP_PORT_START = 0
QSFP_PORT_END = 31

_port_to_eeprom_mapping = {}
port_to_i2c_mapping = {
Expand Down Expand Up @@ -61,6 +63,14 @@ def port_start(self):
def port_end(self):
return self.PORT_END

@property
def qsfp_port_start(self):
return self.QSFP_PORT_START

@property
def qsfp_port_end(self):
return self.QSFP_PORT_END

@property
def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1)
Expand Down
Loading