From patchwork Tue Jan 31 17:57:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13123232 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 48591C64EC6 for ; Tue, 31 Jan 2023 17:59:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbjAaR7P (ORCPT ); Tue, 31 Jan 2023 12:59:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbjAaR7M (ORCPT ); Tue, 31 Jan 2023 12:59:12 -0500 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2067.outbound.protection.outlook.com [40.107.96.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C36EE38B44; Tue, 31 Jan 2023 09:59:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sfpko5u/US7T+9Nh1RcqkrO9fcP7RkepeHAJGB1bFqAQluWIVGmrxMIPM8bOht0wave/FOqc6lCN4gL3Z/2MzTr2wUNDMRzQW2En0BdyS++501tQZb7oJF9KXcExAmyh5IFjV5/Th0Xnvt1Ggm21pt8aZaX2dciCPdfNhxv0YYAzMpbEk7PhJXa+YqOjBEI67iqRp1dnzVe6Sllz1W8eQPWU8F9wrPYbyDm11T7P6FUH8Nbuz+H+OXvJhfb0CvzfJELQcTwx8kUcIsi+233g7YmL/c6Zbc8925MocVwub9GMTzGfOtolPNIAHGmK/EhHXa94QDUF5Xfu/83/1aVNdg== 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=aslm7a9SyXLh/GIMuxNvV8X7WGCAha4Hla78fxuDZWI=; b=CaUvaBVtEgenClvGUlZY5DDWYOjrMdCYw+mepUV4OyN4oXgKP1h4g9dB05jUwrqlbAHnM8OevfqMaWtAr2vDXud/RGsvUV4b43SRnQamzG8U68pFLQ7zOCNtwElZe0JiTArMlzGQhytpe0x0qLVuEUz2VT+asaeXtvRVpexDceKENvzhEY6DXjW8wsDMcIPgAdmUX2JX8Qj9CciNGY43yNbP7kaPGOtLrGs1/awkJLS/wqEX6s/NbSPKaDWMNv7VAKZOS4wUG025yy2/D+gs/LkxeGC4LM2jZQmM0CKpEoZYefVPaSzMEJr/t2uCFP10keDkpsUN2ln2LS6HZ23kAw== 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=aslm7a9SyXLh/GIMuxNvV8X7WGCAha4Hla78fxuDZWI=; b=EOUwny7WIxdbfUCD4orjyGyHmVdiCYr05dIarv1r9LqtW0IiohHkZDU7rZIgOsqonoa98GCAZJppzHiWcRCY/64mOfUX/5C8siG60FxTJqw81gFfhRRYEVoGBRscPo5z1+drhmJpDunkPBkdyGe2TV7S3/8XZn5nv/FXz8zosifqcSy2hxlk/UhLHMPhnwwu2+NbxLue38+f2wOayARjc/bTB+DPzcFoSbR/r3g2XBMLKderWLFGDz/gvgeKei2CdsBTeZ9QONvJe2onKEMWE9q9xY3mJTc8fUWEhPrHtX8fSLj9w20uUiifMdBuCGJNUusTMT+FCGuF+h6/SsxiWQ== Received: from BN0PR08CA0011.namprd08.prod.outlook.com (2603:10b6:408:142::33) by SA0PR12MB4464.namprd12.prod.outlook.com (2603:10b6:806:9f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.33; Tue, 31 Jan 2023 17:59:08 +0000 Received: from BN8NAM11FT086.eop-nam11.prod.protection.outlook.com (2603:10b6:408:142:cafe::96) by BN0PR08CA0011.outlook.office365.com (2603:10b6:408:142::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:07 +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 BN8NAM11FT086.mail.protection.outlook.com (10.13.176.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:07 +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; Tue, 31 Jan 2023 09:58:52 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 31 Jan 2023 09:58:51 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:58:49 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Tue, 31 Jan 2023 17:57:43 +0000 Message-ID: <20230131175748.256423-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT086:EE_|SA0PR12MB4464:EE_ X-MS-Office365-Filtering-Correlation-Id: d71ca5ed-df97-44a8-8907-08db03b4d915 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XXAiPIvmyU2eKdNb/OVKV9LHFehILxTpEKVFwLjcDG4pD7LrXTP2HbonOdGWbBpOELxItkWL9WPJa3xnLfRjKUOKW8qIdzlEBNAc0G/LBqbQuBnKIguvDwjSe3sfyqZiMs+c4wEM8Nox4lz0modqNvD/Z4vH+dHDL74aP/ViK+VMeN/gBY0XgRJOdkoT4fB0iXQXFJz4xgmP9I6KMKa0S9XFq6xSjdf3SG5YRdJ/JM79PfgGztBXxAgdV7Q3JsuUWP/K4Hy/sVDkdWL2X5iAELEpoRzywiOqLFm5Ob58ZiLwzUDbuDuP/jUv8l+AxYaF1yxyqBEXZVfIjSSILaIZ8XrGD+oW+xMFMvWf+SBCPlIF3Q76Wmnk4ufoeblN5Y3EVGk6SWIJaAXZpbkG22DiqNiLASCfWwMrAI30MSi7eQ7laZS/NzR0ZP3eXFmQ9d9u1SPo5AXrjS27ErmrGepr2OF2SMmX7pHyrCCHAqBYpbqVQIuzdoj77H2oL4L2/9fjEF6SmnXmsSGj9hHqlSbIsEcSGrpP0KNJVtIo7LC8j7/IwE9zWaZxx47cbTP34gCYc+qNuXh9vKWat2rTm1WJKOEKNs81k9O0Px8EK7JQ8UN6kC2PJCXf/qyFGYE9mA9+1xapA+msPPsy3/GKAEWSdQWh8ehErX4mF6D9Zt6lWNvZaGKc8jGVuFUxMh9c4k7/fKDzkmZbA/AzoB/gtZWyMIg42bpqG+A8N+Px++hvZ//b/DT+b1P2rJ1Kzt7nNLePr7Lw4c17k13iNdBBNfHRPwszDNTiHIl2LegmNX1z51ovOnbjgcgcHmIwEoHg/lkX 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)(376002)(39860400002)(136003)(346002)(396003)(451199018)(36840700001)(40470700004)(46966006)(82310400005)(2616005)(82740400003)(7636003)(47076005)(36860700001)(186003)(5660300002)(26005)(2906002)(40480700001)(356005)(966005)(478600001)(1076003)(7696005)(36756003)(86362001)(70206006)(4326008)(8676002)(83380400001)(426003)(336012)(6666004)(70586007)(40460700003)(110136005)(54906003)(107886003)(41300700001)(316002)(8936002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:07.1308 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d71ca5ed-df97-44a8-8907-08db03b4d915 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: BN8NAM11FT086.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4464 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang Add the device-tree binding documentation for Cypress cypd4226 dual Type-C controller. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter Reviewed-by: Krzysztof Kozlowski --- V10: Limited connector indexes to 0 and 1. Added 'anyOf' to ensure that there is at least one connector present. V9: added 'unevaluatedProperties' and 'additionalProperties' V8: removed 'additionalProperties' V7: updated example to use 'typec' for the node name V6: no changes V5: updated subject and updated binding to use 'firmware-name'. V4: no changes V3: fix additionalProperties warning on new schema V2: based on the review comments. Fix some addressed issues on .../bindings/usb/cypress,cypd4226.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml diff --git a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml new file mode 100644 index 000000000000..75eec4a9a020 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/cypress,cypd4226.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress cypd4226 Type-C Controller + +maintainers: + - Wayne Chang + +description: + The Cypress cypd4226 is a dual Type-C controller that is controlled + via an I2C interface. + +properties: + compatible: + const: cypress,cypd4226 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reg: + const: 0x08 + + interrupts: + items: + - description: cypd4226 host interrupt + + firmware-name: + enum: + - nvidia,gpu + - nvidia,jetson-agx-xavier + description: | + The name of the CCGx firmware built for product series. + should be set one of following: + - "nvidia,gpu" for the NVIDIA RTX product series + - "nvidia,jetson-agx-xavier" for the NVIDIA Jetson product series + +patternProperties: + '^connector@[01]$': + $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +anyOf: + - required: + - connector@0 + - required: + - connector@1 + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <2>; + + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio_aon>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + #address-cells = <1>; + #size-cells = <0>; + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C"; + data-role = "dual"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&usb_role_switch0>; + }; + }; + }; + }; + }; + }; From patchwork Tue Jan 31 17:57:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13123235 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 CC0DBC636D7 for ; Tue, 31 Jan 2023 17:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbjAaR7T (ORCPT ); Tue, 31 Jan 2023 12:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231550AbjAaR7P (ORCPT ); Tue, 31 Jan 2023 12:59:15 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2056.outbound.protection.outlook.com [40.107.243.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D577F29E38; Tue, 31 Jan 2023 09:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ezk5gBgwWUHyuK398fypdg2X5gfJUILBDTOoxc3uzZUr8A/v1Pg5yZ/7Ycq1a1NXN16TF1EAOHUe1BJCjz1+0qgsqar9qPiMdR1CphAaIKXTJlI2NyFTkVMHmMc8h2ORFzfi55b0ZfSFOjSgTXd6Hg0qNKyUjXFrcqAR8iQhBbxWYZMWlTcJsBYoTOB0ybrEoOHkZBHUnI6s9Vr3QEiF+1+mzWoQDrLxvzd1QvhWQSQF++1OW9/MYe0Bz4t9oApUm6ARySniAtZw/alY9XjXUDMeMxFFsH9E3/b+g/KyHzJUVMVL2GUlrcnHBngTK9t+QPvrp+O990Tsp+dsqCQ2Rg== 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=NxVFJeA3+kof27jWNbbcdoKwIxcQNFUAoG85A6XujoU=; b=ZUo6ppZukbQPGXphlpLSZT+HwYS3osYR0KVPfJHi03TUyW5FFwRwllwHHSw+eCpS7ckaDqtGpL7s0pJaKgTOabXRth+SnRXFcYXL9THFMsZ0Qc1OqM8zOgQ5kT3Dgy5mg8cBsHN4uIGshJoBIwJ951hMOiCJt0259ePjaEdDptA5QLgPtC4kJTPuh7wHSMXYXGhCgw1Gv940r3GtRB1Nc+re6uHHD/X0Qx2bOmUU2VroESwf3oI3u2Etqjx7ftSwnm+VOlhqMCCAfuC+0TkHKLFLAP48xAkEYnQN10z07t8BS7AT81Nfr1XrFVdWK8OcZqaVk2aE7bmsRbU1CPHifA== 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=NxVFJeA3+kof27jWNbbcdoKwIxcQNFUAoG85A6XujoU=; b=kb6mVlkg+Wf3Bmmfw6WN5aZnhp6ko8Uv5qksej04q56mvFCLWDZxhZNNgeh/6COsxAiVP39k2hqNNFqnuzjQRN/7s65hsln29KRotmrNaQMajvJpm97eudXt+vHXzZ1zQSDWciZtBb6BCwTztDljGEZn2McrOW+GxW9LMgAaIrKzsEfoEfE/wMKadu2c2MPw3euj5ALykj+3bD0TqkOMkfjA5aPBpC9syo0XusfQIIHe+dKcP5COvHm00EGfvNFlYwv7NNmNr7jeHmrEjG+9ZoIe2KLg+6fDM9gxFRFCImnXgCuqu5xILVWZhRTyYIOmc4eMlt0GFdr+NNH7FJt7Ow== Received: from BN0PR08CA0030.namprd08.prod.outlook.com (2603:10b6:408:142::9) by DS0PR12MB8575.namprd12.prod.outlook.com (2603:10b6:8:164::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan 2023 17:59:11 +0000 Received: from BN8NAM11FT086.eop-nam11.prod.protection.outlook.com (2603:10b6:408:142:cafe::c2) by BN0PR08CA0030.outlook.office365.com (2603:10b6:408:142::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Tue, 31 Jan 2023 17:59:10 +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 BN8NAM11FT086.mail.protection.outlook.com (10.13.176.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:10 +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; Tue, 31 Jan 2023 09:58:54 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 31 Jan 2023 09:58:54 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:58:52 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Tue, 31 Jan 2023 17:57:44 +0000 Message-ID: <20230131175748.256423-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT086:EE_|DS0PR12MB8575:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d6d0504-45fb-4466-2b6b-08db03b4db29 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: prW7VxaP72CpYrGQiF1dI044UGQKYlPUY8G7xba/q28CdGwLIEvgYTeRTNbaPXv3sgMgqO/p+nKM9V4WNpu8ApaAOOvttmjjOAOrJsZsvD4eYgJD+bwf96aSsbssgM6loqe+NtjOlgND6BUy5x5jW3PuUcSfG8BMmI98KB2FiRX2MaEoXYfYt8sbH9wzVe+2fq5UoAo534GFAqzyeHyCnOTU3VvIap6kt/uJQH5oEJAZinQ0+qjBmxAGoS7Q/nUsHlHjpWnZB5kY+J0KlyGrIVRWM9dWrEow9NxRAyZ/fIn4aWFkhm34a41KJ/2WeZ/fhJAAK6tqHwPM/Ootrflqc0VTkIbnoHArBEIv9p/mG+eOCcea+gG5YjDCtdx++XMUA4ZZ39o+vNnLwHWnYPbkhGdyyCCU+372Pk6nuuJeCGBpQPoF7eJ6z4TWXbvbXnTy5i2ZAJF91XN3f0p5DYBIE9fekDfyIh7Z1bQI7qAOpm3Vuw8ScrY2cnSvtqQtToOMY9iwmsRLPjCWKV/ULRV9Ek7B+LwTFIgMTjP2zwwTpIwPQAD9VC8iMyMxBlA2McM8wbxoA33cyzJI+97A7vDdIt0aeVo8phwCWrZDsvnt+ZsoGqyUWRI8O56L82kwGOyn2Sy6i8chx1e2rf3uuB6xhVHKITxF1pX4jUZlPbS5LtkwVlMbB1iV+GXxSD+EqYFxfWv/eHh66NFKQeY9XVbHQA== 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)(136003)(39860400002)(396003)(376002)(451199018)(46966006)(36840700001)(40470700004)(8936002)(41300700001)(107886003)(426003)(47076005)(40480700001)(36860700001)(5660300002)(7636003)(86362001)(2616005)(40460700003)(356005)(70206006)(4326008)(8676002)(36756003)(7696005)(478600001)(110136005)(54906003)(70586007)(316002)(82740400003)(336012)(6666004)(186003)(1076003)(26005)(82310400005)(2906002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:10.6931 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d6d0504-45fb-4466-2b6b-08db03b4db29 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: BN8NAM11FT086.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8575 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 Acked-by: Ajay Gupta Acked-by: Wolfram Sang --- V8 -> V10: 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 Tue Jan 31 17:57:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13123231 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 2C391C636CD for ; Tue, 31 Jan 2023 17:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbjAaR7N (ORCPT ); Tue, 31 Jan 2023 12:59:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjAaR7H (ORCPT ); Tue, 31 Jan 2023 12:59:07 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2047.outbound.protection.outlook.com [40.107.94.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F43A23859; Tue, 31 Jan 2023 09:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MtYKG9NwjSbtuoSbmTnPU1UbAf8uIiKjscB+P5pyzApa/u2HnAEEbA18xscglHLktLIjXyI82qCo8b4D1JNMs7bbWvW714AcGsAXfJ2cw7zgnG4EvUw5AGI0BflcRc3SMkV245ahPY8LOmzq4ief/9VumZ4Q/9WOKSbV6FYfz25jMsdSiAnqdGSXMC31W6jNe3kHZoSmaTkn0MahSJbmQO5A11h1NK+yXz2d2gZqj/5ztVjVmg6Y4mDObMsY6SS1n3BJ+M5F714jAxZ245myor5HSVqLH9yn5nldxtDJAvHRrimoq1VsLQ7i5HSBg/xyQocAeWSyamnSagSpWVLMvg== 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=mOOwsZY4u5iuq50uii2xX6tbvBZVbyNTqqxjhZzzo54=; b=BHgp1D3CC6FGg6s8WcbNRjcoQqzjrXG+LgSYI/VVPGweqVFFHhBtJQfgrzuXJFjq7MyQrKAsjKpMIijoT2qxxh7J8bstcYcYdg1zopi44ueyogNN5TvtJakU0F9Ui+SVXv2Uv/tC3Z8fkMBe5rPPCFAVFIEwufu9T0aWHJeJ/BlOjAqK+pKRkGMadLACIZgGZ8G+riJ1PRBT9PtpdBOvRVlpLTRN/6uyRqUQ533+ElqlWsw6cj0rekI5WG8lT6fhFR4IouFW9go66RtzJ24TCK9d3SCC+19EUaHv0vF5VnnQxzw1pRiIPF3WgPJnKPhSN+sehrWk0q/ON16tGIZeKQ== 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=mOOwsZY4u5iuq50uii2xX6tbvBZVbyNTqqxjhZzzo54=; b=TpfqcXxzs7lmfKAM1ywv4w/ZltzIYD6y4zqSTj/5aM4k1v2Hf9DJepb/dgewsyvN3jrUtEeVDYC0shsor4HM8WPzZMECjvccsx1KF0h3es9dUwKNJs1LxwkoiuzzzDfgS/6RtvafJf9+BBx/aQlY7kblOn+hUsWT1G4SgbDFpGmKXINJFavrqMU0NkrOsDIXf8ALGlqahb8KYSk5W9Ef7Yt5uyAINyS/9GT5oRcxNu5kKfYTLGEn80oJxLzD6YRXki5ot2whzjJaowd2zUq2srKb3yI6uDDVUHCuU4YbeozC1hy4UWDC/YdglqnOLB0IsLbQaP44C8IHnDERo6ofgw== Received: from MW4PR04CA0316.namprd04.prod.outlook.com (2603:10b6:303:82::21) by SN7PR12MB7785.namprd12.prod.outlook.com (2603:10b6:806:346::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan 2023 17:59:04 +0000 Received: from CO1NAM11FT054.eop-nam11.prod.protection.outlook.com (2603:10b6:303:82:cafe::12) by MW4PR04CA0316.outlook.office365.com (2603:10b6:303:82::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Tue, 31 Jan 2023 17:59:04 +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 CO1NAM11FT054.mail.protection.outlook.com (10.13.174.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Tue, 31 Jan 2023 17:59:04 +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; Tue, 31 Jan 2023 09:58:57 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 31 Jan 2023 09:58:57 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:58:55 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 3/6] usb: typec: ucsi_ccg: Add OF support Date: Tue, 31 Jan 2023 17:57:45 +0000 Message-ID: <20230131175748.256423-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT054:EE_|SN7PR12MB7785:EE_ X-MS-Office365-Filtering-Correlation-Id: 5bc87efe-14be-463c-255c-08db03b4d73b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IyfYhuI5wo60hMf+hUVaqwv7vMAefza745W3mhDeFH/C5cSjfIDT+FXJvR4YvmFMQWIt+T/trB7cPnUfjwVZqyFwVHbu0l3ERmn5F2sgfrpvgBD61KcTL/fCAKKz5KhVPyu010oolHkhe+UXl2YDCZAbOgBN+9xLf+ioxoJZQltPG4MR2KFtGjgM/C5PcBtHkrZe7R85GZw7ymZyrTlE9QYV2ZG9t7KObedNUiQeGOKcTRdcBj63NkFdOwH9f2kcFhHRxScrTmb+nIJg7fiLcHCDA/udAoFHWajgSNr8IocBTIlVKyuTIm36nP2/T2Un37am7kvgyw5Het9k5kbylZUGS1VU4ylK1whfix6dFJ/gp24npENhCj5yJzB+sOw7QxolU648mSxiyCTEoNiJ0qMEg6EG+arCnRKle5epjeOzF/zAmLYqUIAinp3GKY6kZ7Z/V7Fj1mADdb2JL0gf9//eFQuDxdJlAR7NYygsbPpMvGjT9KPgECLckw+Ipz6oNXl1hPIr8TpNNNJNxXHr0X4vjzRYAi2WSMEt7QxpFBh8FwL1O6lJX7HX/NnQ129aIaGE61tkwLL93yvhcmxlluTOw3oVYrknRrOpFCPqpp1xGwuvJsUCEI5ejDWTQV0IMyGYnElDcJGX+zpU4UuKS1XwDlwKHjxsZ1Zn7iI1ppn/JHmKVeV/nqMioR9Xamha0moPPvEASkrHiOfEw5X6jg== 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)(39860400002)(136003)(376002)(396003)(346002)(451199018)(36840700001)(46966006)(40470700004)(41300700001)(4326008)(8676002)(110136005)(107886003)(40480700001)(8936002)(316002)(70586007)(6666004)(70206006)(5660300002)(54906003)(83380400001)(36860700001)(36756003)(40460700003)(1076003)(26005)(2906002)(7696005)(478600001)(186003)(426003)(47076005)(336012)(86362001)(2616005)(356005)(82740400003)(82310400005)(7636003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:04.2093 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5bc87efe-14be-463c-255c-08db03b4d73b 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: CO1NAM11FT054.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7785 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang Add device-tree support for the Cypress CCG UCSI driver. The device-tree binding for the Cypress CCG device uses the standard device-tree 'firmware-name' string property to indicate the firmware build that is used. The NVIDIA GPU I2C driver has been updated to use an ACPI string property that is also named 'firmware-build' and given that this was the only users of the 'ccgx,firmware-build' property, we can now remove support for this legacy property. Signed-off-by: Wayne Chang Co-developed-by: Jon Hunter Signed-off-by: Jon Hunter Reviewed-by: Heikki Krogerus --- V9 -> V10: no changes V8: Add Heikki's reviewed-by and fixed unnecessary line wrapping V7: removed 'ccgx,firmware-build' property V6: fixed compilation V5: add support for 'firmware-name' V1 -> V4: nothing has changed drivers/usb/typec/ucsi/ucsi_ccg.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 46441f1477f2..e0ed465bd518 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -643,7 +643,7 @@ static int ccg_request_irq(struct ucsi_ccg *uc) { unsigned long flags = IRQF_ONESHOT; - if (!has_acpi_companion(uc->dev)) + if (!dev_fwnode(uc->dev)) flags |= IRQF_TRIGGER_HIGH; return request_threaded_irq(uc->irq, NULL, ccg_irq_handler, flags, dev_name(uc->dev), uc); @@ -1342,6 +1342,7 @@ static int ucsi_ccg_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ucsi_ccg *uc; + const char *fw_name; int status; uc = devm_kzalloc(dev, sizeof(*uc), GFP_KERNEL); @@ -1357,9 +1358,15 @@ static int ucsi_ccg_probe(struct i2c_client *client) INIT_WORK(&uc->pm_work, ccg_pm_workaround_work); /* Only fail FW flashing when FW build information is not provided */ - status = device_property_read_u16(dev, "ccgx,firmware-build", - &uc->fw_build); - if (status) + status = device_property_read_string(dev, "firmware-name", &fw_name); + if (!status) { + if (!strcmp(fw_name, "nvidia,jetson-agx-xavier")) + uc->fw_build = CCG_FW_BUILD_NVIDIA_TEGRA; + else if (!strcmp(fw_name, "nvidia,gpu")) + uc->fw_build = CCG_FW_BUILD_NVIDIA; + } + + if (!uc->fw_build) dev_err(uc->dev, "failed to get FW build information\n"); /* reset ccg device and initialize ucsi */ @@ -1426,6 +1433,12 @@ static void ucsi_ccg_remove(struct i2c_client *client) free_irq(uc->irq, uc); } +static const struct of_device_id ucsi_ccg_of_match_table[] = { + { .compatible = "cypress,cypd4226", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ucsi_ccg_of_match_table); + static const struct i2c_device_id ucsi_ccg_device_id[] = { {"ccgx-ucsi", 0}, {} @@ -1480,6 +1493,7 @@ static struct i2c_driver ucsi_ccg_driver = { .pm = &ucsi_ccg_pm, .dev_groups = ucsi_ccg_groups, .acpi_match_table = amd_i2c_ucsi_match, + .of_match_table = ucsi_ccg_of_match_table, }, .probe_new = ucsi_ccg_probe, .remove = ucsi_ccg_remove, From patchwork Tue Jan 31 17:57:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13123233 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 37986C64EC4 for ; Tue, 31 Jan 2023 17:59:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231573AbjAaR7O (ORCPT ); Tue, 31 Jan 2023 12:59:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjAaR7J (ORCPT ); Tue, 31 Jan 2023 12:59:09 -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 5086E22A2B; Tue, 31 Jan 2023 09:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dv752cQQt4HnPDOOWBpsjpuAWpG4SGZfN8xUM8jk0Z9MZk2kGibei0UoruqYlqSMG9abjr7CiCaLAz93bhOGU8iTpZf2Dj58aTS7mnQXtiqk58370ttJmLFb3XNszyXB/sFx9Sc002tMuZkVm9S4UXIuubAtcv98wDWUiKbotJm2YyP7DYOEdjqx8i08Zt06oXnhuYDfCibRi0xmeLOn0SWc76BmpRgS7BC2/ZNR3i7I7cfdHTwjrojtMsCK9VeXHwPsTLLCjlJkX1qybPZz/QV/zXObrScb+NDKuHYHYnW/zh/egH3JtvaVpbGoEdbjUK/I6JhU0xh9HW8opBeojA== 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=1bEbMfkocNtah/XymelwM/Ra97UskU86AVK6OObPcHk=; b=Ct8LPTQApXiRKXC0y1Y2q3sZ9MfxERTyRuwh0241veZQeuFHRgViLFhbQG8W3XKzknarZTfoV3JUO9chGmi8Os1PHsiMP5L/1n4i7I1kiNtyif+Geg8rcpgSODxFZ+aD1EN918iTiA9h5sk7kvvKKCZtOSriDkpL+eILAtPqZo8KIC6H6c6P18LRuE4Wz9OS1gzAgcHOxo0gdtgK0N4OF82rIvJS78xOpVo/0UsUr6gVUh9ZEcpZndNCpPQR6WIJjdBxBmhsReMpkjBPaWZSvrl2o9p55zxOZjNcHZMLkyrjIntrdgU4YK9BWUP38i9gx6rN6u7BQuwdHtd3GA+rIg== 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=1bEbMfkocNtah/XymelwM/Ra97UskU86AVK6OObPcHk=; b=BT74XDC0USBYjjuQitsc5O4mw8xJaXYrIpv5biiNWlpx8YHJdQJG3ubYbcnClj2GmbWeeAEc++57mHg01u3ka3oDNAbWwZIxwF0BOJos2z4uc4rJwBpOlDCtf1U82vwJePAaoGAz8kSfW+8f6AEOrGAFsquy93zZYUi18kj35hn9JAt0nk/jqJFF+kBuGDhW6wOulOr38Gl78X7n/0YMOtgkL78DnTG6oSN6r3KLhs9gzKq9dmruL+zX1kcFd3aaLMASGAR5sLHC24IcpuhFNGGfYYeW454OFjahoIFfW6cROrtoWLaMwa7sgIAgBTskBmjxuxciDV6aZ/uKO/9xBA== Received: from MW4PR03CA0190.namprd03.prod.outlook.com (2603:10b6:303:b8::15) by DS0PR12MB7778.namprd12.prod.outlook.com (2603:10b6:8:151::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 17:59:06 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b8:cafe::8) by MW4PR03CA0190.outlook.office365.com (2603:10b6:303:b8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Tue, 31 Jan 2023 17:59:06 +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 CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23 via Frontend Transport; Tue, 31 Jan 2023 17:59:06 +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; Tue, 31 Jan 2023 09:59:00 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 31 Jan 2023 09:58:59 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:58:57 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Tue, 31 Jan 2023 17:57:46 +0000 Message-ID: <20230131175748.256423-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT042:EE_|DS0PR12MB7778:EE_ X-MS-Office365-Filtering-Correlation-Id: 02dcd983-14e7-4b6e-6cf9-08db03b4d87d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4A/rM+qWDW3lUEmGIf1kzIDNJXWsDMK9NOljKSx+XLNsJM4Syjs5eBTcECgsV+fbMYYqEgHYusVOsXdP9xQjTyFjvjfmLATL5SVjxzQnPaWRfULG3Miu1VdhSuhJcOeVf9qrHcIBdG1ZWn52mD8gxt5XhlWnaqg2L4VhAI0Js+v45vj/vxRwuXLoMDA9icRcDsisTCcJsVJq4dxEHhNyHzWtjmQTwcJ8FMIWc971GZHro+6WMw/cZ4IrAVbjc8PK37dum/a/cuEceC5qB86IT5M4Vqu8B6oafyE5uenm5oR5dMQIDB48gFXl7yPZVtGnk9OdDQiH//1dfIZgSgXw8DGeL59Z80KmTTZ+GfBRYfbgp69sG553IxFlEIEmKvZxCRc3SMTtfN18DDreNMH32C1SPBeVgmnyrL9ClUvGwsp8uYJNEr7Wk7JY5jww57sE1QeNo5Zt75LHSO9nn0hTg6Y4yl0kjpRBoQkiu5Xv+JNQRFv7XBIIRwwgoqC4/6CP5ljZm2+vnwcVIKsO4FLODBP/YBpvnmmbzNOxLxzcnT4hn4fx4qkL8ojPDWEWNcEeqyojiZEa9SswyymQ5NJXU72VXYos2SfIViulkpQEoWutKDlmy+iGk0ngHm3Sfl+uhg8rdrNdkWbKMAlblD2YtJGeAa5qrcfkFsPT/6dmrnxezUZd+A6RVlozN9R0pxQxMIg6t+nk/TUcjYTCHyQicA== 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)(346002)(376002)(396003)(136003)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(4326008)(186003)(82310400005)(26005)(1076003)(107886003)(36756003)(316002)(7696005)(5660300002)(41300700001)(70206006)(70586007)(54906003)(110136005)(8936002)(6666004)(356005)(86362001)(40460700003)(36860700001)(336012)(426003)(83380400001)(40480700001)(2616005)(2906002)(8676002)(478600001)(7636003)(82740400003)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:06.3214 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02dcd983-14e7-4b6e-6cf9-08db03b4d87d 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: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7778 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 Acked-by: Ajay Gupta Acked-by: Wolfram Sang --- V6 -> V10: 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 Tue Jan 31 17:57:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13123234 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 56000C636CC for ; Tue, 31 Jan 2023 17:59:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231575AbjAaR7Q (ORCPT ); Tue, 31 Jan 2023 12:59:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjAaR7N (ORCPT ); Tue, 31 Jan 2023 12:59:13 -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 D314A4900E; Tue, 31 Jan 2023 09:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kSKNrE+z1ADcyFCCKtLclFw09PivMsOpU5ImD60O5UaEuV8FwbsQnXVO0/MJKNNlrNwD3eFfZ/fd772q+RmLx2Oszaagp+k2doO0KNHfM4qgPxLWPDGFjuo9uFgff+h/LsbyxzLjnXPLCI5Pe5nSchRQ0gGadUJlGtEFUZPocIC63tNa1o82rMrn6bzUk1ZiBGthpm3KsVM+E0gFJ0u/0/0Syz7jfqvLEwMpQOrQnrtqJ1uNSknSaoAi+BoBY4WTJ6S0HtSbwTRFoZ8v1EFJLcAmZWTHfCnjrEfGHXbU0neKhYB0jB7p2w2Ff0GSkzysD9Oy0gv0KJUk4XofISRzIQ== 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=XBXshQTJI2cqEhrRnFsqGNGlKErb7yK6vxxhU00D4oA=; b=RQhJGOlEI6FxYEHQUE8XMb0oybvyerfg3n9MtWC9QQPRw8CgHY7PimYy8kEcBhvLfzzP1lOjl1sxOKAHexcHqxEvDznA5MAfMysvf21GzYQUB7L51owPfyY4WrNmoDZ62KjDwEMcJx2s2wgOJGH3xfmC5DbNN9KYmZxWlSoTKsESlH1TH2PIeN8eq89/4ZWsveS/GUtT+nrxpAttOQyhYrSTDbdzKm3u2V6j7kH4cNSCrtfPANUkuRrxaSCG9E+vDqJqKlUKdiYFWfO+YYIaMHSW/KRJnVRkh4vBBdpw/D2m/iPPpWdKof/ypqsNVMVNLx/FFFIj0mazfejElqTBgA== 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=XBXshQTJI2cqEhrRnFsqGNGlKErb7yK6vxxhU00D4oA=; b=YeJ+ch9edWNWNT08Yj/f8hW/4xiEUR4g6WiTMBSPBcisEBzeqUK+FWG/LpoQNXCM/m4ZpijR/eGUdw/gH9ylE8NJvuR1+5QZbo5RxWnT6lP6yrQM1Ws4k8Lgh88su7i+REhSAfkHnDJWspvcuBQvReWV9kDRqN43qBSKU5trwd7yYGLxV4tVu2Hzrn4cXeyaDePFB76PSIc0He8tLvLrar0jLQo/xR8A5BuAhXRwOVQjDpAGhXzKm076V/pHCquRijoCG7G8FBp26wNYydrbjnf9Pk4Ek+VPKENlv2vaFnSE49xPgn5L9zgSgc/pbwYZZ7uD39gjYKPXgZuJbCt6Aw== Received: from MW4PR04CA0091.namprd04.prod.outlook.com (2603:10b6:303:83::6) by DS0PR12MB7678.namprd12.prod.outlook.com (2603:10b6:8:135::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan 2023 17:59:09 +0000 Received: from CO1NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::8d) by MW4PR04CA0091.outlook.office365.com (2603:10b6:303:83::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38 via Frontend Transport; Tue, 31 Jan 2023 17:59:09 +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 CO1NAM11FT031.mail.protection.outlook.com (10.13.174.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:08 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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; Tue, 31 Jan 2023 09:59:02 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 31 Jan 2023 09:59:02 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:59:00 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 5/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Tue, 31 Jan 2023 17:57:47 +0000 Message-ID: <20230131175748.256423-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT031:EE_|DS0PR12MB7678:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f3f214b-5952-4354-9ae8-08db03b4d9ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kRS4Ta6VFW2xOcssAdl7fCuIho5ATymyRXivKVhtuf2mJjOiJUiist9GcuY6SpKemeQYs0j95q2AEFtsTEVZeaO7aKyS+jMeNFxa0KwMfkSSht39opKR9r2JNw7toizIPbtbNngtxpw5n65PLlGhWRikT/VInD4iqI32dGs+TlASdlsn8k4GmuWiR8z4AJ7OuBCVwG4UPH5fZb3g5TPXv0OndbPkv2WxrxFLIk4OReNkD2HVs7CUPDDyXRml2dc90VT2ujEjDxjNAD9pla/L8P0Oo9Umx2129IDojxZ58q07udTxmrPpa1a3CQ47gjK2Yn9dEiPRC4GmolJrQmyOnIwJw6E3rO49pBowjNeEUYjb/v0tmFNE+Au79uERDOi0qGzXiLOAnsMSeLTzyqZ9BOpHqynslvKhE53ieBFvQQ3IkyA5XIuXNqErGtK69XSYOZWV1bBmBg9o7d33WnxKhYqPqDYcx3cazwvh/gWkP7yBGfgSkv8sYwhfH9yKPPYcROHk6VmzFBcgDVxjDdYrCiVLgHieHyJ2QnhkkhXWUPrEnNjQqtg+ZseACq6Yiuucnjhd46Bi/4D6K5Q13SvBPttUmaH4gzm7bck5Pp1sy2YKP2hyDUZC3UkQESGYRjNhfTqUJR1UwzDVybXN5uIR4hvuMJF5mLTApuLIjp5doqDc+WFej163UGgMzX3W2oJ18zV/A7qJRTuYWorB7i/RxA== 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)(396003)(136003)(346002)(376002)(39860400002)(451199018)(46966006)(40470700004)(36840700001)(82310400005)(2906002)(86362001)(336012)(426003)(47076005)(83380400001)(8936002)(41300700001)(40460700003)(356005)(7696005)(26005)(36756003)(36860700001)(478600001)(186003)(6666004)(1076003)(107886003)(5660300002)(82740400003)(7636003)(54906003)(110136005)(2616005)(4326008)(70586007)(70206006)(316002)(40480700001)(8676002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:08.6991 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f3f214b-5952-4354-9ae8-08db03b4d9ea 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: CO1NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7678 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 --- V10: Populated connectors for type-c controller V9: no changes V8: no changes V7: updated to use 'typec' for the node name V6: no changes V5: no changes V4: added in this version .../nvidia/tegra234-p3737-0000+p3701-0000.dts | 78 +++++++++++++++++++ 1 file changed, 78 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..33ef939fa3bf 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 @@ -2073,11 +2073,21 @@ ports { usb2-0 { mode = "host"; status = "okay"; + port { + hs_typec_p1: endpoint { + remote-endpoint = <&hs_ucsi_ccg_p1>; + }; + }; }; usb2-1 { mode = "host"; status = "okay"; + port { + hs_typec_p0: endpoint { + remote-endpoint = <&hs_ucsi_ccg_p0>; + }; + }; }; usb2-2 { @@ -2093,11 +2103,21 @@ usb2-3 { usb3-0 { nvidia,usb2-companion = <1>; status = "okay"; + port { + ss_typec_p0: endpoint { + remote-endpoint = <&ss_ucsi_ccg_p0>; + }; + }; }; usb3-1 { nvidia,usb2-companion = <0>; status = "okay"; + port { + ss_typec_p1: endpoint { + remote-endpoint = <&ss_ucsi_ccg_p1>; + }; + }; }; usb3-2 { @@ -2190,6 +2210,64 @@ 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>; + ccg_typec_con0: connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C"; + data-role = "host"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + hs_ucsi_ccg_p0: endpoint { + remote-endpoint = <&hs_typec_p0>; + }; + }; + port@1 { + reg = <1>; + ss_ucsi_ccg_p0: endpoint { + remote-endpoint = <&ss_typec_p0>; + }; + }; + }; + }; + ccg_typec_con1: connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + label = "USB-C"; + data-role = "dual"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + hs_ucsi_ccg_p1: endpoint { + remote-endpoint = <&hs_typec_p1>; + }; + }; + port@1 { + reg = <1>; + ss_ucsi_ccg_p1: endpoint { + remote-endpoint = <&ss_typec_p1>; + }; + }; + }; + }; + }; + }; }; gpio-keys { From patchwork Tue Jan 31 17:57: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: 13123236 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 47411C636CD for ; Tue, 31 Jan 2023 17:59:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbjAaR7W (ORCPT ); Tue, 31 Jan 2023 12:59:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbjAaR7V (ORCPT ); Tue, 31 Jan 2023 12:59:21 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2079.outbound.protection.outlook.com [40.107.93.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74BD121A31; Tue, 31 Jan 2023 09:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBisflVk6cfyXZtOiIoQJBNo6mg5FBnUfa8TPDTrMAqhPJmgp6YMYbz1HWIw9zO6wJXJ87tPdMjfpm1FnrSP+12lDNZL97mvL7KgVLoLxoPQe5pgl2sg320BrDRohq23wMISUFkSg2yoj0ejUK33fh0yRvlgr1IaA5jfvZ1Q2v3jnBn3RPBImEO3HH1Es+Qy6CQeE5lOd+ycyehckzCzNKR12lB3GJ+gXGlaR3cvdRqHfu2TzJQZckdgMuf1yyjtfRrfBS0MwMca7C5yDWXdo7iPsuY9iVyoZkvJNnLBa5Sr9iJfinrjvj3rrc6hvjPo1l5i5yaaqECpHOetkjJ0yQ== 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=z7FDRxLahFR6uDmDIwphTX0R7vjBs5HU4RejtC3PX70=; b=Tt8jofG0J0tzGKn27erj2Z0rcXwYY7yRutKlC3P0XBNr1EK+jxIgeKij+nDfGiHmbSapLPS4Oeo2TUaH8gQ9E5B/iHCdmLH0G4VkETXjUyTp7aeNro2mQp7w0I6Hk8OLBsqePTgXt8sUCG0T59WNtYmplbFtZucJKgxbyWfkSRquzJGkK1gKsraN5qvDuILGVffftO54MMJAOr6oANQEVm4jUFDmAUKo/2nXfCf932Ssc9tJOsbfhsXIvr8zY/g+N/+TWO53j9HEfwPRsIF6CkprEVasnuFkZdGKjBA0vJ6ku4LYYq4hxQ2PIsxeAlF1fhZjqxCzx0XXlJ2oxnBxGw== 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=z7FDRxLahFR6uDmDIwphTX0R7vjBs5HU4RejtC3PX70=; b=Hi2gJgTG5YVV9dsACnFK9jxAns6TYDe2PzkEJGB/iPrOFF7X2NZgB88zIa5e43M7OuI0NHvZnuj5VIEYETsFWXym5R2GANEPK0uvcTF8zK8wr31KbrcpeQs+vp4oQGfBo83b5EofhOwOV42THOcu3+Xa/J2SnwsFOi0q0lVhlnbEOvs5yuznXw9RuXAwgirUDrfKeLDN+HupHfQEWnkAtzkFZkg64D6wx4s9u18VBujQ3Ydnhs+bmj6E0xIj/6ayxgesO4S3fvcuycrk/G1oWenck7JGmdORgs7S5jHAVnFQr8Rv7Lx+ZR5d0TBmSkd18heVV3lPxits8MUc8n1QJw== Received: from MW4PR04CA0110.namprd04.prod.outlook.com (2603:10b6:303:83::25) by DM4PR12MB6184.namprd12.prod.outlook.com (2603:10b6:8:a6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 17:59:14 +0000 Received: from CO1NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::94) by MW4PR04CA0110.outlook.office365.com (2603:10b6:303:83::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38 via Frontend Transport; Tue, 31 Jan 2023 17:59:13 +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 CO1NAM11FT031.mail.protection.outlook.com (10.13.174.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:13 +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; Tue, 31 Jan 2023 09:59:05 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Tue, 31 Jan 2023 09:59:04 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:59:02 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 6/6] arm64: defconfig: Enable UCSI support Date: Tue, 31 Jan 2023 17:57:48 +0000 Message-ID: <20230131175748.256423-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT031:EE_|DM4PR12MB6184:EE_ X-MS-Office365-Filtering-Correlation-Id: 450fe0d3-858f-48a8-0a4e-08db03b4dcef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KhJzkncrdrTOoevo6Ho0lrsU/zMRqnBGcIEGfGSArSbWhe7Jir1XZ+4uT70lm2K/+Kh8I/mBhI889T43d4XZhktMcfbTsaFpjDF8iYq+CxNz5JpTaIqehgHoGJzuI+/2gK1Sfcrmj8nWMaTF/hD1yR/RZxHiYaEAItdSpaqX+kMVccGFqh7MRBI1d75BPUsBD6+0O7CQ5yMNuOJE9gLCmRhdz1Ssuh8YHWbQYbJp60EWYutNqsvrNHkvxwjikvN4owRR30OSVGeQHL1Zz1C0weaoVWZPHz0GtGTiXAjfL09xNk8MHXJzOe+raTknzzatPP+i8DVPOlb+KBsAZHIhlNBzpI5S6kK4PnSRdD8dbQStPox1/AGcIE8rEV0fZ7J7GtbAHjLsWUunjtzRXv9fSTtJGpkj78Pbe0bfbWA8+KuIyNF2MwTmTOJAb1WpN97zW6a3Y0C+HxA3ZH8Ap1mEz36GGJiddyJShqBvRgFWfVA6IsIK3wVYRcidt1oChsymeuY6w52LOySIpkkHW5HPl6Yw5gJ9VXmADyLhhAmPZNzpdNnXLFUiLkY49yEaAX53hlCc+PwIazQCC60ra+ZqiMPAd8V2Z/Cw9VtgPZ5KQRcRQYIaVy+xb+7bEczMN26MbEk0NQp5ZK1LrjD3PCjyD6uQuU5TdliVb6zzxs3IXCz3LtwITiALhpYlZVh1EQjHJH47L5vnzUgwYUb9/jRMjQ== 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)(376002)(396003)(346002)(39860400002)(451199018)(46966006)(40470700004)(36840700001)(2906002)(36756003)(82310400005)(4744005)(2616005)(110136005)(336012)(426003)(316002)(54906003)(83380400001)(47076005)(6666004)(107886003)(1076003)(40460700003)(356005)(186003)(7696005)(478600001)(26005)(70206006)(4326008)(70586007)(5660300002)(8936002)(40480700001)(86362001)(36860700001)(41300700001)(8676002)(82740400003)(7636003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:13.7613 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 450fe0d3-858f-48a8-0a4e-08db03b4dcef 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: CO1NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6184 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Enable the TYPEC UCSI support and the Cypress UCSI driver that is used on the NVIDIA Jetson platforms. Signed-off-by: Jon Hunter --- V8 -> V10: no changes V7: Added in V7 arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 984553d55e17..d487d0e2b8e0 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -959,6 +959,8 @@ CONFIG_TYPEC_TCPCI=m CONFIG_TYPEC_FUSB302=m CONFIG_TYPEC_TPS6598X=m CONFIG_TYPEC_HD3SS3220=m +CONFIG_TYPEC_UCSI=m +CONFIG_UCSI_CCG=m CONFIG_MMC=y CONFIG_MMC_BLOCK_MINORS=32 CONFIG_MMC_ARMMMCI=y