From patchwork Thu Sep 2 11:28:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12471313 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E79DC432BE for ; Thu, 2 Sep 2021 11:31:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 17792600AA for ; Thu, 2 Sep 2021 11:31:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 17792600AA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=lW8qao63W1FKByfbo/Fyv6T1oVBjl+y2VJd7KMqvrEQ=; b=dGSS9Pydnna8Yw ihTImS5TFUvRdkQQJZOJDBDR7WHVC7f1qzlZctxveZu5vWDEAjv3/9z8FBynWbzHeXabU603xVv8i +y+Rqugkx5MTrkp1pzpTr7uDBDF12jZT8QR9n6Ew59MiG3R4O57CQ90axmAf9WCY1Se/cyRX3Zcbs et1Mv8lGGVCZNMhdD9a8ii7HWIkhgaHuNdSpsF0weFQRf6rIUdM0wPXsF5/xbiseebfmbNQWzBQCb HGgdo2y3JrqFtZ458JbzEV+KvxrhlzvG7rubk5hCwt64Jff/qANFNYsa6NqDxfbb2l5AjPuDoqxln jny6/hSlQNyHKPAeXOqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLku6-009QZy-RP; Thu, 02 Sep 2021 11:29:11 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLkti-009QQm-4x for linux-arm-kernel@lists.infradead.org; Thu, 02 Sep 2021 11:28:49 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E5B4610A0; Thu, 2 Sep 2021 11:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630582125; bh=rCfLAh2B0f7199IX3qnnYQSRiMtH1/jQIkrV5hJSRdE=; h=From:To:Cc:Subject:Date:From; b=MKs3oawntu6/+piP+pXzuI3ki+5+nTwR/xyK5PacnDS9529K+tvmezmwLDPI0V73v ul0Xm49aorohSfW/YP/W0mZ8+SQ0LXMBJdDy0plQavhtCO/pt+iG01IXe8N5UAbawh UfkMPQtkcBfh4j2qY9LIo1FOwNDIfN92CVMmCpk+11vvrXRAp0kUe1KS79NKN2CW+a YBLbClkO/eDg6eUaw2NyzbD8EAA5I3DvgQP4Ge1Uyy5gSNa1Liobv/REXYWs5dgonN SpwI+mxazLjT46W4CylkSoCrxwIBClObt5EWVrHImz83IjDaVfTloqlGCk/xz8T/yF k8R+SJKBsDDrg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mLktf-0004ZL-4W; Thu, 02 Sep 2021 13:28:43 +0200 From: Mauro Carvalho Chehab To: Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , John Stultz , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] Make USB ports to work on HiKey960/970 Date: Thu, 2 Sep 2021 13:28:33 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210902_042846_272893_2F6EE651 X-CRM114-Status: GOOD ( 13.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Rob, It follows the patchset adding a DT schema needed to power on and to use the integrated USB HUB found on HiKey 960 and Hikey 970 boards. The entire series which contains the remaining patches to support PCI and USB on HiKey970, and USB on HiKey960 was updated at: https://github.com/mchehab/linux/commits/linux-next Those patches are based on linux-next tree (next-20210831), as they depend on some patches that will likely be merged up to v5.15-rc1. Tested on HiKey 960: $ lsusb Bus 002 Device 002: ID 0424:5734 Standard Microsystems Corp. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 0424:2740 Standard Microsystems Corp. Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 002: ID 0424:2734 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Tested on HiKey 970: $ lsusb Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub v3: - The examples at the dt-bindings were updated to reflect the actual DTS content and won't produce any warnings; - Added John Stultz SoB to Hikey960 DTS patch; - Added a patch for the mux hub driver for it to work with the newer schema; John Stultz (1): arm64: dts: hisilicon: Add usb mux hub for hikey960 Mauro Carvalho Chehab (2): misc: hisi_hikey_usb: change the DT schema arm64: dts: hisilicon: Add usb mux hub for hikey970 Yu Chen (1): dt-bindings: misc: add schema for USB hub on Kirin devices .../bindings/misc/hisilicon,hikey-usb.yaml | 108 ++++++++++++++++++ .../boot/dts/hisilicon/hi3660-hikey960.dts | 35 +++++- .../boot/dts/hisilicon/hi3670-hikey970.dts | 23 ++++ drivers/misc/hisi_hikey_usb.c | 81 ++++++------- 4 files changed, 199 insertions(+), 48 deletions(-) create mode 100644 Documentation/devicetree/bindings/misc/hisilicon,hikey-usb.yaml