Re: [PATCH] soc/tegra: fuse: Add clock error check in tegra_fuse_readl

2019-09-02 Thread Nagarjuna Kristam
On 02-09-2019 16:15, Jon Hunter wrote: > > On 28/08/2019 12:18, Nagarjuna Kristam wrote: >> Tegra fuse clock handle is retrieved in tegra_fuse_probe(). >> tegra_fuse_readl() is exported symbol, which can be called from drivers >> at any time. tegra_fuse_readl() enab

[Patch V2] soc/tegra: fuse: Add fuse clock check in tegra_fuse_readl

2019-09-03 Thread Nagarjuna Kristam
tegra_fuse_readl() can be called from drivers at any time. If this API is called before tegra_fuse_probe(), we end up enabling clock before it is registered. Add check for fuse clock in tegra_fuse_readl() and return corresponding error if any. Signed-off-by: Nagarjuna Kristam --- V2

[PATCH] USB: usbfs: check cpu address range before remap

2019-09-04 Thread Nagarjuna Kristam
can allocate memory in vmalloc range and this causes wrong remap of user memory. Check if address returned by usb_alloc_coherent failed in vmalloc range and if yes, use remap_vmalloc_range API, else use remap_pfn_range to remap address to user space. Signed-off-by: Nagarjuna Kristam --- drivers

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

2019-09-04 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 V8 8/8] arm64: defconfig: Enable tegra XUDC driver

2019-09-04 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 V8 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-09-04 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 V8 5/8] arm64: tegra: Add xudc node for Tegra210

2019-09-04 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 V8 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-09-04 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 V8 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-09-04 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 V8 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-09-04 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 V8 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-09-04 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 V8 0/8] Tegra XUSB gadget driver support

2019-09-04 Thread Nagarjuna Kristam
vice 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 changes. Nagarjuna Kristam (8): p

Re: [PATCH v6 09/10] usb: roles: add USB Type-B GPIO connector driver

2019-06-10 Thread Nagarjuna Kristam
Tested-by: Nagarjuna Kristam On 29-05-2019 13:13, Chunfeng Yun wrote: > Due to the requirement of usb-connector.txt binding, the old way > using extcon to support USB Dual-Role switch is now deprecated > when use Type-B connector. > This patch introduces a driver of Type-B con

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

2019-09-13 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 V9 5/8] arm64: tegra: Add xudc node for Tegra210

2019-09-13 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 V9 0/8] Tegra XUSB gadget driver support

2019-09-13 Thread Nagarjuna Kristam
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 changes.

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

2019-09-13 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 V9 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-09-13 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 V9 8/8] arm64: defconfig: Enable tegra XUDC support

2019-09-13 Thread Nagarjuna Kristam
Enable Nvidia XUSB device mode controller driver and USB GPIO Based Connection Detection Driver as module. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

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

2019-09-13 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 V9 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-09-13 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 V9 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-09-13 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] soc/tegra: fuse: Add clock error check in tegra_fuse_readl

2019-08-28 Thread Nagarjuna Kristam
data abort. Add DEFER_PROBE error check for fuse clock in tegra_fuse_readl(), to avoid enabling of fuse clock, before clock is available. Signed-off-by: Nagarjuna Kristam --- drivers/soc/tegra/fuse/fuse-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/tegra

[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 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 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

[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 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 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 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 V11 03/11] phy: tegra: xusb: Add vbus override support on Tegra210

2019-10-18 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 | 58 +++ drivers/phy/tegra/xusb.c | 22

[Patch V11 00/11] Tegra XUSB gadget driver support

2019-10-18 Thread Nagarjuna Kristam
evice 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 changes. Nagarjuna Kristam (8):

[Patch V11 04/11] phy: tegra: xusb: Add vbus override support on Tegra186

2019-10-18 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-tegra186.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/phy/tegra/xusb-tegra186.c

[Patch V11 01/11] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-10-18 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 V11 02/11] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-10-18 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 V11 07/11] arm64: tegra: Enable xudc on Jetson TX1

2019-10-18 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 V11 08/11] arm64: tegra: Add xudc node for Tegra186

2019-10-18 Thread Nagarjuna Kristam
Tegra186 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/tegra186.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64

[Patch V11 09/11] arm64: tegra: Enable xudc on Jetson TX2

2019-10-18 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX2. Signed-off-by: Nagarjuna Kristam --- arch/arm64/boot/dts/nvidia/tegra186-p2771-.dts | 29 +- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-.dts b

