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 {