Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp390935pxb; Fri, 3 Sep 2021 04:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7fqbknQo+tTcq1V6ciJb4R95Kivg8t6zKawUVyJMV0/Blqpvc2L7oBHfixCX3kLK7/e05 X-Received: by 2002:a17:906:49d5:: with SMTP id w21mr3716792ejv.30.1630669282768; Fri, 03 Sep 2021 04:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630669282; cv=none; d=google.com; s=arc-20160816; b=T9uU/UbMGry9RcRY1J1xzCrVdGY4//S/5LK8LiWSoFXbd2gfr+uBK2IwzPOIdkF5O/ jl1Tt0MW5tsprfFaxocrtZjWkKLIy5gyZ7OzQBN6FM0e7TkmTrICuSujiUCfosjBv+e7 bzqUFHoQ949HaAqEtfUAsMV8hxjjev2O2TYdTi7/yKGiB3W/B80qntrWGMnMZz0SjoyN 5i4QFMglP5n/bPiAsSvg2h3qQ19o2G1mphOKtrNgIQKKWKl2f3+yE6xWUrOGYNb9g639 vhC9aW7eM7utwrsqRXcGjG7kPhvjZaUa2XUhsNj1WdQsylKLfacztSd6y1i10wo3D/6c zSag== 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=ZWmJrfNqtWfd8TfLdnJGVIk28MwboRhElhm3ALJurlMh+nQ1t168lUoBe2DY3WjLKi SRdUtFpZdapWTcGMu3jbX6v7sPYYY3R+wiZwxz3tm4d5g1sQvPwEAzb6KzJAne9gfDWc dtEAauyr90vmOPFu6vV27LCjnqBznlh+ni1t2pSqMLuR2CIzTaqD+PM9FQseUzcxCNSV a9jOmW3OLPzzbGHYfXMSoO//u/aEzrnBrIMitpLI98j/qQtuvNBUAk5BMYGmOlkZGrIi VAs+DQjX9WthGydAIdl6zaTouJN51IKWj3OHJf+yvryKfPVPN22/i5hlyx/oQ+2DQ6Yt iE+Q== 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 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 ga13si4214090ejc.101.2021.09.03.04.40.58; Fri, 03 Sep 2021 04:41:22 -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=UL8B7fWm; 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 S1348812AbhICJ3t (ORCPT + 99 others); Fri, 3 Sep 2021 05:29:49 -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 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..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 { -- 2.31.1