Jiawen Wu
02b2a6f91b
net: txgbe: support copper NIC with external PHY
...
Wangxun SP chip supports to connect with external PHY (marvell 88x3310),
which links to 10GBASE-T/1000BASE-T/100BASE-T. Add the identification of
media types from subsystem device IDs. For sp_media_copper, register mdio
bus for the external PHY.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-08-25 07:42:59 +01:00
Jiawen Wu
854cace613
net: txgbe: Implement phylink pcs
...
Register MDIO bus for PCS layer to use Synopsys designware XPCS, support
10GBASE-R interface to the controller.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com >
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2023-06-08 13:25:10 +02:00
Jiawen Wu
b83c37315a
net: txgbe: Support GPIO to SFP socket
...
Register GPIO chip and handle GPIO IRQ for SFP socket.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com >
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2023-06-08 13:25:10 +02:00
Jiawen Wu
04d9423618
net: txgbe: Add SFP module identify
...
Register SFP platform device to get modules information.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com >
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com >
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2023-06-08 13:25:10 +02:00
Jiawen Wu
c625e72561
net: txgbe: Register I2C platform device
...
Register the platform device to use Designware I2C bus master driver.
Use regmap to read/write I2C device region from given base offset.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com >
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2023-06-08 13:25:10 +02:00
Jiawen Wu
b63f20485e
net: txgbe: Register fixed rate clock
...
In order for I2C to be able to work in standard mode, register a fixed
rate clock for each I2C device.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com >
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2023-06-08 13:25:10 +02:00
Jiawen Wu
850b971110
net: libwx: Allocate Rx and Tx resources
...
Setup Rx and Tx descriptors for specefic rings.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-02-06 09:22:48 +00:00
Mengyuan Lou
a1cf597b99
net: ngbe: Add ngbe mdio bus driver.
...
Add mdio bus register for ngbe.
The internal phy and external phy need to be handled separately.
Add phy changed event detection.
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Link: https://lore.kernel.org/r/20230111111718.40745-1-mengyuanlou@net-swift.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-01-12 21:31:12 -08:00
Mengyuan Lou
02338c484a
net: ngbe: Initialize sw info and register netdev
...
Initialize ngbe mac/phy type.
Check whether the firmware is initialized.
Initialize ngbe hw and register netdev.
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-11-02 12:31:23 +00:00
Jiawen Wu
a34b3e6ed8
net: txgbe: Store PCI info
...
Get PCI config space info, set LAN id and check flash status.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-10-28 11:25:53 +01:00
Mengyuan Lou
e79e40c83b
net: ngbe: Add build support for ngbe
...
Add build options and guidance doc.
Initialize pci device access for Wangxun Gigabit Ethernet devices.
Reviewed-by: Andrew Lunn <andrew@lunn.ch >
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Link: https://lore.kernel.org/r/20220826034609.51854-1-mengyuanlou@net-swift.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com >
2022-08-30 12:32:51 +02:00
Jakub Kicinski
049d5d9890
eth: fix the help in Wangxun's Kconfig
...
The text was copy&pasted from Intel, adjust it to say Wangxun.
Reported-by: Ingo Saitz <ingo@hannover.ccc.de >
Fixes: 3ce7547e5b ("net: txgbe: Add build support for txgbe")
Link: https://lore.kernel.org/r/20220804182641.1442000-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-08-05 19:01:45 -07:00
Jiawen Wu
3ce7547e5b
net: txgbe: Add build support for txgbe
...
Add doc build infrastructure for txgbe driver.
Initialize PCI memory space for WangXun 10 Gigabit Ethernet devices.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Link: https://lore.kernel.org/r/20220628095530.889344-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2022-06-29 20:57:06 -07:00