From patchwork Fri Dec 17 10:12:50 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: 12696606 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 6D3A8C433EF for ; Fri, 17 Dec 2021 10:15:36 +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=WAcefyVbIPwgKHWGqhUnw/iR5Zvug4BGhL1TV3n/auY=; b=gckwf8BwX2kg4/ oP7sUMLt4WvqIVXXKaSbvpLUqMzgo+RX1evJ7S4gs6PJSusnlvcQRFNXWBHg900wxMaT6H6iszRXv O1YtU5IwKl3aJhtBe57toMmpED1/KTSjivK+L3Msm4f5rpHXLWaMaTkmBJt+PF+lPL213AbpLZeF0 AVgmJCGWC3hUDsidU3Ue9b/EVhfEu226SsCPSQWZvgNyEeyUyVvxEADko+B5N/MyN1PTlOXzKNeRC RfnnOWseKWOPWXW8iLw0/32ERVI+JFpU9Sbw+0mSPMqF+THc4OgNf07A2YbeQTAdHSvYqTZgz8QbW 7RoXC2F3Ms+MF7uv8NbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myAFn-009QZE-1n; Fri, 17 Dec 2021 10:14:19 +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 1myAEV-009Q3j-Gu for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 10:13:07 +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 218C3B82791; Fri, 17 Dec 2021 10:12:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEABC36AF3; Fri, 17 Dec 2021 10:12:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639735975; bh=x5typq3Mr2F76cJCU3rYh7i3bB0cbEY2vH9vvKOrlKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dEfw07ftNgY6xBg89DVEGh+9i0MHnBXh08SedDkOgPYY8xL5w/OwLkclllJef+2w4 US6amcFpDKLwYawixc18o1tLYhbgGtyqadCfc4OoS8+d/vBhtWzavigq+pUaQxHTK0 NIxXaEf4X00idzo9yHO7DkxPH2V6QC0fgj8MOWJ3IrHornl8Ijl5guxKGvd5jH8U+Z V0ZO1aNsoEImU9uLDLptH/nBCl43AeMIxpAiDIXfd1di8E8E2dPaM6FzcduwJ10KrX u+YeTeRL705xPCLR0LABwGQH7j26PXVC28zsm/wh0fJS/TfBmM8OqlGfgxrLOkrzvm JMN7I/PEVyQ2g== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1myAEP-000g6S-Df; Fri, 17 Dec 2021 11:12:53 +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, Mauro Carvalho Chehab Subject: [PATCH v2 6/7] arm64: dts: hisilicon: Add usb mux hub for hikey970 Date: Fri, 17 Dec 2021 11:12:50 +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-20211217_021259_867040_17C6B0A3 X-CRM114-Status: GOOD ( 13.05 ) 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 From: Mauro Carvalho Chehab 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 Signed-off-by: Mauro Carvalho Chehab --- See [PATCH v2 0/7] at: https://lore.kernel.org/all/cover.1639735742.git.mchehab@kernel.org/ .../boot/dts/hisilicon/hi3670-hikey970.dts | 23 +++++++++++++++++++ arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 10 ++++---- 2 files changed, 28 insertions(+), 5 deletions(-) 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>; + }; + }; + }; }; /* diff --git a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi index b47654b50139..486dc93ab47b 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi @@ -915,7 +915,7 @@ usb31_misc_rst: usb31_misc_rst_controller { hisi,rst-syscon = <&usb3_otg_bc>; }; - usb3: hisi_dwc3 { + usb3: dwc3 { compatible = "hisilicon,hi3670-dwc3"; #address-cells = <2>; #size-cells = <2>; @@ -925,10 +925,10 @@ usb3: hisi_dwc3 { <&crg_ctrl HI3670_HCLK_GATE_USB3OTG>, <&crg_ctrl HI3670_CLK_GATE_USB3OTG_REF>, <&crg_ctrl HI3670_ACLK_GATE_USB3DVFS>; - clock-names = "clk_gate_abb_usb", - "hclk_gate_usb3otg", - "clk_gate_usb3otg_ref", - "aclk_gate_usb3dvfs"; + clock-names = "abb", + "hclk", + "ref", + "aclk"; assigned-clocks = <&crg_ctrl HI3670_ACLK_GATE_USB3DVFS>; assigned-clock-rates = <238000000>;