[Patch V11 06/11] arm64: tegra: Add xudc node for Tegra210

2019-10-18 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 V11 11/11] arm64: defconfig: Enable tegra XUDC support

2019-10-18 Thread Nagarjuna Kristam
Enable Nvidia XUSB device mode controller driver and USB GPIO Based Connection Detection Driver as module. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[Patch V11 10/11] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-10-18 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 V11 05/11] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-10-18 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

Re: [PATCH V2 2/8] usb: gadget: tegra-xudc: Add vbus_draw support

2020-05-03 Thread Nagarjuna Kristam
On 28-04-2020 15:29, Thierry Reding wrote: @@ -2042,6 +2044,19 @@ static int tegra_xudc_gadget_stop(struct usb_gadget *gadget) return 0; } +static int tegra_xudc_gadget_vbus_draw(struct usb_gadget *gadget, + unsigned int m_a) +{ +

Re: [PATCH V2 6/8] phy: tegra: xusb: Add support for charger detect

2020-05-04 Thread Nagarjuna Kristam
>On 28-04-2020 16:25, Thierry Reding wrote: On Wed, Apr 15, 2020 at 01:55:06PM +0530, Nagarjuna Kristam wrote: Perform charger-detect operation if corresponding dt property is enabled. Update usb-phy with the detected charger state and max current values. Register charger-detect API's of

Re: [PATCH V2 5/8] phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection

2020-05-04 Thread Nagarjuna Kristam
On 28-04-2020 15:45, Thierry Reding wrote: On Wed, Apr 15, 2020 at 01:55:05PM +0530, Nagarjuna Kristam wrote: When USB charger is enabled, UTMI PAD needs to be protected according to the direction and current level. Add support for the same on Tegra210 and Tegra186. Signed-off-by: Nagarjuna

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

2019-09-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 | 58 +++ drivers/phy/tegra/xusb.c | 22

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

2019-09-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 V10 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-09-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 V10 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-09-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 V10 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-09-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 V10 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-09-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 | 11

[Patch V10 8/8] arm64: defconfig: Enable tegra XUDC support

2019-09-23 Thread Nagarjuna Kristam
Enable Nvidia XUSB device mode controller driver and USB GPIO Based Connection Detection Driver as module. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

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

2019-09-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 V10 0/8] Tegra XUSB gadget driver support

2019-09-23 Thread Nagarjuna Kristam
_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 changes. Nagarjuna Kristam (8): phy: tegra: xusb: Add XUSB dual mode support on Tegra210 phy: tegra: xusb: Add usb3

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

2019-09-04 Thread Nagarjuna Kristam
On 04-09-2019 16:00, Chunfeng Yun wrote: > On Wed, 2019-09-04 at 13:53 +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 V8 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-09-04 Thread Nagarjuna Kristam
On 04-09-2019 15:17, Chunfeng Yun wrote: > On Wed, 2019-09-04 at 13:53 +0530, Nagarjuna Kristam wrote: >> Enable XUSB device mode driver for USB0 slot on Jetson TX1. >> >> Signed-off-by: Nagarjuna Kristam >> Reviewed-by: JC Kuo >> --- >> arch/arm64/b

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

2019-09-06 Thread Nagarjuna Kristam
On 06-09-2019 07:13, Chunfeng Yun wrote: > On Thu, 2019-09-05 at 09:57 +0530, Nagarjuna Kristam wrote: >> >> On 04-09-2019 16:00, Chunfeng Yun wrote: >>> On Wed, 2019-09-04 at 13:53 +0530, Nagarjuna Kristam wrote: >>>> This patch adds UDC driver for t

[PATCH V5 3/7] phy: tegra: xusb: Add USB2 pad power control support for Tegra210

2020-07-20 Thread Nagarjuna Kristam
Add USB2 pad power on and off API's for TEgra210 and provide its control via soc ops. It can be used by operations like charger detect to power on and off USB2 pad if needed. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V5: - Made tegra210_usb2_pad_power_on

[PATCH V5 4/7] phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection

2020-07-20 Thread Nagarjuna Kristam
When USB charger is enabled, UTMI PAD needs to be protected according to the direction and current level. Add support for the same on Tegra210 and Tegra186. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V5: - No changes. --- V4: - Added Acked-by updates to commit message

[PATCH V5 6/7] phy: tegra: xusb: Enable charger detect for Tegra186

