From patchwork Wed Dec 15 08:54:32 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: 12696216 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A78E9C433F5 for ; Wed, 15 Dec 2021 08:56:34 +0000 (UTC) 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=Wfu3YAwysBj0IyG7YmxauJ0Jjhh/l4+46H+f9mttp40=; b=eoAMXdVU60yiPR fhGtYD0E+CjGiPD4zUAHJVM8lnKuaQhfmfp957auLPkeI6D1A/g6wXrpKZDDIj+EM65sMuBnYC9Q+ NKGgCiR8LkefJ/BGvXTmRqG1oKifuH+KE9J6ZEjSAKtTX6jiLd35wd5Wr9f/3UYSsiTLUJL1YS6g8 eo5dU7LQAfmfZUa81sENj1boHpYbSkQiA3gfZbmWBME/4sp0n/H5/XW0ed6ei3r2bzl6qWZ1UGzgg eecctzFkY/FywU52PBYEmqwlqa1hM9z2vArvwsaVENRrNsRmCFCpaU/2Y8m0HC4G55+eQrzPNVixs lfFaSX6/bO2Pxaod4n8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxQ4D-00HPSh-9y; Wed, 15 Dec 2021 08:55:17 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxQ3f-00HPFQ-4G for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 08:54:46 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4DEC5B81EB2; Wed, 15 Dec 2021 08:54:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FA54C34606; Wed, 15 Dec 2021 08:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639558480; bh=bPwyIX0t/F7TcAWDAFt7NPQXqT9UtG8bvIM4c8B3Qh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UBtXEiHxgQwGPUePcPODVvLEWjJxuvHNXDUG24u/iIVUn/WXh5ttWN50rWPXsuHEH mwh55Buyl9rjz5U48W13vVDd5f7q1DnhQWAprQcD9kb9Qx263Fl4cLeSsbz/qCCsZ2 uUPtxzLuI9+UJOLPUy1rcycjKZ5564wsCxwiFQf7snu/HswVOIShrt6sTIDZkcvb9R JYU0dmZI/O45Q14s3M4Pkeg22/yIAyVNfvTkaEiovvlDJ9trU1Poz2AqbbvX6yLjo8 ReAXiam2dzZaCcjE6PcDlNWQb6eyPYgC282A+3ECkHdmfYQE9RviX2lv1goo668LxJ 7RjEzelZ/besg== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mxQ3Z-0054IE-Q6; Wed, 15 Dec 2021 09:54:37 +0100 From: Mauro Carvalho Chehab To: Wei Xu , Rob Herring Cc: Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND 6/7] arm64: dts: hisilicon: Add usb mux hub for hikey970 Date: Wed, 15 Dec 2021 09:54:32 +0100 Message-Id: X-Mailer: git-send-email 2.33.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-20211215_005443_349747_FA2EB715 X-CRM114-Status: GOOD ( 11.37 ) 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 --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH RESEND 0/7] at: https://lore.kernel.org/all/cover.1639558366.git.mchehab+huawei@kernel.org/ .../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>; + }; + }; + }; }; /*