From patchwork Tue Sep 8 10:28:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 11763201 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 50DC4112E for ; Tue, 8 Sep 2020 10:32:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19F6A206DB for ; Tue, 8 Sep 2020 10:32:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dvyh3DEo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="X0ZlHXUK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19F6A206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=br+2JKFhqL+5wV54OIlBxSsycVqyPUOtMKYosZzX32E=; b=dvyh3DEoVLjz2VQnd066FEXnAh +SUc25pJpNfBJiKoIqmntE8rgnG8fROigvKqre4NuiA4uQ4btAd3hnYuvSdSmNeqvI1u0r6M2o5TJ mFzw4N32kOAzDLZIRcFJ2evQ4ZJDjPz5obuyY7OtaJR3cdkguab/ZBVTpPAJhhDvajyKkpjzOZse3 HTkxGa1MVDRvvTuBQxci08gzKuBIO3ybzmt7MxEk8Q2gjfmDsXDX/icW5pRuZI3kKq0vDHrKJSHHH siTA0gtATDl6VsEGceFkNPIgIDN/jCxSDDWDLJ92Kw3tNNnRRjqB6vP+2j5kehQ/xz5eHEbP1+ZCL rzwupWNQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFatV-0002tP-Pk; Tue, 08 Sep 2020 10:30:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFas2-00025m-Jy for linux-arm-kernel@lists.infradead.org; Tue, 08 Sep 2020 10:29:05 +0000 Received: from mail.kernel.org (ip5f5ad5ce.dynamic.kabel-deutschland.de [95.90.213.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A51421556; Tue, 8 Sep 2020 10:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599560940; bh=IAB2OfIUn/8K8Wy7aR20s3fCv1Xzvg8uXkO3xarIgmc=; h=From:To:Cc:Subject:Date:From; b=X0ZlHXUKM6AI/YSj2aXD1caXyfv3PBwkDkxvZVx9TyCFX+I8K5itKKDtYScVEGpoI OYa5jLnt+73Ie2CgOh1OemrRozBTP8TkSripMGOm7Zn7YscOeeRuw2FW/BHOG84mYH 8kNInTsZUyarKkItX6o1GU5hry6cKHVUKpjWht5A= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kFarx-00B3yB-WB; Tue, 08 Sep 2020 12:28:58 +0200 From: Mauro Carvalho Chehab To: Subject: [PATCH 00/10] Add USB support for Hikey 970 Date: Tue, 8 Sep 2020 12:28:34 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200908_062903_193808_79DD244E X-CRM114-Status: GOOD ( 19.35 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Manivannan Sadhasivam , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dragan Cvetic , Yu Chen , linuxarm@huawei.com, Krzysztof Kozlowski , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , John Stultz , Wei Xu , mauro.chehab@huawei.com, Derek Kiernan , "David S. Miller" , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This series adds the phy layer needed by Kirin 970 SoC. It also adds a GPIO USB3 HUB driver, that is meant to support the HUB which comes inside with HiKey 960 and 970 designs. The hub used on Hikey 970 is this one: Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub While it supports I2C, the driver for it just enables it, depending on the OTG mode. v3: - fixes a problem on the past series, where some changes went to the wrong patch; - adds DTS and dt-bindinds required for Hikey 970 USB to work. For the dt-bindings to work properly, two patches already sent are required: - a patch adding Hikey 970 to dwg3-of-simple driver; - a quirks patch for dwc3, which is required for usbhid to work. funny enough, such patch is not required by USB sticks. I suspect that it affects only INT URB packets, but didn't made any tests. Mauro Carvalho Chehab (7): phy: hisilicon: phy-hi3670-usb3: use a consistent namespace phy: hisilicon: phy-hi3670-usb3: fix coding style phy: hisilicon: phy-hi3670-usb3: change some DT properties dt-bindings: phy: convert phy-kirin970-usb3.txt to yaml MAINTAINERS: add myself as maintainer for Kirin 970 USB PHY misc: hisi_hikey_usb: add support for Hikey 970 dts: hisilicon: add support for USB3 on Hikey 970 Yu Chen (3): phy: hisilicon: add USB physical layer for Kirin 3670 phy: hisilicon: phy-hi3670-usb3: fix some issues at the init code misc: hisi_hikey_usb: Driver to support onboard USB gpio hub on Hikey960 .../bindings/phy/hisilicon,hi3670-usb3.yaml | 72 ++ MAINTAINERS | 16 +- .../boot/dts/hisilicon/hi3670-hikey970.dts | 102 +++ arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 58 ++ drivers/misc/Kconfig | 9 + drivers/misc/Makefile | 1 + drivers/misc/hisi_hikey_usb.c | 274 +++++++ drivers/phy/hisilicon/Kconfig | 10 + drivers/phy/hisilicon/Makefile | 1 + drivers/phy/hisilicon/phy-hi3670-usb3.c | 671 ++++++++++++++++++ 10 files changed, 1213 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml create mode 100644 drivers/misc/hisi_hikey_usb.c create mode 100644 drivers/phy/hisilicon/phy-hi3670-usb3.c