From patchwork Tue Nov 16 11:59: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: 12692760 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48716C433EF for ; Tue, 16 Nov 2021 12:01:53 +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 2054D611C3 for ; Tue, 16 Nov 2021 12:01:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2054D611C3 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=dslS9DMNTrSp5/sW9dcUkrpkH7puw7YR9DKxoMzqtdY=; b=WXO0xtIjOsTfBO yeOc+nFwknWRiYKVpsx8MWl4CAv6xWugcvqk9/KqoobQn39enmPLhDXOUIjPwT59U8ij8XkVzq2HZ myqPzHkRjezzDYtTYz7jhsTyMH2W1FnqA8DFfqIPO41JfE4DvQC6vkRJA0W9dWrwExC8MoSTlIdgD IowwVS2/83CoJf92VK1/O2r3045eF/ppaCv8DGIrPVRmcJEoaOrhQp0eJ7Y9VmwFxOo6qym2YslhW l+2LRkH/mn9qg7BUQe5D1Q+FiQsU0gCY7FacCELA+g3YT0kHf4F+OJKQmP4gUR2ffWSkl0Uh+/8bj 2D7Jx5SLMHyn+u4ftiWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmx8X-001c4E-RR; Tue, 16 Nov 2021 12:00:30 +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 1mmx7h-001bnJ-Q1 for linux-arm-kernel@lists.infradead.org; Tue, 16 Nov 2021 11:59:41 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F46F61040; Tue, 16 Nov 2021 11:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637063977; bh=kBce9oGEz4xGelWyG99zfuqEst9w2N8rcyAAYzIL21o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kvlF6u8lCRlnr2nHZffiybPcksvrQr8S2P0qX3zKvTzvD+yKCN1A69CaWNhUjkxKO u5Nw59niXS5dogkmDcz6YjiqUhGK++DQCabtB0U74PxGR5wF+qVAFtUS6Qdpg0VRsL uDJPn+lwa6ENggzAP+hwJX2EPU8RqAUNBJP0f7J7x6opQ+AiIH5NjTVb8ApsHFzR+O fuckMF/Qi5Cl9LcGF0aOuMetyWHmn27oRbBwUZgENOszsWzlZsCbMQSl1qdCkKQGDA m8Mmk+IHu17GV7UnA2fPDIcYmBRq8TXmQrlQZehOq81ONPMj1RCtiSV4E0wAUTfvVs 3qKceVQ4yNs4g== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mmx7e-00A97U-Gy; Tue, 16 Nov 2021 11:59:34 +0000 From: Mauro Carvalho Chehab To: Wei Xu , Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, John Stultz , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH 5/5] arm64: dts: HiSilicon: Add usb mux hub for HiKey 960 Date: Tue, 16 Nov 2021 11:59:33 +0000 Message-Id: <74724e79adcc2ac8001339e1ed8fd051b9fd4e80.1637063775.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-20211116_035938_010936_D6328362 X-CRM114-Status: GOOD ( 10.42 ) 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 HiKey 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 mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/5] at: https://lore.kernel.org/all/cover.1637063775.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 {