[PATCH] usb: host: xhci-tegra: Set DMA mask correctly

2019-08-28 Thread Nagarjuna Kristam
etting the DMA mask to 40 bits, which will force the DMA API to map the buffer for the firmware to an IOVA that is addressable by the Falcon. Signed-off-by: Nagarjuna Kristam Signed-off-by: Thierry Reding --- drivers/usb/host/xhci-tegra.c | 10 ++ 1 file changed, 10 insertions(+) di

[Patch V7 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-08-23 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 12

[Patch V7 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-08-23 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 358b163..e9233df 100644 --- a/arch/arm64/configs

[Patch V7 5/8] arm64: tegra: Add xudc node for Tegra210

2019-08-23 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions

[Patch V7 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-08-23 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- 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

[Patch V7 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-08-23 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[Patch V7 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-08-23 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Reviewed-by: Rob Herring Acked-by: Thierry Reding --- .../devicetree/bindings/usb/nvidia

[Patch V7 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-08-23 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 57 +++ drivers/phy/tegra/xusb.c | 22

[Patch V7 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-08-23 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V7 0/8] Tegra XUSB gadget driver support

2019-08-23 Thread Nagarjuna Kristam
sed macros and other error handling in probe. * Patch 8 has no changes. Nagarjuna Kristam (8): phy: tegra: xusb: Add XUSB dual mode support on Tegra210 phy: tegra: xusb: Add usb3 port fake support on Tegra210 phy: tegra: xusb: Add vbus override support on Tegra210 dt-bindings: usb: Add NVID

Re: [Patch V6 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-08-22 Thread Nagarjuna Kristam
On 22-08-2019 14:42, Thierry Reding wrote: > On Thu, Aug 08, 2019 at 03:07:25PM +0530, Nagarjuna Kristam wrote: >> This patch adds UDC driver for tegra XUSB 3.0 device mode controller. >> XUSB device mode controller supports SS, HS and FS modes >> >> Based on work by:

Re: [Patch V6 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-08-22 Thread Nagarjuna Kristam
On 09-08-2019 17:33, Felipe Balbi wrote: > > Hi, > > Nagarjuna Kristam writes: >> This patch adds UDC driver for tegra XUSB 3.0 device mode controller. >> XUSB device mode controller supports SS, HS and FS modes >> >> Based on work by: >> Mar

Re: [Patch V6 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-08-13 Thread Nagarjuna Kristam
On 12-08-2019 18:13, Chunfeng Yun wrote: > On Thu, 2019-08-08 at 15:07 +0530, Nagarjuna Kristam wrote: >> This patch adds UDC driver for tegra XUSB 3.0 device mode controller. >> XUSB device mode controller supports SS, HS and FS modes >> >> Based on work by:

[Patch V6 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-08-08 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 97c5078..89afd5c 100644 --- a/arch/arm64/configs

[Patch V6 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-08-08 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[Patch V6 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-08-08 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 110 + 1 file

[Patch V6 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-08-08 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam --- drivers/phy/tegra/xusb-tegra210.c | 57 +++ drivers/phy/tegra/xusb.c | 22 +++ drivers

[Patch V6 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-08-08 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V6 0/8] Tegra XUSB gadget driver support

2019-08-08 Thread Nagarjuna Kristam
or handling in probe. * Patch 8 has no changes. Nagarjuna Kristam (8): phy: tegra: xusb: Add XUSB dual mode support on Tegra210 phy: tegra: xusb: Add usb3 port fake support on Tegra210 phy: tegra: xusb: Add vbus override support on Tegra210 dt-bindings: usb: Add NVIDIA Tegra XUSB device mod

[Patch V6 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-08-08 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 11

[Patch V6 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-08-08 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- 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

[Patch V6 5/8] arm64: tegra: Add xudc node for Tegra210

2019-08-08 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions

[Patch V5 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-07-05 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 11

[Patch V5 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-07-05 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam --- drivers/phy/tegra/xusb-tegra210.c | 57 +++ drivers/phy/tegra/xusb.c | 22 +++ drivers

[Patch V5 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-07-05 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 110 + 1 file

[Patch V5 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-07-05 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 29 ++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b

[Patch V5 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-07-05 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0e58ef0..9ee581c 100644 --- a/arch/arm64/configs

[Patch V5 5/8] arm64: tegra: Add xudc node for Tegra210

2019-07-05 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions

[Patch V5 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-07-05 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V5 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-07-05 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[Patch V5 0/8] Tegra XUSB gadget driver support

2019-07-05 Thread Nagarjuna Kristam
is UDC driver tegra XUSB device mode controller with major changes - remove un-used module params, lockinng for device_mode flag, moving un-needed info logs to debug level, making changes feature flag dependent rather than SOC based macros and other error handling in probe. * Patch 8 has no c

Re: [Patch V3 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-06-17 Thread Nagarjuna Kristam
On 14-06-2019 03:02, Rob Herring wrote: > On Thu, May 16, 2019 at 12:09:28PM +0530, Nagarjuna Kristam wrote: >> Add device-tree binding documentation for the XUSB device mode controller >> present on Tegra210 SoC. This controller supports the USB 3.0 >> specification

Re: [Patch V4 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-06-13 Thread Nagarjuna Kristam
On 11-06-2019 13:13, Chunfeng Yun wrote: > On Mon, 2019-06-10 at 15:49 +0530, Nagarjuna Kristam wrote: >> Add device-tree binding documentation for the XUSB device mode controller >> present on Tegra210 SoC. This controller supports the USB 3.0 >> specification. >>

[Patch V4 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-06-10 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 11

[Patch V4 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-06-10 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 29 ++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b

[Patch V4 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-06-10 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index f0bad30..87a8d0d 100644 --- a/arch/arm64/configs

[Patch V4 5/8] arm64: tegra: Add xudc node for Tegra210

2019-06-10 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions

[Patch V4 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-06-10 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 108 + 1 file

[Patch V4 1/8] phy: tegra: xusb: t210: add XUSB dual mode support

2019-06-10 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff

[Patch V4 2/8] phy: tegra: xusb: t210: add usb3 port fake support

2019-06-10 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V4 3/8] phy: tegra: xusb: t210: add vbus override support

2019-06-10 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam --- drivers/phy/tegra/xusb-tegra210.c | 57 +++ drivers/phy/tegra/xusb.c | 22 +++ drivers

[Patch V4 0/8] Tegra XUSB gadget driver support

2019-06-10 Thread Nagarjuna Kristam
SOC based macros and other error handling in probe. * Patch 8 has no changes. Nagarjuna Kristam (8): phy: tegra: xusb: t210: add XUSB dual mode support phy: tegra: xusb: t210: add usb3 port fake support phy: tegra: xusb: t210: add vbus override support dt-bindings: usb: Add NVIDIA Tegra XUSB de

Re: [Patch V3 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-05-24 Thread Nagarjuna Kristam
On 23-05-2019 16:00, Thierry Reding wrote: > On Thu, May 16, 2019 at 12:09:32PM +0530, Nagarjuna Kristam wrote: >> Enable support for Nvidia XUSB device mode controller driver. >> >> Signed-off-by: Nagarjuna Kristam >> --- >> arch/arm64/configs/defconfig | 1

Re: [Patch V3 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-05-23 Thread Nagarjuna Kristam
On 16-05-2019 14:38, Chunfeng Yun wrote: > On Thu, 2019-05-16 at 12:09 +0530, Nagarjuna Kristam wrote: >> This patch adds UDC driver for tegra XUSB 3.0 device mode controller. >> XUSB device mode controller supports SS, HS and FS modes >> >> Based on work by:

Re: [Patch V3 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-05-23 Thread Nagarjuna Kristam
On 23-05-2019 15:43, Thierry Reding wrote: > On Thu, May 16, 2019 at 12:09:28PM +0530, Nagarjuna Kristam wrote: >> Add device-tree binding documentation for the XUSB device mode controller >> present on Tegra210 SoC. This controller supports the USB 3.0 >> specification

Re: [Patch V3 2/8] phy: tegra: xusb: t210: add usb3 port fake support

2019-05-23 Thread Nagarjuna Kristam
On 23-05-2019 15:31, Thierry Reding wrote: > On Thu, May 16, 2019 at 12:09:26PM +0530, Nagarjuna Kristam wrote: >> On Tegra210, usb2 only otg/peripheral ports dont work in device mode. >> They need an assosciated usb3 port to work in device mode. Identify >> an unused usb3

Re: [Patch V3 2/8] phy: tegra: xusb: t210: add usb3 port fake support

2019-05-23 Thread Nagarjuna Kristam
On 21-05-2019 08:30, jckuo wrote: > Hi Nagarjuna, > > Please check tegra_xusb_update_usb3_fake_port(). > > Thanks, > > JC > > On 5/16/19 2:39 PM, Nagarjuna Kristam wrote: >> On Tegra210, usb2 only otg/peripheral ports dont work in device mode. >> The

Re: [Patch V3 3/8] phy: tegra: xusb: t210: add vbus override support

2019-05-23 Thread Nagarjuna Kristam
On 21-05-2019 10:04, jckuo wrote: > Hi Nagarjuna, > > Please check tegra_phy_xusb_utmi_port_reset(). > > Thanks, > > JC > > On 5/16/19 2:39 PM, Nagarjuna Kristam wrote: >> Tegra XUSB device control driver needs to control vbus override >> during

Re: [Patch V3 3/8] phy: tegra: xusb: t210: add vbus override support

2019-05-23 Thread Nagarjuna Kristam
On 23-05-2019 15:33, Thierry Reding wrote: > On Thu, May 16, 2019 at 12:09:27PM +0530, Nagarjuna Kristam wrote: >> Tegra XUSB device control driver needs to control vbus override >> during its operations, add API for the support. >> >> Signed-off-by: Nagarjuna Kris

[Patch V3 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-05-15 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Andrew Bresticker Signed-off-by: Nagarjuna Kristam --- drivers/usb/gadget/udc/Kconfig | 10 + drivers/usb/gadget/udc/Makefile

[Patch V3 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-05-15 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam --- .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 101 + 1 file changed, 101

[Patch V3 5/8] arm64: tegra: Add xudc node for Tegra210

2019-05-15 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64

[Patch V3 3/8] phy: tegra: xusb: t210: add vbus override support

2019-05-15 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam --- drivers/phy/tegra/xusb-tegra210.c | 59 +++ drivers/phy/tegra/xusb.c | 22 +++ drivers

[Patch V3 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-05-15 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia

[Patch V3 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-05-15 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b605b7f..bf1437c 100644 --- a/arch/arm64/configs

[Patch V3 2/8] phy: tegra: xusb: t210: add usb3 port fake support

2019-05-15 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V3 1/8] phy: tegra: xusb: t210: add XUSB dual mode support

2019-05-15 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam --- drivers/phy/tegra/xusb-tegra210.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/phy/tegra/xusb-tegra210.c b

[Patch V3 0/8] Tegra XUSB gadget driver support

2019-05-15 Thread Nagarjuna Kristam
ather than SOC based macros and other error handling in probe. * Patch 8 has no changes. Nagarjuna Kristam (8): phy: tegra: xusb: t210: add XUSB dual mode support phy: tegra: xusb: t210: add usb3 port fake support phy: tegra: xusb: t210: add vbus override support dt-bindings: usb: Add NVIDIA Te

Re: [PATCH V2 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-05-08 Thread Nagarjuna Kristam
On 03-05-2019 20:00, Thierry Reding wrote: > On Thu, Apr 25, 2019 at 05:14:01PM +0200, Thierry Reding wrote: >> On Mon, Mar 11, 2019 at 04:41:52PM +0530, Nagarjuna Kristam wrote: >>> Add device-tree binding documentation for the XUSB device mode controller >>> pr

Re: [PATCH V2 3/8] phy: tegra: xusb: t210: add vbus override support

2019-05-08 Thread Nagarjuna Kristam
On 25-04-2019 20:34, Thierry Reding wrote: > On Mon, Mar 11, 2019 at 04:41:51PM +0530, Nagarjuna Kristam wrote: >> Tegra XUSB device control driver needs to control vbus override >> during its operations, add API for the support >> >> Signed-off-by: Nagarjuna Kris

Re: [PATCH V2 2/8] phy: tegra: xusb: t210: add usb3 port fake support

2019-05-08 Thread Nagarjuna Kristam
On 25-04-2019 20:25, Thierry Reding wrote: > On Mon, Mar 11, 2019 at 04:41:50PM +0530, Nagarjuna Kristam wrote: >> On Tegra210, usb2 only otg/peripheral ports dont work in device mode. >> They need an assosciated usb3 port to work in device mode. Identify >> an unused usb3

Re: [PATCH V2 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-05-07 Thread Nagarjuna Kristam
On 25-04-2019 19:25, Thierry Reding wrote: > On Thu, Apr 25, 2019 at 04:00:05PM +0300, Felipe Balbi wrote: >> Nagarjuna Kristam writes: >> >>> This patch adds UDC driver for tegra XUSB 3.0 device mode controller. >>> XUSB device mode controller support SS, HS a

[PATCH V2 0/8] Tegra XUSB gadget driver support

2019-03-11 Thread Nagarjuna Kristam
logs to debug level, making changes feature flag dependent rather than SOC based macros and other error handling in probe. * Patch 8 has no changes. Nagarjuna Kristam (8): phy: tegra: xusb: t210: add XUSB dual mode support phy: tegra: xusb: t210: add usb3 port fake support phy: tegra: xusb: t21

[PATCH V2 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-03-11 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia

[PATCH V2 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-03-11 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller support SS, HS and FS modes Based on work by: Mark Kuo Andrew Bresticker Signed-off-by: Nagarjuna Kristam --- drivers/usb/gadget/udc/Kconfig | 10 + drivers/usb/gadget/udc/Makefile

[PATCH V2 1/8] phy: tegra: xusb: t210: add XUSB dual mode support

2019-03-11 Thread Nagarjuna Kristam
The device tree bindings document the "mode" property of "ports" subnodes, but the driver was not parsing the property. In preparation for adding role switching, parse the property at probe time and confgiure the port capabilities accordingly Based on work by JC Kuo . Sign

[PATCH V2 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-03-11 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b3d8209..9782571 100644 --- a/arch/arm64/configs

[PATCH V2 Tegra XUSB gadget driver support 5/8] arm64: tegra: Add xudc node for Tegra210

2019-03-11 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64

[PATCH V2 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-03-11 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on tegra210 SoC. This controller supports USB 3.0 specification Based on work by Andrew Bresticker . Signed-off-by: Nagarjuna Kristam --- .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 105

[PATCH V2 3/8] phy: tegra: xusb: t210: add vbus override support

2019-03-11 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support Signed-off-by: Nagarjuna Kristam --- drivers/phy/tegra/xusb-tegra210.c | 61 +++ drivers/phy/tegra/xusb.c | 28 -- drivers

[PATCH V2 2/8] phy: tegra: xusb: t210: add usb3 port fake support

2019-03-11 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral Based on work by BH Hsieh . Signed-off-by: Nagarjuna

Re: [PATCH 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-02-25 Thread Nagarjuna Kristam
On 25-02-2019 17:45, Thierry Reding wrote: > On Thu, Feb 14, 2019 at 08:22:34PM +0530, Nagarjuna Kristam wrote: >> >> >>>> # >>>> +static void tegra_xudc_device_mode_on(struct tegra_xudc *xudc) >>>> +{ >>>> + unsigned long flags

Re: [PATCH 1/8] phy: tegra: xusb: t210: add XUSB device mode support

2019-02-14 Thread Nagarjuna Kristam
On 13-02-2019 12:34, Nagarjuna Kristam wrote: >>> EXPORT_SYMBOL_GPL(tegra_xusb_padctl_usb3_set_lfps_detect); >>> >>> +int tegra_xusb_padctl_set_vbus_override(struct tegra_xusb_padctl *padctl) >>> +{ >>> + if (padctl->soc->ops->

Re: [PATCH 3/8] dt-bindings: phy: tegra-xusb-padctl: Add nvidia,usb3-port-fake entry

2019-02-14 Thread Nagarjuna Kristam
On 14-02-2019 14:29, Thierry Reding wrote: > On Thu, Feb 14, 2019 at 10:58:13AM +0530, Nagarjuna Kristam wrote: >> >> >> On 13-02-2019 18:46, Thierry Reding wrote: >>> On Wed, Feb 13, 2019 at 01:56:24PM +0100, Thierry Reding wrote: >>>> On Wed, F

Re: [PATCH 6/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-02-14 Thread Nagarjuna Kristam
>> +reg = <0x0 0x700d 0x0 0x8000>, >> +<0x0 0x700d8000 0x0 0x1000>, >> +<0x0 0x700d9000 0x0 0x1000>; >> +interrupts = <0 44 0x4>; >> +clocks = <&tegra_car TEGRA210_CLK_XUSB_DEV>, >> +<&tegra_car TEGR

Re: [PATCH 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-02-14 Thread Nagarjuna Kristam
On 04-02-2019 19:26, Thierry Reding wrote: > On Thu, Jan 03, 2019 at 03:34:58PM +0530, Nagarjuna Kristam wrote: >> This patch adds UDC driver for tegra XUSB 3.0 device mode controller. >> XUSB device mode controller support SS, HS and FS modes >> >> Based on work by:

Re: [PATCH 3/8] dt-bindings: phy: tegra-xusb-padctl: Add nvidia,usb3-port-fake entry

2019-02-13 Thread Nagarjuna Kristam
On 13-02-2019 18:46, Thierry Reding wrote: > On Wed, Feb 13, 2019 at 01:56:24PM +0100, Thierry Reding wrote: >> On Wed, Feb 13, 2019 at 04:08:15PM +0530, Nagarjuna Kristam wrote: >>> >>> >>> On 04-02-2019 17:18, Thierry Reding wrote: >>>> On

Re: [PATCH 3/8] dt-bindings: phy: tegra-xusb-padctl: Add nvidia,usb3-port-fake entry

2019-02-13 Thread Nagarjuna Kristam
On 04-02-2019 17:18, Thierry Reding wrote: > On Thu, Jan 03, 2019 at 03:34:54PM +0530, Nagarjuna Kristam wrote: >> Add binding details regarding nvidia,usb3-port-fake >> >> Signed-off-by: Nagarjuna Kristam >> --- >> Documentation/devicetree/bindings/phy/nv

Re: [PATCH 0/8] Tegra XUSB gadget driver support

2019-02-12 Thread Nagarjuna Kristam
Hi Thierry, On 04-02-2019 17:16, Thierry Reding wrote: > On Thu, Jan 03, 2019 at 03:34:51PM +0530, Nagarjuna Kristam wrote: >> Add driver for XUSB device mode controller available on Tegra >> Soc >> >> Patches 1-3 are phy driver changes to add support for device >

Re: [PATCH 1/8] phy: tegra: xusb: t210: add XUSB device mode support

2019-02-12 Thread Nagarjuna Kristam
Hi Thierry, On 04-02-2019 17:57, Thierry Reding wrote: > On Thu, Jan 03, 2019 at 03:34:52PM +0530, Nagarjuna Kristam wrote: >> Add support for XUSB device mode controller on Tegra210. >> Update PADCTL driver to set port cap based on DT config. >> Add code to handle property &

Re: [PATCH 1/8] phy: tegra: xusb: t210: add XUSB device mode support

2019-02-12 Thread Nagarjuna Kristam
t; state is "grounded" should be defined > XUSB_PADCTL_USB2_VBUS_ID_OVERRIDE_GROUNDED with value 0x0. > Will do > Thanks, > JC > > > On Thu, Jan 3, 2019 at 7:43 PM Nagarjuna Kristam > wrote: > >> Add support for XUSB device mode controller on Tegra210.

[PATCH 1/8] phy: tegra: xusb: t210: add XUSB device mode support

2019-01-03 Thread Nagarjuna Kristam
Add support for XUSB device mode controller on Tegra210. Update PADCTL driver to set port cap based on DT config. Add code to handle property "nvidia,usb3-port-fake" Provide API's to control vbus override and utmi pad power control Signed-off-by: Nagarjuna Kristam --- drivers

[PATCH 3/8] dt-bindings: phy: tegra-xusb-padctl: Add nvidia,usb3-port-fake entry

2019-01-03 Thread Nagarjuna Kristam
Add binding details regarding nvidia,usb3-port-fake Signed-off-by: Nagarjuna Kristam --- Documentation/devicetree/bindings/phy/nvidia,tegra124-xusb-padctl.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/nvidia,tegra124-xusb-padctl.txt b

[PATCH 2/8] arm64: tegra: Add nvidia,usb3-port-fake entry to Jetson TX1 padctl

2019-01-03 Thread Nagarjuna Kristam
Add "nvidia,usb3-port-fake" DT node entry to padctl. This value should is set to an unused SS port on Jetson TX1 for USB2.0 only device/otg port. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-01-03 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller support SS, HS and FS modes Based on work by: Mark Kuo Andrew Bresticker Signed-off-by: Nagarjuna Kristam --- drivers/usb/gadget/udc/Kconfig | 11 + drivers/usb/gadget/udc/Makefile

[PATCH 4/8] arm64: tegra: Add xudc node for Tegra210

2019-01-03 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64

[PATCH 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-01-03 Thread Nagarjuna Kristam
Enable support for Nvidia XUSB device mode controller driver Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b3d8209..9782571 100644 --- a/arch/arm64/configs

[PATCH 5/8] arm64: tegra: Enable xudc on Jetson TX1

2019-01-03 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia

[PATCH 6/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-01-03 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on tegra210 SoC. This controller supports USB 3.0 specification Based on work by Andrew Bresticker . Signed-off-by: Nagarjuna Kristam --- .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 67

[PATCH 0/8] Tegra XUSB gadget driver support

2019-01-03 Thread Nagarjuna Kristam
on ubuntu - Run ping test and transfer test(used scp) to check data transfer communication SS mode is verified by enabling Type A port as device Above patches are dependent on https://patchwork.ozlabs.org/patch/976332/ Nagarjuna Kristam (8): phy: tegra: xusb: t210: add XUSB device mo