Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp299455pxb; Thu, 2 Sep 2021 04:33:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf2YAaqVWUkr0xtamNxTiTIQrPccFGV4MndyJyVk8iYBR9pZrSD6+rLHLFxfX/7lm3+Xyn X-Received: by 2002:a02:878f:: with SMTP id t15mr2376838jai.102.1630582382422; Thu, 02 Sep 2021 04:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630582382; cv=none; d=google.com; s=arc-20160816; b=TJYToceUyRjJ7oIysIhSaFA23iMkPEgEaYQhX9OAOLRWrKaQs0TvK4JVwVigesFkO0 lrNbBXLLzMUQUVKMHtzvrDlVzk0chVcvw9ONiW8+PBOxwKCExsphkIumQ86bQwhkRDM8 qvr4SZu9VT5jc+KJOwrOf81e7mN7vt7vymeFKxRR4DmZAePHZgvPMK1JIhuX4H7w2u9i I+kdeW9g1tzTH4y1PmXinW+8+w97Q9U+7mfE3q+g8RLLXXhKb/L5GePoU7DzAsgKdtfL w5M3ny3jrE3SizWRrvdsRsHPrXPkBWU76B2zL2Ul853esWmMDnjgEBp17SRGNb7ZnVaU JeZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=raQ2nJywyjWViYfFW9OK6tm6B0Q5WANefW8P0Z9lfQM=; b=VJdq1zgo5nJ9GAVXWYOtNgjmNdt9N4cFyTkUJBt6vhXA7liXgXWdRUUb2Tp1oNnhKp viQva6c9z/J5jg5eiq6pSFpBVPuqaG/dYodB2Ww7sA4L2OV2xbDCRiKtfMM2qaiVKPe6 TyTWmnq4lvQCm9H3y5Z9B6LL9PIexc5iBBmAqaWr+xV1P4YSuc21BJkNpuyl8EH8kwcl x9Fj73Fi6usFn0I0QRN4aQ068DAAFzZ9OCW1kv3TtGEJWrX+lUuMprSuM3/rXrf2sWa6 c/tyHH8YmagNk40SF9mbaAcMNJz3sPQqrQFVmLy7dOE6fHZB7TG5Ne/xYZS6tXsKBZTW rFQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0jJCHZG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si1755991ilj.117.2021.09.02.04.32.49; Thu, 02 Sep 2021 04:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0jJCHZG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343663AbhIBLaJ (ORCPT + 99 others); Thu, 2 Sep 2021 07:30:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:37252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245693AbhIBL3n (ORCPT ); Thu, 2 Sep 2021 07:29:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31828610C9; Thu, 2 Sep 2021 11:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630582125; bh=JZA7W0CCB3PFjX9plJtLmN9hVAcF+Ajoc3SN0ou+EPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e0jJCHZGRqfkLFgxFLAXOsLLvyS0s7QDJlZ4yx1LpWz3jO7jSAl+tqKBvrejsGs9B lmiUtw2jBWC/WQqlohOHSql7NIzTQbwx8tJ5Y/q14wHB7IgpDnCtUzzukOnEKBi7hL S+fMeLw3DhVAVYez51XWGmzhdzSCrjs/pvjJqe8dTqNFL50zRt/TZkPcuYMjGRBSur 9no5h5j1tJX0D6wfFOzw8HxAkfjBaO1r3X/WhlqvN+ilgcjDg8MHFHfQgQ/CgaEbfz /yHpiKmbzNC44MFmw7oGEAmk0vPH60FDw3wgPVN4PfxrBF9880rYqfwMV3DolpiG+0 CSJie12QpFbcg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mLktf-0004Za-Bx; Thu, 02 Sep 2021 13:28:43 +0200 From: Mauro Carvalho Chehab To: Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, John Stultz , Rob Herring , Wei Xu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH v3 4/4] arm64: dts: hisilicon: Add usb mux hub for hikey960 Date: Thu, 2 Sep 2021 13:28:37 +0200 Message-Id: <4b5ea17f9dd2b3a2652396a99a69a977b744eaf4.1630581434.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- .../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..0f253bb705db 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,hikey960-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 { -- 2.31.1