Received: by 10.213.65.68 with SMTP id h4csp1223542imn; Wed, 14 Mar 2018 13:24:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELuhIfieynebVW+qLCvnZ+e9d3MAzLfIuJ5zh3pzZqxsFCEemnY3slU26Hvssz8bF70Qwb7U X-Received: by 2002:a17:902:3183:: with SMTP id x3-v6mr5267321plb.383.1521059069542; Wed, 14 Mar 2018 13:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521059069; cv=none; d=google.com; s=arc-20160816; b=yUFMDTpTfOdC5Z5krfNoVavzN8exMwf0UczroKQwkfMJBIR6Jl38wUiTbZWr+B6QXx rc10XXTFshpISYSXt7PaYKjjNp4w6XBWmn9Cj64jVxvo3en9zxjkRBe8M8wVyz59CNKs LaT1sw/1YZqBJr1LjipODXMA5uU8GUBCWiNFNMQlFkq0mh2BzaezOFhqxO/ZtNo7Cbkm 4rADEwKVrOsVCoH+vfW5LhqF2LUi6GeH8fV/3e7cchDK7lQo9l+f/w+DUwh1OJTEEhVX K1HvJptAXE3zPwBl7T4HNId1McJbUn7m1mz7DXwqDuGdX50B3op0qA0cbvuAbi0ZHLDp WhDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:cc:subject:date:to:from :arc-authentication-results; bh=IJ5uZfWJggK93iE3xtg4L/OmNKaF9iWtf+dLugHd5h0=; b=wx6V9LxuBuj9n/gvvgS4g6jLEo1NNDMxtunjGoO5SbdX+qjz+J+JEGUMLwY9Xluaef ZrxmajhzYItCaaHhDSAiyro/x7mfYQxCdfpWD4vcB0WMx+VoFZXj1HsH3yYT0OXDb0oa zAP/4Rw4LN0OGy+tADEO6i0nLl7XsjuejoXZ8gzz76QiuzRy0jKml+SdUfIntc+FjvhJ KOtQmGHV+IPNPXefvYaqNbHlylve+ZOuo1337E0IyuyitjFL8AEQwSwdf+LNj/Z3h9Rf KU+8wI+UT7fJmhRb1TdH5SxnvZxWDzSndyOaQFepPprV5fzTH25zluInUBEmqLWTl0ht rGfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20-v6si2471597plq.486.2018.03.14.13.24.15; Wed, 14 Mar 2018 13:24:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752140AbeCNUXD (ORCPT + 99 others); Wed, 14 Mar 2018 16:23:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:38500 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbeCNUXB (ORCPT ); Wed, 14 Mar 2018 16:23:01 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 65AE4AF76; Wed, 14 Mar 2018 20:23:00 +0000 (UTC) From: NeilBrown To: Greg Kroah-Hartman Date: Thu, 15 Mar 2018 07:22:34 +1100 Subject: [PATCH 00/13] staging: add drivers to support Mediatek mt7621 in gnubee-pc1 Cc: devel@driverdev.osuosl.org, lkml , John Crispin Message-ID: <152105892255.22262.1902152685410223215.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, I'd like to submit the following drivers to staging. They are all for components of the mt7621 MIPS-based SOC from Mediatek. I lifted them out of libreCMC and (for the ethernet code) out of email posts from about 2 years ago. I forward-ported them to mainline, fixed enough bugs that they mostly work, and moved them to staging. With these patches the GNUBEE is almost usable. It needs one patch to arch/mips/kernel/setup.c because mips_cm_probe() is being called too early. To successfully reboot (i.e warm-restart) it needs a small patch to drivers/mtd/devices/m25p80.c. I've made a point of only included code that I can actually test on hardware that I have. That has meant selecting only a few patches from a series and in a couple of cases, discarding some files from a patch. I haven't discard code from within a file that I need part of. All the driver patches had a From: of John Crispin so he is cc:ed - thanks John!! I have added TODO files, some of which have useful details. I think some of the drivers (eth,mmc, maybe dma) should be merged with related mainline code rather than added as separate drivers. I've included a dts file for the GNUBEE. When all the other drivers move out of staging, it should follow them. I plan to continue to work on these drivers, but probably not for a few weeks at least. Thanks, NeilBrown --- John Crispin (12): staging: mt7621-pci: MIPS/ralink: add MT7621 pcie driver staging: mt7621-pinctrl: ralink: add pinctrl driver staging: mt7621-gpio: ralink: add mt7621 gpio controller staging: mt7621-spi: add mt7621 support staging: mt7621-dma: ralink: add rt2880 dma engine staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC staging: mt7621-eth: Document ralink/mediatek SoC ethernet binding staging: mt7621-eth: add the drivers core files staging: mt7621-eth: add gigabit switch driver (GSW) staging: mt7621-eth: add mdio support for mt762X family staging: mt7621-eth: add support for mt7621 staging: mt7621-eth: mediatek: add Kconfig and Makefile NeilBrown (1): staging: mt7621-dts: add dts files drivers/staging/Kconfig | 14 drivers/staging/Makefile | 8 drivers/staging/mt7621-dma/Kconfig | 12 drivers/staging/mt7621-dma/Makefile | 4 drivers/staging/mt7621-dma/TODO | 5 drivers/staging/mt7621-dma/mtk-hsdma.c | 767 +++++ drivers/staging/mt7621-dma/ralink-gdma.c | 928 ++++++ drivers/staging/mt7621-dts/Kconfig | 5 drivers/staging/mt7621-dts/Makefile | 3 drivers/staging/mt7621-dts/TODO | 5 drivers/staging/mt7621-dts/gbpc1.dts | 143 + drivers/staging/mt7621-dts/mt7621.dtsi | 471 +++ .../devicetree/bindings/net/mediatek-net-gsw.txt | 48 drivers/staging/mt7621-eth/Kconfig | 39 drivers/staging/mt7621-eth/Makefile | 14 drivers/staging/mt7621-eth/TODO | 13 drivers/staging/mt7621-eth/ethtool.c | 225 + drivers/staging/mt7621-eth/ethtool.h | 22 drivers/staging/mt7621-eth/gsw_mt7620.h | 277 ++ drivers/staging/mt7621-eth/gsw_mt7621.c | 298 ++ drivers/staging/mt7621-eth/mdio.c | 271 ++ drivers/staging/mt7621-eth/mdio.h | 27 drivers/staging/mt7621-eth/mdio_mt7620.c | 173 + drivers/staging/mt7621-eth/mtk_eth_soc.c | 2178 ++++++++++++++ drivers/staging/mt7621-eth/mtk_eth_soc.h | 721 +++++ drivers/staging/mt7621-eth/soc_mt7621.c | 160 + drivers/staging/mt7621-gpio/Kconfig | 6 drivers/staging/mt7621-gpio/Makefile | 3 drivers/staging/mt7621-gpio/TODO | 5 drivers/staging/mt7621-gpio/gpio-mt7621.c | 353 ++ drivers/staging/mt7621-mmc/Kconfig | 16 drivers/staging/mt7621-mmc/Makefile | 42 drivers/staging/mt7621-mmc/TODO | 8 drivers/staging/mt7621-mmc/board.h | 137 + drivers/staging/mt7621-mmc/dbg.c | 347 ++ drivers/staging/mt7621-mmc/dbg.h | 156 + drivers/staging/mt7621-mmc/mt6575_sd.h | 1001 +++++++ drivers/staging/mt7621-mmc/sd.c | 3074 ++++++++++++++++++++ drivers/staging/mt7621-pci/Makefile | 1 drivers/staging/mt7621-pci/TODO | 12 drivers/staging/mt7621-pci/pci-mt7621.c | 840 +++++ drivers/staging/mt7621-pinctrl/Kconfig | 4 drivers/staging/mt7621-pinctrl/Makefile | 3 drivers/staging/mt7621-pinctrl/TODO | 6 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 472 +++ drivers/staging/mt7621-spi/Kconfig | 6 drivers/staging/mt7621-spi/Makefile | 1 drivers/staging/mt7621-spi/TODO | 5 drivers/staging/mt7621-spi/spi-mt7621.c | 489 +++ 49 files changed, 13818 insertions(+) create mode 100644 drivers/staging/mt7621-dma/Kconfig create mode 100644 drivers/staging/mt7621-dma/Makefile create mode 100644 drivers/staging/mt7621-dma/TODO create mode 100644 drivers/staging/mt7621-dma/mtk-hsdma.c create mode 100644 drivers/staging/mt7621-dma/ralink-gdma.c create mode 100644 drivers/staging/mt7621-dts/Kconfig create mode 100644 drivers/staging/mt7621-dts/Makefile create mode 100644 drivers/staging/mt7621-dts/TODO create mode 100644 drivers/staging/mt7621-dts/gbpc1.dts create mode 100644 drivers/staging/mt7621-dts/mt7621.dtsi create mode 100644 drivers/staging/mt7621-eth/Documentation/devicetree/bindings/net/mediatek-net-gsw.txt create mode 100644 drivers/staging/mt7621-eth/Kconfig create mode 100644 drivers/staging/mt7621-eth/Makefile create mode 100644 drivers/staging/mt7621-eth/TODO create mode 100644 drivers/staging/mt7621-eth/ethtool.c create mode 100644 drivers/staging/mt7621-eth/ethtool.h create mode 100644 drivers/staging/mt7621-eth/gsw_mt7620.h create mode 100644 drivers/staging/mt7621-eth/gsw_mt7621.c create mode 100644 drivers/staging/mt7621-eth/mdio.c create mode 100644 drivers/staging/mt7621-eth/mdio.h create mode 100644 drivers/staging/mt7621-eth/mdio_mt7620.c create mode 100644 drivers/staging/mt7621-eth/mtk_eth_soc.c create mode 100644 drivers/staging/mt7621-eth/mtk_eth_soc.h create mode 100644 drivers/staging/mt7621-eth/soc_mt7621.c create mode 100644 drivers/staging/mt7621-gpio/Kconfig create mode 100644 drivers/staging/mt7621-gpio/Makefile create mode 100644 drivers/staging/mt7621-gpio/TODO create mode 100644 drivers/staging/mt7621-gpio/gpio-mt7621.c create mode 100644 drivers/staging/mt7621-mmc/Kconfig create mode 100644 drivers/staging/mt7621-mmc/Makefile create mode 100644 drivers/staging/mt7621-mmc/TODO create mode 100644 drivers/staging/mt7621-mmc/board.h create mode 100644 drivers/staging/mt7621-mmc/dbg.c create mode 100644 drivers/staging/mt7621-mmc/dbg.h create mode 100644 drivers/staging/mt7621-mmc/mt6575_sd.h create mode 100644 drivers/staging/mt7621-mmc/sd.c create mode 100644 drivers/staging/mt7621-pci/Makefile create mode 100644 drivers/staging/mt7621-pci/TODO create mode 100644 drivers/staging/mt7621-pci/pci-mt7621.c create mode 100644 drivers/staging/mt7621-pinctrl/Kconfig create mode 100644 drivers/staging/mt7621-pinctrl/Makefile create mode 100644 drivers/staging/mt7621-pinctrl/TODO create mode 100644 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c create mode 100644 drivers/staging/mt7621-spi/Kconfig create mode 100644 drivers/staging/mt7621-spi/Makefile create mode 100644 drivers/staging/mt7621-spi/TODO create mode 100644 drivers/staging/mt7621-spi/spi-mt7621.c -- Signature