From patchwork Mon Jan 16 15:19:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9EC3C46467 for ; Mon, 16 Jan 2023 15:22:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232471AbjAPPWu (ORCPT ); Mon, 16 Jan 2023 10:22:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbjAPPVx (ORCPT ); Mon, 16 Jan 2023 10:21:53 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on20619.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::619]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E326410D7; Mon, 16 Jan 2023 07:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IFVGAb14avAKahYDVS61CDX6EAkXLG512440SF5/h6v7EqThdJUNgv99QAElfk47P+KCbyr0fuu1cdT6K7LDs6eJw4JVNNs5JVzmrWo8RP6FP1GOh9z8UPDzTXFZL36FEOPJP5lSYjXGHC4jfPOIhIRFRnQ1NPLk06u1zVoQTnDU1VFgwid2KvUTMyFnto1CHGSucIQ2kRqmIakDTNDAQXs9h/WLh1+bSQIWZe2SCXxrUAZSN3KFSwvhHWyvRsIVVbyVbRAmc70mfEj7UFUo6Z+gtrKlR5K5H7D714sajiX+QJAoYKmR2Z/p6T2Vtzm1zWNxLeCwJMs6cIxlDfj2hQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JSPPBN8w2XkJ8uJNXo7RTJpGpJBEdM6PiZACsiwrjQg=; b=UnhCFpqn5Ugr7CeyrK1yfOIvhVMpRCV7SIZEidKaT406worVaNkIWzdoXvt4Kw0sMS9Q4c9nFgABVJXGx9D4L7lQA9CyE3TKxZwpHiyQrSwBAif0PcKq5Mf39ebgspNM10S590wpaiRHYrgYpl8aYai/EHWx15tLYv5sz/ymtwXS5mF4rwaY53qTIB3k7wMkZptEqqfkJuWmgspphS69ZZJ/ykayH/DgsVVFA0HTY0k8kmmkEQk0IuIheJGUWaZBOrLmfuld7FFACQyn1ehbaHn23mleeQ1HGQl3BMeAWSMOAUhh/MJdGL+VtKhfGNWbDDMgCaODCUWXeVk2HzIOEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JSPPBN8w2XkJ8uJNXo7RTJpGpJBEdM6PiZACsiwrjQg=; b=fFqDDdYo912klypbityb47iVz2+m8PSoYpiU2e2MldaGOMRVDvgN8FSEO3is7sG6/YQGrG68nJcOSVo/ffdFwm6XmfRw2+L9PNM5qjorX8mtCq1vWqSRaacyP1XCd2DMpmS4eDO3H+ggolLdgN8awveBJP4yTNOMWnuhCgHI3GleWIjA8IP1F+1SiSXj27kcJ4RP48IF9SYgf4bT5RBTa09T3baczWVa1gYsN9tKkB73XeO8g099fKm3DuelBx7L2YnqhKpWiBPyICpjXfCJC6sOH1+VRiGi8mMb0nB88RfKNI/X7Lm4xGYKyvvne0yYQvNF91qjX2BYG1K9gfsWlw== Received: from DM5PR08CA0055.namprd08.prod.outlook.com (2603:10b6:4:60::44) by PH8PR12MB6962.namprd12.prod.outlook.com (2603:10b6:510:1bd::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.22; Mon, 16 Jan 2023 15:19:32 +0000 Received: from DM6NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:4:60:cafe::28) by DM5PR08CA0055.outlook.office365.com (2603:10b6:4:60::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:19:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DM6NAM11FT042.mail.protection.outlook.com (10.13.173.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:19:32 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:29 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:29 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:19:27 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Jon Hunter Subject: [RESEND PATCH V4 1/5] dt-bindings: usb: tegra-xudc: Add dma-coherent for Tegra194 Date: Mon, 16 Jan 2023 15:19:13 +0000 Message-ID: <20230116151917.94193-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116151917.94193-1-jonathanh@nvidia.com> References: <20230116151917.94193-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT042:EE_|PH8PR12MB6962:EE_ X-MS-Office365-Filtering-Correlation-Id: 918c9a6c-a2d2-4ab5-42e0-08daf7d511ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ff4cbFyHDS6oFudkxB+9MQqVlJOs/ZAF2Tf8vCY0MAbSfD3XPrVEJJS4X7PvxrjrcCd9jhGaEggYYceuCQ58Jp41DB6e//N8WmuIR4ZzSBTdWkERStztpafZYkobWXBMX0HZ+Afg2ih7yKgWfwlQBaFPn69tEsJPn5TnaJdWfK3MEJSPho4WK+oNbiELdWUjzX+FiYC/UfkoLI2ZCjtyjkBED0wOLu60j3nKRlaaJKVi/+sJOs1BtqIIz0Ge8+OltCaHnX4++k9IykAFW8euFejR+ExWStJKAiKCOl3uAEYyKEsU8plfJqej8FQ60sjs7tBOjHICnQ9dyx5XIWYZeRq3e/YaKzbS+C/3UWdtZU7wLXWwWP/v/9NA76T32CWHgJYk9EVtaJ5Ogx42KQx3pQ4TnPJ3lEfrsNXEL4Lr97fxLdXkvs/IZzk5vGQdK2toLWCe6OM2YuKZBNgvlup25U493il6Km5yhGKjjPNy2pKI3QYcwVydr5zBXdwYc4xfuOwVzAaYWYJ7LPkL+LjUD79x8WMpnHr+1vLLYVC0d7+YHLKRFUC3gUoZxziK7lXCFPKbn72fLwnT3VpvPmk9lTRg3MTx7PmrDoyoZ4g/ffu6eDEB0qcf+eQfAcVgqOo9SEZw5xdvhrMmO9+FrPZdFnInd3AuWVUbUcRR/8Qhbg+RXo1vU/FHpLsbu5hpHMWs27KUPHTy2RPhSQliEjyOlw== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(451199015)(40470700004)(46966006)(36840700001)(54906003)(110136005)(4326008)(36756003)(41300700001)(316002)(70206006)(70586007)(86362001)(83380400001)(336012)(6666004)(426003)(36860700001)(7636003)(356005)(47076005)(40480700001)(478600001)(107886003)(8676002)(40460700003)(1076003)(7696005)(2616005)(82310400005)(26005)(186003)(2906002)(8936002)(82740400003)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:19:32.1380 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 918c9a6c-a2d2-4ab5-42e0-08daf7d511ac X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6962 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org DMA operations for XUSB device controller are coherent for Tegra194 and so update the device-tree binding to add this property. Fixes: 394b012a422d ("dt-bindings: usb: tegra-xudc: Add Tegra194 XUSB controller support") Signed-off-by: Jon Hunter --- V4: This is new in this version .../devicetree/bindings/usb/nvidia,tegra-xudc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml b/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml index f6cb19efd98b..4ef88d38fa3a 100644 --- a/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml +++ b/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml @@ -112,6 +112,8 @@ properties: hvdd-usb-supply: description: USB controller power supply. Must supply 3.3 V. + dma-coherent: true + required: - compatible - reg @@ -164,6 +166,16 @@ allOf: clock-names: maxItems: 4 + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra194-xudc + then: + required: + - dma-coherent + additionalProperties: false examples: From patchwork Mon Jan 16 15:19:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DED6EC678D8 for ; Mon, 16 Jan 2023 15:22:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232457AbjAPPWo (ORCPT ); Mon, 16 Jan 2023 10:22:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231570AbjAPPVy (ORCPT ); Mon, 16 Jan 2023 10:21:54 -0500 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2088.outbound.protection.outlook.com [40.107.244.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF8C10DB; Mon, 16 Jan 2023 07:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TzIc8yXPiDIDtWa2aN/+4VubVRtxQ4RuBBVVYkHEvNCcllYEv1/b4ytuQRaeMklCdwYO+KDmx/DtV177F4Ct5YLR4zIYjxcECbLcxkx5/u2UpAE73i+YE9nswjM/seXEBc7jNpF5xdrlkP2DlS3Kr7XtaOt2IFecOkZSEYrnxJWpkbsSZMhjudAZegpa9K1ZM5iuRNoimxZq6YzTQVOzdyfJRCsFm34US4ag/llBvYCLhdXkRGbRrVlQchFFK9wX616nWy6zhEQTQssgeKxone54At6qRuNYVDwCAUgP+Tqitp1Uh4OEcI1DGbNgNYa9qRileMjShucsTdIPn0XHPA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Qg/q+9j0qYPEI25pFHLS+EV8tL4dggbI4Kltq5Yuw0k=; b=F0PkGJVeCdT/Mgj6Wwkvc7FKn68+y5OLssDfTuQyKZdCg594dm/WNZ7OfKH02rKDZ8M8w1S8fEy+HjV86fvnB/EEtzrn9vIW7J7szTuKVtWdNWpebgrlNSPHoGIvp1iexbEm1P9Y9C5Nuhh0+tsO0q3GVfZFf9zJzkIbX5A9lNMmAj5O703PfB6vnE4fc0RdIKvwLKySzU/TuZV1zIlh33OdPYembMQEH/Z/xXzMTMT75ZOO4ZYvTO+cN0smupRLVVDZDMLpFHMZ+YdVc1AWNiWlvtE7DNqMv6Y+4QASeAZhmr0T5vPs0x3HYwLAHT+yoqg/HZudl2oxg9Hvhglrlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qg/q+9j0qYPEI25pFHLS+EV8tL4dggbI4Kltq5Yuw0k=; b=FQkG5XAfErvkwJqCQSNM3LfAevNtz2Gyj9wokziIijGPiz20jTzuesC3JP/6l53RJ6ZRzkUk6N+aGll6ff+qqaX4Gq/jHLqy3luN7c/JpXU+sykMvcklZE9RYsSLZJ2IDal8qGTroQiwCfZxKZbs0/feW4FfShYqoWRRYR5WWlq6iAYQKabIjrBXJRTYo8g1AZrfSEVQhbvocvIINxThiGsNvSY1CsrsOjy51ghRkYiYBV/wYZL8wXM36MkRt4c6LLqGuRt9HvwgkFG3bh9r1QsjV5ZO3w3UhKPN7jW379Rw3eijfyE11nKOA+b1o1xevVdUtPGDbcocwVEhjc05Ag== Received: from DM5PR08CA0026.namprd08.prod.outlook.com (2603:10b6:4:60::15) by CY8PR12MB8314.namprd12.prod.outlook.com (2603:10b6:930:7b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Mon, 16 Jan 2023 15:19:38 +0000 Received: from DM6NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:4:60:cafe::17) by DM5PR08CA0026.outlook.office365.com (2603:10b6:4:60::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:19:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DM6NAM11FT042.mail.protection.outlook.com (10.13.173.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:19:38 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:32 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:32 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:19:30 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Jon Hunter Subject: [RESEND PATCH V4 2/5] arm64: tegra: Add dma-coherent property for Tegra194 XUDC Date: Mon, 16 Jan 2023 15:19:14 +0000 Message-ID: <20230116151917.94193-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116151917.94193-1-jonathanh@nvidia.com> References: <20230116151917.94193-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT042:EE_|CY8PR12MB8314:EE_ X-MS-Office365-Filtering-Correlation-Id: 06e94b4f-d858-41ca-084e-08daf7d5152f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: whR2HAfmlY6NtfAsIgkLO1Cs/yAr5hzHVxj6+IuCJpfVG2u7NS7s2A39BSv+ag15GwY/xj8bKF50Lcqj1sNxs0muMLGeL1eOd3aQ0FZfHEFUS1DaIvNay0rHsUvKfjDK543hBKc2fNf+my9//evWeZwrxVDNtMnazJ7ulAhemASs7vo/xX0335yjHjTZTP0bTcv8RPulAHxrifBNxdcyX2FkLk/nOEwlKroeAAiM0xn1sANWEWviH84cTsRMaT7Pav1UQ5umRInWbnUcka9rZqU6MFAQ6GVl4QCdIduMqD8pN9Rq5cHyhUl++g/fdbBvzTmHqPplSQIrzljfUOEEj15+LRHvM94LFsbOCJ8aXIdlQ1woKDvEVIx3vdsdSb/YoOE0J4kzKs9VK7pETcu0RV39qpLt4P6S/5WWcNbrWBZLIAMr+dGXAKXbGGQYP7oBGYsszhGh6m+YaB0coxNLBB/mRlJMvBcGqPUXtOLeuGyiFsSVLodmrNOa3oYzXe0ZxORu4MuqmhvGycnQq/Jo3VCc6lF+MlYPx4Y4c6UPZC6Tgx9cfCVmT3N+rO0lPNCY4qdsxI+VYyoJtjfi1CxSLDgr3siP5ZOhO8xR2Q2Ub0ldGBR5AGvCIaij+0C7CQZ63fFp/IzaFmU2yGCMDKT4Z/GcXMd+wijUzGCD9y6rrUhLx83jamaUM8WWF8Qu9mpmCHsrtcw+wlKFteIC9AEI8g== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(396003)(136003)(376002)(451199015)(36840700001)(46966006)(40470700004)(5660300002)(41300700001)(8936002)(7636003)(83380400001)(86362001)(426003)(82310400005)(36756003)(40460700003)(356005)(2906002)(82740400003)(40480700001)(4744005)(47076005)(36860700001)(26005)(478600001)(186003)(7696005)(70206006)(4326008)(336012)(8676002)(107886003)(316002)(110136005)(54906003)(1076003)(2616005)(6666004)(70586007);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:19:38.0438 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06e94b4f-d858-41ca-084e-08daf7d5152f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8314 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org DMA operations for XUSB device controller (XUDC) are coherent for Tegra194 and so add the 'dma-coherent' property for this device. Fixes: bc8788b2f3a0 ("arm64: tegra: Add XUDC node on Tegra194") Signed-off-by: Jon Hunter --- V4: This is new in this version arch/arm64/boot/dts/nvidia/tegra194.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index 4afcbd60e144..99eeba8de6bd 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -1291,6 +1291,7 @@ usb@3550000 { <&bpmp TEGRA194_POWER_DOMAIN_XUSBA>; power-domain-names = "dev", "ss"; nvidia,xusb-padctl = <&xusb_padctl>; + dma-coherent; status = "disabled"; }; From patchwork Mon Jan 16 15:19:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F37CC678DD for ; Mon, 16 Jan 2023 15:22:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231410AbjAPPWp (ORCPT ); Mon, 16 Jan 2023 10:22:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231421AbjAPPV6 (ORCPT ); Mon, 16 Jan 2023 10:21:58 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2043.outbound.protection.outlook.com [40.107.92.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AADCD10E1; Mon, 16 Jan 2023 07:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B+JlEJmldMohMzCP1j1LFqBdbqBYUJajEqLMoU4EwT3RKMxV3YpjauRftLnQ7UMIl0SjnYmzfwrEgcZCodqnOlUTXACzkh5dm5xf9+8Xu3Gq+/PU2mjGZsOWMut9rQeekbdmUjcjiccZPqj6eaeTUaDX5TQSLxRgBFc/rAuxFmoGsWzKRF/CMHgDUX24SxsESCp8JE35FRTBj7q/AXYYWCMoQPwvp+IO7dcaso6FIOQ9D1C4oWV3cLeJoQusX8I7HuIWks5Emz1GQEpwRBSoU6HEnFIJe7PzZ9llcEQz1DzfaVAKyKLZejxjm6YNMA40a9QFjeW2RMi5+7Tv4u4FlQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i11yGm/GqAvTFOs/abNIwa/Htf082/AZA7ZJ41d1ALs=; b=Avv4es5yfo1XFrezpA3Tryj/DfioXzMCm34yd4nFKxbeyQYhISzQJ9KmbipO+LybXq3SLV6c0UiTsdZ9nvcVvZuWjXY098aJW+b4eoox7ao2GJs5/M0o4eCLGJV1ZzXgQ5VPpXc0JWjXoDwqd0/djkKWhQ5trL9rQ0SQJr2dwWQ3aw3ODNOhdJwKLMcBF1WFLBsTL73e6u/XhE9Zy444n6+gEQ8syB8uXyT8OqT629t4S4P9r4WjrbAcZnxY8pNriDXrc1yJBOfCo03IfjDM4DMpbqrcfrSgpp69pk2H/yhOANWCT3RZVjH4bCfVJGN+qq3M/+3buF0cM03w3FU4JQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i11yGm/GqAvTFOs/abNIwa/Htf082/AZA7ZJ41d1ALs=; b=j3YDKmMdj9TyUzS3DoulDqfRZpCV0Cjav7FDt8A9K+NKc3woTOX/gcvjIXn4eDz+GC1lz+074YEwNb7Oc+E/UnzrANksQCFsS5uMBOReWeSZtSMUl0ERdEMzNKuo48smTqxVu3NKW6ElcxWzbhbyZ/OYdeVHBaZpKyL0CMiC87y2dYB4IcrrEW8yoq0oeeN7Lhh47Ld40z1iPD9rKsnx9ugvWUFFZ8SjEg+5am86y9b0HZIJ+wjFLv32IwncZj50vP4pjYNZAPKzkIVoMPaJjpltjEGxkU3Ga+2bjxo5Xrz7vipjPwvxu4Iuebo6f/86Yxiw/5wyso1kk472WfQ+jg== Received: from DM5PR08CA0051.namprd08.prod.outlook.com (2603:10b6:4:60::40) by MN0PR12MB6272.namprd12.prod.outlook.com (2603:10b6:208:3c0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 15:19:41 +0000 Received: from DM6NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:4:60:cafe::e6) by DM5PR08CA0051.outlook.office365.com (2603:10b6:4:60::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:19:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DM6NAM11FT042.mail.protection.outlook.com (10.13.173.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:19:41 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:35 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:35 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:19:32 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Wayne Chang , Jon Hunter Subject: [RESEND PATCH V4 3/5] dt-bindings: usb: tegra-xudc: Add Tegra234 XUDC support Date: Mon, 16 Jan 2023 15:19:15 +0000 Message-ID: <20230116151917.94193-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116151917.94193-1-jonathanh@nvidia.com> References: <20230116151917.94193-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT042:EE_|MN0PR12MB6272:EE_ X-MS-Office365-Filtering-Correlation-Id: 29fc4669-46ac-445d-4641-08daf7d5175f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NUhKTl5Xte+t0A8RYHDe6ol2eZfYDUbsiPamZjVLOR2XURS0e7jEU8ekRcBYOxd6SwB4PCxrQKBxI4i6eMsy8LBaY5SUYwQT8D7owOLztoUL8QuyCDLGJy9rY+wpk+EO1AmMKPoS2agqLOv4pXk9Rt6wQFY1OSnDw9T0BBA441l4dTl2ZeyXeTIwcbCh/6zXvYRXrPEhWMDYQEc3hvdaTa+OBO6TpR3OtmjQy28YZYYf54Ea8MtNHtp4gKWqOw4RLJxGkTZuhziKRUKYM56T0R8CndOeJ8I/q9jGoD20u/cijdDjiOd4g3S25e3Eu9SXv/glCvO+sQJVHr73nbqQ/R4Puk/++evt2I2gspUKG0lv7mmnxHdgl1Mm9lDYA0ocWfmk4+fNLnEv/dW9Z7RpVXrWtC7CDRytd5fUKfXi2w7dcbzYL6fl+z9stIvFN4AaBeh1oPbNtKyjRhcq3x+7vmuJqz01wrCXzed4Jxt6WzwtG2zlxxcnPdejuD/qRLqnRiVlDA2SrPjiixVDeu5wAIkaAIaLwa1/H/c+zCV7RkIncv8JtpOJkpV8T8+USjhr1hKqx3l3pHsYfigG373PUoEWJUEUOjzF7RRrn+/4vj42e6l43F1iObFLrNSLJrlmmHuNCb8KTdQsXwmxFdHQYT7QLczTpKYPguu4MH2XKPKfuMYB+2vrwD+BGJEZ1OSW/jeN7edLAKoWEMHBE7DfLA== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(396003)(136003)(346002)(451199015)(36840700001)(46966006)(40470700004)(36860700001)(7696005)(6666004)(107886003)(2906002)(86362001)(36756003)(7636003)(8936002)(54906003)(5660300002)(70586007)(4326008)(8676002)(70206006)(40460700003)(316002)(40480700001)(82740400003)(110136005)(82310400005)(2616005)(1076003)(426003)(336012)(478600001)(47076005)(356005)(41300700001)(26005)(186003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:19:41.7154 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29fc4669-46ac-445d-4641-08daf7d5175f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6272 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang Extend the Tegra XUSB controller device (XUDC) tree binding with Tegra234 support. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter Acked-by: Krzysztof Kozlowski --- V3 -> V4: added 'dma-coherent' for Tegra234 V2 -> V3: nothing has changed V1 -> V2: address the issue on phy-names property Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml b/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml index 4ef88d38fa3a..e638f77658fc 100644 --- a/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml +++ b/Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml @@ -22,6 +22,7 @@ properties: - nvidia,tegra210-xudc # For Tegra210 - nvidia,tegra186-xudc # For Tegra186 - nvidia,tegra194-xudc # For Tegra194 + - nvidia,tegra234-xudc # For Tegra234 reg: minItems: 2 @@ -155,6 +156,7 @@ allOf: enum: - nvidia,tegra186-xudc - nvidia,tegra194-xudc + - nvidia,tegra234-xudc then: properties: reg: @@ -172,6 +174,7 @@ allOf: contains: enum: - nvidia,tegra194-xudc + - nvidia,tegra234-xudc then: required: - dma-coherent From patchwork Mon Jan 16 15:19:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103382 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5540BC46467 for ; Mon, 16 Jan 2023 15:22:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231361AbjAPPWs (ORCPT ); Mon, 16 Jan 2023 10:22:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbjAPPWA (ORCPT ); Mon, 16 Jan 2023 10:22:00 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2044.outbound.protection.outlook.com [40.107.92.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1634C1C; Mon, 16 Jan 2023 07:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F59GhJndZkJEj+1nN9nZDHhjTeCIVgBb5+Hj+1EFPg9GPiCcJ4eZ3l+AFHLDjWt2Z0h4t9lGztb1p3kD99LQr/ZwJF8h1Ti2WYPwPQbONNqfwQZUtbW9MOYE/aM7gj59GMM0sgnmK2mcHwqDCTViGUywQ/x8f61bgXR43UgpzHEJoQhZpG9FisKVWqra1tUmyRPJVgj2BnmTw4J9Z4O+HDkb+fRzCENdtaU74T/hbN/eaL4StBjH1T1B8msQDZKS5iAsc8gqfRIF4Y0H///S804TYKMwWBNkaIfZ2qiT/hUGS8REpvYGBMYIFd7OeP8qZbsHq6d5XkXrw2MlGPwD7Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6wzVpI3jrPa3M81Cy968FcWv0NJdn9w7ErG4UubBrYw=; b=mzLKT2rG4F5xpo5OE4gPQgJWRJpAsDStKwvJKrGJfM9owG6XXpcDimc+ZD3w6gtkDnA8svR7shI9P+p1TtZZvEoeNc5qSP8Ggi+9Lu0iHfDfB4IRfh1lfq9QzAck75bS9q7HOJpVk5JNNKF0afteJEr/MeYoq5r75w0iO4UZ9Ti7hm34YAIJ09ylKLtbnYqlh65WrrbVIj08s8TpgiHuVLl34uLlQoe7hdFARoaezbhVEB/PyYNn3lTkO9fFeGMCCS8OUk4laIgaZuYENtf/hjc27s0uc/O8fuSx8DckIjA3OaZgeiNPy0l/P6amqXavJRYmhVCgusl3AYe8oaz9Sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6wzVpI3jrPa3M81Cy968FcWv0NJdn9w7ErG4UubBrYw=; b=VdZZy/lsvLOqEMOiSukO+89h4dypZ9j+7Ivzd1C52u3X+u2TxbRVU+jrzdTsp0R3VyP+p+wCwe0Gmf3eEsKLVZD/IB8AesRmDBVW5rIkDkYGGuttgAvNdCiLjeB+NHtVDgKN9a4s9Z8OEF8E22RF6WeFnGe+pm7WvAqqzAetchsDwMmX/dkQRgzNVyNGgqShP09f5scGiCaU1jrNjGJC6m9GyvTEqGywopvW4aNMBWD7zxDASzkOrro+WAfho7EZUn+kLANw5H8cXiWfFzo1fFxMRlzir3cgusIbP1uBExLwvZoH9TP+yxe+TCiVdhVqG/Rkx0D4wzRCituo6F2g+w== Received: from DM5PR08CA0030.namprd08.prod.outlook.com (2603:10b6:4:60::19) by SA0PR12MB7075.namprd12.prod.outlook.com (2603:10b6:806:2d5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 15:19:45 +0000 Received: from DM6NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:4:60:cafe::6f) by DM5PR08CA0030.outlook.office365.com (2603:10b6:4:60::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:19:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DM6NAM11FT042.mail.protection.outlook.com (10.13.173.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:19:44 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:38 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:37 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:19:35 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Sing-Han Chen , "Wayne Chang" , Jon Hunter Subject: [RESEND PATCH V4 4/5] usb: gadget: tegra-xudc: Add Tegra234 support Date: Mon, 16 Jan 2023 15:19:16 +0000 Message-ID: <20230116151917.94193-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116151917.94193-1-jonathanh@nvidia.com> References: <20230116151917.94193-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT042:EE_|SA0PR12MB7075:EE_ X-MS-Office365-Filtering-Correlation-Id: 54627baf-fdd9-4d34-ed37-08daf7d51934 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rxalbaJLofiTsPk1t+zDV4gStGYocHk9onvWgZ5KLouOid2kjqWVP226q2RNpgDHBPeCzzjbElOeiFllOyXTqhp1ItYRlznxKC5+N9rAxO15XlWk8SyVFZKqSjAKVFlpefU89ayyHB92JSccOwppPTy8gC26HAvCf7R5STAJTZpYxnb/njM2HBsa/AExAP1/OnApoiOMIuj7/wNzqWaOl5Dmo130NzXFxMZ3U12Vz0RzrRo1xvuNA0OO4StSXqyNZcwDyyocYQfJHd6DwyJ1oI6SlWOFhnlzhet6bNve6p+XI80UmUWjIQk6auR/bmzsyQzQOdGKHp88FRxf3e864Ikh3ZXa5PdcDVVapkNsNegTO4nVEp7bRrjwbZynyJZ5SMOoJB2h7SFWV1ypiNYJ7Q17CXZryCOq1YbjkjNxJWHUKEUGyc+wIDo2u7n3/XkNmF60Eato0pAy92srP9vlWfmJPIajbKneTu+KFo8Oy2RSxnnN3h9a0s2R6fEBWSlI3Ou3ZDzlbWSv/pOMETXasfMuwHCdxo7slDsfdn5u0tMawUXqI/PShzdQj8Isw6491jRvaY5re2tp/qMYERLN/kl49o7Y03cK64HeQAL2DAgiP3t9pOmLpvo7O7IE5XPbjAnpqvAhdNY8eD7gkjFVekB6cWWhniZSIDTke89NBl9oPPJ8kxF9EQ0gij+HfUtlTGgBdJ7zVhyR1miDuYCPmA== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(376002)(39860400002)(346002)(451199015)(46966006)(36840700001)(40470700004)(86362001)(36756003)(82310400005)(186003)(4326008)(8676002)(26005)(70206006)(426003)(70586007)(2616005)(47076005)(41300700001)(316002)(40480700001)(1076003)(7696005)(110136005)(54906003)(6666004)(478600001)(40460700003)(2906002)(7636003)(356005)(82740400003)(83380400001)(36860700001)(107886003)(5660300002)(8936002)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:19:44.7933 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54627baf-fdd9-4d34-ed37-08daf7d51934 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7075 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Sing-Han Chen This commit adds support for XUSB device mode controller support on Tegra234 SoC. This is very similar to the existing Tegra194 XUDC. Signed-off-by: Sing-Han Chen Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V1 -> V4: nothing has changed drivers/usb/gadget/udc/tegra-xudc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c index 76919d7570d2..ff697190469b 100644 --- a/drivers/usb/gadget/udc/tegra-xudc.c +++ b/drivers/usb/gadget/udc/tegra-xudc.c @@ -3660,6 +3660,19 @@ static struct tegra_xudc_soc tegra194_xudc_soc_data = { .has_ipfs = false, }; +static struct tegra_xudc_soc tegra234_xudc_soc_data = { + .clock_names = tegra186_xudc_clock_names, + .num_clks = ARRAY_SIZE(tegra186_xudc_clock_names), + .num_phys = 4, + .u1_enable = true, + .u2_enable = true, + .lpm_enable = true, + .invalid_seq_num = false, + .pls_quirk = false, + .port_reset_quirk = false, + .has_ipfs = false, +}; + static const struct of_device_id tegra_xudc_of_match[] = { { .compatible = "nvidia,tegra210-xudc", @@ -3673,6 +3686,10 @@ static const struct of_device_id tegra_xudc_of_match[] = { .compatible = "nvidia,tegra194-xudc", .data = &tegra194_xudc_soc_data }, + { + .compatible = "nvidia,tegra234-xudc", + .data = &tegra234_xudc_soc_data + }, { } }; MODULE_DEVICE_TABLE(of, tegra_xudc_of_match); From patchwork Mon Jan 16 15:19:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30D19C677F1 for ; Mon, 16 Jan 2023 15:23:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231579AbjAPPW6 (ORCPT ); Mon, 16 Jan 2023 10:22:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232058AbjAPPWM (ORCPT ); Mon, 16 Jan 2023 10:22:12 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2065.outbound.protection.outlook.com [40.107.223.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B2CA55B4; Mon, 16 Jan 2023 07:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RU6YfTxBQfzQhOjByXQtna/KV7OjzOp5yYKWw5xgnbKMGOrC3lHDH0MQiokt3b0lwM/zOjc33D229mab/W6H3il4uRewOH4JgRnBxA/G83qxTtUx5xBBIXox0ao2IrpErM+ys3lUlpj/U4cDsZSTSk+uwTeYkFsMARmGLC7wglGsaf48MPsFA5Oe/lLkFVzAfCYoCrJLcK/rZKdrGtO0U2j5nfv7TSAx8NzFvcBGqaaBJze3VpXnUasdefVlWh8mIEKGKRxKf4AzEGSP1kHxG1a6cqdGdKnQBWQ8XsZHPZqwWKVmfT0WHZB2PQV+nSV6UgdmqI31fYtKn6FUJlPUVQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SyKt1NzrIMfq1hyjPp9yxIo6IRkqyvnZzbQYJVs8BGU=; b=SXJoyuDRLczdZdN9EzKELRHP/dQYXpjQV1Q1Q4O8OHQ4UbUy28is2EqCNW9zzWOQ+T2dCd4XkYAGV8ykC1i/YmxIjLythi5jAxNJAa+sV6h0OEwjbQkkVR1CDsPeiJY9Qu+VpXGKdv68k6GNavaMeuIaOqQ4nD7LRjirTQ+Tzh+AkunyEFlu4ehJFbEGefMu/FM2FkRh4uGLiEtfoR4i9WQx5mWT4QapvWjv6gDF+pLj0KtohelpdWgcjS8jmmPjkYrle7fvNGOCahYfA1s62z9QCo9gYo5nsFEmAdRaxp5dK9OJxw/LOajCUOvPsKpfUyVfQQ/0Vj/zbdcWc2BvWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SyKt1NzrIMfq1hyjPp9yxIo6IRkqyvnZzbQYJVs8BGU=; b=twTKdm5dP2IRCl1ye4skma6mHaJ3aNu03EATBiYSXnmXf2ZChiPhVelH6mAlLFXnXnX/SHXAYO8W3YB3aZhBPiTzbf8YSpVbWiQi0qvnjHF6o7Wn7mF6NpDhJ5NTogjs5IsCU6r2eDBQwgulXFzRAzOcRiZ0VgXSyFkGHu1ViPVH6TCkGBE8ERuZvnJjrS1KZhNhTOCfTAK6yQpY1sF8XUWOxqC5xRj26r734dFS/Uoeta9sNgg4Eu4uorMy803OGPM3LwpPVamiPsK0uuppdj639C5jaENDNYXoZjW1wsikk9CLQIN9powyBBR2sDlgTwskenpZzF92K2zhZZJGYw== Received: from MW4PR04CA0142.namprd04.prod.outlook.com (2603:10b6:303:84::27) by IA1PR12MB6209.namprd12.prod.outlook.com (2603:10b6:208:3e7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 15:19:57 +0000 Received: from CO1NAM11FT046.eop-nam11.prod.protection.outlook.com (2603:10b6:303:84:cafe::fb) by MW4PR04CA0142.outlook.office365.com (2603:10b6:303:84::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:19:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1NAM11FT046.mail.protection.outlook.com (10.13.174.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:19:57 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:40 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:19:40 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:19:38 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Jon Hunter Subject: [RESEND PATCH V4 5/5] arm64: tegra: Populate the XUDC node for Tegra234 Date: Mon, 16 Jan 2023 15:19:17 +0000 Message-ID: <20230116151917.94193-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116151917.94193-1-jonathanh@nvidia.com> References: <20230116151917.94193-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT046:EE_|IA1PR12MB6209:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c38b4ce-3b96-4f6e-2a0a-08daf7d520a9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A5W7QWD7WdRMhlUPjYy/3bTiajH94jc8m/RPTg8N0RAL7KfLbtjXH2H7oMESxj0AVFPQS8naeIYFicCehmWpXeMuVJNrrCpN1BRJtu5osLTJ6qqUegfi7esyxwRsfVDQ1/PsnWQcLl0NyV5KoiRLLa/ZWZMMCESuAjnOeVEYKb7RzO1w5VlmdElUBdFdR/6rFRGmVWfSEPS3hWYxuG8uHdN18ZwcZiAZTVSt1QORdbZNZYOKgVR3Cd9U4EQuNC8jFJWirrX0lr8f10j494B512NLna6oTeByEsjr8IgyN8cSBXsByBLlNLe5XZ/w0i6QPYPXSfeK04cXJWSXsmZ1SYldV2TO/gUGHxKqJivsOVORimXRZQcJC+AYn294Nr6e/dCVesV8KmE3ZCb1BLOkL6e2REmXo5a6aeNQE5goGe7H/U8fNKKsq/1w2hPv2tybLcz4W4yQzh4bWDO1x689RhNcmPkeu+lqISDx5Oauf2AZBLaMNiEtSdw0JILzG7fENMu4g4Q9c5LxZT/49yW+tGpDWfTVbRvlTPwbP83alab9RxguZ+AZ8tbQRUap+IxZk7FzPZnPzW46TmH23ldaobYL5cpLoa/61FwwSe0ICbB/zfxHpl/u9mgWwiix1SyJ22ktZjcc7MC74HRpAWcxk1d1NkAjJORx5pALHWLiZeNNADfkDv/oibluWTtc7cDP64eMTntvtbyLVk8+AjsZew== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(396003)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(36860700001)(82740400003)(83380400001)(7636003)(86362001)(356005)(8676002)(5660300002)(2906002)(4326008)(70206006)(70586007)(8936002)(41300700001)(82310400005)(40480700001)(186003)(26005)(1076003)(2616005)(336012)(47076005)(107886003)(6666004)(316002)(426003)(40460700003)(110136005)(54906003)(478600001)(7696005)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:19:57.3461 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c38b4ce-3b96-4f6e-2a0a-08daf7d520a9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT046.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6209 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Populate the Tegra XUSB device controller (XUDC) node for Tegra234. This is based upon a patch from Wayne Chang . Signed-off-by: Jon Hunter --- V4: This is effectively a new patch that has been added, but based upon a patch from Wayne Change that added USB host and device support in a single patch. arch/arm64/boot/dts/nvidia/tegra234.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 242bf59711f8..728099116dd0 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -1199,6 +1199,29 @@ usb3-3 { }; }; + usb@3550000 { + compatible = "nvidia,tegra234-xudc"; + reg = <0x03550000 0x8000>, + <0x03558000 0x8000>; + reg-names = "base", "fpci"; + interrupts = ; + clocks = <&bpmp TEGRA234_CLK_XUSB_CORE_DEV>, + <&bpmp TEGRA234_CLK_XUSB_CORE_SS>, + <&bpmp TEGRA234_CLK_XUSB_SS>, + <&bpmp TEGRA234_CLK_XUSB_FS>; + clock-names = "dev", "ss", "ss_src", "fs_src"; + interconnects = <&mc TEGRA234_MEMORY_CLIENT_XUSB_DEVR &emc>, + <&mc TEGRA234_MEMORY_CLIENT_XUSB_DEVW &emc>; + interconnect-names = "dma-mem", "write"; + iommus = <&smmu_niso1 TEGRA234_SID_XUSB_DEV>; + power-domains = <&bpmp TEGRA234_POWER_DOMAIN_XUSBB>, + <&bpmp TEGRA234_POWER_DOMAIN_XUSBA>; + power-domain-names = "dev", "ss"; + nvidia,xusb-padctl = <&xusb_padctl>; + dma-coherent; + status = "disabled"; + }; + usb@3610000 { compatible = "nvidia,tegra234-xusb"; reg = <0x03610000 0x40000>,