From patchwork Wed Sep 1 12:23:38 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: 12469403 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 95A60C4320A for ; Wed, 1 Sep 2021 12:26:22 +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 5EE296101B for ; Wed, 1 Sep 2021 12:26:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5EE296101B 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=lkgg61Igm1E/RoSxJjhloVIV00YxVhdU+2vK7hCe1G4=; b=beEPM2sOFkBl9E DjJ1M7mmCJzsf0CWhtkMHkRHnqzeEnvyHah46ItYGczAMV1Tv0e7RChEw/skffRTPPxdp+djaFh+P luZ62lvShMfTlj3McbM96lGSlPpQtklVWASqw4q/EUHPFmZIT+G6tmw2/Wd62gzfqnZyYTBAmKByF RW52oZGjgABVqTJf5AA55ZH3pCiyx8cUxDmfIJo20jSDyN12x+ur2wOv6JqyWjrhv04VbkIQN+9DH AvZvp28sKeUlzbP/BTQSHzadr2+XsTUCtXJ76k14VJ9Jk+0RCfyhgcpkANOEMdlZ411A1XIt//U/K z1lrxX3Wcq9Yd4WkEYnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLPHR-005v8s-1v; Wed, 01 Sep 2021 12:23:49 +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 1mLPHM-005v5t-Gn for linux-arm-kernel@lists.infradead.org; Wed, 01 Sep 2021 12:23:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19CD760F92; Wed, 1 Sep 2021 12:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630499024; bh=G5WjVBIBLdchJZDoVf3dlprgnr0+bNljO8LoBMSwmh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mz0m6g0cnkQuxYd2MginnzszQws4CmQoIdi4oLJy5myWzFxeNYN8s8qMaFyjR+gPN /z8LK0GpCAgjH6U8OswfaKtt8rXx7pn6nfjFc8PlgIKjsppYkIPFp69YGr+EQ6VaS4 Fk15D3ahYmxSW8HNm04sFORBgoVvCzhDWdk+B+HMB9RZr1ai1qV8ShFiSBIIYZ1q5x peBt8RdiTjje94kdxPp8Rtj86n162LH5yt+fLhk34qFM9ZGSzyg1iANqxDKrXgR3R4 lCtf7RNTYrZ4zFWc3J0YzYpVtLOK4LacUAEg/esyKHPUGVx0fo9I43zsNhQ5b2ZuJ7 S9YWz4Xi1mOQQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mLPHJ-00H8Z4-4R; Wed, 01 Sep 2021 14:23:41 +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 v2 2/3] arm64: dts: hisilicon: Add usb mux hub for hikey970 Date: Wed, 1 Sep 2021 14:23:38 +0200 Message-Id: <0b2bafee6bcbb90961f797e1583cb756bb163a4a.1630498020.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-20210901_052344_745742_D0C63BA4 X-CRM114-Status: GOOD ( 10.23 ) 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 --- .../boot/dts/hisilicon/hi3670-hikey970.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts index 60594db07041..8502814d33e7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts @@ -53,6 +53,30 @@ wlan_en: wlan-en-1-8v { startup-delay-us = <70000>; enable-active-high; }; + + hikey_usbhub: hikey_usbhub { + compatible = "hisilicon,kirin970_hikey_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>; + }; + }; + }; }; /* From patchwork Wed Sep 1 12:23:39 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: 12469405 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 E68F6C4320E for ; Wed, 1 Sep 2021 12:26:27 +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 B41FA60F92 for ; Wed, 1 Sep 2021 12:26:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B41FA60F92 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=dxoVf3/Po+m5ep3B+d9kHmkCbx0LOQ+hc4p2MgS2X/I=; b=U2JEHHigDZC6qm n9QMxySgHx+DJvQtt9IQJxcXWcJyT+U9qaNjTuxwAcWqnd/6d/zGU6BSrqDWeB3qn7oHNLl/JkRbT EGWYzG+zL9rE00906YGq0wga+Cpu7gLQfCsCmRuUQP/reo3gfI9SbzYxVUSLKa2o+7Pr9vbkHEWuB BVgntb1SXTP4G/12VqQGwKRM8+FGz8SuYBjnTG5tf4tpEI9Bo3n76ZcnADlzAtFX36OewV+IuK/3T w+Vl/MuSFF+DjSMSdjuumSmnILF8m5nlvz0Bm3kwM0WxIz+jJkPT0eS8fsRWaON6DSzBTf+rsu1NH 2wMgvsXEp3dgH5/S0CHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLPHd-005vCb-Cu; Wed, 01 Sep 2021 12:24:01 +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 1mLPHM-005v5s-GY for linux-arm-kernel@lists.infradead.org; Wed, 01 Sep 2021 12:23:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C49E60FE6; Wed, 1 Sep 2021 12:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630499024; bh=8Qh+KoZCV3O3HB/rjY3TV5ESE34wEFUhafhg5oTG4q4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H3ocyg64ON75ITP404UTfJMmpJnIBt8pPqRbu263VWjaGF4RvzXrcgd4bE8EhyR6e g1Y2J0UiSh71QV1JySvIxFNCplZMQgdOzpb/nsIQoLv1cVr2YXjvj22rmryL8i6E2Z 9k4LIzI4pNCHlNKHjPaBALHFTmrBH7Bpz/x3v/ULceFBURoHdLVE3zNoQPrF7faX5p 7kRuQp0MKlIzOjl2Ijq69Cx5M0ytE7w6DJcVBDD17CvIQuxIqTcTYJJZeQh9Tbeh53 DqPhPHQsQ8MKm31gwXEUnjx28TrZluzi5jRhp6gzqVKU+dOwJgM527Mgg+9YCcjhY9 Gqk4kl4Ls9kHQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mLPHJ-00H8Z9-68; Wed, 01 Sep 2021 14:23:41 +0200 From: Mauro Carvalho Chehab To: Rob Herring , John Stultz Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Rob Herring , Wei Xu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH v2 3/3] arm64: dts: hisilicon: Add usb mux hub for hikey960 Date: Wed, 1 Sep 2021 14:23:39 +0200 Message-Id: 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-20210901_052344_662670_E8662E25 X-CRM114-Status: GOOD ( 11.28 ) 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. Signed-off-by: Mauro Carvalho Chehab --- .../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..cc38d4f961ee 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -191,12 +191,43 @@ wlan_en: wlan-en-1-8v { enable-active-high; }; + usb_hub: hub-vdd { + compatible = "regulator-fixed"; + regulator-name = "hub-vdd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio5 6 GPIO_ACTIVE_HIGH>; + }; + firmware { optee { compatible = "linaro,optee-tz"; method = "smc"; }; }; + + hisi_hikey_usb: hisi_hikey_usb { + compatible = "hisilicon,hikey960-usbhub"; + typec-vbus-gpios = <&gpio25 2 GPIO_ACTIVE_HIGH>; + otg-switch-gpios = <&gpio25 6 GPIO_ACTIVE_HIGH>; + hub-vdd33-en-gpios = <&gpio5 6 GPIO_ACTIVE_HIGH>; + hub-vdd-supply = <&usb_hub>; + 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 {