Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp305737pxb; Fri, 3 Sep 2021 02:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwzysS7o9Y+l2u9iJ52qRvj9gvo8SSbiy9Ka8rIBCKlSIL4p/SwCtDluUO1p5SSY4cNYg3 X-Received: by 2002:a17:906:781:: with SMTP id l1mr3091637ejc.289.1630661461140; Fri, 03 Sep 2021 02:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630661461; cv=none; d=google.com; s=arc-20160816; b=YoehxNMF404ZyYXbHp5NyNdhbyeYUntmZqWnnBM59fWMqPpCkyU5hf2OWaVS1QnNGH DEfZlDtMO8ozsfKKlNh8RnFLiJBu1gwAkCXgBUsfWaJtsQG74q8j4kX6VIAiGDmCN94T RxrTcvw1xaYMaDwv1BTwQsaCWgErsMu7wkllqaTaID0Q/O27GTRgnRHVyVYO2tFvhD1C GoyYz2bK+iTQPKeFT75iYSVgux43je3yG5gikz8itSIM3zAsEEg5PbDcADkppmA7KJum OjjaUklWVMlAI4OfUBgGxra5/4tYIsGowzoOS4lGqMkC+KPm/qIZ8sGtet6WZ3fhpUj6 uXjQ== 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=5rcBrlTGOe88u9iV/2leDLCRISGn+sZ6EFlcWrRTgis=; b=pFz6veS3czt57SKfkf9SxfZLtjPVM0/DmZT0bYz3HdqYqyFD8y48qI1AEQTObEhSpF P4A3FNNsqB0e4x7JyZugAszydCZWYQKARQDqj5PBLJ2yZhdEy9MfsjToZehLp4VVKegq dIaWWAz5UYqojp33O29jtCvWGnVUsZ7YmyHpJBh/1xX+ivbVUGSOfWBF4J3fsN6EdlGF wZnpy9MqG855sGCdEx/iCcKja0ibxVVJB/jejjDeLWZ9b4N8+avRie3QLM9icoxXkeGj C3T0W06Uj63qla5bJ1An26D3gdMPbOoFVUVYJNJGAN5AszI05Dtr2+QS2Jdcjc2XWZKU vw5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jSypdeAe; 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 ak17si4571289ejc.338.2021.09.03.02.30.36; Fri, 03 Sep 2021 02:31:01 -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=jSypdeAe; 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 S1348819AbhICJ3o (ORCPT + 99 others); Fri, 3 Sep 2021 05:29:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:32812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348789AbhICJ3i (ORCPT ); Fri, 3 Sep 2021 05:29:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F27066108E; 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=252A7ya4rz1J/VWtyjLHuECws9kqq20mUJlh+v8C2Bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jSypdeAeVn1y4bPfbPk5xLNDrncSUI86xAibRZB5ZdUGOIMVFGVUDPDYuw0WD0Zf4 zOLwIhwT6XRW3rNu0PkKHoR2YTw12J8GkoQEfKw3idnurmDjRX24TNVQ9JsUiiCz9o AP2xrRCZLMzm1a+BbxYop5Klif0JKAhcP2YB4VP2Ryz4WiL+GDskWnbDau1eNrQJfw lXu/tiFVvMDKlCo0Qpdfktc44OpS87KjCoyMVpOYFd6wwrSQV+MmxIJW9WU2WKUIYX bAbusBW7C/iF+398/+EjPeptlh3i6ywn4tTPJN+CT8ACGTx7LCGjWXI5ci5rHd+h/B Jhrm+3q1+rRTA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mM5Uz-000zwa-0x; 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, Mauro Carvalho Chehab , Rob Herring , Wei Xu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/4] arm64: dts: hisilicon: Add usb mux hub for hikey970 Date: Fri, 3 Sep 2021 11:28:34 +0200 Message-Id: <3c90ceef6cacb49620af6325de2b93a46a460e73.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 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 | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts index 60594db07041..95ca49f1e455 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts @@ -53,6 +53,29 @@ wlan_en: wlan-en-1-8v { startup-delay-us = <70000>; enable-active-high; }; + + usb-hub { + compatible = "hisilicon,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>; + }; + }; + }; }; /* -- 2.31.1