From patchwork Fri Jan 27 15:10:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13118812 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 A35A1C61DB3 for ; Fri, 27 Jan 2023 15:11:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234188AbjA0PLK (ORCPT ); Fri, 27 Jan 2023 10:11:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234130AbjA0PLJ (ORCPT ); Fri, 27 Jan 2023 10:11:09 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2080.outbound.protection.outlook.com [40.107.220.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C6B283263; Fri, 27 Jan 2023 07:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9fMUsfcAJg8Fo7Ks7nRsxW7G+YyL3zbWJD5zX4Q3c/1M3BhEsf7btqbng9tJNChymwtELYQdTcns0S47wjWqvK1MfZBr/fO9kiRqnV0yIFkZ+imTaHQLILd3HneJbEjaQuy5pWHb6aa2HboT29asDZ7VCtaejcWojGaI/FQxQYvAVBsOyC32imwvjBwaeuMnreOgc7lX8Tl2yd6G8XXh+yK7sdzhG3zZ5WkyaEpQJOKBWORJlb8tEEfr0dF7r4J6PQgLH5D1x6qxkoDflJvT6ae7y3sGsPD94NVs1rwffAIlYH9kCQXCPLTFLN3eChDkoo1/nQbyFlJTjXXJd3DMg== 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=VcqgtF+b4lBSI0h51UfTuL0QGx8UBt8ILdyl4wAa0w0=; b=dLz9pU3qVBOkDg9GrkKVPtLKTfm3P/y5rl9x52Jz4BzDb8NlOvoXLwXvptFQPDwPzrAO+U5Uz+grgGBbSgo/Yihjzx7pVuwlrQi9VU6poGwo+DBHRcKFjY3mXB33KrP5V5P2yaTYUw8a6Ebk/LW3VLJWuR4kvbZg9Y6JExxtFHKBk1q5wdfLXEJZNN/p2IX4XvqdnIsb9Z3GdGx2x83AXq/6aody+M1wQe5rS+53TQnZA/rvWzqmWBwHqcxZ9WOhbdd0ohSDrpScKBkK1EC7Kz157xZ8j3lvCFfkkrWMYHndtzqQz0wBNAtSbTN7bSgxArGWt1woPKG1+cHOHywWfQ== 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=VcqgtF+b4lBSI0h51UfTuL0QGx8UBt8ILdyl4wAa0w0=; b=ZprANJ2SgNsFdLstaw2FhiEjObcbLD+s00NB7AGZkSd6oLNQQB3nwT4XdiqTz0wf0NdxQ9tSSHRBinhUyhykicAaKh6sE2n59kCVT01GKC8iBeWULTZw8x8JuoGCuz4TFl/Q3wvIKvDtpd+d14+IJuacROc5OC7LcKZQus1T3i2Xo5n/27lEIRd3I/Y/UT/KAfzYzVpyvy7To7eqGWWIiqib9gkJRp+OFNb+LhTCv3DEn+iaGek1VLVrAlX71qKJlsOljBqKOLt4r6xicz6R9/cMQWP5c71JNUrnNHAyyCZh3i5a/bKeVJj7rH/Y2W6Y7RfbFcAsDTU6piiSJUCcLA== Received: from MW4PR04CA0206.namprd04.prod.outlook.com (2603:10b6:303:86::31) by DM4PR12MB5987.namprd12.prod.outlook.com (2603:10b6:8:6a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Fri, 27 Jan 2023 15:11:06 +0000 Received: from CO1NAM11FT059.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::26) by MW4PR04CA0206.outlook.office365.com (2603:10b6:303:86::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.25 via Frontend Transport; Fri, 27 Jan 2023 15:11: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 CO1NAM11FT059.mail.protection.outlook.com (10.13.174.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Fri, 27 Jan 2023 15:11:06 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Fri, 27 Jan 2023 07:10:53 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 27 Jan 2023 07:10:53 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Fri, 27 Jan 2023 07:10:51 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V9 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Fri, 27 Jan 2023 15:10:36 +0000 Message-ID: <20230127151041.65751-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127151041.65751-1-jonathanh@nvidia.com> References: <20230127151041.65751-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT059:EE_|DM4PR12MB5987:EE_ X-MS-Office365-Filtering-Correlation-Id: 6cda27e3-e7dd-48b8-dc03-08db0078b67f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DuL6Tpt3SbqvW+CI4S+2/3mJtiAfMfXkpH+I5le80tG9T/HhF6fWHfmhEBuU++dc+B4/kIwZ/JCOjq72RmZLswGtp6pwJneF4SjvrEWQuY7b0mEzFy8fL60m/qxIerxn0n3FE4xsc9PdpqzyAx7PguxZAJYz7YhMBjuAC5GkaSPJWZa89KDtJSklRuVNxaNVK1Uj76C6T7/05D2NCCF/k3NlIdwIYNVi8w1KSDLWoATSM3zeKNlFBXL1rynP0FgIwN7Ct+IMl8fb9BPrWSKqJYyvhS0yPzabz3mVHVMmLdIg1P9izwr+VIgAePzvTy6GHDYpJ2qdQ8+Z4sTbdFZcBKfRnBKcPFYAKMSrgO9NhOaS1MD+gn9gOSceLfeo+2YdQh3m8aKoLvEAokKBwTvVN+gPXmCxArI+G7s+bwR1YF9Mf4vVgdkDWQcJkApoOQAtCxlxwkXD/AXYHmfdt0VpeK3HOEPRDEi8AR/t9WKUBUoeIQBr02OrXE2jjxytjB46j8pFsWp5BF9cCmluuS8lkW9YW9fazpRP4Evpd4Ab/vX9rKLwTfIHnpwTQxjFVfshZptjT7V2Vhb/lDru6ESvTFl1f32tNaQh9kEFV00WnmZpGgIsvIuvMdaS6MUeC1+ZvFA53Gub92qMotoYLWehGjM0esAKddoHrkRhfuOeaeXnA9KoiLzk4Oq7jMFyYojVHZpjPSPct4bULaQcmrc/t6eIp/U8c4rWzi4v3/A7KeFu/WeDHsJRnIP2E8snvFH4Fx7pbtN5/0Tkr2n+rBjTOvO3shbAV4OfhHVx3ly9p4cosHshpOF/KKOHhx0ViKKr 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)(346002)(376002)(396003)(136003)(451199018)(40470700004)(36840700001)(46966006)(36756003)(2906002)(966005)(2616005)(5660300002)(40480700001)(47076005)(426003)(82310400005)(336012)(7636003)(356005)(82740400003)(36860700001)(316002)(8936002)(8676002)(41300700001)(110136005)(54906003)(4326008)(70206006)(70586007)(26005)(107886003)(186003)(86362001)(1076003)(478600001)(40460700003)(6666004)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 15:11:06.0027 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6cda27e3-e7dd-48b8-dc03-08db0078b67f 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: CO1NAM11FT059.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5987 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 --- 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 | 92 +++++++++++++++++++ 1 file changed, 92 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..b68f9ba621ee --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml @@ -0,0 +1,92 @@ +# 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@[0-1]+$': + $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +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 Fri Jan 27 15:10:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13118814 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 6BA68C38142 for ; Fri, 27 Jan 2023 15:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234207AbjA0PLQ (ORCPT ); Fri, 27 Jan 2023 10:11:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234193AbjA0PLP (ORCPT ); Fri, 27 Jan 2023 10:11:15 -0500 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2079.outbound.protection.outlook.com [40.107.101.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23FD7FA01; Fri, 27 Jan 2023 07:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l7YPNIpuaBZ8lpBTpV2EbEUrsUOTi1Q+UUvXDYUiitE4ey3eY4nGtT7wRTLc/mLQ5zjdpa/6Tw2BSrTJI22uwaSH8w/GmPGeQHcq2a8nvOmAB+TbuQrL7GDEj0fFH0jr6IH+j/CvgMGWaZM3+heQYHlaZuTooAhVJ3BFeD0SqHNhK52E0Uh2I3o7+534hZtmu4M/gqQoZUCxFEQQKPmk6AllVv9EyqI8smhMFpIzSAPl3B3xc2aXqtC8xag7Ed1DWo8P0JUa8UBvXDVvWNuqcl/7zUiV8am6q9Lascbo2+pdil/HKIYO98sw5zU9xJviWMaUdoN1PbHdNIyDaYeEsw== 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=5VceegR7S7XvPN3B3VWVjRViS+OfxXwJDhEfrM0/wa4=; b=VnrOC57Iqk7wiUp/WZSTl3E+dzDO3O8pnObJGLrCC2vy20Vf3q/1EiwGu5/buDtCMTX3HFpamG1x5Fit+FzsIbFt/nwDh+sgmY+jifHm+2/kc4trhiQtENQ433gfnI6KzFLBHWsZh3zGckmKEounG5A9FodwkvESDAeS+U5KL2Xka/FJZLweNZzRsUcez4Uk033yY5CLe4r5/lof/RnbgjhAJX4GeID73eiirNGYCtSaEooj0WKnTitTr29YJ3CYZycyv+8tiDFd8EQyrSsY7xEmpUqIPHKDzsqi/Kma6tZpghZwlh942IC8V4jusrz5rT+59RbNpQu1hoST1JBnDw== 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=5VceegR7S7XvPN3B3VWVjRViS+OfxXwJDhEfrM0/wa4=; b=h3KdygGcwhbbArv7FWTTg5WRVPNLy+VJiZcX7w4sleXCiw5pAjsTTdM1u/pSyavPJR6asB+Kkp7r1sOGB/Yvm4lZzSHD8m5UL0sHBLMG1aZztALbog99SeIiM23po/FFkWMQ9OJOSJ206ylTVoUZjHM2kZ181w6p8ZYqWUcp3CZa7XLJerBpxCPb5kcsHn166rEdUnYyPhjsM74NJDFm6+alHiZW3i2cxw4ezpjLfJof7E5kCgaW1ZFvkm3KK82hqq4H3NvKLhtMmnanISYJ164cs0tDmPRPC0t7DvhZ3mTmxHbV9Q/o/N0zBu4UcmahJ7B6wPA3qsDbNt17V5lqjw== Received: from MW4PR04CA0155.namprd04.prod.outlook.com (2603:10b6:303:85::10) by SJ0PR12MB8091.namprd12.prod.outlook.com (2603:10b6:a03:4d5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Fri, 27 Jan 2023 15:11:13 +0000 Received: from CO1NAM11FT079.eop-nam11.prod.protection.outlook.com (2603:10b6:303:85:cafe::70) by MW4PR04CA0155.outlook.office365.com (2603:10b6:303:85::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Fri, 27 Jan 2023 15:11:13 +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 CO1NAM11FT079.mail.protection.outlook.com (10.13.175.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Fri, 27 Jan 2023 15:11:13 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Fri, 27 Jan 2023 07:10:56 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 27 Jan 2023 07:10:56 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Fri, 27 Jan 2023 07:10:54 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V9 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Fri, 27 Jan 2023 15:10:37 +0000 Message-ID: <20230127151041.65751-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127151041.65751-1-jonathanh@nvidia.com> References: <20230127151041.65751-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT079:EE_|SJ0PR12MB8091:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dd9e26c-f3d6-4e58-ac82-08db0078bac2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6hVDjsBpzYgFup4uKeR/XhLgtxDU6+BNF6SVr+exqu2502DGj6LO0bqjZVVJ/7fgeCGDSmlvUylNBKTmGUghNxtUfytaODZ1OKiy3D4quOukqNVgBGBrnTAUq+6gefmXk3rDCjQjULVMg7PGkr7bZ+JFPxfI0I+iEIe52GW7OO83xWSP6SRPb6nVcajdSyhUJCI9zqCOYhOVTHv8GzW58PddcZa7bzYloyP0PKPEBKsACVlt/J0GKw/JqTDWF0u704T8RnzQaS+9YvkbERLUBTD1VgX8xDiBbsDqzAil6jYil33vnHfw9vDxlPC9x9pXf4iznOqYRCdycNZhlBb5RAeVc5hsQd+2P+TfBY+p+gL9SzcjOp97sEujz/1kFLAytWeC79q13c7ceB4HbIaxJZASxC5Wk3AyQQhHimVFsdkl/pPpnWpLgDCx83zyHER3V6I1PISEhGK5vWYnd44R5BZMYe3m9w8t7823grplv8VlGzs/ZgkFtuEc5nxIC6xsf+IsdR/CfOYiAqKj/JmBN4ZlZj21gIpl4k8pz6uMP/xDi8bx8/G/lsI+QiVuKcGr4iikJUobENAhTV6tuDX3eqXHsMZ8aea1PyNg8uFWNOcWLPVPEyXlzXauk6eMIvXEody98Dmn1yQA3otuc7hLWqdKRqcDisZSf9w6RCxgw7neu9Y7SED49ffdyYvSgGgyD3AqOPO6m2pqrswwnXa6mg== 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)(40470700004)(46966006)(36840700001)(356005)(70206006)(1076003)(316002)(54906003)(41300700001)(8676002)(7636003)(70586007)(36756003)(40460700003)(8936002)(5660300002)(86362001)(4326008)(40480700001)(2906002)(36860700001)(82740400003)(110136005)(26005)(478600001)(186003)(107886003)(426003)(6666004)(47076005)(82310400005)(336012)(2616005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 15:11:13.0890 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6dd9e26c-f3d6-4e58-ac82-08db0078bac2 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: CO1NAM11FT079.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB8091 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 --- V9: no changes 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 Fri Jan 27 15:10:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13118813 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 135E4C636BD for ; Fri, 27 Jan 2023 15:11:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234213AbjA0PLR (ORCPT ); Fri, 27 Jan 2023 10:11:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbjA0PLQ (ORCPT ); Fri, 27 Jan 2023 10:11:16 -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 196BC834BF; Fri, 27 Jan 2023 07:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DUw3rIAQW+OMUGrJOzMpNmmBNHtt8D8Gu5T8UPN6EbLOCqYlPVuMQcIVYGwtvx8O2KpvodcjyRI8+GjaAWKx+/kBy1P8GcUuzk7ZpjrbiIT17OHdprSo3fWnYqr1LBH7WDbr6NPU/MOx2zSEFv5CQs4+YmzoxM2o+40BGilDXVMc04puBVrRmjcN2aqVwRYpHs2vrM9i7QCvmb+T6KoNjw+bFZ68GEmrzC7uqXVnsPKhSqXuTuNwzM61TroX4pCMC/Po6O/1cDVt7VovYqfVejfNH4Q91m8Lj2bWtHxidLY0zdCM/BWFaUaQ7IFneMx+o+447aSb88m0t51Llm67uQ== 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=uqVoWf99XP1WfyBig8oIheyNY++nzLv6t2l+6SYlLL8=; b=QwoB0H5qjsdmeBnKS5roKG5Rg60QI4CbGkc6jJ/kxTJ1ivyO0TJRq4HZFn9VMsBqalMogzf1YdNaJMsbVZwu3KspNPRH+GHP4GIvaS1jsx1lX5FwC/BZ+NAd/x5YEoUCEEix9pgClLbh7ww1FtRpepcXeGW2hjWAB2evRkXTlcqTesFs7l7F8dXE7h6W0V9wN0QSFzrDrpIAoTqRbcEmw1KcY4oZJ8vdi/i5jIafRBzMU8Jn3L02wgxSFOfkUFuTMVmvfGFdjmlpHo77xl+JCxCX6Cn+W6i8rN53XShWnqkGLAxgG1fkgrUIYfIXaTiFWxqrR1AwdaihrqQilBehUQ== 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=uqVoWf99XP1WfyBig8oIheyNY++nzLv6t2l+6SYlLL8=; b=WBiBwIi3xPpmHez+j8RdIeGVyoYxPpxefUxhOGiQcCbv4Dj7TDnd50752KleBJCaSRAA9wgPka+EFAxq6oi4ozowlTL4c5g3cVxxoKQNbGbN3MuO7E6yIJSXpDHch9wuKyDushLXDx4velchb3srFyZTjUDy2LW+i6W/oe9bePI2DLslNiR+ypXBkmwUciUhGmcCZndmW0g9VZgsfD6PJ3OO1zRpwkUg/PtLt9Uo3hzzxlqDSWcJhIqQU0/Fdgeg7b5XUSJ/IJbfWOx5ztomMyQNDnO0eOYDSkqQ/b5aYpsp42REkdMmvwVGmRI3A66VxpBUWWTHYwh/UXoOJzHvQQ== Received: from MW4PR04CA0173.namprd04.prod.outlook.com (2603:10b6:303:85::28) by SJ0PR12MB5634.namprd12.prod.outlook.com (2603:10b6:a03:429::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21; Fri, 27 Jan 2023 15:11:12 +0000 Received: from CO1NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:303:85:cafe::b1) by MW4PR04CA0173.outlook.office365.com (2603:10b6:303:85::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23 via Frontend Transport; Fri, 27 Jan 2023 15:11:12 +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 CO1NAM11FT006.mail.protection.outlook.com (10.13.174.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.25 via Frontend Transport; Fri, 27 Jan 2023 15:11:12 +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; Fri, 27 Jan 2023 07:10:59 -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; Fri, 27 Jan 2023 07:10:58 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Fri, 27 Jan 2023 07:10:56 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V9 3/6] usb: typec: ucsi_ccg: Add OF support Date: Fri, 27 Jan 2023 15:10:38 +0000 Message-ID: <20230127151041.65751-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127151041.65751-1-jonathanh@nvidia.com> References: <20230127151041.65751-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT006:EE_|SJ0PR12MB5634:EE_ X-MS-Office365-Filtering-Correlation-Id: a659a804-98a2-41ce-ba0c-08db0078ba23 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n5sKpLtG8eVfzcBui1lJwZVRxt0jVuF+EZmJkAq8tF+i8HSza43JPYOsKlAJZajPRxL9VRO6DXSGq4mbXAsQYG0heUc/+h/K/m3q7pVXUu/oyhOPsDYiZEmnWQa+Wh2MNTgoH6S/f4QuVvCq9O9d2IYCRM4pJwTgH0kh8jnza22XUYMNx1EX1WbY8z7SC9GBSwfZPhk68m9GjwUN+idJkGrCsJBkK4CUbxDLHEWLJJNH9nAdPu122frk0bVCN2etLAAbRnhn4vzP8Lb3EjI4kMRW/6MXTsmg8c0N4xqA/sXhJD6lyaRvvUB6HfqW7hhOXr8JnJJEy9R6lNVqDFaN34AzMfFc96JH2s+d5zqdh1Zqsa5pXJS+1FKXsba8SrVaiK28eUBYoxRfj4NGS9jXcy2nhNo4sLN86fVihlNXZG5Ve/YJgoNeFxxcBsw2oHHCwazCPfMm/QYSt42vFsD5igqFajbQpLIEU1gTe1EFM9n/lm2lDK6pUUkwc053HtytghpYtHCbWtVe2aBuCQqd6c3AEcGn9jBQQsC9WXQmYYI8UtIIDGdwpDXnOXUXczX2E7aD/7vJgNI9yVkCt8m81aT9P1x5rdcu/EMDRvIIEAHXno2UDYDV91Rqp8G55ixpa5S1H3GuFAf37YVtx1l3MXB4IPoghGnQ5rVS6NTn3foXVgjreu97sqBUDPPqJrJ0bN9KesHRLNa0+rW7QS9FyA== 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)(39860400002)(396003)(376002)(136003)(451199018)(36840700001)(46966006)(40470700004)(5660300002)(2906002)(70586007)(186003)(8676002)(4326008)(70206006)(8936002)(41300700001)(83380400001)(107886003)(426003)(478600001)(336012)(6666004)(1076003)(2616005)(26005)(316002)(82310400005)(47076005)(110136005)(82740400003)(7636003)(54906003)(356005)(86362001)(40460700003)(40480700001)(36860700001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 15:11:12.1098 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a659a804-98a2-41ce-ba0c-08db0078ba23 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: CO1NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5634 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: 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 Fri Jan 27 15:10:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13118815 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 B59B1C61DA4 for ; Fri, 27 Jan 2023 15:11:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234248AbjA0PLb (ORCPT ); Fri, 27 Jan 2023 10:11:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234239AbjA0PLa (ORCPT ); Fri, 27 Jan 2023 10:11:30 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2060.outbound.protection.outlook.com [40.107.92.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 479918418B; Fri, 27 Jan 2023 07:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TKGAvUB3au6JW3d2WplpiWm3Y1anI+KyRgqJYUCd6QHobHBjsbt3/suPNaIH+K5bjFO9bru/A9xE06g25FZyvXVKbeN7/eAWmOE0quIEXeGpEAJOiu1773Q6PME2wA3hupwshsHFF+wL04ZtsdGSAsxihjoygJ76hha5oTNid9ONUIXoHBSpm+PMKJBByTAW0KkhQBtbPmEDH4pV4ZidKbev9r9LpFT1zEMNwDnKFsZPko5eI00pt1dfm4dvaoPpv2mT80/UxGUkZ66vBFi1Qicos6xFXaQAuxn+w8wEsd5+vzT25VWQzde7rgin8R+TZJQailrPhJnT56mzIn/MJg== 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=PR4BLWvFQsVnW+PJbV8ccvkMyc+liBlJJMPxzjPTQU8=; b=V7YeVJ3LL7OQslmF0tqr1ydmKZO9x6N0+5gU5xYautz4jzNeURaIJydMANVzswONvpgN+jCdrVUmSMaS7f/jqWKhcnpaoBt2ra8ONB31HId7if1PHxxsI5M4V3I9gyy+PvJ9hg6j+5kyMwr741rJqzdHJd+SkxImP+p/8r1qhFE+plVDsU0oEHAN49VOAz/ldLHXE8VBiH34FAYmM+KzOj6pV74BqrbV7q8HXH/ijzGVdHHwFY43BlCY2o/RHUw5TPkZnTEFH9gFWrIfkRzqlG4XXUgQ99u2i8kMNrMGHV268NoRK67athxM74ipWIPp2WhA/98aBIl92q/zOlUUjg== 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=PR4BLWvFQsVnW+PJbV8ccvkMyc+liBlJJMPxzjPTQU8=; b=XfmbVaUVn9+FaJkSUeqwKvZ1u7+Cnby6imxQKGirXHf0WMEAnlLJEnTNE+qRSQB7Hl356hY77ZyA4kcHkRr0S1oIjP20Q83+yrskiLiclnIKDeqAgeQBgCIIXNuHW/YqBQdleGTLnFkLWJ+dtOp/Ry4h/wE2/rbF8yQwncLZpW034WRL4xNj+WUADyV3+J9LtcHhglTxhqkexBqfm+vvCsAXagouf5WL1jGBavQ+n4zZ3L8xHzJQPY7pIhCl0vJQJvuhGCeh06fcqEMyGC7LmmS7yLeOyV02rWy71ylfF6HKd0DoF7IPo3rAixy5I/sJyOVc3OXJSqQWiBiHhpVToA== Received: from MW4PR04CA0198.namprd04.prod.outlook.com (2603:10b6:303:86::23) by DM4PR12MB5962.namprd12.prod.outlook.com (2603:10b6:8:69::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Fri, 27 Jan 2023 15:11:19 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::ef) by MW4PR04CA0198.outlook.office365.com (2603:10b6:303:86::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Fri, 27 Jan 2023 15:11:19 +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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Fri, 27 Jan 2023 15:11:19 +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; Fri, 27 Jan 2023 07:11:01 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Fri, 27 Jan 2023 07:11:01 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Fri, 27 Jan 2023 07:10:59 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V9 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Fri, 27 Jan 2023 15:10:39 +0000 Message-ID: <20230127151041.65751-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127151041.65751-1-jonathanh@nvidia.com> References: <20230127151041.65751-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT029:EE_|DM4PR12MB5962:EE_ X-MS-Office365-Filtering-Correlation-Id: d1948c6f-fa6e-48ce-edff-08db0078be68 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rhXaiOpwr3MSCJSz7VIQuuvFwNa3WA9rqiopzB22uJij3xyIeYZsQqztimH0FRp+FNkThgciemngxApXc6u4P4tvAB44C5Cgrc7E82nRKbrvwWgCpvn3qi+Fc3tQiv/RffuyftYUug0h37bGduJBcCeOfIgN/cvKuEl/cgEW4Esvw9u5CeI2VIiUj/UMoeObrheBigqQx6o6nSaHUg5qkSePKz14jsDlGVaAYODNNO/w6oEipvehRJxCPF/uHUK2hPexoY7x2M9YDIvyUmB7hMXowGUXvoy7vKoOTJqMZ/PsQNsNlm7Hq3pfK03vn/hejtg3pxe7NIVDiGmLM4lMQ6qYAUMdtepmw+0Xz4MoydPLR7nwaItBf0d2w8Rtt6QXK+pDAGKw5sXziDk6ew34BTuatf+rDWYJ9iyYwq8cUdGVgUeo6zsUD6Op9N/H6qmhRl0Wv9MqErhTTebTmMSK9OJ/ParUt1JLSsSH+HLSLq0+98pZUuy2gCHx0+QuVuzGXY9g5QYWPoU/DrRhRX4NlgSDGIrwSP54cQgg5uvhcK+Hq9l6y2G90nhSC6UK0UGsdNNlXryDp+h7CNFuYyZCSWYh/NEmqXwxjxy6Luve/oPYVHh7km9eQ631fgyiIQtG5oLjtBY+rVsAeotAgLjVQIqdr5fU+lmRxAJ84++Jmu4vWEkb4d0bHtCp9iOD/IueT8UyEqAAQGgZeS3r+Zbl/A== 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)(39860400002)(396003)(136003)(451199018)(40470700004)(46966006)(36840700001)(316002)(54906003)(110136005)(82310400005)(83380400001)(426003)(36860700001)(47076005)(40480700001)(356005)(86362001)(82740400003)(7636003)(336012)(36756003)(186003)(26005)(478600001)(107886003)(40460700003)(1076003)(2616005)(2906002)(8936002)(41300700001)(6666004)(70206006)(5660300002)(4326008)(70586007)(8676002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 15:11:19.2118 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1948c6f-fa6e-48ce-edff-08db0078be68 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5962 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 --- V9: no changes 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 Fri Jan 27 15:10:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13118816 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 65ECDC61DA3 for ; Fri, 27 Jan 2023 15:11:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234255AbjA0PLe (ORCPT ); Fri, 27 Jan 2023 10:11:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234214AbjA0PLc (ORCPT ); Fri, 27 Jan 2023 10:11:32 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2046.outbound.protection.outlook.com [40.107.220.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA9DE8497D; Fri, 27 Jan 2023 07:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZeaB/waAszDwbiU38/LXnXsfN+s3AZP+eSsCKKv5JOLEl+0xmH3cgsbKsnEcrE/1ywMFhgLi/3YTjtvVPC1m6jPeeIDIvWqZHLvy5I4QIrn4vTfNU4tuQjHPPzWAEAfExnTQDVhP8TguGeg6Tn+W8xtIXvqHaNTwOVkhpFFl9ph/Xw49K5Km/K45k0I7UN4VhRRHNck1+pkOCUpmxraB6waWOy0Dl6vzM17RgodkrIKcNMtVEFalIOBDKO9U9C4cKwfRUZ7muCiu/BBC4hvW77qQXzO8UCwIZZ+muu59rtND4aT+q3pwGAUh1IID02wif3m6ksZcsRJxTEsP8XCuyA== 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=pgg5F8lO5aMLue6WhQoCZw/ncL4g9pNbjeyroS6nJM4=; b=ci8zVBO7Mj03926hQDbxij1fc8JpLqIVdJudXp2mzXBITNOFjidb/LszOO2PTEAiFXSRQ4fjVdmrsOlSm+9qme5ZXiRaRi7v93GLMxzFUA55TfMPFnIG3XP1uGIZO1zlswHzM28LK88W3DqKrY4NrN8ZDe/B13GcWM9eX5wPT/I1oAr4Ulo/OcvC2lJ2FVeMpCCtE4CkL/ma8+wLUTbkjxhSOdgLVGQaKAQPKtczYL2BO+DaNuNGSqdQciyG/ovYHy8BIojAGB68avSwWfasNUXuyr20GBqgBjQUQJnkrc9ObymR8tLVoOkTE3CExoKZcm40mZMx7LFTCAq21U6+dA== 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=pgg5F8lO5aMLue6WhQoCZw/ncL4g9pNbjeyroS6nJM4=; b=FKV8LXUrkF0rF5YSWWlTKI1G5kblMwuBrqGRw9bChkPA1R4qYjyMyll3PfDFMyNo9yDr2ycg+y2iN6w6uNskZ3lX/Xb/11LCs7VYpC93w9vU+cn9GBelIW2nZTg0vQshOOCyGy5ysTW9BgbxLyb6MhzNaFMJVEC49k30TC7YKDsWjOkr2Y3VyoCRIFEOvqZ2a0KBnn0txGU4yx1ZMTCtp8l+J97CFj3sEicWFYExTc8UJ5OK3B05rwRwYVKUwFGLeLzYYOpkIDj9pzcjn+E37NEwAhuf6pyoKBHZao7l0a7WTSK5GcLozhlDRw5iFNeV7F3tar4Kv+CzFhY+Yv0bNw== Received: from MW4PR04CA0203.namprd04.prod.outlook.com (2603:10b6:303:86::28) by MW4PR12MB7030.namprd12.prod.outlook.com (2603:10b6:303:20a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23; Fri, 27 Jan 2023 15:11:21 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::cc) by MW4PR04CA0203.outlook.office365.com (2603:10b6:303:86::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Fri, 27 Jan 2023 15:11: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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Fri, 27 Jan 2023 15:11:21 +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; Fri, 27 Jan 2023 07:11:04 -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; Fri, 27 Jan 2023 07:11:04 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Fri, 27 Jan 2023 07:11:02 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V9 5/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Fri, 27 Jan 2023 15:10:40 +0000 Message-ID: <20230127151041.65751-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127151041.65751-1-jonathanh@nvidia.com> References: <20230127151041.65751-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT029:EE_|MW4PR12MB7030:EE_ X-MS-Office365-Filtering-Correlation-Id: a1c6f9be-5490-440a-3a1e-08db0078bfc0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mhjGuODIjUVZjat4H6BaE0B1Ct4c7FjvI6M3nreZcF5r7VjTJKJ8LNhOKnYODj6p9SLF0wD+HCMZEDAfdzhk0ClQDvBxzYjHCa7/LHNd+BhW5o6gqBF8O4wz9YUJqA/RPIjVnzDZq4TI7PW8Hmln8jynBHUZzc1NNDsgrnebolQAWN9BJoIx2m3vMeqsM5bd5CV/J8LgO2dTdsO0wHtXpqK3tbzd8ws/bsQzVbEn5bWif6jKJmjIpyds76ciXHED40y9HHlINumIA1P82697+bmCtSU0XXknmhpUam/0fOFDPe8ctzLMN1ppS1BSgVJmzwsAe6OhzfBW/C7wfTzZB4vJuRX6vBp67Xr1xrLC1zMxpN1A0+OVqspoaUQh3BCmsdYh+nLTafj9F5DFxK1noP7WZqsFuozmY6sntFho2zm7+KliIhZOxSimrNfl5TedNl0qSD/sz7Qo3VbRR1XWMBsT+g2vLiksoNc7uvxgqO3+eVP5+khdanEAC0vuU3LtHMYAD72918BeFN0nMq1umYbWQHC/jLWs1jz14PCdxhSDruCbYNGok0hLGuPSiJ4+CmDHjNQSG4uSgTC6j4G8YhoN475zA/abIEtvW7k2wQfWpDQCDIvSbxe6ITOCegzsEKFkE3waC47g5bBuh4PQaZ+3FTCr7EarWjIFypS9xOAgO19dRwTOB8TJf8PxVnWgWILAha7xSE4BUoX7jfuoUw== 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)(396003)(376002)(346002)(136003)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(316002)(8936002)(82740400003)(86362001)(478600001)(1076003)(6666004)(7636003)(336012)(107886003)(2616005)(82310400005)(26005)(36756003)(186003)(356005)(40460700003)(110136005)(5660300002)(36860700001)(40480700001)(426003)(47076005)(2906002)(54906003)(8676002)(4326008)(41300700001)(70206006)(70586007)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 15:11:21.4616 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1c6f9be-5490-440a-3a1e-08db0078bfc0 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7030 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 --- 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 .../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 { From patchwork Fri Jan 27 15:10:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13118817 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 3EFE0C61DB3 for ; Fri, 27 Jan 2023 15:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234320AbjA0PLk (ORCPT ); Fri, 27 Jan 2023 10:11:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234253AbjA0PLi (ORCPT ); Fri, 27 Jan 2023 10:11:38 -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 E8F2A84B67; Fri, 27 Jan 2023 07:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UvP7KtQfght7bNKlT/RB6dH3c+bTDH6HuEcmbByU54wbKw3MUK9jAP3scIjR10TBUrUzdx2XDlFDDEH8W5wu2fw0THy6PJ65IqittNiFcvDW4R+rL6sK8HdxehZ+g4J8P3Ts9+iMtMojcuZ20shItOwYgBa+oj0ZANSbJ3BY3CtPtHgqcVa+zGMa0Ha0qNv2xp4oIeKwJfwhJwJ1F1YljKbyP/rkfooPc8sTXbGikWnZAq/x7Rpse69P9Obm99eKwoIep8BGTXrf2VrG68cPcEyDwqSulYQ6sarA8ryJ9tdJsBz4BAgvInSqrzdqXg7BfGbKPz6/3G9qGDH18xwdCw== 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=vmRcd5VUiO2rkU0EnnCsNEDa2lP5CSxMzj3tGED5A9Y=; b=T30UwRJgTDy71lQm7hr9efwxdPcNL0tOyArRBWqgu+xjUoH0s3Ecy/XDSGvJ8y7OWQsrBzIE23dPHP7LOM+scOxy/MzVb8rx0dmWgaftSqkKPR+K2dw77sXFqI3nakyoE5LFs91wEPpsu1O8KmM+S0IXCkWWQ0vgXjh4NyFy3EaJUUvbMKpJKXdiE0Q+4AzZ7OjdOOL+oT0ow+Fo++8Mztw/7DXXCt15+2tZUmHR9cjSyE+oZ5tsMS8m98T907eu2Yo2tklQcqhSCfVxRiAttDWeiWcyKGKfh2naH8riABLReEGxxeLEe2QdisxdcbmO8Q3RWEfOopK0frHdz2Ut+g== 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=vmRcd5VUiO2rkU0EnnCsNEDa2lP5CSxMzj3tGED5A9Y=; b=ow6kacWYYxTqEq9u3IaxQehGBT3pMo2s0NLiayzr2AZlPs6S+3dYLL4DNLtzfsy+cVJPiZ4sXJGZAiuwZtVLlrpcH5nSS7gIBgdj66yc5kVeOjVMjS3BNJVddhEYl9ugjC6Y/dMWl8ZCZrOHhDVA7URMq7i28XpATjx7ioQ8bs/zXXUZJVeoTQxiTNnjRi2g7jx/O1RU28yZ5xL6VeKbzo7hxl0kQ+Ol5rqEhKsSTLlJO47KB5Hw4hBUhCVEHTPYdLMjfHI+AtC0FYUqwMJIiJZ+W9bUpeuGaZnkLQLqQs5NajSbuuCN74Xgx4zMGuhV43CS08IX9tJB4vsQPcohHg== Received: from MW4PR04CA0207.namprd04.prod.outlook.com (2603:10b6:303:86::32) by DS7PR12MB6191.namprd12.prod.outlook.com (2603:10b6:8:98::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23; Fri, 27 Jan 2023 15:11:24 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::66) by MW4PR04CA0207.outlook.office365.com (2603:10b6:303:86::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23 via Frontend Transport; Fri, 27 Jan 2023 15:11:24 +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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Fri, 27 Jan 2023 15:11:23 +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; Fri, 27 Jan 2023 07:11:06 -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; Fri, 27 Jan 2023 07:11:06 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Fri, 27 Jan 2023 07:11:04 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V9 6/6] arm64: defconfig: Enable UCSI support Date: Fri, 27 Jan 2023 15:10:41 +0000 Message-ID: <20230127151041.65751-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127151041.65751-1-jonathanh@nvidia.com> References: <20230127151041.65751-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT029:EE_|DS7PR12MB6191:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c33e94b-ca28-4a1e-fb00-08db0078c12c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oZ59n9nCbvU9ChPzmgvlI7yVBz1+LBS6NyXwdYgJ8OX+/LX5AZR11Z0kvenDfz0Bz3guWkfOdVb4JgqYl9wK4I7TuYe/YW3a6sTqYxbprZXG3RG0Oml6+UWZZtpz0pwu72zuajx1oEO12u3xs2KWKouyIuYDPCv/gBkSkHPnBOqhBRmw+q/jiCeKFKq4/fNXUghrxLxWk1oewUzkcoCxzJd+NFw27gK+zLIAA7wsQChmdpcEZIvwd+3uDzITTAH7rQg3YqJ64OVa9Z1yG/ZoEiwtCx6wasYrAxezr10l0gx7TlONopaikQFZ/0y4LlyF5X7ar9yl2dxVsZwe3bS/KAVpLrw/lfEBiPiwapEy4Mysfsk90Qw6g1T7Z2R4QYZEleDX+M35QIkT3Tt2T+r/N8CZQCljVGNMmMqylaxhjvtFD4am/1Wphd5wnMXEPoPDOCduNIxpiIWK/mDBOzxQtb0kGRizlDSHkmVTCypEj/NMSgMztxdUOud2mTFtC0XuZMJ14CoOUA95kVuA+O+91Q/UQ6c6I7KtrQZn9LLq8DRQADqK1yum0/DT04bLYAf2c8nBKt99f6X/PpM7OIUQAPiWCyhY0YYSv0PhOpZkJdPQ0AlZeoLTJz/VmpFnhc0j4+4F0x2IruHqpDZ8Va3JpLYJ8HtholpOOlBvomM0W/tVmepL7V1dVP3oowREdT21XIhw2p9DPc1PQll4fEZShw== 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)(396003)(376002)(136003)(39860400002)(346002)(451199018)(36840700001)(40470700004)(46966006)(186003)(41300700001)(26005)(356005)(8936002)(70586007)(5660300002)(8676002)(83380400001)(70206006)(6666004)(1076003)(107886003)(4744005)(478600001)(36756003)(36860700001)(2616005)(110136005)(54906003)(426003)(86362001)(7636003)(82310400005)(336012)(4326008)(40480700001)(40460700003)(82740400003)(47076005)(2906002)(316002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 15:11:23.8520 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c33e94b-ca28-4a1e-fb00-08db0078c12c 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6191 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 --- V9: no changes V8: 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