Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14058509ybl; Mon, 30 Dec 2019 03:17:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzttgaNsYPYKYU+rs6omhJz41PdkzX/puZubTmoBvvfv0kp6fpioXGcyiXHQRiSpiqrnVW8 X-Received: by 2002:a05:6830:1292:: with SMTP id z18mr38604412otp.148.1577704636240; Mon, 30 Dec 2019 03:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577704636; cv=none; d=google.com; s=arc-20160816; b=D8jkz4F7+nBTVnFnkCIYIs7HBON01KSOXY3PysapEc2c0VfoV0xnLbiVvbUL7aJWOj CPMsc7eLF137boo4T6ep+r/H+sl0jLtKxyUxNkGDf2R+Ptlvz7FNmSZN/m8PV++M4o7D C2ha34vY1vS54vka0CoBia3gESFsZeVYes8QR/aT715ZJJ+TJFkVl2cKMLOOoTyenvZH JARCEvhmKEK2OLy0x+PfLPJUjNVntkDqsYVnhtiUCNpJbf/APe1CZO5r9MMVLZ7s3ZP6 H+w4bwCee143tc9Qlz7CJ8wZWrD1B5skPLrzsQsTIbRlTRuB6qKsuLuGCXmkaWQGclT2 3N9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=eBbk3un2Bjdw6UX/1mHaHb4DdWE3j9/foVfq7K9W134=; b=PgxODYgNnjk3Fmj5KqUWBv9j2ep5BstLfV5zR5sFKm2/W2DAV0RbLHKeQw9hkX3IgJ XH2LGk1XoQa57TY0UXkezUSVj1katxmZ6b/E195mtCoDeQOqmHYlC6XPWpoj8epysGo4 w3qq+S3QRqQdBw1Sx0Wi2DLYO+4+e8eHP7qcTSVfDhHSe1tulDLgJVdJvwYWQ807F85O l/Yvh8hWSOsdIdK3F3yF41KEdwYfsCDmFC/iM+O0U4EVMFXj683zz6gJMT6jNT64rji2 XkmN+2rCu8A/Af1QuaSXvwM7n45GH1RKUiEGjKAaDcvSVvODyumX80ygYwghbb4SUnvl IlVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=M53VbcDN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g25si23149324otp.20.2019.12.30.03.17.04; Mon, 30 Dec 2019 03:17:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=M53VbcDN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727608AbfL3LO3 (ORCPT + 99 others); Mon, 30 Dec 2019 06:14:29 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:19454 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727508AbfL3LO1 (ORCPT ); Mon, 30 Dec 2019 06:14:27 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 30 Dec 2019 03:14:12 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 30 Dec 2019 03:14:26 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 30 Dec 2019 03:14:26 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 30 Dec 2019 11:14:26 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 30 Dec 2019 11:14:25 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 30 Dec 2019 11:14:25 +0000 Received: from nkristam-ubuntu.nvidia.com (Not Verified[10.19.64.167]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 30 Dec 2019 03:14:25 -0800 From: Nagarjuna Kristam To: , , , , , , CC: , , , , "Nagarjuna Kristam" Subject: [Patch V3 13/18] arm64: tegra: update OTG port entries for jetson-tx1 Date: Mon, 30 Dec 2019 16:39:50 +0530 Message-ID: <1577704195-2535-14-git-send-email-nkristam@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577704195-2535-1-git-send-email-nkristam@nvidia.com> References: <1577704195-2535-1-git-send-email-nkristam@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1577704452; bh=eBbk3un2Bjdw6UX/1mHaHb4DdWE3j9/foVfq7K9W134=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=M53VbcDNqN7fHfocv/924hQI91rfb+Wn1o9pYreDkgy/n+vg1e/Or5ZrvrQLActsL 5FExl2/bqtjndWwdVNpoJK11dBardwcfujcKGurD8nhIIG48wABwDbq482up8dH3Px Uxikycdfv2fK0eUC5PejAawSpL/r9uraguQMlKCrplwGN35aEOnGPQ9Ofz7wxuobhO 9u6Syjlaly54u9T7vRim/AwuZvTTs4CSsSduwYV3t3LMerkKEBLNQFnYaj49UbS4R4 qjPX3+Jh0Z1w4fqhuUKNJ0QaLTREHHihaiZaX6xhyMYSvOC/zAFzo7S42805hCReeM TGCpXdG9WBfzw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Populate OTG vbus regulator. Add usb-role-switch entry to USB 2-0 port and corresponding connector details. Signed-off-by: Nagarjuna Kristam --- V2-V3: - No changes in this version --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi index b009507..18c0610 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi @@ -1336,7 +1336,6 @@ <&{/padctl@7009f000/pads/pcie/lanes/pcie-5}>; phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3", "usb3-0", "usb3-1"; - dvddio-pex-supply = <&vdd_pex_1v05>; hvddio-pex-supply = <&vdd_1v8>; avdd-usb-supply = <&vdd_3v3_sys>; @@ -1440,7 +1439,19 @@ ports { usb2-0 { status = "okay"; + vbus-supply = <&vdd_usb_vbus_otg>; mode = "otg"; + + usb-role-switch; + connector { + compatible = "usb-b-connector", + "gpio-usb-b-connector"; + label = "micro-USB"; + type = "micro"; + vbus-gpio = <&gpio TEGRA_GPIO(Z, 0) + GPIO_ACTIVE_LOW>; + id-gpio = <&pmic 0 0>; + }; }; usb2-1 { @@ -1606,6 +1617,17 @@ vin-supply = <&vdd_5v0_sys>; }; + vdd_usb_vbus_otg: regulator@11 { + compatible = "regulator-fixed"; + reg = <9>; + regulator-name = "USB_VBUS_EN0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio TEGRA_GPIO(CC, 4) GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <&vdd_5v0_sys>; + }; + vdd_hdmi: regulator@10 { compatible = "regulator-fixed"; reg = <10>; -- 2.7.4