From patchwork Fri Sep 3 09:28:34 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: 12473987 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_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 5DDB6C433FE for ; Fri, 3 Sep 2021 09:31:26 +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 AA31B60F91 for ; Fri, 3 Sep 2021 09:31:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AA31B60F91 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:References:In-Reply-To: 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: List-Owner; bh=9Nv0sN0m/N/YQVaKB0ClyyJEzuiIT+wtCjdfR+GYkIk=; b=fMsnkgjt8INYXq sTPBRUeDd7zE5ynLIgtl6p+61A6BrTmk4z8b3D9s39OsKBdt9jLVHjhuVScT5B5hZdpEhDTGsImwB J5eOPa0zqFqOpgtu9hNUKid1Jk5y/etKByTEjjmwji48CBBUWGVUPpbVGwzxwZ9+8ktvQaBGFGgpZ HFVNQTU4tNa+c4QJc4uj2o5jwRamCyEknC6sFqxvL81jDppyjDZzi1z9i6fBz4a/+AH7IM16WPjXx rZLs65esdbiDXzccAnh3RX2HuJBaICjXrBeH3tLxHuhtwXQYJMfIjXGQNcpqcQDsxUzuPzrVJaARm 7avSRrwl36yj8Ue5A+7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mM5V6-00BUGq-8N; Fri, 03 Sep 2021 09:28:44 +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 1mM5V1-00BUDr-D8 for linux-arm-kernel@lists.infradead.org; Fri, 03 Sep 2021 09:28:40 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id F27066108E; Fri, 3 Sep 2021 09:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630661319; bh=252A7ya4rz1J/VWtyjLHuECws9kqq20mUJlh+v8C2Bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jSypdeAeVn1y4bPfbPk5xLNDrncSUI86xAibRZB5ZdUGOIMVFGVUDPDYuw0WD0Zf4 zOLwIhwT6XRW3rNu0PkKHoR2YTw12J8GkoQEfKw3idnurmDjRX24TNVQ9JsUiiCz9o AP2xrRCZLMzm1a+BbxYop5Klif0JKAhcP2YB4VP2Ryz4WiL+GDskWnbDau1eNrQJfw lXu/tiFVvMDKlCo0Qpdfktc44OpS87KjCoyMVpOYFd6wwrSQV+MmxIJW9WU2WKUIYX bAbusBW7C/iF+398/+EjPeptlh3i6ywn4tTPJN+CT8ACGTx7LCGjWXI5ci5rHd+h/B Jhrm+3q1+rRTA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mM5Uz-000zwa-0x; Fri, 03 Sep 2021 11:28:37 +0200 From: Mauro Carvalho Chehab To: Rob Herring , John Stultz Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Rob Herring , Wei Xu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/4] arm64: dts: hisilicon: Add usb mux hub for hikey970 Date: Fri, 3 Sep 2021 11:28:34 +0200 Message-Id: <3c90ceef6cacb49620af6325de2b93a46a460e73.1630659949.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210903_022839_592059_F885AD11 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. 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 Add dt bindings for Kirin 970 USB HUB. Such board comes with an integrated USB HUB provided via a TI TUSB8041 4-port USB 3.0 hub. Signed-off-by: Mauro Carvalho Chehab Reported-by: kernel test robot --- .../boot/dts/hisilicon/hi3670-hikey970.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts index 60594db07041..95ca49f1e455 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts @@ -53,6 +53,29 @@ wlan_en: wlan-en-1-8v { startup-delay-us = <70000>; enable-active-high; }; + + usb-hub { + compatible = "hisilicon,usbhub"; + typec-vbus-gpios = <&gpio26 1 0>; + otg-switch-gpios = <&gpio4 2 0>; + hub-reset-en-gpios = <&gpio0 3 0>; + hub-vdd-supply = <&ldo17>; + usb-role-switch; + + port { + #address-cells = <1>; + #size-cells = <0>; + + hikey_usb_ep0: endpoint@0 { + reg = <0>; + remote-endpoint = <&dwc3_role_switch>; + }; + hikey_usb_ep1: endpoint@1 { + reg = <1>; + remote-endpoint = <&rt1711h_ep>; + }; + }; + }; }; /*