Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7001071imu; Thu, 27 Dec 2018 10:17:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN4OxH3TtjT6DgcL9kvpwV1kDClwVFK/AkJDwJUDBCN9MLBmWXqdoQpg3iz0/SgAaGYsQBbN X-Received: by 2002:a63:1766:: with SMTP id 38mr23036826pgx.299.1545934634813; Thu, 27 Dec 2018 10:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934634; cv=none; d=google.com; s=arc-20160816; b=AnJ/DBJ05v2rjJ3J6SQkPXb7p2lsTUfr4n8eXvmtYQzpeuTttKz91euuZxKXlH/eqE AmJrewlkIf3C4kOGvlQ7KP3S2EkcM+UsLvzORhWEhc7BOLjMlt5ZQjytrciwALv2WIDX 1zsij4uM4vGJfgcMN7M3eScUTUry+iBUo4XZJOzOAZHiswp3wjmc6Gstbe7/wWhh7eoN lbPpeRRm119ikg7RPebHdAKKI2NMcDetiqtV2SHl+fWibjd7d1XoJ0Kd1oBwUbQz3NrI gcqTHTX9Iey8LNaw4vhxjeD5dSFicwArjyR+lbZl108M2CXV+FLOjvWsG+oFcUx9I0Ro 3lzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=f3lhjsr+Vd/xXESL/g5YQRob2+j/Ox3+2pArgdp/+LA=; b=eghR4K0IBXldB1MCfMdrAs3StgyOoEbMHTnb2gE1A6Ly26fSiex4yyjeu1w9pP31K+ mVT2eJuzvxUq13mnIEmt17FMXrMYLfVZXrA6+iueZyd9hu06PkCdTQrI4uwhUARlMNWH MkmG9fuBzKlpOTy282K1DpRp20MsAfx5ejHEXKys/BzX+Vef0cZ3sw5MLramjqHK0BWE NO/fespKIbuoOBs+QNBdpqHy/PLDmaMIDG4og8UuY0hCUyfp0ZY5sj04lS+EdNVbyXHv G2OImxb3Jw4CZpA8c65Ej4HuUB5weaRJl/hZYcOtIeeN+dhq0B7s1wqZlOOCQ6jPMMK9 C+uQ== 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 j132si8585920pfc.84.2018.12.27.10.17.00; Thu, 27 Dec 2018 10:17:14 -0800 (PST) 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 S1729875AbeL0HfA (ORCPT + 99 others); Thu, 27 Dec 2018 02:35:00 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:51588 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728319AbeL0He6 (ORCPT ); Thu, 27 Dec 2018 02:34:58 -0500 X-UUID: 5f8b781084354860943b6d486fbaded4-20181227 X-UUID: 5f8b781084354860943b6d486fbaded4-20181227 Received: from mtkcas32.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1925364063; Thu, 27 Dec 2018 15:34:46 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Dec 2018 15:34:44 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Dec 2018 15:34:43 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , Min Guo Subject: [PATCH 0/4] Add MediaTek MUSB Controller Driver Date: Thu, 27 Dec 2018 15:34:22 +0800 Message-ID: <1545896066-897-1-git-send-email-min.guo@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Min Guo These patches introduce the MediaTek MUSB controller driver. The driver can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only modes. This has beed tested on MT2701 with a variety of devices in host mode and with the f_mass gadget driver in peripheral mode, plugging otg cables in/out a lot of times in all possible imaginable plug orders Min Guo (4): dt-bindings: usb: musb: Add support for MediaTek musb controller arm: dts: mt2701: Add usb2 device nodes usb: musb: Move musbhsdma macro definition to musb_dma.h usb: musb: Add support for MediaTek musb controller .../devicetree/bindings/usb/mediatek,musb.txt | 49 ++ arch/arm/boot/dts/mt2701-evb.dts | 21 + arch/arm/boot/dts/mt2701.dtsi | 34 ++ drivers/usb/musb/Kconfig | 8 +- drivers/usb/musb/Makefile | 1 + drivers/usb/musb/mediatek.c | 562 +++++++++++++++++++++ drivers/usb/musb/musb_core.c | 10 + drivers/usb/musb/musb_core.h | 1 + drivers/usb/musb/musb_dma.h | 7 + drivers/usb/musb/musb_host.c | 79 ++- drivers/usb/musb/musb_regs.h | 6 + drivers/usb/musb/musbhsdma.c | 41 +- 12 files changed, 782 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/mediatek,musb.txt create mode 100644 drivers/usb/musb/mediatek.c -- 1.9.1