2020-07-20 Thread Nagarjuna Kristam
Tegra186 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4-V5: - No changes --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based

[PATCH V5 0/7] Tegra XUSB charger detect support

2020-07-20 Thread Nagarjuna Kristam
hanges. - Functions and its arguments are aligned. - Tabs are used for alignment of MACRO's - For vbus_draw USDC callback, usb_phy set_power error is propogated. - Fixed various comments given by thierry. V2: - Added ACKed-by details for DT patches. - All patches rebased. Nagarjuna Kristam (7)

[PATCH V5 5/7] phy: tegra: xusb: Add support for charger detect

2020-07-20 Thread Nagarjuna Kristam
Perform charger-detect operation if corresponding dt property is enabled. Update usb-phy with the detected charger state and max current values. Register charger-detect API's of usb-phy to provide needed functionalities. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V5

[PATCH V5 1/7] dt-bindings: phy: tegra-xusb: Add charger-detect property

2020-07-20 Thread Nagarjuna Kristam
Add nvidia,charger-detect boolean property for Tegra210 and Tegra186 platforms. This property is used to inform driver to perform charger detection on corresponding USB 2 port. Signed-off-by: Nagarjuna Kristam Acked-by: Rob Herring Acked-by: Thierry Reding --- V4-V5: - No changes --- V3

[PATCH V5 2/7] phy: tegra: xusb: Add support for UTMI pad power control

2020-07-20 Thread Nagarjuna Kristam
Add support for UTMI pad power on and off API's via soc ops. These API can be used by operations like charger detect to power on and off UTMI pad if needed. Update powered_on flag in the pad power control API's. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4-V5: - No changes

[PATCH V5 7/7] phy: tegra: xusb: Enable charger detect for Tegra210

2020-07-20 Thread Nagarjuna Kristam
Tegra210 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4-V5: - No changes --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based

Re: [PATCH V2 6/8] phy: tegra: xusb: Add support for charger detect

2020-05-10 Thread Nagarjuna Kristam
On 04-05-2020 21:20, Thierry Reding wrote: On Mon, May 04, 2020 at 02:32:51PM +0530, Nagarjuna Kristam wrote: On 28-04-2020 16:25, Thierry Reding wrote: On Wed, Apr 15, 2020 at 01:55:06PM +0530, Nagarjuna Kristam wrote: [...] diff --git a/drivers/phy/tegra/xusb-tegra-cd.c b/drivers/phy

[PATCH V3 5/8] phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection

2020-05-14 Thread Nagarjuna Kristam
When USB charger is enabled, UTMI PAD needs to be protected according to the direction and current level. Add support for the same on Tegra210 and Tegra186. Signed-off-by: Nagarjuna Kristam --- V3: - Alligned function and its arguments. - Fixed other comments from Thierry. --- V2: - Commit

[PATCH V3 4/8] phy: tegra: xusb: Add USB2 pad power control support for Tegra210

2020-05-14 Thread Nagarjuna Kristam
Add USB2 pad power on and off API's for TEgra210 and provide its control via soc ops. It can be used by operations like charger detect to power on and off USB2 pad if needed. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Added Acked-by updates to commit message. --- V2

[PATCH V3 3/8] phy: tegra: xusb: Add support for UTMI pad power control

2020-05-14 Thread Nagarjuna Kristam
Add support for UTMI pad power on and off API's via soc ops. These API can be used by operations like charger detect to power on and off UTMI pad if needed. Update powered_on flag in the pad power control API's. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Added Acked

[PATCH V3 0/8] Tegra XUSB charger detect support

2020-05-14 Thread Nagarjuna Kristam
by thierry. V2: - Added ACKed-by details for DT patches. - All patches rebased. Nagarjuna Kristam (8): dt-bindings: phy: tegra-xusb: Add charger-detect property usb: gadget: tegra-xudc: Add vbus_draw support phy: tegra: xusb: Add support for UTMI pad power control phy: tegra: xusb: Add USB2

[PATCH V3 1/8] dt-bindings: phy: tegra-xusb: Add charger-detect property

2020-05-14 Thread Nagarjuna Kristam
Add nvidia,charger-detect boolean property for Tegra210 and Tegra186 platforms. This property is used to inform driver to perform charger detection on corresponding USB 2 port. Signed-off-by: Nagarjuna Kristam Acked-by: Rob Herring Acked-by: Thierry Reding --- V3: - Added Acked-by updates

