From patchwork Tue Nov 16 11:59:32 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: 12692759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E66ACC433F5 for ; Tue, 16 Nov 2021 12:01:33 +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 BA86C60FBF for ; Tue, 16 Nov 2021 12:01:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BA86C60FBF 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=ddA0jpJCSY38YgRiH56KeFdP6KsHq875HVoEpouqltY=; b=SNVehs80HZk834 pI1O0pv98rKYwlrm95ecToLb66N3knTGbKs1KUnC3rG7TrB/zsB7Cku647vIP+GnqtdtiiCtom6r+ vjWH3fTHzNli0yeMWIMCSG5MnV608B4M0LiRl//i20E4mGoRTNSIS2+0SQk1Ek6vfhlvoJANiMCmi h7z76cs8DmoDpsV13ekv7aURWvBAuiO8hFzQlDbrSXxwkLze3jKoE42cIUSIIYUesrzR7WWZpqnAN BW4DRtFNCpr2pPMExA3twdC1jEAw5Srni8MI1TznhnfQeb/9mLlHsy4Q80HmSopJpvShC44ly5SnA wSBlULfXnWMycQLASuUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmx8B-001byL-Vu; Tue, 16 Nov 2021 12:00:08 +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 1mmx7h-001bnI-OS for linux-arm-kernel@lists.infradead.org; Tue, 16 Nov 2021 11:59:39 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69FBD61B31; Tue, 16 Nov 2021 11:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637063977; bh=EiP6cuQpwBBg39/9D1fBHWNz1se4q5TjJex4rIsVzd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oMdUQaRIpni0YwpNNeiEIXZrvHqvHYgtVFaZMeJWSd/gALq34uR8iv2lHN/+4S1Y2 1KNjc6pg0EMDi/N+TjdDgOMvY59lczPkCHV0AXbcYObK5GNbScp5ZgEcEyU7XYN782 NRRXznaYZ482sMLtgwFsHxwZxuN2iSqcvCGtUCIuBXSlz7wE+FggQz7x4xbUZIGOlF dEIqvUU7HyowmSdBbt/6lCShwkXSdIqjTeqk/OXcGIheW8UAvFlsp/Qiclo+ueQu8D GglszQBYOIlYmxVxE4AG5XZIDNzBTNeldxd0nhGYg1blZcxxW9hfA6afOfnxD4425K 89aPNvubzDtTQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mmx7e-00A97R-GR; Tue, 16 Nov 2021 11:59:34 +0000 From: Mauro Carvalho Chehab To: Wei Xu , Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: HiSilicon: Add usb mux hub for HiKey 970 Date: Tue, 16 Nov 2021 11:59:32 +0000 Message-Id: <3ae388fed672b3d7ee22dd123ec2cf0727f0a79b.1637063775.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.33.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-20211116_035937_862263_3479D198 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. 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 Add dt bindings for HiKey 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 --- To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/5] at: https://lore.kernel.org/all/cover.1637063775.git.mchehab+huawei@kernel.org/ .../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>; + }; + }; + }; }; /*