Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1352835 > unrolled thread
| Started by | John Crispin <blogic@openwrt.org> |
|---|---|
| First post | 2016-03-08 11:40 +0100 |
| Last post | 2016-03-10 22:30 +0100 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH V5 0/4] net-next: mediatek: add ethernet driver John Crispin <blogic@openwrt.org> - 2016-03-08 11:40 +0100
[PATCH V5 3/4] net-next: mediatek: add Kconfig and Makefile John Crispin <blogic@openwrt.org> - 2016-03-08 11:40 +0100
[PATCH V5 4/4] net-next: mediatek: add an entry to MAINTAINERS John Crispin <blogic@openwrt.org> - 2016-03-08 11:40 +0100
Re: [PATCH V5 0/4] net-next: mediatek: add ethernet driver David Miller <davem@davemloft.net> - 2016-03-10 22:30 +0100
| From | John Crispin <blogic@openwrt.org> |
|---|---|
| Date | 2016-03-08 11:40 +0100 |
| Subject | [PATCH V5 0/4] net-next: mediatek: add ethernet driver |
| Message-ID | <randv-84x-3@gated-at.bofh.it> |
This series adds support for the Mediatek ethernet core found on current ARM based SoCs. The driver works on MT2701 and MT7623 SoCs Instead of trying to upstream everything at once I decided to concentrate on the important parts required to make current generation silicon work. The V3 series only includes the code required to make dual MAC setups work and only supports the newer QDMA engine. Changes in V5 * reduce the mdio timeut to HZ * add a call to usleep_range() which schedules in the background. Changes in V4 * remove ugly _FE macro, use offsetof() instead Changes in V3 * only include code for MT2701/7623 support * drop support for PDMA and older MIPS based SoCs * drop switch support Changes in V2 * change the namespace of the functions from fe_* to mtk_* * add support for the latest generation of ARM SoCs * add dual MAC support * remove the swconfig specific bits * remove most of the magic values and replace them with defines * add verbose descriptions to the patches John Crispin (4): net-next: mediatek: document MediaTek SoC ethernet binding net-next: mediatek: add support for MT7623 ethernet net-next: mediatek: add Kconfig and Makefile net-next: mediatek: add an entry to MAINTAINERS .../devicetree/bindings/net/mediatek-net.txt | 77 + MAINTAINERS | 7 + drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/mediatek/Kconfig | 17 + drivers/net/ethernet/mediatek/Makefile | 5 + drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1806 ++++++++++++++++++++ drivers/net/ethernet/mediatek/mtk_eth_soc.h | 421 +++++ 8 files changed, 2335 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mediatek-net.txt create mode 100644 drivers/net/ethernet/mediatek/Kconfig create mode 100644 drivers/net/ethernet/mediatek/Makefile create mode 100644 drivers/net/ethernet/mediatek/mtk_eth_soc.c create mode 100644 drivers/net/ethernet/mediatek/mtk_eth_soc.h -- 1.7.10.4
[toc] | [next] | [standalone]
| From | John Crispin <blogic@openwrt.org> |
|---|---|
| Date | 2016-03-08 11:40 +0100 |
| Subject | [PATCH V5 3/4] net-next: mediatek: add Kconfig and Makefile |
| Message-ID | <randv-84x-5@gated-at.bofh.it> |
| In reply to | #1352835 |
This patch adds the Makefile and Kconfig required to make the driver build. Signed-off-by: John Crispin <blogic@openwrt.org> --- drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/mediatek/Kconfig | 17 +++++++++++++++++ drivers/net/ethernet/mediatek/Makefile | 5 +++++ 4 files changed, 24 insertions(+) create mode 100644 drivers/net/ethernet/mediatek/Kconfig create mode 100644 drivers/net/ethernet/mediatek/Makefile diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 0b13af8..be67a19 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig @@ -106,6 +106,7 @@ config LANTIQ_ETOP Support for the MII0 inside the Lantiq SoC source "drivers/net/ethernet/marvell/Kconfig" +source "drivers/net/ethernet/mediatek/Kconfig" source "drivers/net/ethernet/mellanox/Kconfig" source "drivers/net/ethernet/micrel/Kconfig" source "drivers/net/ethernet/microchip/Kconfig" diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile index 38dc1a7..6ffcc80 100644 --- a/drivers/net/ethernet/Makefile +++ b/drivers/net/ethernet/Makefile @@ -46,6 +46,7 @@ obj-$(CONFIG_JME) += jme.o obj-$(CONFIG_KORINA) += korina.o obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/ +obj-$(CONFIG_NET_VENDOR_MEDIATEK) += mediatek/ obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/ obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/ obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/ diff --git a/drivers/net/ethernet/mediatek/Kconfig b/drivers/net/ethernet/mediatek/Kconfig new file mode 100644 index 0000000..b0229f4 --- /dev/null +++ b/drivers/net/ethernet/mediatek/Kconfig @@ -0,0 +1,17 @@ +config NET_VENDOR_MEDIATEK + bool "MediaTek ethernet driver" + depends on ARCH_MEDIATEK + ---help--- + If you have a Mediatek SoC with ethernet, say Y. + +if NET_VENDOR_MEDIATEK + +config NET_MEDIATEK_SOC + tristate "MediaTek MT7623 Gigabit ethernet support" + depends on NET_VENDOR_MEDIATEK && (MACH_MT7623 || MACH_MT2701) + select PHYLIB + ---help--- + This driver supports the gigabit ethernet MACs in the + MediaTek MT2701/MT7623 chipset family. + +endif #NET_VENDOR_MEDIATEK diff --git a/drivers/net/ethernet/mediatek/Makefile b/drivers/net/ethernet/mediatek/Makefile new file mode 100644 index 0000000..aa3f1c8 --- /dev/null +++ b/drivers/net/ethernet/mediatek/Makefile @@ -0,0 +1,5 @@ +# +# Makefile for the Mediatek SoCs built-in ethernet macs +# + +obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth_soc.o -- 1.7.10.4
[toc] | [prev] | [next] | [standalone]
| From | John Crispin <blogic@openwrt.org> |
|---|---|
| Date | 2016-03-08 11:40 +0100 |
| Subject | [PATCH V5 4/4] net-next: mediatek: add an entry to MAINTAINERS |
| Message-ID | <randw-84x-35@gated-at.bofh.it> |
| In reply to | #1352835 |
Add myself and Felix as the Maintainers for the MediaTek ethernet driver. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John Crispin <blogic@openwrt.org> --- MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c4d157..b5293f3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7012,6 +7012,13 @@ F: include/uapi/linux/meye.h F: include/uapi/linux/ivtv* F: include/uapi/linux/uvcvideo.h +MEDIATEK ETHERNET DRIVER +M: Felix Fietkau <nbd@openwrt.org> +M: John Crispin <blogic@openwrt.org> +L: netdev@vger.kernel.org +S: Maintained +F: drivers/net/ethernet/mediatek/ + MEDIATEK MT7601U WIRELESS LAN DRIVER M: Jakub Kicinski <kubakici@wp.pl> L: linux-wireless@vger.kernel.org -- 1.7.10.4
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-03-10 22:30 +0100 |
| Message-ID | <rbgjE-4mm-1@gated-at.bofh.it> |
| In reply to | #1352835 |
From: John Crispin <blogic@openwrt.org> Date: Tue, 8 Mar 2016 11:29:53 +0100 > This series adds support for the Mediatek ethernet core found on current ARM > based SoCs. The driver works on MT2701 and MT7623 SoCs > > Instead of trying to upstream everything at once I decided to concentrate on > the important parts required to make current generation silicon work. The V3 > series only includes the code required to make dual MAC setups work and only > supports the newer QDMA engine. ... Series applied, thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web