From: Nagarjuna Kristam <nkristam@nvidia.com>
To: <balbi@kernel.org>, <gregkh@linuxfoundation.org>,
<thierry.reding@gmail.com>, <jonathanh@nvidia.com>,
<mark.rutland@arm.com>, <robh+dt@kernel.org>, <kishon@ti.com>
Cc: <devicetree@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Nagarjuna Kristam <nkristam@nvidia.com>
Subject: [Patch V4 13/19] arm64: tegra: update OTG port entries for jetson-tx1
Date: Tue, 4 Feb 2020 16:46:59 +0530 [thread overview]
Message-ID: <1580815025-10915-14-git-send-email-nkristam@nvidia.com> (raw)
In-Reply-To: <1580815025-10915-1-git-send-email-nkristam@nvidia.com>
Populate OTG vbus regulator. Add usb-role-switch entry to USB 2-0 port
and corresponding connector details.
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
---
V2-V4:
- 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
next prev parent reply other threads:[~2020-02-04 11:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-04 11:16 [Patch V4 00/19] Tegra XUSB OTG support Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 01/19] dt-bindings: phy: tegra-xusb: Add usb-role-switch Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 02/19] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 03/19] phy: tegra: xusb: Add usb-role-switch support Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 04/19] phy: tegra: xusb: Add usb-phy support Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 05/19] phy: tegra: xusb: Add support to get companion USB 3 port Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 06/19] phy: tegra: xusb: Add set_mode support for USB 2 phy on Tegra210 Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 07/19] phy: tegra: xusb: Add set_mode support for UTMI phy on Tegra186 Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 08/19] usb: xhci-tegra: Add OTG support Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 09/19] usb: gadget: tegra-xudc: Remove usb-role-switch support Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 10/19] usb: gadget: tegra-xudc: Add usb-phy support Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 11/19] usb: gadget: tegra-xudc: use phy_set_mode to set/unset device mode Nagarjuna Kristam
2020-02-04 11:16 ` [Patch V4 12/19] usb: gadget: tegra-xudc: support multiple device modes Nagarjuna Kristam
2020-02-04 11:16 ` Nagarjuna Kristam [this message]
2020-02-04 11:17 ` [Patch V4 14/19] arm64: tegra: update OTG port entries for jetson-tx2 Nagarjuna Kristam
2020-02-04 11:17 ` [Patch V4 15/19] arm64: tegra: Add xudc node for Tegra210 Nagarjuna Kristam
2020-02-04 11:17 ` [Patch V4 16/19] arm64: tegra: Enable xudc on Jetson TX1 Nagarjuna Kristam
2020-02-04 11:17 ` [Patch V4 17/19] arm64: tegra: Add xudc node for Tegra186 Nagarjuna Kristam
2020-02-04 11:17 ` [Patch V4 18/19] arm64: tegra: Enable xudc node on Jetson TX2 Nagarjuna Kristam
2020-02-04 11:17 ` [Patch V4 19/19] ARM: tegra: Remove USB 2-0 port from Jetson TK1 padctl Nagarjuna Kristam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1580815025-10915-14-git-send-email-nkristam@nvidia.com \
--to=nkristam@nvidia.com \
--cc=balbi@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jonathanh@nvidia.com \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).