Skip to content

Commit 9658d8b

Browse files
Sfp support in SM
* NET:SFP:ALTERA: SFP support for SM IP * NET:ETH:ALTERA: SFP support in DTS * NET:SFP:ALTERA: bit position fix for page select * NET:ETH:SFP defensive coding * NET:ETH:Kconfig modified for specifying AXI memory based design --------- Co-authored-by: Narayan, Preetam <[email protected]>
1 parent d681219 commit 9658d8b

File tree

6 files changed

+534
-1
lines changed

6 files changed

+534
-1
lines changed

arch/arm64/boot/dts/intel/socfpga_agilex5_eth_1p10g.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
status = "okay";
6868
};
6969

70+
sfp_eth0: sfp-eth0 {
71+
compatible = "altera,sfp-mem";
72+
reg-names = "sfp-mem-ctrl";
73+
reg = <0x44040000 0x00001000>;
74+
status = "okay";
75+
};
76+
7077
msgdma_gts_0_eth: msgdma_gts_0_eth {
7178
compatible = "altr,msgdma-gts-1.0";
7279
#address-cells = <1>;
@@ -83,6 +90,9 @@
8390
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
8491
status = "okay";
8592
qsfp-lane = <0x0>;
93+
sfp-lane = <0x0>;
94+
qsfp = <&qsfp_eth0>;
95+
sfp = <&sfp_eth0>;
8696
fec-type="no-fec";
8797
phy-mode = "10gbase-r";
8898
fec-cw-pos-rx = <0x0>;

drivers/net/phy/Kconfig

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ config SFP
7777
depends on HWMON || HWMON=n
7878
select MDIO_I2C
7979

80+
config SFP_MEM_CORE
81+
tristate "SFP Controller subsystem core code" if COMPILE_TEST
82+
depends on HWMON || HWMON=n
83+
help
84+
The core code for the SFP Controller subsystem for Altera FPGAs used
85+
by other interafce module drivers for access to the SFP controller
86+
subsystem registers
87+
88+
config SFP_MEM
89+
tristate "AXI based Memory platform driver for SFP Controller subsystem in Altera FPGAs"
90+
select SFP_MEM_CORE
91+
help
92+
Adds support for a SFP controller subsystem that shadows the SFP module's
93+
memory pages in memory
94+
8095
config QSFP_MEM_CORE
8196
tristate "QSFP Controller subsystem core code" if COMPILE_TEST
8297
depends on HWMON || HWMON=n
@@ -86,7 +101,7 @@ config QSFP_MEM_CORE
86101
subsystem registers
87102

88103
config QSFP_MEM
89-
tristate "Memory based platform driver for QSFP Controller subsystem in Altera FPGAs"
104+
tristate "AXI based Memory platform driver for QSFP Controller subsystem in Altera FPGAs"
90105
select QSFP_MEM_CORE
91106
help
92107
Adds support for a QSFP controller subsystem that shadows the QSFP module's

drivers/net/phy/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ obj-$(CONFIG_QSFP_MEM_CORE) += qsfp-mem-core.o
4141
obj-$(CONFIG_QSFP_MEM_DFL) += qsfp-mem-dfl.o
4242
obj-$(CONFIG_QSFP_MEM) += qsfp-mem-platform.o
4343

44+
obj-$(CONFIG_SFP_MEM_CORE) += sfp-mem-core.o
45+
obj-$(CONFIG_SFP_MEM) += sfp-mem-platform.o
46+
4447
obj-$(CONFIG_ADIN_PHY) += adin.o
4548
obj-$(CONFIG_ADIN1100_PHY) += adin1100.o
4649
obj-$(CONFIG_AIR_EN8811H_PHY) += air_en8811h.o

0 commit comments

Comments
 (0)