[PATCH V3 2/8] usb: gadget: tegra-xudc: Add vbus_draw support

2020-05-14 Thread Nagarjuna Kristam
Register vbus_draw to gadget ops and update corresponding vbus draw current to usb_phy. Signed-off-by: Nagarjuna Kristam --- V3: - Propogated usb_phy->set_power error to vbus_draw caller. --- V2: - Patch re-based. --- drivers/usb/gadget/udc/tegra-xudc.c | 17 + 1 file chan

[PATCH V3 7/8] phy: tegra: xusb: Enable charger detect for Tegra186

2020-05-14 Thread Nagarjuna Kristam
Tegra186 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based. --- drivers/phy/tegra/xusb

[PATCH V3 6/8] phy: tegra: xusb: Add support for charger detect

2020-05-14 Thread Nagarjuna Kristam
Perform charger-detect operation if corresponding dt property is enabled. Update usb-phy with the detected charger state and max current values. Register charger-detect API's of usb-phy to provide needed functionalities. Signed-off-by: Nagarjuna Kristam --- V3: - Allighed functions and its

[PATCH V3 8/8] phy: tegra: xusb: Enable charger detect for Tegra210

2020-05-14 Thread Nagarjuna Kristam
Tegra210 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based. --- drivers/phy/tegra/xusb

Re: [PATCH V3 0/8] Tegra XUSB charger detect support

2020-05-14 Thread Nagarjuna Kristam
On 14-05-2020 15:09, Felipe Balbi wrote: Nagarjuna Kristam writes: This patch series adds charger detect support on XUSB hardware used in Tegra210 and Tegra186 SoCs. This patchset is composed with : - dt bindings of XUSB Pad Controller - Tegra XUSB device mode driver to add vbus_draw

[PATCH V4 0/7] Tegra XUSB charger detect support

2020-06-26 Thread Nagarjuna Kristam
e used for alignment of MACRO's - For vbus_draw USDC callback, usb_phy set_power error is propogated. - Fixed various comments given by thierry. V2: - Added ACKed-by details for DT patches. - All patches rebased. Nagarjuna Kristam (7): dt-bindings: phy: tegra-xusb: Add charger-detect property phy:

[PATCH V4 7/7] phy: tegra: xusb: Enable charger detect for Tegra210

2020-06-26 Thread Nagarjuna Kristam
Tegra210 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4: - No changes --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based

[PATCH V4 1/7] dt-bindings: phy: tegra-xusb: Add charger-detect property

2020-06-26 Thread Nagarjuna Kristam
Add nvidia,charger-detect boolean property for Tegra210 and Tegra186 platforms. This property is used to inform driver to perform charger detection on corresponding USB 2 port. Signed-off-by: Nagarjuna Kristam Acked-by: Rob Herring Acked-by: Thierry Reding --- V4: - No changes --- V3

[PATCH V4 2/7] phy: tegra: xusb: Add support for UTMI pad power control

2020-06-26 Thread Nagarjuna Kristam
Add support for UTMI pad power on and off API's via soc ops. These API can be used by operations like charger detect to power on and off UTMI pad if needed. Update powered_on flag in the pad power control API's. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4: - No changes

[PATCH V4 5/7] phy: tegra: xusb: Add support for charger detect

2020-06-26 Thread Nagarjuna Kristam
Perform charger-detect operation if corresponding dt property is enabled. Update usb-phy with the detected charger state and max current values. Register charger-detect API's of usb-phy to provide needed functionalities. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4: - Used

[PATCH V4 4/7] phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection

2020-06-26 Thread Nagarjuna Kristam
When USB charger is enabled, UTMI PAD needs to be protected according to the direction and current level. Add support for the same on Tegra210 and Tegra186. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4: - Added Acked-by updates to commit message. --- V3: - Alligned

[PATCH V4 3/7] phy: tegra: xusb: Add USB2 pad power control support for Tegra210

2020-06-26 Thread Nagarjuna Kristam
Add USB2 pad power on and off API's for TEgra210 and provide its control via soc ops. It can be used by operations like charger detect to power on and off USB2 pad if needed. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4: - No changes --- V3: - Added Acked-by updates

[PATCH V4 6/7] phy: tegra: xusb: Enable charger detect for Tegra186

2020-06-26 Thread Nagarjuna Kristam
Tegra186 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V4: - No changes --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based