Linux-USB Archive on lore.kernel.org
 help / color / Atom feed
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Nagarjuna Kristam <nkristam@nvidia.com>
Cc: <balbi@kernel.org>, <gregkh@linuxfoundation.org>,
	<thierry.reding@gmail.com>, <jonathanh@nvidia.com>,
	<mark.rutland@arm.com>, <robh+dt@kernel.org>, <kishon@ti.com>,
	<devicetree@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [Patch V9 6/8] arm64: tegra: Enable xudc on Jetson TX1
Date: Mon, 16 Sep 2019 15:12:59 +0800
Message-ID: <1568617979.7317.76.camel@mhfsdcap03> (raw)
In-Reply-To: <1568354873-24073-7-git-send-email-nkristam@nvidia.com>

On Fri, 2019-09-13 at 11:37 +0530, Nagarjuna Kristam wrote:
> Enable XUSB device mode driver for USB0 slot on Jetson TX1.
> 
> Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
> Reviewed-by: JC Kuo <jckuo@nvidia.com>
> ---
>  arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 31 +++++++++++++++++++++++++-
>  1 file changed, 30 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
> index a7dc319..c1e106e 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
> @@ -1362,7 +1362,7 @@
>  				status = "okay";
>  
>  				lanes {
> -					usb2-0 {
> +					micro_b: usb2-0 {
>  						nvidia,function = "xusb";
>  						status = "okay";
>  					};
> @@ -1483,6 +1483,21 @@
>  		vmmc-supply = <&vdd_3v3_sd>;
>  	};
>  
> +	usb@700d0000 {
> +		status = "okay";
> +		phys = <&micro_b>;
> +		phy-names = "usb2";
> +		avddio-usb-supply = <&vdd_3v3_sys>;
> +		hvdd-usb-supply = <&vdd_1v8>;
> +		usb-role-switch;
> +
> +		port {
> +			usb_role_switch: endpoint {
> +				remote-endpoint = <&usb_b_conn_ep>;
> +			};
> +		};
> +	};
> +
>  	regulators {
>  		compatible = "simple-bus";
>  		#address-cells = <1>;
> @@ -1641,4 +1656,18 @@
>  			linux,code = <KEY_VOLUMEUP>;
>  		};
>  	};
> +
> +	usb_type_b: connector {
> +		compatible = "linux,usb-b-connector", "gpio-usb-b-connector";
use standard compatible "usb-b-connector" instead of
"linux,usb-b-connector"

> +		label = "micro-USB";
> +		type = "micro";
> +		vbus-gpio = <&gpio TEGRA_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
> +
> +		port {
> +			usb_b_conn_ep: endpoint {
> +				remote-endpoint = <&usb_role_switch>;
> +			};
> +		};
> +	};
> +
>  };



  reply index

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13  6:07 [Patch V9 0/8] Tegra XUSB gadget driver support Nagarjuna Kristam
2019-09-13  6:07 ` [Patch V9 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210 Nagarjuna Kristam
2019-09-13  6:07 ` [Patch V9 2/8] phy: tegra: xusb: Add usb3 port fake " Nagarjuna Kristam
2019-09-13  6:07 ` [Patch V9 3/8] phy: tegra: xusb: Add vbus override " Nagarjuna Kristam
2019-09-16  7:11   ` Chunfeng Yun
2019-09-13  6:07 ` [Patch V9 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding Nagarjuna Kristam
2019-09-13  6:07 ` [Patch V9 5/8] arm64: tegra: Add xudc node for Tegra210 Nagarjuna Kristam
2019-09-13  6:07 ` [Patch V9 6/8] arm64: tegra: Enable xudc on Jetson TX1 Nagarjuna Kristam
2019-09-16  7:12   ` Chunfeng Yun [this message]
2019-09-13  6:07 ` [Patch V9 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller Nagarjuna Kristam
2019-09-13  6:07 ` [Patch V9 8/8] arm64: defconfig: Enable tegra XUDC support Nagarjuna Kristam

Reply instructions:

You may reply publically 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=1568617979.7317.76.camel@mhfsdcap03 \
    --to=chunfeng.yun@mediatek.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=nkristam@nvidia.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

Linux-USB Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-usb/0 linux-usb/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-usb linux-usb/ https://lore.kernel.org/linux-usb \
		linux-usb@vger.kernel.org linux-usb@archiver.kernel.org
	public-inbox-index linux-usb

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-usb


AGPL code for this site: git clone https://public-inbox.org/ public-inbox