From patchwork Mon Jan 16 14:54:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103371 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 22D0AC677F1 for ; Mon, 16 Jan 2023 15:07:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231823AbjAPPHz (ORCPT ); Mon, 16 Jan 2023 10:07:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjAPPHa (ORCPT ); Mon, 16 Jan 2023 10:07:30 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F15E1A49A; Mon, 16 Jan 2023 06:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PBbMKqAC6g/PeGGuXu/SEZxzH+ObaPoRl2LQAht7I6zin9T5A9igdAwLoF5dipbOMLAJ+H/eOXztU5CMknvxTnuZNNSijZhrPgJLLIcR/31s5i9wNzoSW/FMnRVZiKbI0JxwBh7UF1bGqKhk/zrkqM15ud5S0aiWkbLyEtP8Egu4e60dOgbga7lWWBD94xXnhTEtIzxFWMijl3UJFcc92rA2Fh5cFRtmOVmkkzO3BvO6p+jcBJyCBu1T+LX7bXRJJNAj0N30ltQJLbgSupxAXLtzuBWjthDgjrfGhuex8MRC6NugzQx10Gv2OTFTiLHJGa22WiT81LdkNj+1UNa9cA== 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=eGor3qU3tLxGkWqP0q07ZodhS02AH8vH5/527YABl/E=; b=Cwj3yzDxI2T7xN7SSahfBSMOjCZYJGuFNr/quWw8iUQFaXu1lKuckCJmZKRTOnV1dnd5NGUl4GeAMBNdU9Eh6wQVCydoc4QyBYrI9nci6ehX/998Gbt0SH4XkEIODDhIP53BoBwvLb0aNDGWbHyvpafQC/4rkJs+cWVOl8k80oA6tl+hRWyuvX2cFKnoUs3gwkUx8PPxLyk+pReHmu7X9cke/kMGDgv9E09+aRy2naumrwmUGdfsOdPqSm9+kIpul4EenoYJZL5IKrmDi9v5mmeqoe3vYjQ4jjGMAgw+8h2WFUm7F8WdfWU6c8phF07b7EDgWyYF3TrzC0qGwLPIIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=eGor3qU3tLxGkWqP0q07ZodhS02AH8vH5/527YABl/E=; b=h7POD26Wtz/uPC8/XfLGt0MovgNneloCcnAauOmFdrEVLqQ54uoeiCG69C/JQ3zNaIMYbIJDZzz7z9IKvwPvtKmZP4Ax6cJ8EWfmDf/TeP/R5HSeppOsju5oqAA8d6XG+uePeX2w/bRsFfwAeqDA9T7cThEE3BhFDxb0qEVmPCZZTt9UHLvUj0gJTPmsykF/2Y+VpTFNYBJVz67wLgA9ujW1V5jxuNUKNmZ34/yW1xllZHYgxl7JbCDfCSE5RHunHDiMjNnV7KTAvDjHSQLMayZoR977LE9uV4AS7Cgt97btUDxvX3thBRZ3g8xvbSVXXuZFUB2WPb2U684fKCgIpA== Received: from DS7PR03CA0351.namprd03.prod.outlook.com (2603:10b6:8:55::16) by DM6PR12MB4896.namprd12.prod.outlook.com (2603:10b6:5:1b6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.19; Mon, 16 Jan 2023 14:55:12 +0000 Received: from DM6NAM11FT110.eop-nam11.prod.protection.outlook.com (2603:10b6:8:55:cafe::f9) by DS7PR03CA0351.outlook.office365.com (2603:10b6:8:55::16) 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 14:55:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT110.mail.protection.outlook.com (10.13.173.205) 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 14:55:12 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) 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 06:55:06 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.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 06:55:05 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 06:55:03 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Jon Hunter Subject: [PATCH V4 1/5] dt-bindings: usb: tegra-xudc: Add dma-coherent for Tegra194 Date: Mon, 16 Jan 2023 14:54:48 +0000 Message-ID: <20230116145452.91442-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116145452.91442-1-jonathanh@nvidia.com> References: <20230116145452.91442-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT110:EE_|DM6PR12MB4896:EE_ X-MS-Office365-Filtering-Correlation-Id: d2b57083-e35b-4e32-adf5-08daf7d1abc1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G2GEUKPt54/eWAwE7ERdg8uVoOazDIWHQZriJsJPF1BBTNIbH7O5SmRNdVfu72AelNTic3FduFgbUqrgdCbFW6SLfvuaH91ZLT/3I42nrZQtNRUfoCodAp75AdglvU23u0TWX6vkC7Wc0j/mg+IV3FTP6LVzlEngKM5CNlwwMOHhdQKewGKQy/A8y7F0C32faEy0oAakc9knXE6+30D0JqncIXpCXahK0Q0244DhBLvwfjAdtNkRnE7VnVwVtG0lzuwYG4j/xC8Ii7Q68jHBuThmi0TPq8F+7qQA8FsfJxmrqigl/usueX/5yW41Lgkk3F9Yn0rArU9ZgwEgMx/2iBa4NUjTSV3lh95qpXCVk5xX/dzuBmh/uxq1tNXrzfRlIAcCfnCtt+IkXtm96uWMNOGK9KNeOEK1ola2At7aUW+Y1pg9cnqoV6J0QHPviMTFBfv06b9/MdqyA1nMTgzL22g2+nZUva46ysxY3ZwKjtt3cOrLBaBzujJmxCsmSPXspog6GkpevkckoZvfeLmNG50dksXhHcB1c0ss0oNLsBl4enbT+NJHMUSvPFSoP2RrKYKtxo01mhD4z/sBcBpH91Sp3OxahICxuEuZNas2y3Hxfo1V150cNBdaDkkPrEWM0HtNq9PSspN416wfBq+kWFnWu6yPNQIc76tigPlyPCrDu0yzw2rc114+LeqdFN1YM9jtu6bEbDG+m+RS9GHWVg== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(346002)(39860400002)(376002)(451199015)(40470700004)(46966006)(36840700001)(110136005)(36756003)(86362001)(7636003)(8936002)(5660300002)(41300700001)(36860700001)(82740400003)(40460700003)(54906003)(7696005)(83380400001)(478600001)(356005)(186003)(26005)(6666004)(107886003)(70206006)(8676002)(316002)(70586007)(82310400005)(4326008)(40480700001)(47076005)(2616005)(426003)(1076003)(2906002)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 14:55:12.6762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d2b57083-e35b-4e32-adf5-08daf7d1abc1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT110.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4896 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 --- .../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 14:54:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103372 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 4DE69C678D7 for ; Mon, 16 Jan 2023 15:08:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbjAPPIA (ORCPT ); Mon, 16 Jan 2023 10:08:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231688AbjAPPHe (ORCPT ); Mon, 16 Jan 2023 10:07:34 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2081.outbound.protection.outlook.com [40.107.223.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5706B2FCD1; Mon, 16 Jan 2023 06:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kHe0Earwgme50kzZsdktPziUawv68SKuz6o+KOhUughxD7al8hh/BA93kAyLziG/Co6DWzY3+tXj0EgEun7jUzsoVoEheh9/HA3nf4IbzEPGfPFa3tVU8zbbIUysbPEtNN+uZ0z39Hu7uFaasbn+IfzbOGFbeMveF4s7MFX10p0znT7LIEjzKuUgnHepkoiCqDUxa2uTCQAT6maWgEbXMs02y33A9Iw/wJ3Yb4UPPhrR3fQLF/9h7YTkg+G/6GV6fEipS1rjj3kjhv+mI4MxVNjJ31UMXOeXjr4qDsVsAcAMN+mWKW26E1EzBnZuGKFHierx2GxP9qQgQddsFKBISA== 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=lyJp8VGY5ZOHbC+vhrmh/QY9ASRgEpkIDyGhKCPLFPA=; b=aXtAXJAvSexbtRafHDtOCLXgnklq0IM+rscFx9nunpkF61n1PoZ8kWk0Xh2JPPGSo/k3Wo2Xm4tDlQLpygi8QngYkWbr4lmoZtkndC4+2mHyCrH4oMP6qAqEm9HyUUYboG+UNc0gAYcCN9OdGwGJimAIFcb5gy23PWOw2T/JJaVoEc2ZSb7NzXONfHB+5M4Ii3DoB4J5V9jz5u2q+o35sg5w/i75oo/k9edd5wIqaqjwvSZm9kNeuJv0KpFhul5NKahahuPhBwRwz2mtfix0NsFVEg1zgsgdP55TdJ2uAzNczYaCXqoR+Z3xNohh1i4/GaH5gib2h5eH8Wxyk+F1lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=lyJp8VGY5ZOHbC+vhrmh/QY9ASRgEpkIDyGhKCPLFPA=; b=A5bEvXOFA0xz57fWsHvZ2VGcbTuC4jZ1wG456B381Yp9KWXyNPXUDo5KFJbMV0LfxCbsDq7aFRin2XxhEJGH2bmhyylO+d+OqXCwKO6Yty0WRwLd1ggVgoQ5WgY8HTox/olxr8/AAFZe5V5ZiaztyKo+7b5z+daDGpJs3UJi0YiOnPCcHtK/6sUsC6FuydgMmLFupfBfyRUSvp+q2SEZdfu7j4NWc2KMTS+in/Get6zjQ2QADrtH2KuJGX2v+l4Xy3lHFBu3yJ3SBzFRUcVw6WgozHUmRmVYSM3EWbjmNn3PcXoan4/X0wRX8GfczWQLCu4AyMFoUm0BnFrMTMRUyw== Received: from MW4PR03CA0357.namprd03.prod.outlook.com (2603:10b6:303:dc::32) by BN9PR12MB5257.namprd12.prod.outlook.com (2603:10b6:408:11e::16) 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 14:55:17 +0000 Received: from CO1NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dc:cafe::a7) by MW4PR03CA0357.outlook.office365.com (2603:10b6:303:dc::32) 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 14:55:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT052.mail.protection.outlook.com (10.13.174.225) 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 14:55:17 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) 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 06:55:08 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail201.nvidia.com (10.129.68.8) 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 06:55:08 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 06:55:06 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Jon Hunter Subject: [PATCH V4 2/5] arm64: tegra: Add dma-coherent property for Tegra194 XUDC Date: Mon, 16 Jan 2023 14:54:49 +0000 Message-ID: <20230116145452.91442-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116145452.91442-1-jonathanh@nvidia.com> References: <20230116145452.91442-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT052:EE_|BN9PR12MB5257:EE_ X-MS-Office365-Filtering-Correlation-Id: 96e69f56-36e2-49ce-79c4-08daf7d1ae75 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0BC1WrHsqzjMpB0BhGALFUmYR++ucfte34AfAAvkqc8cnal7mDNICmeaafWmIpV5pgCsigFw9eMF1ylIYx6It81p5kAQso9yOl9yufwWlL/aqVyyoa5gKUrSJW0BJIrniIw7uU4/AvrdzHTxkJDXTYAUWNVEe+kt/dECg1aT7e6dpjfpXcDyFkCK6ZDTSAsMsLQ//gyTvBsbNYZsNM5xCOWdJlfwtKJx+qp39TQPgKfOdyBDwX3Gr/PEDM9yAFPqvIT3u4B3uRYux1i+GI9t9mrHGja74a1/WXtGN3oOSNuqQeilqP91F5zGSLFELolKN+Hu/Bj/GGzKi+03yoBq0woTMrsmke7u74njhOaz+5LGWpa6mT+K7RF3z5Yzn7WjF+ROmFeAvbOHyKV8AYiEwCLnbKFaKk+08GwZZhdpuMu1330VJ5266QrZP7JiRHqBTS5rlT9algiKeYaRPq3siUun0Rbi46MNp2BArlQSCVG/X19yu3pVuyMSH5OLMvnEYjT8E9XPVsYS/QjNent3Y0Sewdagok0JQ1xAbvdsvbidTPkoQ/9YtsdUYD25O5exTlavHbcrv0pafnALML11keRdMBpUATJfqayIsiFy19LwedvKRBSrXRTt6/gt5bJrZ7HefbSP5eqUfFGLS7qn8Syz6Lav7rXnXF2Pk1kRCvRSXCUizUpM5Fe/Dnjis/ZGej4MW23GhXP753meOI58wQ== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(396003)(39860400002)(346002)(136003)(451199015)(46966006)(36840700001)(40470700004)(36756003)(8936002)(86362001)(356005)(70586007)(8676002)(70206006)(4744005)(4326008)(5660300002)(36860700001)(82740400003)(83380400001)(7636003)(2906002)(40460700003)(478600001)(7696005)(316002)(54906003)(6666004)(110136005)(40480700001)(82310400005)(41300700001)(2616005)(107886003)(336012)(1076003)(426003)(47076005)(186003)(26005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 14:55:17.2412 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96e69f56-36e2-49ce-79c4-08daf7d1ae75 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5257 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 --- 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 14:54:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103374 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 43D07C678D7 for ; Mon, 16 Jan 2023 15:08:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232212AbjAPPIF (ORCPT ); Mon, 16 Jan 2023 10:08:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232819AbjAPPHf (ORCPT ); Mon, 16 Jan 2023 10:07:35 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EC9E2365C; Mon, 16 Jan 2023 06:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ilONtNZdzxHl+Bqa0CXFfRUCbvEcpYmk/jTr5i+waGoYF0guzq2aRcfYvWquHHTECSTh6jDLD3vIc3jxBJ8YIuXitCFVBu+Ztr/qJYlwz+kzDE+DXcI//ZIhOrs5xouoLJhqaJxpd/yLu7AkeVK/Nn4JRomX6+8bYNOEk7CKi8SKjpZssTAbAh+xsJ5FLvPjqj/PfJStTQ/CqK7xlyqEQUQjiXiaWLbuYeOaF0+V8RudifLpn+XVyiDcvd32z0enWkHVjWtKZ7IBtIAEfqw/Jb1icF1qMDEltaAkSkzRfBCF7RSCDd/Jf756W3knvztKWkq4KcqFlWVGJR/I50J1oA== 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=8JlfJ2pkaFjJQmB7u51s1f8vXz8IVLH2isKcrRPXPlg=; b=b5pvPDmXramtSjMg0R0ia5KgtgJoeIKOKfsbT6uN0ZUs8MDsr4MoMd7fG44dvSrnKzMexNFLGGTD2ol9y5JnUFhHtM9RgzJTDo0OUKek3uEc7bG7J7s7vWxhtS9wPRGpUnySVR6SkldP3hMxEoVkZcm2BaOHOdu1fA/QM1gP7p8uUaoFhmLj7dejRPY0klLnkq3BgbuBtDrL+GPA0Zh/X1ijkpPwvDaqMHfm2aQnkQIGCkoMe+UierTODlx30m5JE99g98lMhKz3UFmfmad5gTqloFqYMUPthazhibJUwxM6nZnkuocuhnJv3fShieEQ5f5M4go1drncdmCERiaQog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=8JlfJ2pkaFjJQmB7u51s1f8vXz8IVLH2isKcrRPXPlg=; b=evVU0fFVLoDN0ciMsIElo6+Cm8EiJ+nkH/KNRTfJT9kBHZpg4gohNWsQTqhoGP5HMNNbWFdjTi4m65+ORuOsnpnUh247cw3MlNuScKBfOk51kLnTlrSQKj2SZgR7LzKfP3t0oKMU9HCv86gNPnzxprYEMK1174BIpjC6aCXnWZdfW+znBIXPibNNzzD744bXWFqMqbTCqP5vlgqwMI1btMPiQCWqMsOv/7/q8gmBW1pmLirHSDff4ECye8HuKOHdSKawJXKG+N0eLVQBWsrjD47pEigYnyu+77o9/1FKNMaSt+waKX7TuObyXRw7ob2I0cDbvihaW5vGiUxMNr3PGg== Received: from DS7PR03CA0358.namprd03.prod.outlook.com (2603:10b6:8:55::7) by CH2PR12MB4120.namprd12.prod.outlook.com (2603:10b6:610:7b::13) 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 14:55:18 +0000 Received: from DM6NAM11FT110.eop-nam11.prod.protection.outlook.com (2603:10b6:8:55:cafe::5) by DS7PR03CA0358.outlook.office365.com (2603:10b6:8:55::7) 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 14:55:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT110.mail.protection.outlook.com (10.13.173.205) 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 14:55:17 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) 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 06:55:11 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail201.nvidia.com (10.129.68.8) 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 06:55:11 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 06:55:08 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Wayne Chang Subject: [PATCH V4 3/5] dt-bindings: usb: tegra-xudc: Add Tegra234 XUDC support Date: Mon, 16 Jan 2023 14:54:50 +0000 Message-ID: <20230116145452.91442-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116145452.91442-1-jonathanh@nvidia.com> References: <20230116145452.91442-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT110:EE_|CH2PR12MB4120:EE_ X-MS-Office365-Filtering-Correlation-Id: 75b4e389-ea5d-477a-c290-08daf7d1aeee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SRkKdw1k/s3Cf+Vk5rUcpdeQ/0GcvJINKjrg267ABYaNbPJWC3uwsk+QFJyKxUE06v7RI3eSsFQJp7Os6FHmDt1MNisMHxZ8H+aR+xIvXQZZzxSLyvY5po+H1dnplM2kw5wbSFojgI50ArWj9ac2I+wb/8vyks/FBNCG0xWWx62jVfiM3+4fQwTlAb3+mwLSO03/zUgM9LLcEgLTGfVYDgBL+DOOulouQbEPTy99xJXZsb1WT0r8Pmjq58HcLuBC4Wa3/Z9UYziIufRjGHLF10rti0VRzY3To0V5NjtBfqnA0czxY0BHCrtmgXaP8JEH0mdaGDmYozkKrhpTitrHrgQRsOI6qErmcp9/zohUNor3gOetqOpc0CMmEJugjCSuT6AAp6Mrea84RBzsAnYz7wnMHOGsGHZRzU7rLgkEhmdYRu6iKpr8l/M0smgwk32hHQZaj1JNfPpXi/MEFNuxEr+w6zGtFH3R+ZcVxsDLRDib+1ATTUl566qJfMEwAis02aOdczWHd12HALvchkKKrdWeXSiO0Yd8ZJYIb5F3eXYrjaz8isQCpJXXjeguOjqTsrjBY2tPNU9rRlsn663gzxg43LOVLyvE+CHzGT4AHJpda4L/FAdNXa+hHA0wquX/prVP+toJqVqh1/Jv0dNNPfUzBz9BMSOA76rcyivCK2P66wQoVFosVZQoOh/aUuJ+siR4MAvKyve+y3qr1t6trA== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(136003)(39860400002)(396003)(451199015)(40470700004)(46966006)(36840700001)(36756003)(82310400005)(86362001)(26005)(4326008)(8676002)(70206006)(70586007)(426003)(47076005)(41300700001)(186003)(2616005)(316002)(1076003)(6666004)(40480700001)(54906003)(110136005)(107886003)(7696005)(478600001)(40460700003)(2906002)(356005)(7636003)(82740400003)(336012)(5660300002)(36860700001)(8936002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 14:55:17.9892 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75b4e389-ea5d-477a-c290-08daf7d1aeee X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT110.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4120 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 Acked-by: Krzysztof Kozlowski --- 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 14:54:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103373 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 8F040C54EBE for ; Mon, 16 Jan 2023 15:08:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232978AbjAPPIB (ORCPT ); Mon, 16 Jan 2023 10:08:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbjAPPHg (ORCPT ); Mon, 16 Jan 2023 10:07:36 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F932FCD8; Mon, 16 Jan 2023 06:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h/m+Ck1L1mBxeZHANXY/NZ04uOBYJqToHZMd0Qi7n9h3FXazuaqSaOEpekTfw1qCPW17g+g834JtwTqPZO/yJcAZNef8QKSCoku6vSHBJhEQN7VcmA5l5QX79oP+DyH47MvNrJCXAZ6PTAYh+Xxw9aM6xnweP4XORPtquw6/SElkX7mhsoQ5Z/XCzsMprO8Io57YNzjfoFGCR2vGBKacDiw1SSVwA0hMm2Z5RF7oxmX/ArZmKe+xLEXVpetlDE8I3+37YIxKXHtqKJitYFpjUby/smLdgmuVpNlbb3CjWd0AeKEvzYKTW1rioTIc5pOW2iT9KzX7fgrgniJGijqEHg== 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=MmefAIhrteff9c3Bo+vulsVniD52WdYw8g7cuioIiWQ=; b=NnriUioshPIIwxocGMAWgP+FeiJRXoWHhtrDMJcvC3TCT33U2Y3okFuXDLelNnqh8Pwy+exXfIOA8mIqKLiGmoISfnn2r+AFV8MbG73FXK+n28HbUYESvBaCSG0B8j48GTUI5IEdDd9giXi0ce9ekwWh6woCy5MbuarWcj4szo1kSY5IIfMdiO41cYm0UwqjNhQRNtKKm9F/tGlEDAUlkUY9pDV6yF2LVr+ThPEIn1vRXuJBWfpbfRwMnNzqQmF/Z0LKzwioU8xYCKs6OKxjFc6cFNGNfNcqLNsqllKy+GPx6oBvTELaYIg6+MiqTzdMknqWgmHMqhwaRMz/aoyKaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=MmefAIhrteff9c3Bo+vulsVniD52WdYw8g7cuioIiWQ=; b=IY3si4tDhNTsCg9rGLMG2abZL0Y3AN3acclMpxHAROWmgi6Hre7qR5mqosTKaryc2p5rMB617AJ2207cYuEDQ0k0dxnt80NZXBnJEw/bviparbgYAzlEdrRGq64gTBDx1Atm3b3CfyaBGJMPoRrUvWcUIGKodf8E2KHUz6TqFVbIJMyOzDsUVHmR519gpjMmkwuLwBmx2zS9ZlTHRR6e4yICEpnA8JZNzS65+ZOusqSOKRYZINdUIAKFmkjgMnk01k6OQQxN8FiJ0VfxXHbkU/y+AXJgLL9JH1tkow46r/SjAAz1HWPvFCc1biLm4MPWRhaAZNitBqJdnHNLyDNOFA== Received: from DM6PR06CA0012.namprd06.prod.outlook.com (2603:10b6:5:120::25) by DM6PR12MB4217.namprd12.prod.outlook.com (2603:10b6:5:219::24) 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 14:55:21 +0000 Received: from DM6NAM11FT077.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::1f) by DM6PR06CA0012.outlook.office365.com (2603:10b6:5:120::25) 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 14:55:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT077.mail.protection.outlook.com (10.13.173.147) 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 14:55:20 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) 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 06:55:13 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.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 06:55:13 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 06:55:11 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Sing-Han Chen , "Wayne Chang" Subject: [PATCH V4 4/5] usb: gadget: tegra-xudc: Add Tegra234 support Date: Mon, 16 Jan 2023 14:54:51 +0000 Message-ID: <20230116145452.91442-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116145452.91442-1-jonathanh@nvidia.com> References: <20230116145452.91442-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT077:EE_|DM6PR12MB4217:EE_ X-MS-Office365-Filtering-Correlation-Id: d051ad68-4736-41c5-74b9-08daf7d1b0b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gt05LoxoujlmicQz0+dTc1LaMZvYjEloA/gGRDSSrRe0BWxbNW9mDZkGL3EZO8WQxVRA1budx97vJYHXh3k/tf2uDZ4jC0dBMlf4RduAmrsMKfm/RP3jX8G9gna0N48qk9CcQbZn9U/SjTtdIoyWljcCGqbXwkMdKDTQRv7JaoYf+Yu3g3q4WfTsa1FalOzVe5RGlrdOGo/putYhus9rIVPZlSmGdyxXhChp3ZuUg5rf+13mkqSV8NAHuOJlYlImfwJVyzCKH1IoR7U45UuyXxX28fs/jyDw8tttl2kS/JHuySx7HE2B9Oe8b45dKACKiwaQhz48NcfJDSVKFLnVbiL2T0RO3XqzGQUnqmGTSrbixihZL8GcjvFOsQGo8sdxITEtkzsOZq0acIg7vxY1/P2rK/HId0wnk/ua3gcpKTDXlYRV3sMvIb84/NeAeSoC3tZ2aqhx+1QPzjM+Ec4857+iwyp10DY5BHiKlGSQY0CVD1eXfLm16lBhyi9t3/0bQlfFTkPhAscsKRr46bZ1beORoYXdDD2+ONjXoWildW3L0rUeVyeUYL6U84M9Pue0qUytTtmOHfx/tgeMvT6akEwDq9BCDZTgPD5hthv5h88C13fqAfC0P+egwtp6B/aqj9pLiOsfhI9vqCt6IjuUTtX8QspnL3C2z0SwLz5TjpJBvC64R1B4NuFOMF/VexeN6i+pAv/I73JOE93I9nY84A== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(39860400002)(346002)(136003)(451199015)(36840700001)(40470700004)(46966006)(82740400003)(478600001)(8936002)(5660300002)(4326008)(26005)(82310400005)(41300700001)(40460700003)(8676002)(36756003)(70206006)(70586007)(2906002)(40480700001)(316002)(54906003)(110136005)(86362001)(7636003)(356005)(7696005)(6666004)(107886003)(186003)(36860700001)(1076003)(47076005)(426003)(336012)(2616005)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 14:55:20.9494 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d051ad68-4736-41c5-74b9-08daf7d1b0b2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT077.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4217 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 --- 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 14:54:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13103375 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 180D8C677F1 for ; Mon, 16 Jan 2023 15:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbjAPPII (ORCPT ); Mon, 16 Jan 2023 10:08:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232894AbjAPPHj (ORCPT ); Mon, 16 Jan 2023 10:07:39 -0500 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2051.outbound.protection.outlook.com [40.107.95.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9341B23C5C; Mon, 16 Jan 2023 06:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hjuxmishfDtu0xl3yWY2XuLdX+37Rtj8npKvN/cnUnbyu5WAOLRfWhZKN8pa8w4qjQcgpc2ABsc6xDtfqY08Yq/QLdoNVZTmFfkEBTTwQT4B2s1401Dwx+SFPr91tR1tpzHVWs229xESoUHt1i5TbDe/KTUyyAfDcxVLUFXKJ9ePFkmEpBrgT2wMfaBdABKkvgE5x4b+1wAqNL7KA0c4o7oi7zX6RMZNjWC/uPL2LirNiFO2e199H2sWaeXID9+sxolxyRkVOj0T24TZ6wvmCFV/RXqnvwvRGc9fc3ioj3n8bbhL8x52v+xm8i+HbWTXycy5thVXg2V708KVcRtdXg== 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=30qQTOkiY5sfbvT1foBbsf1CAAlDoR6IFS9RmGmMqUI=; b=flwq5KuR2IVweQtYvGxucRY75bh9a0dNhsBRMxg6keFUWC2C+9ky42Sgb1ESFwM231o8UhgiBDAL+LbUVr7HlkW/CS5bXKGceSiL8oemor4KEpWTSEly8n1AUsLDAsFMolc7x6hTFkehwE08Q2WdBWVV0FC9QhNpoj3yEsA7Cj+AJCYSRv8imYDr5QpyE6wp4WeAnnZYYHvGRULX+TpX3r5G2euBteLSzeF6uMg2bqOmZkL4+GvOFeHMh2fMEv8hb7NIIteAr6kbOPzBm7gy9FZAH6OBft60cTHdkSQ4NTWZgde1m88FeEtSa+lbFK5dqfATMgqZspojat21KNtAjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=30qQTOkiY5sfbvT1foBbsf1CAAlDoR6IFS9RmGmMqUI=; b=MWaB7oyhTxYTBv8s6G0PLGvMs/sSzy6nvmgZUva0QXPIs9UnEJMVwGkcXrS/VW3165tiAa6i/+tiVA/Ex98qHXTjcQel7BOV6H9tbtGZV5et1gAFWlHORkkjUUteWo91ez4uYLFsO3fycqJt5dQS2E/4V1HpBAB3TDO+IKWrlERCB2ylFRLfUYo8RF+qEDDx45f9UZwQ9fZor04gwh2xSnkIBlg9GiiulhB6iwgasjvlpvZ1GiwIY3CgW7YAiDT+m/Mq6daTIHTPKkSy0OGjsF04P8edyXZP0hegX7VAkRPsJT0D2n5Dx6U1f+7JEL3V4S04D/8OEwiMBbSpvsz9AQ== Received: from DM6PR06CA0030.namprd06.prod.outlook.com (2603:10b6:5:120::43) by CO6PR12MB5425.namprd12.prod.outlook.com (2603:10b6:303:13e::11) 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 14:55:23 +0000 Received: from DM6NAM11FT077.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::21) by DM6PR06CA0030.outlook.office365.com (2603:10b6:5:120::43) 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 14:55:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT077.mail.protection.outlook.com (10.13.173.147) 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 14:55:22 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) 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 06:55:16 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.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 06:55:15 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 06:55:13 -0800 From: Jon Hunter To: Thierry Reding , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" CC: , , , Jon Hunter Subject: [PATCH V4 5/5] arm64: tegra: Populate the XUDC node for Tegra234 Date: Mon, 16 Jan 2023 14:54:52 +0000 Message-ID: <20230116145452.91442-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116145452.91442-1-jonathanh@nvidia.com> References: <20230116145452.91442-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT077:EE_|CO6PR12MB5425:EE_ X-MS-Office365-Filtering-Correlation-Id: b6200b93-c8a5-43d5-a0e7-08daf7d1b1a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6nLFfEG26jcxxS1DH71NwGM+rnfodZKUNGZQccRGbnCwyiOg56ERawXKa8euxmRBnLrQiaZPCaYY14sVbKqUQnC2IgqZ0ShgX+oqU3HpCApkb95/mDwVqxSLUE0cBQOfUxS+ZHG89jzWsEWCVscgkodUpyde7PH9Sjt+vtvCRIwdciJEP/YlsiM2/bjwMWYr0j3Spd7lF1QcRsizrwe+/kV4RUN3bEtuL0z34jX/yjfjQuM9ZCfn9/51LwtwacPmQGpg2HZKfzYEDUy5n0VbG/2DeeLi61BKazoZSkLmPLisGMkaZsZEH7lJph1ekTUWkU7eJhlH0XclJTTuYIW2h4APefV36t++rXl7wp0aWgPuRRfNXzcS7qcLuPGZUegBD49WcR1ig462t6BfkO5PNYKZypUJpkRXWWpd5uQ+4Eikz6BVdJvpvCiTVQ6EsxN9lHzwdjaimMY3qN139t5Uq6ZJoTVgRoxhb5zSs6UrjnrgAEqxF6NWOCLyHhnlABiSpVBknHS4eXys7wLXvHhxxFKVHhc/tqzV3ZKDfCo1SqUd6ZwrpE4nCaLFzbSj6b/aqx7IJlxZARAvwg0ZBHVNA/nZR7UOvGNCUR2ou4oTpDWNSFYonqpul8g8zNALmXG9np/izyDab1wCgFe9P+k/g1ot+oWlQ/Wwv1GK8vrV7Gldiavas6fjRydgfsg1uVNWlc6XJBYY6QaEYzKe1D7DJg== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(136003)(346002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(83380400001)(8936002)(5660300002)(41300700001)(426003)(47076005)(7636003)(82310400005)(82740400003)(2906002)(36756003)(356005)(40460700003)(40480700001)(86362001)(186003)(478600001)(7696005)(36860700001)(26005)(1076003)(8676002)(4326008)(336012)(316002)(70586007)(54906003)(2616005)(107886003)(70206006)(6666004)(110136005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 14:55:22.5431 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6200b93-c8a5-43d5-a0e7-08daf7d1b1a5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT077.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5425 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Populate the Tegra XUSB device controller (XUDC) node for Tegra234. Signed-off-by: Jon Hunter --- 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>,