From patchwork Fri Sep 3 09:28:35 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: 506494 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp836287jai; Fri, 3 Sep 2021 02:28:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyajXbqCZb5rIo3xoN5g9XtWOEvBSQMMeguoDjmLo4Sqg46jiU3kjgixBBd/hmalxxsjQTg X-Received: by 2002:a92:da87:: with SMTP id u7mr1940250iln.297.1630661322936; Fri, 03 Sep 2021 02:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630661322; cv=none; d=google.com; s=arc-20160816; b=wosYHgY+B9on9XEgBUOFotsYO2EXx7Kr/TEKsqhxPY+0ADSMXgCkVXmNyfgPITikgI 7O3Psl6wu0ptltJZaItMKFpEIzu6roheBLwJrmg8xvn+HeuKh/4rvL1W3gJc/6T9p87g 2O1swpnal+OZQfcf+sU4VZysedhbtEpwose39jgjEjuhvDoOu9I18PRz6ghcAJiZj21K B3Q8DqlhAAr84qpi3mWpvPbfNukxSweKVXZcIttCAsxp7/KVYlvPzpyRA2CCXycbuJVj Ritd5wj7TEjEJRnAJyNTg4FPp9ognsFJtf32btwVYy0agoa9zSa8mxqFDDmLKvo/2OjE kGdw== 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=cAYkYFmDEnrFG4bojCjm3TqPtck1DhbbTXeKaPfHH80=; b=Q57DKnd6oTD5o4GEAHjVfl0yXE8cKRWL4ex4hQVLR+lW1nr3ZHC/K4GiaYsQcEKsbi yc3KPOo4f+zYe+Wi+GuYWkJNNVCehFEHtFZ5qlIzwi5pn+BylTLrgAigrJberCtkoYSt /sfRtQdbfcSi2YnzW3GMeYP10MpGvmkLmA333RtdA4RW35MRUAi2xeAb1lztTLz2Yje0 4iG9HiiLdsAofwGL6UHsaUf/eK45HIBT6KHESOVWiQ7ASlFpEjEXI+6nl/WSWsZD/5PL OATU6mM/hUihGnE9kyMIlU3OnK/LO+iuvojgHBaNhvZhjyC9ysKhoa9JHmzZv+rF8cTt AqBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UL8B7fWm; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 h25si4948283ioj.39.2021.09.03.02.28.42; Fri, 03 Sep 2021 02:28:42 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=UL8B7fWm; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1348797AbhICJ3l (ORCPT + 6 others); Fri, 3 Sep 2021 05:29:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:32786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232257AbhICJ3i (ORCPT ); Fri, 3 Sep 2021 05:29:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBF0D61058; Fri, 3 Sep 2021 09:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630661319; bh=Z9j2ijb0LnORbY80zVvicwJJPPm6wGbu2SDy3Krhc8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UL8B7fWm42z5DBID9ZHhIPwzk0VCpw8rkfk111k1QWxAL+PPi9/s/+2CbN8Nx5uIy 8zHF/kkihsGtKAktZ/gYtLe8pXMIi7OuBcLL+kXhWaeGkUZbBkmmLvOuJlLejV++XB RAahHjg4hGxQgQvFLQS8Pmo0uFekjiFRYGC3lXDUdm6NsWRuatSAqqKHt2/GCELgry y4qqKv7t8i8n450TZJyZeH0kyu9ApqOAjhb6Mg7OaELakAjD+9GIRXinWyilOu7X7A 6qt1ked5YHi9Kd4EkPIcZzHGwV8hDULFJjzGmeXoF/MH0bAic7tZAEmFcA7d/0UjTl R/u7yYbbxs/3A== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mM5Uz-000zwe-27; Fri, 03 Sep 2021 11:28:37 +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 v4 4/4] arm64: dts: hisilicon: Add usb mux hub for hikey960 Date: Fri, 3 Sep 2021 11:28:35 +0200 Message-Id: <6b81624b27ae9167fcbdd8f31dac0eae3cfc098c.1630659949.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.31.1 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 {