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: 643191 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 252D1C678D8 for ; Mon, 16 Jan 2023 15:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232372AbjAPPWk (ORCPT ); Mon, 16 Jan 2023 10:22:40 -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: devicetree@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: 643190 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 421EEC67871 for ; Mon, 16 Jan 2023 15:22:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbjAPPWl (ORCPT ); Mon, 16 Jan 2023 10:22:41 -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: devicetree@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: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: 643188 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 42C27C678D7 for ; Mon, 16 Jan 2023 15:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbjAPPW4 (ORCPT ); Mon, 16 Jan 2023 10:22:56 -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: devicetree@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>,