From patchwork Wed Jan 25 20:42:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 646673 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 A7D5AC61DA4 for ; Wed, 25 Jan 2023 20:43:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235629AbjAYUnE (ORCPT ); Wed, 25 Jan 2023 15:43:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235121AbjAYUnC (ORCPT ); Wed, 25 Jan 2023 15:43:02 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2065.outbound.protection.outlook.com [40.107.243.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FBF16301; Wed, 25 Jan 2023 12:42:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XkKvomtZCVah8wJqR6hWPBSppM1LN2lZXFAOWNLZSh075SIJOVPY5mMAIc7q5F66krcalb/OTUYAC0JR5qzKel8d/VCkRAj86yLZns16hNX9ADFmuM7ki99gelVWgxy6Dx867k3lomNETmKDZOZ9xjvThMA8/kbDntEuQKyDIZjMkGjkJudCodG+XlY9spZmH+jHYg4aXgRJkSFCZvc76CmcjnS4QlbNfeOBD8FgPqoghgO0NVnIWinwAbVn3u/KUxYCm5WPYmrVbywmlhjTNTttiZPy8OX3BaObo4B8T9y+19AY3t7ZkYKwZQ/U251qnA+Ey7x0NJ75nJlR3E4eZQ== 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=cOoegvfSAEm+BHpoumBrXrXQNBEpfidyw3a77GuuvhY=; b=kj9x+Ckfw9lyPjFzuNWqCxbLpf18sB0s5f1HKNkfUC6UKIK8VBD1HVEvYHD/7NQ7AV5m+4OFJC9jWoLjGdHQJI5E2UQTSabk2AZyMYXL7NxJ34KW0AlEXeykqv4m4G0He0s0fC+XjTrdL9bIgnAHuDMjRzz3Fy6Kdb8Uiwqw/XDZ1+ELi4jeEK/RTJovz2MWl8ZkH+A060YzQKEPyHI9RyDexWC3J4uDevDPTAtWR8c9YZJOtHLQA2Zab7wWJe2wSG9vnDsnN+kyStX2eS4Xn8cKrmPuECFk+4RHFuHdEa0Jszp2C3uTlra2UgPJqJEUU7PSIOHoT1lZfA1cKwzAMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linux.intel.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=cOoegvfSAEm+BHpoumBrXrXQNBEpfidyw3a77GuuvhY=; b=fJuosISU4ns2oT5Qb5MF0+DifNlYhswD1GfW/1hTR6klIL7fRRNdWEZ2dNW+wq8o7/jqp++7l9MZ6kQueSdc5rI3uz193xp/K0Zf4KHi2v5m5g2CQoibl8fJqrJHZU908DgT8OAGYwsypR0lbf4v5ECSVsd3F3ESX8Y6zzfXDR7uFP1CuNN5dsiV5La6oRa8A2hekkdoz7qsJHfaqvx4SsvmbNKS4+VrEI6EIltLlWbnxF5Q1/pU0kdBIGMqlVo8e/nzTIZUHN8eEwzJzg+A6x7sOMt3I9UbHOx2Hs5DBwft85lNkR1R1W30DvtEeSTXUZF7X18FEdJBkvIAeJMH8Q== Received: from BL1P221CA0016.NAMP221.PROD.OUTLOOK.COM (2603:10b6:208:2c5::29) by DM4PR12MB6158.namprd12.prod.outlook.com (2603:10b6:8:a9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 20:42:48 +0000 Received: from BL02EPF0000EE3F.namprd05.prod.outlook.com (2603:10b6:208:2c5:cafe::27) by BL1P221CA0016.outlook.office365.com (2603:10b6:208:2c5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:48 +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 BL02EPF0000EE3F.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.12 via Frontend Transport; Wed, 25 Jan 2023 20:42:46 +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; Wed, 25 Jan 2023 12:42:29 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Wed, 25 Jan 2023 12:42:29 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:26 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Wed, 25 Jan 2023 20:42:07 +0000 Message-ID: <20230125204211.63680-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3F:EE_|DM4PR12MB6158:EE_ X-MS-Office365-Filtering-Correlation-Id: 9659d911-432a-44a8-77bc-08daff14b779 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6IgbHuQvt/O6HamWbwFrxeTbOmTpEIAKaq9w+yCze4toYyRItehUPzGlTeRYv6yel/KPHtYXqARWz9AEEHyJ7Mr4cbN7BxlZtUrHG1WDrqctNouA2WdWvnYugl3DJ0BVeM39gaNbZ2pJvOiORtClofC3pgPSXcCtzhEqyzDAUL2w+Kq0uQBEWzXUkJn65Uy/mY2NBl8hojlzR9wcKcZEFOUilGcxGiR3mApPZk7CS5NdVNJtknzbU8PfJ6mRxd6YFXFNW7H/2lMSsNANI5rmnHabPEUDjCZZq/Kg6+ffIFoUk7t+dtJXhyjPJGBKYzCkJMVHY5JcZEfijWSnRkamh7wiA4AH6KTRpN4CzFaXRXZqWc+bJFEiv+jpvIp54nnDQDotPm0r2Qt0cWs9fr/Dj4jRiW11EhjQ7b9lihg69pkgftXf9CRahNaiJtP+A6PEqOlmY4b6zi/MpqOjcNZ6b3rp+FYX04nOqYvJyLOK9Mc5VYfFLgazbkY8CWyhC1uhAtkwnjqt3ZjoD7C6apiebOA8UcdfcYa+wzwZV5FKzCPdJKL9HxhQyxNDHx053CiO/nD1xLQ25zbhqu5xa1zfZ566m2fJOwB0gTn+Hb7e8CoJ+WsWxT0Es6AogQ7eba3WesU4DlzCNgaMIOUZXUVhyb9cY05VDR4p/UehQF2NpBxXDwuFejPaukQNC2PJY5Bn2t0Oi7GDeJB8ZSu1f1Fqpw== 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:(13230025)(4636009)(136003)(376002)(39860400002)(346002)(396003)(451199018)(36840700001)(46966006)(40470700004)(70586007)(7636003)(36756003)(40480700001)(82740400003)(40460700003)(82310400005)(36860700001)(8936002)(86362001)(41300700001)(1076003)(26005)(186003)(6666004)(107886003)(5660300002)(316002)(8676002)(336012)(70206006)(2906002)(478600001)(7696005)(110136005)(54906003)(356005)(4326008)(47076005)(426003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:46.7091 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9659d911-432a-44a8-77bc-08daff14b779 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: BL02EPF0000EE3F.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6158 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Wayne Chang Device-tree uses the 'firmware-name' string property to pass a name of the firmware build to the Cypress CCGx driver. Add a new ACPI string property to the NVIDIA GPU I2C driver to align with device-tree so that we can migrate to using a common property name for both ACPI and device-tree. Signed-off-by: Wayne Chang Co-developed-by: Jon Hunter Signed-off-by: Jon Hunter Reviewed-by: Heikki Krogerus --- V8: no changes V7: Added Heikki's reviewed-by V6: no changes V5: Added this patch from V3 drivers/i2c/busses/i2c-nvidia-gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 12e330cd7635..6d81ea530a83 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -261,6 +261,7 @@ MODULE_DEVICE_TABLE(pci, gpu_i2c_ids); static const struct property_entry ccgx_props[] = { /* Use FW built for NVIDIA (nv) only */ PROPERTY_ENTRY_U16("ccgx,firmware-build", ('n' << 8) | 'v'), + PROPERTY_ENTRY_STRING("firmware-name", "nvidia,gpu"), { } }; From patchwork Wed Jan 25 20:42:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 646672 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 16E37C61D97 for ; Wed, 25 Jan 2023 20:43:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236190AbjAYUnH (ORCPT ); Wed, 25 Jan 2023 15:43:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235659AbjAYUnG (ORCPT ); Wed, 25 Jan 2023 15:43:06 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2074.outbound.protection.outlook.com [40.107.243.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A8723BD94; Wed, 25 Jan 2023 12:42:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jA0S8LoAC3t5m0ZXKZTgJ0nAP6Y2HENqN7UAtVA4z/jY88fI7WCzN8+93uQLaoBjTCftUVOf8f494XFdsh6K+krEibQe5Vqp4myoUiN++K7GSrtmLXOMcAlBpe6VRS1jWAZi8SjGftOlFpsK0VcHBKc062IY5126NgFdKOgf62ud7NkrN0w4Kf2+BpcIfeKp2IgHChj5x6+gOUQRVbg1uTuVERQL7NouN4oN3XVztfKLl353EyWe8cLq5uwdOlBnIHQIJj8V/MOes79hYHn+pN6ghCboXHqZlQyDleG64PQxlbsGYaPXCbY+mq7HYVDZL2I31x4wLmko+3bCfW2l3Q== 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=ePDnBh75bAtDwEjRe0A4ub91Npk6kvlL5RKjDjLYXI8=; b=GdDakTuyKDtD1ZDpFAqkyHJ+WjwymIqQhqrkOH9y4jUOXrGlA0tTaUGarEaBcWIEY8TJIda0328wCiVjXhKfbm/GcV42b3yexOBe2CQ1cwNKCwTR7Kb0LruL87plL93KQN/0IAdAxJ/NEJIsQJmYtGGCmW0Rz5Bqpu/p9D04FzQJ8nEQiGoLBLd5lCj1AFVJC0+eGjChTlzANB9miET/V7+0yU3fRdV4jBpEukKKHbwut1CFHYYz2G2ajTWSdoGNVOk4Gy0+BIa6zKy3XgZ4uuhF6zSZG+EHhf4YFZQz5L4EkRWEQBZOelfa5uk73kGhH6HAuq+dlH4hQg7KK3hdyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=linux.intel.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=ePDnBh75bAtDwEjRe0A4ub91Npk6kvlL5RKjDjLYXI8=; b=uCksqkg+GATe+nHU/5jFj9oqMX570/VWTaVOCSuzCcSbb5CNdvprGP3coJLYLzDbU9L5Neo+3ohzeG7iF7GPnzZoRyyS6HmhJcZLl6+lnQBlpkN+/GV+xw4h4MLl/LKKejlvu/JoNZacgTT5Eq3O8/wByAOk8SuDofot5ccVwUwI1bjYvtRkP59nyZvhdtT/QG03ljY38jJuvvKMMLjkqDlPH/IeiSMmxn8Tz24w8tOl6jdxVpKtsjKNIx0GX7aBX+hoBMcFXkX5qvwNDiMc4De+OyWvVFqVod1snOTdQqL8qz2jRsxRzonuuaEaIJVEG6/KCG+Bg089PuePipdiGQ== Received: from BN9P221CA0023.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::11) by BY5PR12MB4227.namprd12.prod.outlook.com (2603:10b6:a03:206::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.20; Wed, 25 Jan 2023 20:42:51 +0000 Received: from BN8NAM11FT113.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::b2) by BN9P221CA0023.outlook.office365.com (2603:10b6:408:10a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:51 +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 BN8NAM11FT113.mail.protection.outlook.com (10.13.176.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 20:42:51 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Wed, 25 Jan 2023 12:42:35 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 25 Jan 2023 12:42:34 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:32 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Wed, 25 Jan 2023 20:42:09 +0000 Message-ID: <20230125204211.63680-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT113:EE_|BY5PR12MB4227:EE_ X-MS-Office365-Filtering-Correlation-Id: 92435d83-01ec-4d5e-5acd-08daff14ba20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x3Dni1dGETrL6xC5BAtM2mb7t0IzX5+CUAUYJS1skfW83Xbp2mRWDWfvcV4F7TTh4DkKZw2Zcr7mkHhlzg6ulzB+tSnVjPWb2qmc6cxko3HJ0p8Vfnd/ENw9Iife6xmdJgolLo7qOrPM0+hmw7W+t9dGuBQHZho+pnBJShvvIgOvUuMWicugtT/QG3XUmm2gcRL2ZHvtqbjMoGAfPmfsf6NEN+eBmYANR1AQCXhP0mGPNQcLaSu2orK4gjjwB+2QjoyAKMkJJJBA43ta1w+Bwdg0Km3zSCT3I8JqTiOg4P4t5DzWPP10FM08Ln3cLoKoZ0rXpwipw1GWG/y+6tqHqKhjzNYNpBZIsleZWaE0bMExhaJ42kQdIjCT9TWHj1NEr1dqRHa4suAe9j0tVEdVQkijvwoWBx6m4j6wdvHhg99iyZUkuxNGsS3EpAALznQzQzj2QayDSYy/+pYRBctW3VT37nWCWA7Ig+bM9nJWyDm3bfjhlK2bgO9Bs9m3R75PAgDdYNtW5T5Tw9NsIAxdpomi/FwPxCzQVd9MJQrCkXpmOPQHRywdWSUM3f+ABWJwqsao1hOBaCEVuSbYLmFKo3YMMZPzHk3R93d9uxhUZoQJO0/JWcrbaExfkBVUnRtjfOtmDGgUXYV2pMnbWST8+AjrRkd1TKZd0ExTwI4HHLI= 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:(13230025)(4636009)(136003)(39860400002)(346002)(376002)(396003)(451199018)(36840700001)(46966006)(47076005)(82310400005)(86362001)(36756003)(40480700001)(356005)(36860700001)(316002)(7636003)(82740400003)(54906003)(110136005)(70206006)(2906002)(4326008)(41300700001)(70586007)(8676002)(8936002)(5660300002)(26005)(186003)(2616005)(426003)(83380400001)(336012)(478600001)(7696005)(6666004)(1076003)(107886003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:51.1426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92435d83-01ec-4d5e-5acd-08daff14ba20 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: BN8NAM11FT113.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4227 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Wayne Chang Now the Cypress CCG driver has been updated to support the 'firmware-name' property to align with device-tree, remove the 'ccgx,firmware-build' property as this is no longer needed. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V8: no changes V7: no changes V6: no changes V5: Added this patch from V3 drivers/i2c/busses/i2c-nvidia-gpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 6d81ea530a83..a8b99e7f6262 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -259,8 +259,7 @@ static const struct pci_device_id gpu_i2c_ids[] = { MODULE_DEVICE_TABLE(pci, gpu_i2c_ids); static const struct property_entry ccgx_props[] = { - /* Use FW built for NVIDIA (nv) only */ - PROPERTY_ENTRY_U16("ccgx,firmware-build", ('n' << 8) | 'v'), + /* Use FW built for NVIDIA GPU only */ PROPERTY_ENTRY_STRING("firmware-name", "nvidia,gpu"), { } }; From patchwork Wed Jan 25 20:42:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 646671 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 9365DC61DA2 for ; Wed, 25 Jan 2023 20:43:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236176AbjAYUnJ (ORCPT ); Wed, 25 Jan 2023 15:43:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236044AbjAYUnG (ORCPT ); Wed, 25 Jan 2023 15:43:06 -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 C08835D117; Wed, 25 Jan 2023 12:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aD+vQxo642aNpObtRC57dQ8j6EtAwAuHO4nU2Ro9e2r0MW/TxORvr+7laXZTQSCq2//b2UfLKSOofbUZJEZpAHXUjhmdMaosEzuKiEVdZzNqQdbfzNVZnrMFDSeEbWQaY8/Y84iE5AucCr9p5Ktm+kPG64kz7f+E2o0DBiTopsKvi4nWwdF3lZ6rXz9KsjATHtnRCzLeVhh2UlabFQtGMaFaOm8Gwx82mv2H1nn81L1wJCmCVMXdzk2dXqwWVU0ho7Yqfph4S6QAjcm+esUjIpyKbkZkSFj0Hb1x0gxZeXt/KO1OZyZhCf2Ry9JPFuqCxAGIO1cddW6+s1GVjT3/dA== 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=4hHPMZCvfWrMBXIRCGtHHdiiRP1KOT+p1YNE4Pj19O0=; b=gpKTFwRFD1VKlDiDN7BaHaGTIKBKMub2rMc/dO7D7WAbrSrZrNrd0YSO5NzaFqXXqi4z/fx/JK7IY62hW8Xz5jCUIyBUr0SbKUwjMgJ3+KRmIwMrznPsGbOQry1Ks5/ULtgWUOS9ajRQrmX0cIlVesFT6Rr3FO33j7OrDbRScF+HlLcb1e3HcofWSxCL8ZpifySTDeB7acRFPPf9dleu/rcojEtV0/d5FLcnnzjDlmnqS/s907xqcZVMcvX/UclCGDerQDr78a6kphQf8orSF30biKweFgSX0KqBM1po5HUFIk6XMYC6WowbKLCXNCItPPri6FBMW2t+PBjtQigJ0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linux.intel.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=4hHPMZCvfWrMBXIRCGtHHdiiRP1KOT+p1YNE4Pj19O0=; b=hKQAqyClm38bNBDZhAgYT+9iSufAScWIvVnl7GBIc43sHF007WHJ/XNO3u0QYWSz2JNNkIoAFOFEVimIaTu5jD8Ir03muhhdxeo1x+xik97N4YfTOHDOZoNOKIHssVyctFsd8Pm7lUa4W6lH373Rf3A5KTYFLPzEm0Qe3Rdgx3YEpl+/sBp6UEIIwqtO2HeQvuPE1agP/nQ0Ty2cz58Stqy1WkzYBO4NDO1c18UasvyXo/Q0kxEVGO9V72+w3Q30MuvHnlvStbbgApU9DsTiWs8MhkocAwqP8yevbiA/tvT1yOOXzC+ORL8SzA1iJokk7B/R6jJ2523ELfRqJPsxMQ== Received: from BN0PR02CA0048.namprd02.prod.outlook.com (2603:10b6:408:e5::23) by DS0PR12MB7608.namprd12.prod.outlook.com (2603:10b6:8:13b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 20:42:57 +0000 Received: from BL02EPF0000EE3E.namprd05.prod.outlook.com (2603:10b6:408:e5:cafe::ef) by BN0PR02CA0048.outlook.office365.com (2603:10b6:408:e5::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 20:42:57 +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 BL02EPF0000EE3E.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.10 via Frontend Transport; Wed, 25 Jan 2023 20:42:56 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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; Wed, 25 Jan 2023 12:42:37 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 25 Jan 2023 12:42:37 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:35 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 5/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Wed, 25 Jan 2023 20:42:10 +0000 Message-ID: <20230125204211.63680-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3E:EE_|DS0PR12MB7608:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a1c1f5e-bb49-4ed3-458d-08daff14bd38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jTWJqwsqe6Xtd7ZpOQduQorXYPfG6HLF4BvWh2XG6RnUy4M2FSUWFMRoCfzIE2TsDwxEsEG6pU1nrwc34ec0JpKQQp1wSZjm4ea2jhwL7cisJlPOOyKnbQUGxlhEisOYnBjvDwuG/9q9t1zK/SKSdlwzGsseKlrRlVG3I6StNSmbM5hQRdsRjjizutFj/EQsintWpvpZ+ULeROMaMuUHsaBNAzZelxYYbW7j0Ra3aAvphDZQuzx48M6arNGLpoLWVfaLoDrzbvuAFMA0agLUXoUaPIAk89NuJSYhXV0rr/u33M/ppO0Vb5+QWX2jr8eFWjdEiEqMLOHz2P2mkZ5O/LWQux/iRN45saSVi/ldSPaoWH1dBQSnL5rAIJujdGdKO+4PE8PXEAHpdeVz7cQD32rBBadrixKY2zEZivW3/Qwm8+XWjaTKfpJhBvhrAl6Do+PntHL3XeGZY7an1w4qdE6svnVb2AYXQCZZKUzUK43mAAKnZLSq+SJedV60cnA87iQo6Vtj1x+EQ0ab3VOvfSp2dUQkzxGOj84YwvnmWj3LubOz1XqFMfTwi4wxgIYezkqv7IVPRIXDnp7lmzb+fFhxhmyw8fLvmCnbIhUaOssoGWIQh1ll6w0QBOcaQle71pvKUtC2VB3tU15ufZAIoqqhMkTt0ZRBV43iAxLOcvqdx1cqG9G7KzTI9zLid/hWTxlMJRuE76EtNDoNa/o0SQ== 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:(13230025)(4636009)(346002)(376002)(136003)(39860400002)(396003)(451199018)(36840700001)(46966006)(40470700004)(36756003)(356005)(40460700003)(82740400003)(110136005)(7636003)(86362001)(2906002)(36860700001)(47076005)(5660300002)(83380400001)(8936002)(186003)(107886003)(26005)(6666004)(41300700001)(54906003)(8676002)(316002)(82310400005)(40480700001)(336012)(478600001)(7696005)(2616005)(1076003)(4326008)(426003)(70206006)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:56.3324 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a1c1f5e-bb49-4ed3-458d-08daff14bd38 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: BL02EPF0000EE3E.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7608 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the USB Type-C controller that is present on the Jetson AGX Orin board. The ports for the Type-C controller are not populated yet, but will be added later once the USB host and device support for Jetson AGX Orin is enabled. This is based upon a patch from Wayne Chang . Signed-off-by: Jon Hunter --- V8: no changes V7: updated to use 'typec' for the node name V6: no changes V5: no changes V4: added in this version .../dts/nvidia/tegra234-p3737-0000+p3701-0000.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts index 8a9747855d6b..3beb510996f4 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts @@ -2190,6 +2190,20 @@ TEGRA234_AON_GPIO(AA, 4) phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4", "p2u-5", "p2u-6", "p2u-7"; }; + + i2c@c240000 { + status = "okay"; + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; gpio-keys {