From patchwork Wed Sep 9 19:03:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 11766097 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2481192C for ; Wed, 9 Sep 2020 19:05:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8DC620C09 for ; Wed, 9 Sep 2020 19:05:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="v0Zh5mjI"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="jViknBfu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8DC620C09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zsJrhjyRZ7iIG9SxGm+xe/UL5NqQmgOjIb4SZd8YN68=; b=v0Zh5mjI0MdYTlRqCNuWue8kGD GmHRUPskj6WQny0YEIsNcO1phXXhFJLaKi+647XPmRkju+mMmzVIq97D/WBLfQlmzyMH9njkf8x3G 8R81FTBpra4a/sS9gaY5ea/sjpy4O9aseh3iNVF31U0XUC6AjE7VOplhwH38A+i/wlzWfDU58Z8mQ 1J7WWyV5xGC/QBUp574xpjEyA92nRkQgJPvn4W/g74WXboIJ5qQOvYo+fnjhxVoETVG+hl3BzYmJ7 6XhqjCN+AGm5Lb3Tqthx5pmHFOpzpL+hEebKMqKOigIASD1ZEN68DIeWU+a/TMxc4pbTPkODa4GVM V47BfKyA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG5NU-0003DL-AV; Wed, 09 Sep 2020 19:03:32 +0000 Received: from mail-dm6nam11on20630.outbound.protection.outlook.com ([2a01:111:f400:7eaa::630] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG5NR-0003Ck-FV for linux-arm-kernel@lists.infradead.org; Wed, 09 Sep 2020 19:03:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PE8ivolFGC5pvuB+/3m1HzSHbSSQ6shLZhagvr4UoLgfcN+18XuSBkPemO9k/+4EI5YM1S4pzAQhfpI5ZKQSGFELLr76dxYdAxfVJeOalq4eTnRv7zW34AQCxanoxkhYwSHHBm+uDpTkIQhr4f42lSliCPuNxEnvV3+poLN1pbWETQcvtSZSV1Pd8sfueOhWhsTu0WkUob2YmSisp2kmsEq9N+0vrut0k0jsfk15Tyjqp0W2b5X/z0ZWiOyQ8gi3bjxPwZGpmRJHAwbGgZuznMWs0+TfNoOsTF3TNa8yfPW6z2yozScHN2RNKKXD61P0H3i/eBYLLwQRXVT1+XvaXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z4kpBbYGhlIQ6MsPQqx63VN33wUw1oJQbfvhhHqxsZk=; b=eNLJlLqn6LgOkdNG/G1HSaEgxUl8W75Hd/aABcfYZGUV/xTA1abO5ioPQWLgugyGeNhEVsPp6UV8GYwprjXnpRL92zJk/Qw31DoHBw9FLgOyj146HLRPCyC5VeHi0Cjnp+XjldW/YdFN+y0FhCyfW3f3yRw49WCSJfm5TbaJR4TbkFJ4cA3qX9Y9ElgNUY2Vhbw7eMr6e+28l/in3a7XNRf4tpa71fEtZ9FHtLJWJtXjo85W6K+QNRRg+NtDnQUuW9gNMOR90J4WCkqgtPFYuWtIeS8Yj3rOzJKbtvzNQgCFFSlM1eTBTdYIog3IbsXJnT7PAJb8lgwLURWZueCZXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z4kpBbYGhlIQ6MsPQqx63VN33wUw1oJQbfvhhHqxsZk=; b=jViknBfuIbmCapbZEKhOeAT9rwM0TtPixQ62LUO9joRpDJLcdHkPzynVTT4yn+/rYmFGBa7eKiuFpAwYaG1z3Pz/+MRxCrShxpA6I8byp3O5vTeZAMjx806xt4w7UPdSUc4FuqA/CQWaHDXyKPloON+85jhtRS6gpVrFB6/5KiA= Received: from SA0PR11CA0029.namprd11.prod.outlook.com (2603:10b6:806:d3::34) by DM6PR02MB4810.namprd02.prod.outlook.com (2603:10b6:5:fb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.18; Wed, 9 Sep 2020 19:03:24 +0000 Received: from SN1NAM02FT009.eop-nam02.prod.protection.outlook.com (2603:10b6:806:d3:cafe::bb) by SA0PR11CA0029.outlook.office365.com (2603:10b6:806:d3::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Wed, 9 Sep 2020 19:03:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT009.mail.protection.outlook.com (10.152.73.32) with Microsoft SMTP Server id 15.20.3348.17 via Frontend Transport; Wed, 9 Sep 2020 19:03:23 +0000 Received: from [149.199.38.66] (port=46072 helo=smtp.xilinx.com) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1kG5N5-0000Js-GO; Wed, 09 Sep 2020 12:03:07 -0700 Received: from [127.0.0.1] (helo=localhost) by smtp.xilinx.com with smtp (Exim 4.63) (envelope-from ) id 1kG5NL-0006oT-KG; Wed, 09 Sep 2020 12:03:23 -0700 Received: from [172.23.64.106] (helo=xhdvnc125.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1kG5NC-0006m2-74; Wed, 09 Sep 2020 12:03:14 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id 68C371210F9; Thu, 10 Sep 2020 00:33:13 +0530 (IST) From: Manish Narani To: gregkh@linuxfoundation.org, robh+dt@kernel.org, michal.simek@xilinx.com, balbi@kernel.org, p.zabel@pengutronix.de Subject: [PATCH v2 0/2] Add a separate DWC3 OF driver for Xilinx platforms Date: Thu, 10 Sep 2020 00:33:03 +0530 Message-Id: <1599678185-119412-1-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 03e79000-94ec-46e6-30ca-08d854f306bc X-MS-TrafficTypeDiagnostic: DM6PR02MB4810: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IGNyOlukbEDeSHgezOBPwmVx3X0nFLOS1+hrv8KiUC0nJSfpdn0aXiiDmrbWrWRXoyFwMAP+gK1U5lmmK28OVoCRzl8OLgXyQ9Hc6246e1JHJR4GC0QuqTbRQoQeAvKcEqNS3L16p3aGutYUC39+1Ipy7P0d9h7JJidlrv6IwUzF7BM0iCFWY8NpSkfEv2PM8MsRMvCQlkuPrK+jl8gmC139jc8b7lxEha0V5J9snvsUMSZn66EkhlqidJPMHg/z75Ob6xUwefn/89c2JIBpdGW9ZU/TpIMx1o+R+heMdpsqxJKv89IDFMi327IeCtZmZ4S4nPD5hxf0WAGIcYmQmUpvjyXj7KOqQW7myjHYbqdYxJubJWrOc3Phz9xd1xoNxRGLRAL6tLI2XdJwHGNCXQ== X-Forefront-Antispam-Report: CIP:149.199.60.83; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapsmtpgw01; PTR:unknown-60-83.xilinx.com; CAT:NONE; SFS:(39860400002)(136003)(396003)(376002)(346002)(46966005)(47076004)(36756003)(356005)(6266002)(426003)(4744005)(5660300002)(107886003)(44832011)(2616005)(8676002)(6666004)(316002)(8936002)(42186006)(336012)(26005)(478600001)(186003)(2906002)(4326008)(81166007)(82310400003)(83380400001)(70206006)(82740400003)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2020 19:03:23.9467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 03e79000-94ec-46e6-30ca-08d854f306bc X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT009.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4810 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200909_150329_522764_B2E886A4 X-CRM114-Status: GOOD ( 12.39 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Manish Narani , git@xilinx.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch series documents the Xilinx Versal DWC3 controller. This also adds a new Xilinx specific driver for adding new features in the future. Changes in v2: - Addressed review comments from v1 - merged normal and runtime suspend resume functions as they are same - Improved description of some register operations to avoid confusion - Updated commit log for patch 2/2 for better clarity. Manish Narani (2): dt-bindings: usb: dwc3-xilinx: Add documentation for Versal DWC3 Controller usb: dwc3: Add driver for Xilinx platforms .../devicetree/bindings/usb/dwc3-xilinx.txt | 20 +- drivers/usb/dwc3/Kconfig | 9 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-of-simple.c | 1 - drivers/usb/dwc3/dwc3-xilinx.c | 334 ++++++++++++++++++ 5 files changed, 362 insertions(+), 3 deletions(-) create mode 100644 drivers/usb/dwc3/dwc3-xilinx.c