From patchwork Wed Dec 15 08:54: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: 12696213 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 2E779C433EF for ; Wed, 15 Dec 2021 08:56:13 +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=Lc4YcOp/B4nbEaGFiKHhQQGkeBz14wY8SQOZuOVJ3hM=; b=LA1/cs8wgwsziD InD9FR6yjegLQ/+tLR6qd86r6KjtfvKmeu++W4fCZfDVmmOE5Ypi0VWXsW7uXaUghlgKHeac22NcQ l7jwn/bqaoxNjdMVa9oQk58QbjyDR1OllI2u+hEGX57V3WSGLScNF9TX6jPazc5DuLkkiCsbKaSua AR6fknRqh+js1yI4wwEv0gxz3D1IwpX8q0wK0oPe0tw44Mrt8zA4zylqP9HzrGl1s7bxiWcqExco+ WEBy3vh+fD01q+sCCmGbWRkBLZGGWYQc8gtu3aWDNU91hqbSktRB+OBtEM1EWW7VIbLfyyoYFei3f wdEtbDzdbnxhqpY21MLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxQ3j-00HPJ7-28; Wed, 15 Dec 2021 08:54:47 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxQ3e-00HPFT-FJ for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 08:54:44 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 06AC561859; Wed, 15 Dec 2021 08:54:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2584AC34608; 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=IFbvMKX9vDDaZfjF7MZhS2oxD39IrLI4w6N9RufcTnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=faGl3hN/GHf7hFfIPWloc7b1EvnDd67wGABYhBhk2kVXr/I0wF006dYHbgEfYLevL 9p/txzAvPakTyz24VZl63fVvbnyXlVPig25v8l3O4P/eaIpiNxwY4FVbdpFi26JpN6 iWBFyUQ4wiy2lOZZYqHt2nxgBKSCLGamxVUquLYNAn9kQNFHflmloWrdDnlCcHpkLO 4A6JgmCYYj9dQl1i4nDpE0hBM6C8O/oIfjaRw9+Btvt5BXBpw2ZEmKAH4rSXArYJ6u 1ZOlRDGLj+5q49w5LEP28LCNXd7hpeFt6SUj4sribtMuTuMkwWipHUInpoW30R88F6 EEtIndU5nnb9Q== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mxQ3Z-0054II-R5; Wed, 15 Dec 2021 09:54:37 +0100 From: Mauro Carvalho Chehab To: Wei Xu , Rob Herring Cc: John Stultz , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH RESEND 7/7] arm64: dts: hisilicon: Add usb mux hub for hikey960 Date: Wed, 15 Dec 2021 09:54:33 +0100 Message-Id: <87d615caf69301f86b6305924fb702c497715a0c.1639558366.git.mchehab+huawei@kernel.org> 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_005442_630200_58C98F6F X-CRM114-Status: GOOD ( 12.24 ) 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: John Stultz Add dt bindings for Kirin 960 USB HUB. Such board comes with an integrated USB HUB provided via a Microchip USB5734 4-port high-speed hub controller. [mchehab: modified it to adapt to the merged DT schema] Signed-off-by: John Stultz 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/hi3660-hikey960.dts | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index f68580dc87d8..135501e57f86 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -197,6 +197,37 @@ optee { method = "smc"; }; }; + + usb_hub_vdd: usb_hub_vdd { + compatible = "regulator-fixed"; + regulator-name = "hub-vdd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio5 6 0>; + enable-active-high; + }; + + usb-hub { + compatible = "hisilicon,usbhub"; + typec-vbus-gpios = <&gpio25 2 GPIO_ACTIVE_HIGH>; + otg-switch-gpios = <&gpio25 6 GPIO_ACTIVE_HIGH>; + hub-vdd-supply = <&usb_hub_vdd>; + 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>; + }; + }; + }; }; /* @@ -564,7 +595,7 @@ port { rt1711h_ep: endpoint@0 { reg = <0>; - remote-endpoint = <&dwc3_role_switch>; + remote-endpoint = <&hikey_usb_ep1>; }; }; }; @@ -686,7 +717,7 @@ port { #size-cells = <0>; dwc3_role_switch: endpoint@0 { reg = <0>; - remote-endpoint = <&rt1711h_ep>; + remote-endpoint = <&hikey_usb_ep0>; }; dwc3_ss: endpoint@1 {