Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2511665pxb; Mon, 18 Jan 2021 21:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7Gqs8NnL9kNv66LyoC3C+6/gOdv3fTDGFqop0arOM5bmUO6V6/peBgg37/K9D3QQbiJG6 X-Received: by 2002:a17:907:961c:: with SMTP id gb28mr1846046ejc.393.1611035049954; Mon, 18 Jan 2021 21:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611035049; cv=none; d=google.com; s=arc-20160816; b=olPPb5CPFSvXUsPTNoSNpgTGzR9DJTC8YZuSNkilNWv7G0KC1nAN2FiSTuubq9WDtE RzWG6Bb2siwS8QuI4LokM5pyvRTuhcf1shPAjIozAB8dCD0OTBHoC0fdQqfAjkHq+0zE 6Dux836c1Yc4Y9Y+Dr95YPzcF7sfoTNbClLuxrjTsD4gr1zAtzBaiKFUgB1o3TnLSSZt c/QJSa1D6vV1ycun3xnQVMGi04/6KQJpdANcrhAgSqlis0UQdk/mN0fpclsNP4S6xxS3 7q1JhHxU1n/mrs2zPgGxE9+/Dp1hW0ObwW+dPA8cv0xRlkfVWZTzRmq7mL55kih0vTDk GWyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=I8KRuadsSP9ujBg3UCBPF0M40+TaUrMhBkFLROVrMRg=; b=CozL0avzKcf7x57xgC48AI3C2dBsNIXHWNKyhGXBD2K0nTBtTrvZ3K/mdPw5FfPOvr 0G/vHMbaYtFkbq2mmaE3st1u3LhTZ3lrwwqInzZQmW6Oot5bWq6vngdjwsisa0opV7Yy VGGaNkRAADNoGR5f8X0ULZoCPdqP8fznpQyKzdNEGY8/FbjXWy8SXeV9bZbNPW0/BxZT S5ttOdwVwBBHU6CeCQECjbRC8rIQqcXf7XzBCXYEAl6+C8mczIvWDlWkfZ8JP7jcLMf+ 7H6ak8EicByDaSacc2uhVgBRinAB08nEuD8cJKxkvWE28AxdjtkXapzqm/3dTWUa93yH BCvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=FhRzl9Gj; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si8337729edd.393.2021.01.18.21.43.47; Mon, 18 Jan 2021 21:44:09 -0800 (PST) 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=@nvidia.com header.s=n1 header.b=FhRzl9Gj; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405540AbhASCYj (ORCPT + 99 others); Mon, 18 Jan 2021 21:24:39 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:18788 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393946AbhASCYi (ORCPT ); Mon, 18 Jan 2021 21:24:38 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 18 Jan 2021 18:23:57 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 19 Jan 2021 02:23:57 +0000 Received: from jckuo-lt.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Tue, 19 Jan 2021 02:23:54 +0000 From: JC Kuo To: , , , CC: , , , , JC Kuo Subject: [PATCH] arm64: tegra: Enable Jetson-Xavier J512 USB host Date: Tue, 19 Jan 2021 10:23:49 +0800 Message-ID: <20210119022349.136453-1-jckuo@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1611023037; bh=I8KRuadsSP9ujBg3UCBPF0M40+TaUrMhBkFLROVrMRg=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: X-NVConfidentiality:Content-Transfer-Encoding:Content-Type; b=FhRzl9GjjnVHtGUWO+0ZqgYMw4uhh836WGq3OigXe4h1hyBraea41i2HPWp2jZsoV Ma1gUgv3+tEvM8nOT0zwxosRuN32z28uggyckYwOagmubzXBINvkZmlPMtIRi48Ico s+FQwfiHvB+7O5hH8TD2n/Ytd0sMd5K6uxbNIgJA67AKroADKAbplU+XafaeUN5xtO vt907F9tDPypdAgkfOiKnXnrewmKnGvEJyUAjqTw33VnlNmvj9QMZf28ORWjoE/tHn aRTr2Y6lGF/TxFf6XC9/qltt03wwmvnPMQpWgq7dvInc+Lyt8OQ1lFySXgWqHD/KEP SnMGk9PfNITXA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit enables USB host mode at J512 type-C port of Jetson-Xavier. Signed-off-by: JC Kuo --- .../arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 8 +++++++ .../boot/dts/nvidia/tegra194-p2972-0000.dts | 24 +++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi b/arch/arm64/bo= ot/dts/nvidia/tegra194-p2888.dtsi index d71b7a1140fe..7e7b0eb90c80 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi @@ -93,6 +93,10 @@ padctl@3520000 { vclamp-usb-supply =3D <&vdd_1v8ao>; =20 ports { + usb2-0 { + vbus-supply =3D <&vdd_5v0_sys>; + }; + usb2-1 { vbus-supply =3D <&vdd_5v0_sys>; }; @@ -105,6 +109,10 @@ usb3-0 { vbus-supply =3D <&vdd_5v0_sys>; }; =20 + usb3-2 { + vbus-supply =3D <&vdd_5v0_sys>; + }; + usb3-3 { vbus-supply =3D <&vdd_5v0_sys>; }; diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts b/arch/arm6= 4/boot/dts/nvidia/tegra194-p2972-0000.dts index 54d057beec59..8697927b1fe7 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts @@ -57,6 +57,10 @@ padctl@3520000 { pads { usb2 { lanes { + usb2-0 { + status =3D "okay"; + }; + usb2-1 { status =3D "okay"; }; @@ -73,6 +77,10 @@ usb3-0 { status =3D "okay"; }; =20 + usb3-2 { + status =3D "okay"; + }; + usb3-3 { status =3D "okay"; }; @@ -81,6 +89,11 @@ usb3-3 { }; =20 ports { + usb2-0 { + mode =3D "host"; + status =3D "okay"; + }; + usb2-1 { mode =3D "host"; status =3D "okay"; @@ -96,6 +109,11 @@ usb3-0 { status =3D "okay"; }; =20 + usb3-2 { + nvidia,usb2-companion =3D <0>; + status =3D "okay"; + }; + usb3-3 { nvidia,usb2-companion =3D <3>; maximum-speed =3D "super-speed"; @@ -107,11 +125,13 @@ usb3-3 { usb@3610000 { status =3D "okay"; =20 - phys =3D <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>, + phys =3D <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, + <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>, <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-3}>, <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>, + <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>, <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-3}>; - phy-names =3D "usb2-1", "usb2-3", "usb3-0", "usb3-3"; + phy-names =3D "usb2-0", "usb2-1", "usb2-3", "usb3-0", "usb3-2", "usb3-3= "; }; =20 pwm@c340000 { --=20 2.25.1