From patchwork Thu Jan 3 10:04:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nagarjuna Kristam X-Patchwork-Id: 10747091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B12A76C5 for ; Thu, 3 Jan 2019 10:05:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0C1B285D2 for ; Thu, 3 Jan 2019 10:05:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94946285EA; Thu, 3 Jan 2019 10:05:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1492B285D2 for ; Thu, 3 Jan 2019 10:05:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730136AbfACKF6 (ORCPT ); Thu, 3 Jan 2019 05:05:58 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:2851 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbfACKF5 (ORCPT ); Thu, 3 Jan 2019 05:05:57 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 03 Jan 2019 02:05:43 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 03 Jan 2019 02:05:56 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 03 Jan 2019 02:05:56 -0800 Received: from HQMAIL104.nvidia.com (172.18.146.11) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 3 Jan 2019 10:05:56 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Thu, 3 Jan 2019 10:05:56 +0000 Received: from nkristam-ubuntu.nvidia.com (Not Verified[10.19.65.96]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Thu, 03 Jan 2019 02:05:55 -0800 From: Nagarjuna Kristam To: , , , CC: , , Nagarjuna Kristam Subject: [PATCH 0/8] Tegra XUSB gadget driver support Date: Thu, 3 Jan 2019 15:34:51 +0530 Message-ID: <1546509899-5071-1-git-send-email-nkristam@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1546509943; bh=jGZlqNkPyWSpzd81HYqYY/JQ9FDKASrAJ9JsOK3f6nE=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=U8EBICMGpIN/ak7px7ezMWdzBWsR2rld3tGdZroTTu8KPvcMR+1tXGBydRJ2kiAJi 6e/havryf4DwOG/EHbzMO5Spd6NEYb0JcpojCGoeK4v767uvIxLFwMlLu0DJP7iGh9 fVkoSexNGHs92ZKfZdoqJfK5AfvNsDY2QnqJyH9ZNIiSQ/FeA/LmdgIZfg+2WIpzmL S8kW5xRhjz9d5KrQ8i0EtDnSBQgWQDABR/IwYv0TqvMI7eC430SqTMXv0/oT1lpjbm ZrR2s9n4ghJ6kb3ASPeGHZswZM94vbSylk1yA4S6Oaf1YUwJY09N2nIpRvolkX6LpH PEjS3kkLjpfYg== Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add driver for XUSB device mode controller available on Tegra Soc Patches 1-3 are phy driver changes to add support for device mode Patches 4-7 are changes related to XUSB device mode controller driver Patch 8 is to enable XUDC driver in defconfig Test Steps(USB 2.0): - Enable "USB Gadget precomposed configurations" in defconfig - Build, flash and boot Jetson TX1 - Connect Jetson TX1 and Ubuntu device using USB A to Micro B cable - After boot on Jetson TX1 terminal usb0 network device should be enumerated - Assign static ip to usb0 on Jetson TX1 and corresponding net device 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 mode support arm64: tegra: Add nvidia,usb3-port-fake entry to Jetson TX1 padctl dt-bindings: phy: tegra-xusb-padctl: Add nvidia,usb3-port-fake entry arm64: tegra: Add xudc node for Tegra210 arm64: tegra: Enable xudc on Jetson TX1 dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding usb: gadget: Add UDC driver for tegra XUSB device mode controller arm64: defconfig: Enable tegra XUDC driver .../bindings/phy/nvidia,tegra124-xusb-padctl.txt | 3 + .../devicetree/bindings/usb/nvidia,tegra-xudc.txt | 67 + arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 16 + arch/arm64/boot/dts/nvidia/tegra210.dtsi | 17 + arch/arm64/configs/defconfig | 1 + drivers/phy/tegra/xusb-tegra210.c | 297 +- drivers/phy/tegra/xusb.c | 75 +- drivers/phy/tegra/xusb.h | 16 +- drivers/usb/gadget/udc/Kconfig | 11 + drivers/usb/gadget/udc/Makefile | 1 + drivers/usb/gadget/udc/tegra_xudc.c | 3821 ++++++++++++++++++++ include/linux/phy/tegra/xusb.h | 7 +- 12 files changed, 4323 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.txt create mode 100644 drivers/usb/gadget/udc/tegra_xudc.c