Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp178659yba; Fri, 19 Apr 2019 23:42:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFqzcCsx+pAXdDG+M0+kVs1tpd0pnAvhWzj/wfdc/pYEqd/Th7r3o7zbc8SAHYbqRuCRfw X-Received: by 2002:a62:474a:: with SMTP id u71mr8083630pfa.87.1555742545203; Fri, 19 Apr 2019 23:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555742545; cv=none; d=google.com; s=arc-20160816; b=Wxy5GeZ/Oa/dbrVYP+whCEVTuTcN/27n4SkwR8+2JzJwazC/Xqe/8c2NQYLPpZqUdY 0esndyDzDF9MlTBTwZmhfB7nA5Lnlmbn4tReAf8UilDk1/laysjSauAHqmuiFjps6oHF awyLEN/KbBB2AOPvNEK5hypvcMJlhGB5ttbXFVM9hq6j/Ed45709tf4Jq1R8q4bsFc0v 9GeLjVR1LcmPItHv5NWAUSoXCEBidfKUDZsgDKjPCYWC3Ft7xzhmJSn3n5esgK2vlffn LQKxwFX1czmwB+fcS1hHlhj3Ioh1Yb9eT9W9FCZd1mITprTY57tkeA0baSpvsf/D7LPo 1czw== 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=RmGH321lKuYreLRer27fXRdp7PVlOKZwba68w2qeRZM=; b=MMTQ2P9Qmj+HcNSGNsFIE0E16bxWEc+o6QHhAfVv5EQd8UcXl9TR7bz5owAbJ32Ux0 QB5z+7vD190UxA3KY6kslRryS2oK8aXYb75UCkTpLFy/PuNMMhCNCTy/YPauHtLzfDDf fy3aKxuhpPwnu0OzJ3NMJVRhqukQ+kJflRdgoON3L6mXH78iciPbyGWYE97GQk2NVX+4 YJk6514TSgBb9Aeim5V0d5JhBCO3/Khldg09hjyfrpZsKH3L4E8vVCuVh03NQ8WzzFAB GDy4QRkbQZ7eknwEJejuQfgVPCUbCQVASx/cpBp1P3O1NP8Erel1jHA+p5YyQDCfPhkU 9sWw== 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 n86si7603188pfb.273.2019.04.19.23.42.07; Fri, 19 Apr 2019 23:42:25 -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 S1726138AbfDTGkc (ORCPT + 99 others); Sat, 20 Apr 2019 02:40:32 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7206 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725832AbfDTGkc (ORCPT ); Sat, 20 Apr 2019 02:40:32 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3A432F8633B2002FC59C; Sat, 20 Apr 2019 14:40:29 +0800 (CST) Received: from vm100-107-113-134.huawei.com (100.107.113.134) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Sat, 20 Apr 2019 14:40:22 +0800 From: Yu Chen To: , , CC: , , , , , , , , , , , , , , Yu Chen Subject: [PATCH v6 00/13] Add support for usb on Hikey960 Date: Sat, 20 Apr 2019 14:40:06 +0800 Message-ID: <20190420064019.57522-1-chenyu56@huawei.com> X-Mailer: git-send-email 2.15.0-rc2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [100.107.113.134] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patchset adds support for usb functionality of Hikey960, includes: - usb phy driver for Hisilicon Kirin Soc hi3660 - usb driver for HiKey960 board - some adjustment in dwc3 and usb role driver - dts for support usb of HiKey960 --- v5: * Split modification of usb role into two patches, the first one introduces stubs for the exiting functions, and the second adds notifier functions. v6: * Add a fix of usb_role_switch_register_notifier initialization from John Stultz --- Yu Chen (13): dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc usb: dwc3: Execute GCTL Core Soft Reset while switch mdoe for Hisilicon Kirin Soc usb: dwc3: Increase timeout for CmdAct cleared by device controller phy: Add usb phy support for hi3660 Soc of Hisilicon usb: roles: Introduce stubs for the exiting functions in role.h. usb: roles: Add usb role switch notifier. usb: dwc3: Registering a role switch in the DRD code. hikey960: Support usb functionality of Hikey960 usb: gadget: Add configfs attribuite for controling match_existing_only dts: hi3660: Add support for usb on Hikey960 .../bindings/misc/hisilicon-hikey-usb.txt | 52 +++++ .../devicetree/bindings/phy/phy-hi3660-usb3.txt | 26 +++ MAINTAINERS | 8 + arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 53 +++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 73 +++++++ drivers/misc/Kconfig | 6 + drivers/misc/Makefile | 1 + drivers/misc/hisi_hikey_usb.c | 162 ++++++++++++++ drivers/phy/hisilicon/Kconfig | 10 + drivers/phy/hisilicon/Makefile | 1 + drivers/phy/hisilicon/phy-hi3660-usb3.c | 233 +++++++++++++++++++++ drivers/usb/dwc3/Kconfig | 1 + drivers/usb/dwc3/core.c | 45 ++++ drivers/usb/dwc3/core.h | 15 ++ drivers/usb/dwc3/drd.c | 78 ++++++- drivers/usb/dwc3/dwc3-of-simple.c | 4 +- drivers/usb/dwc3/gadget.c | 2 +- drivers/usb/gadget/configfs.c | 32 +++ drivers/usb/roles/class.c | 35 +++- include/linux/usb/role.h | 46 ++++ 20 files changed, 879 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.txt create mode 100644 Documentation/devicetree/bindings/phy/phy-hi3660-usb3.txt create mode 100644 drivers/misc/hisi_hikey_usb.c create mode 100644 drivers/phy/hisilicon/phy-hi3660-usb3.c -- 2.15.0-rc2