Skip to content

Commit feb7b58

Browse files
committed
feat(card - ia-440i): add custom QSFP I2C controller to Devicetree
1 parent af3487b commit feb7b58

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cards/bittware/ia-440i/config/card_const.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ set DMA_MODULES 1
2727
set QSFP_CAGES 1
2828
# I2C address of each QSFP cage
2929
set QSFP_I2C_ADDR(0) "0xA0"
30+
set QSFP_I2C_CUSTOM_CTRLS [list "i2c_bmc"]
3031

3132
# ------------------------------------------------------------------------------
3233
# Checking of parameter compatibility

cards/bittware/ia-440i/src/DevTree.tcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,11 @@ proc dts_card_specific {base} {
1212
append ret "reg = <$base 0x44>;"
1313
append ret "version = <0x00000003>;"
1414
append ret "};"
15+
16+
append ret "i2c_bmc: i2c_controller {"
17+
append ret "compatible = \"bittware,bmc\";"
18+
append ret "reg = <[expr $base + 256] 0x44>;"
19+
append ret "version = <0x00000003>;"
20+
append ret "};"
1521
return $ret
1622
}

cards/bittware/ia-440i/src/fpga.vhd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ begin
343343

344344
QSFP_PORTS => QSFP_PORTS,
345345
QSFP_I2C_PORTS => 1,
346-
-- QSFP_I2C_TRISTATE => ??,
346+
QSFP_I2C_CTRL_EN => false,
347347

348348
STATUS_LEDS => STATUS_LEDS,
349349
MISC_IN_WIDTH => MISC_IN_WIDTH,

0 commit comments

Comments
 (0)