From patchwork Thu Jan 19 11:17: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: 1728760 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=RKS03xzs; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NyKr14vGxz23fT for ; Thu, 19 Jan 2023 22:18:25 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230247AbjASLSU (ORCPT ); Thu, 19 Jan 2023 06:18:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230178AbjASLSQ (ORCPT ); Thu, 19 Jan 2023 06:18:16 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2063.outbound.protection.outlook.com [40.107.220.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392286B99B; Thu, 19 Jan 2023 03:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oKdbBHGLYdMyeDzXAuewJ7HsgXGbG25cdtx3kn2Ytnp79vIOqRSld6QhoU1JY8OL3ubPj4SOygVRG/Zadmrpm2MMdLUF8Nl0DO9bBb518/DvWd3N6XFB1mt4zNhpzyv2CbLH25b+ae3S7yb6nbCN2hm0aw9cVx+/SRIzPIFYIgUMqlvbY4iTqoHiTtzCe6eK1PxMbdEA9JpCh59t9njR3atC58JQ/PhaXqC/W7lc7u/GOwDul8nV1dKgqW/BshXrIRr3mazv4TEh505c9wRwGbFnTnDub9R80CzbO1a5SX1rstQsawD+UijFokqVbaQaXJrgNY+dDGexywZEFrRnIw== 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=mq7T8TiNCsqZICMZGwkOWqDlv5GvYjcPrNFWKvEkbFk=; b=dn8S60DJTV+fOIeORQEDab2G51gDb0MyILRB0x8aEFni9481lyorshrOxieCsLWY/BzJC9jpfWCpbaOtchUmGPOi8c3utIt7G+8Vzw0bW/oRZNyzQTg8JoQnOxxp6+pBl4gRI7i1QreIvlCXD5Qm1KEAjg52kLwmOFMNBLZak9n1XlCeeNg0b22TdgS6OVFNcplchEdWbJxDeZdJfCfu9aSUdJA051nowV2hUgaEFxI0b7/2WuGZ1TA3ovlM/wxdsFx1BG2pXM7g7nBSr/PJcQ197XDDebFPQtMqSht5cQW5GOCM9yk7+Jcwko8KcRfnIHPJinnhNVALNG9sA1qGgg== 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=mq7T8TiNCsqZICMZGwkOWqDlv5GvYjcPrNFWKvEkbFk=; b=RKS03xzsmv92n1tMlR7z4jfTpyX9dFIIqW/iqNSiHXoX5WmMcTS72+gV9BdoVIopiFwSxhkzux7EyKOoDF5vJvS8MmYN4WH4LTs6fzUAHl9VF5EGe6IROOJ7rggfVBzFkLqVY4ZiDtsdGsJ5jnOWWVaPC/72K85HCL6W1idMFWZFex6K0M5T3Fl94mKwIfyVZ7rPPuASqxDMEYt8r9uRqmes4wZ+C0FqmdO3Le+fdlk2PZvE089FdNptGVxg3eyUkm+GTezs/R1ewFNzeJzqvmr1C+m9mXCCzoc3pP5Jik9pHaTNfMHG1AichpnO1d/TxU7MaVWzlwINYIWRrglz3A== Received: from DS7PR07CA0011.namprd07.prod.outlook.com (2603:10b6:5:3af::22) by MN0PR12MB5980.namprd12.prod.outlook.com (2603:10b6:208:37f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Thu, 19 Jan 2023 11:18:09 +0000 Received: from DS1PEPF0000E636.namprd02.prod.outlook.com (2603:10b6:5:3af:cafe::2c) by DS7PR07CA0011.outlook.office365.com (2603:10b6:5:3af::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 11:18: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 DS1PEPF0000E636.mail.protection.outlook.com (10.167.17.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Thu, 19 Jan 2023 11:18:08 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Thu, 19 Jan 2023 03:17:55 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Thu, 19 Jan 2023 03:17: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; Thu, 19 Jan 2023 03:17:52 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V5 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Thu, 19 Jan 2023 11:17:36 +0000 Message-ID: <20230119111741.33901-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119111741.33901-1-jonathanh@nvidia.com> References: <20230119111741.33901-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E636:EE_|MN0PR12MB5980:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d142053-2970-41e4-b5f7-08dafa0ed820 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CCNlmy+ScPaklueFXlA0cWpabcmA8MKvXqo9Sq4iehgVe1HrenOEa8esVrl4YOZXYzTfoVGLIljAYJePai1gtErz/4FnO1EX8iVuvH52uSRN5Dkrkjr5ZafY/fHvzvvNWqEXfWlNPoqNiU2V3Ih5juD5L/orIRnOBfD2O9DfO4OsRkTjyWRygTVPu0Wrws27Kog5vS62SJGJJOzTiqluZvPpCyMWM/sfjhl3EMMQgheLZ+MfR+MMPEciSM95+XIwsCP+Xb+rKbFDNDGoJCJbXs1zHZwNZKdyvO7Xm/dErGDnPHw14BqQDeIysSWFCjlCczI0rheCAusPiGlivUcWLiMOCYwF6IIBjT3Hgr/AM8Lg08PKNCOKTaGqsXQHt+aTEd6g1IBoVawypkJbtLQOEVghtxS66gtBepA5MvRtMSaKi4ABMoxlouXDxXxZ5VhsJSw8vZkWruC4N/VaZ21prbMhNytNDIYYtOPiEFe+SivGPqWsrJRPHFteaOmUqxuoKStfAjdJBUTbt17s2DBAPXOSMykEkiYsL8yCiF7h7cc0M7nBcteJPvNnkp7sZGzrfIqd8kFrhHd95vTuLjOijU9rqwNWm35+MScve6bTBoxc9YPqZwWHQW0p9cVdJvzCHf3LxQgmt1RSoVPxhaM/j4TgSguVz2ypLQn3duFqS/Hzh04+A1adOq5c9Ol7cXGGA70x7t8u1EEn5cPv2HKIJ7tygYmSaEHSTrU1ZcbEvIBcuYhOxB1sewOP3QqB/Yr6MYpi132ijJ4VhQNX2UKYlEKjCF/ShkrmaimKZZTuW8QN03jWxraHsu6qNDh+4kE0 X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(136003)(39860400002)(396003)(451199015)(36840700001)(46966006)(40470700004)(36756003)(82310400005)(70586007)(4326008)(70206006)(186003)(8676002)(426003)(2616005)(41300700001)(26005)(47076005)(316002)(54906003)(1076003)(7696005)(107886003)(110136005)(40480700001)(40460700003)(6666004)(356005)(966005)(2906002)(7636003)(82740400003)(83380400001)(36860700001)(5660300002)(336012)(86362001)(8936002)(478600001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 11:18:08.7292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9d142053-2970-41e4-b5f7-08dafa0ed820 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: DS1PEPF0000E636.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5980 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 --- V4 -> V5: updated subject and updated binding to use 'firmware-name'. V3 -> V4: no changes V2 -> V3: fix additionalProperties warning on new schema V1 -> V2: based on the review comments. Fix some addressed issues on .../bindings/usb/cypress,cypd4226.yaml | 86 +++++++++++++++++++ 1 file changed, 86 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..5d87c9f09913 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml @@ -0,0 +1,86 @@ +# 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# + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <2>; + + ucsi-ccg@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio_aon>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + #address-cells = <1>; + #size-cells = <0>; + ccg_typec_con0: connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C"; + data-role = "dual"; + port { + ucsi_ccg_p0: endpoint { + remote-endpoint = <&usb_role_switch0>; + }; + }; + }; + }; + }; From patchwork Thu Jan 19 11:17: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: 1728757 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=GgQJ10sc; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NyKqs1pdTz23fT for ; Thu, 19 Jan 2023 22:18:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbjASLSP (ORCPT ); Thu, 19 Jan 2023 06:18:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjASLSN (ORCPT ); Thu, 19 Jan 2023 06:18:13 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2059.outbound.protection.outlook.com [40.107.220.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7F4170C7F; Thu, 19 Jan 2023 03:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y9S+Pkf3FTShJqr+ba3GCzufRUyGM3dwqaTyPNWgKNgc+nmlEHQVASjShzJNsDod9WFhpYKvswyDlUAode5aR9FprdIlZXkcDR626wCPlY2DyLK8IswnQKZTfwaNniM7PDYRtWXhorZbVoOaoOL15FrdUc7T0EA7fiMjq+8zs6J/rnYC7vKx6NEfw/5KfpmCklDx4r40pZFZC9E0gP5mHlSz4lqXK6HHLV9XDBI4rb5kUlUw4ySCDOiI4ZdAdwx35Nu43FV3boxXK5PKB4FHhm4EaJxkhvVfLPLm2QT8lwzQSdU5VGz1vI/xZzbJj4gLcKWjSesxvK9ubBxLK9nMnA== 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=x2a6K54pBgF9X5YoGg3tCkU2xT1sCW3lIs+Lsc76qqE=; b=L1/5tMp9wXGHnBnxErt9LU2IRGli3w3aLUQQZZiHkN44tgL3bTq/0mDyrmR5TVlILZhnUKBGKWgxucuoXbAShyGuOPL22AKMXIPzanGHpQM85YXplSqKVkN0XxOcb1VUQoRyiGTIX2EgwpUJwzDLxatI904VyD4W5QQTPcV1zJ8/466KmEK6LiWbrRp4s9tpnlkNzMPeIK7bFip4G3t3MGVOws5JIkbBrtsEQBt2B6JBJP+wxxXaynXLDrqBtVOtFz6N8StaF564aD2zbrqRClDoMvd4qpI6uMHV5jKK6q7gDpBosgPGQiqi5Sr1Puf6mQWSPz/9chrwP0m8LrYykw== 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=x2a6K54pBgF9X5YoGg3tCkU2xT1sCW3lIs+Lsc76qqE=; b=GgQJ10scPZ8rKWJnr3B0uAoz/+BfL3M9+o3teJcql6F9pOXFz9il6bcSmFaYYCBsyc9Jq4+/LNQ2PYKvdJkszyllmg5Y4RX+pSs65jAqbgtZWgVjSicWBDC8sb6FqsVZ2TJFFL5ZP7gFtsS3FPizA7aQu23zIFHgvqaIrRiynPNJRqetB/9lBh6740JwbxgIXKsINK48D2ncGSLcb1IOUrZ0RxXcMfPXA57xPrlXZxNhhKtqQG0v9ADYRrRogL+mfyQlGGe2dpTFOfLvKVsbePlJq9rGo4U5QIBfyQFOkiVoi1+K56ek2MBHVRU4riz+Bn18QXfXWrsrDJus/5/pXA== Received: from DS7PR07CA0011.namprd07.prod.outlook.com (2603:10b6:5:3af::22) by BN9PR12MB5081.namprd12.prod.outlook.com (2603:10b6:408:132::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.27; Thu, 19 Jan 2023 11:18:10 +0000 Received: from DS1PEPF0000E636.namprd02.prod.outlook.com (2603:10b6:5:3af:cafe::2c) by DS7PR07CA0011.outlook.office365.com (2603:10b6:5:3af::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 11:18:10 +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 DS1PEPF0000E636.mail.protection.outlook.com (10.167.17.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Thu, 19 Jan 2023 11:18:10 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Thu, 19 Jan 2023 03:17:57 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Thu, 19 Jan 2023 03:17: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; Thu, 19 Jan 2023 03:17:55 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V5 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Thu, 19 Jan 2023 11:17:37 +0000 Message-ID: <20230119111741.33901-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119111741.33901-1-jonathanh@nvidia.com> References: <20230119111741.33901-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E636:EE_|BN9PR12MB5081:EE_ X-MS-Office365-Filtering-Correlation-Id: 487b34eb-d82f-43cb-0df1-08dafa0ed8fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2b4Vpg6EA5zSm6wSOYknpU5E28FS3PvhRiWgLpQb0VqsQXUEz7AbUL+ZtSKyvvUJJisasJ9G+FLeefVnWIgfd3Cp7z/Psv6/NGXazQs1AI04DPA0RXcgVtxw7ugpqafXN3r26rh5DzXIwJtXjVNB0vOERgB4GXu/HxjPdopsbxA2XGM2rmwox5m5hOGNsx2AzCNCNRM/PWX2lup0EKCoyVZX2fq7GF5CsL+JDq+tp9fnIgDP318UIzI8fh0YBLziiXwMxRPdoOtyAkCZ/PgeLF33Ag/A+bp0HiO5pr5eBu1+o117aHj/7JeFeVrHwsGXqixJ3/veMrrWxHtnMZHhozM73xjnMwQXe0YrZJNgmL04hhP06pwfrXuTeOQ1Ywo6ZjicAvkKJhcB3YweGVZ7uqW/gCsW2ygQ2txIpVFZqGffV3Ck078uXgMLYSzpf13LsCoKcqr3etYPXW9b9qjlnFT/pCCdRas6zKJhLp2eRWeR8YKMDdPt2HklnHvY1fDJv/1K4J1PAEqKTKyB+f5WA/Qm/dKr1ssH/DU1oM4IJ5WM4/F5UKrFxz6xX5kYrUv3wQ9barigMMDNs50Qd9z9XEqcqLC4LQpljQ3HzXkQoPxSm/ZFXZRc4m5jWZ3UAH47qaJ0AMSkTL/l30zdf3coVVyj55TN0M4ByD7+vBYTeDmXsWtWt6mtRL1mua8uoo8Pd4D08SczjyM9db3E9Eq+Jg== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(396003)(39860400002)(136003)(451199015)(36840700001)(40470700004)(46966006)(70586007)(70206006)(186003)(26005)(41300700001)(4326008)(8676002)(40460700003)(36756003)(7696005)(6666004)(107886003)(478600001)(36860700001)(316002)(110136005)(40480700001)(54906003)(86362001)(82310400005)(5660300002)(8936002)(82740400003)(2616005)(1076003)(426003)(356005)(47076005)(7636003)(336012)(2906002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 11:18:10.1667 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 487b34eb-d82f-43cb-0df1-08dafa0ed8fc 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: DS1PEPF0000E636.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5081 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 --- 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 Thu Jan 19 11:17: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: 1728758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=K8mJnZ3I; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NyKqy0l84z23fT for ; Thu, 19 Jan 2023 22:18:22 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbjASLSR (ORCPT ); Thu, 19 Jan 2023 06:18:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbjASLSP (ORCPT ); Thu, 19 Jan 2023 06:18:15 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2075.outbound.protection.outlook.com [40.107.94.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C17264DA1; Thu, 19 Jan 2023 03:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fRtj7dzWbT4uQnP8MIjQKh4xB2HW5qfIpn21ojQl6brjK2LBxxMmLEI6WNRFkrcTSEk3ui5e6FJENuv6XC5wMU0baPV+MP5oV/skCXOjL1r2o2wz0D+P8+sYO92oueuk1a5GDvQ6yzR1m/w/mVefjZWCllfr9wvTIV5yFWz4C6h2FCSpRtc6cj9NhKZU+ZoGkB7x2SAa298lOLlxoLnJlNKPHC8/PgJDVn1EvYRM2bYMvQIpwDj7Q/BpFtyTVBslamPfZbzD2s945qyAPjhWOUw7tO5CauOxFM4exEYywuGm3WHqhxD+i1Hm+8YQb93HCO/9ysjmXzjcwmuA6u7GVA== 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=zLvPUqJ6dpucCPyjMFiIuIipinXHm/UXkny6KCqxp3o=; b=jhYLpbKvBSGx57wo3tST7KrhexSbfxZalfVOx4uNkom+6PPYVQvaO3ierTlcYGhyw+paZiD6KVxEyU4YbknDccGoaoacS1UQBydGQ8AjRma+T21qSQrnWSBBKXn45Vpup0+D6hkpcApj0+a09c/gYGLl3NVjbBsMgRsc824btk4OQ0UKhTteVtBke3lCJwMUyg40ojRQQJrXCoFn19LFSWW+EtOeRElwZKXoIOxYWKfY9Rlty+2ax5AfTL6AB7cIZS++145rKmEWy/RaN4Rhl//hP6oOt+D6OsFsxIOnyNbdPfa/u6P/dU711Oi+a9xYniu8cyoDAToAivGgHq8Iag== 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=zLvPUqJ6dpucCPyjMFiIuIipinXHm/UXkny6KCqxp3o=; b=K8mJnZ3ID1c9SgaRzzB4eZ2mPsPbhUNE9mCZTmfjKprHIy3+T3Xa13vlDxCFYhI589Mhsa7PqBIJYoHPsFY0PsO+MvJLf+28u3t7dRqqE/d3XGGMwqBVcpCL3q8LZCDFpT0RHQL0yC6HD7LC9He1JiSPBZvXyCKT3SutgwSgKAnwvKyV1vZa+agPdej8iw/D0fN8klGJ6yn8hhLYGXfLUl/6hC8onxZm9keASncXnPzqSTv8cN5SQwk1ZIujJe9QGl2c4qHIXM1INTJyNaObJk9CwHvuuX5dl8uWsGEAVEZ0/tEas1S4P1GYOWIvUfe2hLaV2P89J0YlTt4iGdBjWw== Received: from DM6PR12CA0025.namprd12.prod.outlook.com (2603:10b6:5:1c0::38) by PH7PR12MB5950.namprd12.prod.outlook.com (2603:10b6:510:1d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Thu, 19 Jan 2023 11:18:12 +0000 Received: from DS1PEPF0000E637.namprd02.prod.outlook.com (2603:10b6:5:1c0:cafe::23) by DM6PR12CA0025.outlook.office365.com (2603:10b6:5:1c0::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.26 via Frontend Transport; Thu, 19 Jan 2023 11:18: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 DS1PEPF0000E637.mail.protection.outlook.com (10.167.17.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Thu, 19 Jan 2023 11:18:11 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Thu, 19 Jan 2023 03:18:00 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Thu, 19 Jan 2023 03:18:00 -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; Thu, 19 Jan 2023 03:17:57 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V5 3/6] usb: typec: ucsi_ccg: Add OF support Date: Thu, 19 Jan 2023 11:17:38 +0000 Message-ID: <20230119111741.33901-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119111741.33901-1-jonathanh@nvidia.com> References: <20230119111741.33901-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E637:EE_|PH7PR12MB5950:EE_ X-MS-Office365-Filtering-Correlation-Id: a29a2d19-f5fe-4123-7cda-08dafa0ed9f7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z894Cg+OOuDAdY0ZturhOUIDODuMGUBiRwhXyWuMYpc/Y1P/VZzwEvkxKbX2MlD6W2HJcN6TfVdaUGAkCypmXbc266JIBgqLX26OabtGhJ/QUHetlMZXxzmqopYa5hppLL0hsnYe+mqR+L9s3UmLFN1C2JhI6DB5Q3jJhNrQcLMTPchbC5ZEliYZtm59+Nb9gBNw2lAYTHGLEcn67KEgVilAS0xDousy+N+nJq8JFCmiZmWOhScNebxVLKYKHGV/Ug+3Q9S1q9nfsSjB7jv3KE51iwfOEIsAfooa/mPVgWhG5tAtu0GAWyl9+z8srjZvyK3u++Hrc9LkVctihlGqcWjK6M+PS+qiewP9YPDRJNBkM2Z3cywXc4LJ9kvvqamuTm04VwFAYzPvjpHiqX2+F77Zi9fpU7R5VXmfdNpB6iTN7dWZze1hWOjt6iqlW15L79Q+FpxbujsWfDEbeRL6FqXmTeFQB/+QANEm+PdB+5i6/wzua5v16mb8EV5EuhIQu29cNmAcTyf+ylHky22zK11g+vIlta+oFbFGa67SUPtkToNSiwljnpPVzwmWlOQbaBQMfj5MENE5kBrt3DgdWUhkUzpiHtzBZGVblwAiVi+czaGTCOpjQr6LFqkQGqtxfCTpzo+R0oVTkxrcJPRnc+IW0s2EqK3T1oBEjfsh7CIJ0ygcztgrBeN0800zgALPFeNvTZm+PdhjHgTbmZtxdA== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(346002)(396003)(376002)(39860400002)(451199015)(36840700001)(46966006)(40470700004)(82740400003)(83380400001)(7636003)(316002)(356005)(86362001)(8936002)(2906002)(4326008)(36860700001)(70586007)(5660300002)(70206006)(8676002)(41300700001)(82310400005)(40480700001)(426003)(107886003)(2616005)(186003)(47076005)(26005)(1076003)(336012)(54906003)(6666004)(7696005)(40460700003)(110136005)(478600001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 11:18:11.8145 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a29a2d19-f5fe-4123-7cda-08dafa0ed9f7 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: DS1PEPF0000E637.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5950 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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. For ACPI a 16-bit property named 'ccgx,firmware-build' is used and if this is not found fall back to the 'firmware-name' property. Signed-off-by: Wayne Chang Co-developed-by: Jon Hunter Signed-off-by: Jon Hunter --- V4 -> V5: add support for 'firmware-name' V1 -> V4: nothing has changed drivers/usb/typec/ucsi/ucsi_ccg.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 46441f1477f2..889a831e251d 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); @@ -1359,7 +1360,18 @@ static int ucsi_ccg_probe(struct i2c_client *client) /* 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) + 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 +1438,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 +1498,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 Thu Jan 19 11:17: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: 1728761 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=J7YUNJDV; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NyKr35mT2z23fT for ; Thu, 19 Jan 2023 22:18:27 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjASLSW (ORCPT ); Thu, 19 Jan 2023 06:18:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjASLSQ (ORCPT ); Thu, 19 Jan 2023 06:18:16 -0500 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2086.outbound.protection.outlook.com [40.107.212.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19876FFA7; Thu, 19 Jan 2023 03:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M1cuWPSIVa0ruOT23ERLS+Dk0EyfhqcaU4OPyS2IJ+8XeqkF/s6SnIIcmS/vv/wVlWY+EonJ4BUN/QK4JS3Tm218r/+yaXfYIRmpRJaqrKZM7IpzpQJa5t57DTwl3Hxddy5/lORBHuvnoCCPcNKUN4sDfR7opsAq+ncZxACVkizi+aInBZU/AITfex1xMYXO+Xxy/e1RoBHaczUJwkqtm0ZXvXB794u0m7jPnuemV7Az9+Cjwi+fCdQv76b8wvKt9uUNLV/TAdnQW3HmqnFyuNREQxnHV2dNtpDmi0n//p4IT6jLiDh/tujYrI4bGdNGTUYlbuVmXA0uHayR/tVwMA== 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=D/NawScKYp4/SMypnRWuYjLbfu7LDY71IjBnr6J9xKo=; b=aVFK9lZrQBeMlGDc741C3rWRobb6cMQpN9/7t7zh9UBbTMcvAt4G5yOnzk92TUEeDtu7jzBcU6gK8USz+bwNzDN+QlTY5MaEVB8tEOnAE33+vaEsH/C7SWZ+nU4bWykmplkczhF/cs+1IMmtfZwB+vlUA8wHhm+uJGSbHxhUUVusTtIL+Y6ui9z1Fjtl+GZPuA8dW0x2dDq3uteLfxMIN5GqyLpetzf6GqYYZA7+7BY1+4ws5CI9ujE0wFunSxovcpNJiac/qsr2Z043+nkIc2vXfOrNQuANDRKnailGpXRopls3j47pKvqLwp7UApgM/kP4tRGhrdLa4kC7mMQBUQ== 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=D/NawScKYp4/SMypnRWuYjLbfu7LDY71IjBnr6J9xKo=; b=J7YUNJDVpohrHEkAkoJW0CLXIUo6UMwX0qbv92X57+yxuREEZhLKCsV1EKsXeEJT0QwWVOyzuGV6fE3xN2MXH0L9RkObQD7jXw4zd7uKb1hwWt0voXe+tyeZPTtYfsPmPZUfOPtT6ihOgm5gQDOtOV6tSI8YE3Jc97omaP7M7sCCA4e6aKoo+Tprw02cevqY0TuURv/CLKDyR7GC+xTY1T9oqV2WvO8HAc8lI9NlMZqJgAHDvICo2jwPDLj0yWbTgSJGfTLFgfVLlp6VWx5xfIPJK1Gdc1VKrtfWH7yssl6pgp5u0K0SdSEAn6zfTSnzhqZjsv84y9/3Zk1YMeU1HA== Received: from DS7PR07CA0003.namprd07.prod.outlook.com (2603:10b6:5:3af::11) by DM6PR12MB4403.namprd12.prod.outlook.com (2603:10b6:5:2ab::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 19 Jan 2023 11:18:14 +0000 Received: from DS1PEPF0000E636.namprd02.prod.outlook.com (2603:10b6:5:3af:cafe::d) by DS7PR07CA0003.outlook.office365.com (2603:10b6:5:3af::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.24 via Frontend Transport; Thu, 19 Jan 2023 11:18:14 +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 DS1PEPF0000E636.mail.protection.outlook.com (10.167.17.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Thu, 19 Jan 2023 11:18:14 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Thu, 19 Jan 2023 03:18:03 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Thu, 19 Jan 2023 03:18: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; Thu, 19 Jan 2023 03:18:00 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V5 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Thu, 19 Jan 2023 11:17:39 +0000 Message-ID: <20230119111741.33901-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119111741.33901-1-jonathanh@nvidia.com> References: <20230119111741.33901-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E636:EE_|DM6PR12MB4403:EE_ X-MS-Office365-Filtering-Correlation-Id: f5b73c0c-dd12-44e4-b745-08dafa0edb4d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fVCoTSwbeJhvk6pfj1TRSfQAM9MKelBxeQ7fqT+rFjhVHMK5HKHAEpgGKmgXNuvr17OzvxK/cDCJKZPXq+TbHw0OsuIOazgB1S2og+P1uJvUY+z9NhjUfNGss4J7JpG6YkXN9C2eh1oKqfL4E7QeDHQi/OPw60UHezCFr+3dUThxIVFAkPk351O/7VMT9TUChxv6TtTef5Wo3ey0Bml+ZyJuxlJJl3p/kS3BYRZ87MDQ0j0uZo0r8BsMtJlE8siikSEsMFh1teQBTspK4enpDgYmQLeJV3hwuH551mV/MPQlzQZMKsVVJYOa4x4iqVkMFfzwxlgtCz5jdvNIV0ozQ5LZhAcm0jLEiK0v7+F/neeeQoaUmJ9Dt9Ki2w8gOrDP8Wh/wIbFw+cGPpR7JOk1KCBRv1lc1cEHMUMAQI9had0MSh3txC5STEcmw9ZF747BSfymjN7nZyszhYwmTAlfznCo0wk4uckvIaz1/R0yvz0MuJOxoxzaXiSxE0oDX15q9zmdJLwPJJD/3wrlWDK97DikEYZtQMBnJoATCwLD9HfU+JrKj4ZebX058Pgi42pPEPv/EbzSJtE3RZCM2MS9rtrk+XihfPowOtuIM0I1w3R+2k7WlnfYkUtkJxaWdoIgx1GhD5KF59LIRwA3DnBjV7NjreaxI4DbuAt8FEV8bLlWOJTHcRnACc0LZ2mquFeRhHJOgyFCveA8Z3hhdqJzoQ== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(396003)(39860400002)(451199015)(40470700004)(36840700001)(46966006)(36860700001)(2906002)(82740400003)(7636003)(356005)(40460700003)(36756003)(426003)(47076005)(40480700001)(316002)(54906003)(82310400005)(2616005)(336012)(7696005)(110136005)(1076003)(86362001)(70206006)(41300700001)(4326008)(70586007)(8676002)(5660300002)(107886003)(8936002)(26005)(83380400001)(478600001)(6666004)(186003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 11:18:14.0573 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5b73c0c-dd12-44e4-b745-08dafa0edb4d 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: DS1PEPF0000E636.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4403 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 --- 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 Thu Jan 19 11:17: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: 1728763 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=mySIHqOz; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NyKrK65ylz23fT for ; Thu, 19 Jan 2023 22:18:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbjASLSg (ORCPT ); Thu, 19 Jan 2023 06:18:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjASLSb (ORCPT ); Thu, 19 Jan 2023 06:18:31 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2063.outbound.protection.outlook.com [40.107.237.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE562717BF; Thu, 19 Jan 2023 03:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pux6cAfUFNjJWdx8PURYzk/td8GVVpVZvEAKBXYVGEMn1djZeJSOgiQAjSqWy0Q+5txCSx6Use9jVCrxXuDn3RHLbeLcu12rN0dghAwpYFa7toorT1uhDxXl2gjh6sobeHf33kqZcslGb7zEQq13H4gsr6x27zI1kEAPrHrK9lOMkJK9TcaiVM0s3WZftEZH1jsq+kCZh2YAM78QgLBwVOqmnNTS+jwZwS0hkVfi4mXK0sld5JsuTm9vlDSL8NS1rNi6m2sJwQj09Uf4ThFrTapJ1afd99umjgYWu/NjisNUQjtHu5Rdls10IqWCnZnj7hzb2dVF4/CNQ3q3QlFH8g== 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=XOa4Hrd0m6WE/V7pPGGtZPravUu1oemhysnaPzxV+iY=; b=bVfKjPcSmS1PddNls1VDiTNa1W6mIUhvOhMbiRfyxq5zTza5rK+/44vsvnnquddom5P9zl/t1umh31zyPCsoC7iJPK6goTRiHw4W43mkx8CRe0d9cNTVV0CY3Ddka6q12CjZ/BbUL/DNoXM/RMbscANRozgtM+8kO6WPHORJUAlrlsOyMqTEgz+qnyNuqsvGckq42Z4qPTGxOxjzZd+k4dZDl0SaaVKmsUZKaVdi7GRPvsprixLDOHqz5g2jyn9zDyJJEixoXtDkK9wS2+gNLBPckZE5ecQYoOwp4SVr0YjVJbH8iz1Vi1mN+7qON8Xk90XIw9JI+v3E3RzNSUjIdg== 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=XOa4Hrd0m6WE/V7pPGGtZPravUu1oemhysnaPzxV+iY=; b=mySIHqOzHZ+3edDiAe0vO4fa2mQOxvTsouhSpmcA53toZ+fThI1PHzYT/jBqoHQsbh7QVS3OzlRd9C0t3vDx/G/4Pl2y13bGvcjNvo1JyKFXCRr2g6lsblXFd1SdPQVbKjtbPDMFev53dd2+uWTv60Pp2JogYdEW+gh4yDWFZ37at9+URRpZCMIDv7uloo4B53p7o6I4wQhIIIJTQhuoKuVhlbV4+KlD/dt3gtzEL9sVndrLaOcsc06u0MQ0Auk3egH3hKKKZFfCu6WGhEpGP2jr7vf4fAhuUx0Zhz/b7NCqZGVN71B5JpaPJaMeg3tH8RH4maOyYr7yLtYlwdbuRA== Received: from DS7PR06CA0013.namprd06.prod.outlook.com (2603:10b6:8:2a::13) by PH7PR12MB6933.namprd12.prod.outlook.com (2603:10b6:510:1b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Thu, 19 Jan 2023 11:18:17 +0000 Received: from DM6NAM11FT065.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2a:cafe::10) by DS7PR06CA0013.outlook.office365.com (2603:10b6:8:2a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 11:18:16 +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 DM6NAM11FT065.mail.protection.outlook.com (10.13.172.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Thu, 19 Jan 2023 11:18:16 +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; Thu, 19 Jan 2023 03:18:05 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Thu, 19 Jan 2023 03:18:05 -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; Thu, 19 Jan 2023 03:18:03 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V5 5/6] usb: typec: ucsi_ccg: Remove ccgx,firmware-build property Date: Thu, 19 Jan 2023 11:17:40 +0000 Message-ID: <20230119111741.33901-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119111741.33901-1-jonathanh@nvidia.com> References: <20230119111741.33901-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT065:EE_|PH7PR12MB6933:EE_ X-MS-Office365-Filtering-Correlation-Id: e964f827-04fb-4ec9-e983-08dafa0edc92 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Lmmb1M2Y2rHPB9lPAQbKVr+sqBWPSna8AdXg5aV6N81TMaCn8F3DhEVH6OZFMiEKMHTKjmUFDOjJ2M7SfToMXdedzxPRESXlE6q43T4W//NTxDBGyMnpB+Xs2IF+OqzsLo7rR/pixhi7Il7lhWHXeTHYYfDP2wO6hzFOjmJtQCsemWUxNOdX6tLUIIOeJNUmF5zjxXK2uxXzrNq0GagqnolZe33gtxE4zHXKhPwd6hCigL9SaY4Hlw5nzHmldRPIVEDv3+/1AQ3U4/Av7oYSnQfghK4eCrw8IGAfZVhmGXf1WKtjI2Gy9y6MxqerBMK2hf3Eus/8abKLDdFRD1RMFK/BLp6i+6GMSGbT/KGE9FCi5BxrVY1mWxLLJuudSK8pmV2M5DglDVfpGhIDRp1rWy/OSSRQOotf2JeLaDYsO7zXlEcUN086p0egWTNsFAYN0lebgDMDsMKFAz78yA9PrAKr8a58OgP5qTFDOboh/oobz5js4BOLJJ9zkIflIODRUPRLcKp3rn4AdP/JbaKM5WPXCrG9xIfxi0i1IAHaztkM3wkUD1hyn9lCYJ5FkSZLa4fp6f1zIVKZHHG/CsCHxvNv1JCR64IrD6Er9bkQgKxyWB3RQkVy335I2R/Wi67F2A3+MkxhzYYJ20sGvLJR/Bmn1DyDdO6Lm3xyuivK2xiU5MA5OHq9HQHLRSN3GAvIjx7+GPkqPJ9yslBYOxUmw== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(396003)(39860400002)(451199015)(36840700001)(40470700004)(46966006)(36860700001)(82740400003)(83380400001)(7636003)(356005)(4326008)(2906002)(5660300002)(70206006)(8936002)(8676002)(70586007)(41300700001)(40480700001)(186003)(26005)(336012)(47076005)(1076003)(2616005)(426003)(40460700003)(6666004)(107886003)(7696005)(54906003)(110136005)(316002)(86362001)(82310400005)(478600001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 11:18:16.2042 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e964f827-04fb-4ec9-e983-08dafa0edc92 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: DM6NAM11FT065.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6933 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wayne Chang Remove the property 'ccgx,firmware-build' now we have migrated devices to using the 'firmware-name' property. Signed-off-by: Wayne Chang Co-developed-by: Jon Hunter Signed-off-by: Jon Hunter --- V5: Added this patch from V3 drivers/usb/typec/ucsi/ucsi_ccg.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 889a831e251d..0f18b32df8e6 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -1358,16 +1358,13 @@ 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; + 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; } } From patchwork Thu Jan 19 11:17: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: 1728762 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=qGMBx2Uh; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NyKrG4X5Hz23fT for ; Thu, 19 Jan 2023 22:18:38 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbjASLSf (ORCPT ); Thu, 19 Jan 2023 06:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjASLSa (ORCPT ); Thu, 19 Jan 2023 06:18:30 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2075.outbound.protection.outlook.com [40.107.93.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAD9D6778B; Thu, 19 Jan 2023 03:18:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fyp0Dq7cqIB1bermjUn+TYmCiImsCPswvMaxCFK4xk2IKPV4IUp5MYkGosdOx/39ZLtJ08atGGgSVra7oSyYi9H1gOMuU/F1gUX64B1dQWmzpzoTRCDIAwJ4PaquXzMwjjYjC8Jxr+ffG/npC0oNNGxtHSow4PYdvNY8OPqW2GQzzR5zf3PSkn2MlZLJ7wAtWtf5xvjBqP3vtlKTjuzKVu+Y0ZUv6ROD6UCKGRVQxVUZ2Tr5IYAi5Mus3USEvdTw6lDGpvLGHNzzysTik2VW5nsb0u7YgoQBJ2nXPDiQkxtIDhBtiBmWSd1qL7BsxlymEE1PLfaJsBK6cT2O3DSVKg== 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=vD8Gel07kVVU3zP+dzdUznrU3NZtgLXGgQUcm7TCDXk=; b=Uh1duxrHtRjk0oPx66zC+HmJkau3ppVnx2THNz7f3RE7OH8kDvAdZCbKPoIgnDvVg+gsfQNPEPymqgX5bFT7nvxSvKfHpZWCIIW3ChOYN03/8gHhmnLXCGt++BSN3jPlGN5dx/x+5OepmJPKvK6d5ciTiWqa9CNMkJL+CzAwCkosmM5Qe1/tAS+HgTdVqloHsT4GJeOp48UuZXEBzCwmhPG0K8yxwksI4tdkGsMzqoUHnv+bYtEQoI59Y9D4zMPEUjcWerQ5Jsk/QiXc5u/KmmKRFx/yq1G24GkT4pyPcoP5dewtyr5A4ytnCNLzSN37kB6uyxJq8yVfb/zSoXz5ZA== 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=vD8Gel07kVVU3zP+dzdUznrU3NZtgLXGgQUcm7TCDXk=; b=qGMBx2Uh1Ng18jdzv7C7P9BpjrAbxmklSTjCVvpxf296VdFzeu95fZwDNCGQzIrY6k/JzN3Yn+Q6IqPImghXEMhg4YKSF8PF/1z1oa94YMxtplRPbdDoOpy1sJ6JVEq1cGCwtuHjvp8Dg1wAW0emF0MrJXzzuJLFRo7ByJ3oOX8GuqSRNcFtU0ZGJHns+VsP3tHEUxTf6thT7D/RoRevWi1+K+uwshDTw6nV9l52D0KyarJQ4ufJ//0q8p90czd6+0d7HNwCHUuIowlyAsaM5dVBbiou00DFdXazH0QyBEodWq+A2f8kmc0J4tPieAtIBwsW4R1gFMwJdijQg0MIsg== Received: from DM6PR12CA0012.namprd12.prod.outlook.com (2603:10b6:5:1c0::25) by DM4PR12MB8560.namprd12.prod.outlook.com (2603:10b6:8:189::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.24; Thu, 19 Jan 2023 11:18:17 +0000 Received: from DS1PEPF0000E637.namprd02.prod.outlook.com (2603:10b6:5:1c0:cafe::a4) by DM6PR12CA0012.outlook.office365.com (2603:10b6:5:1c0::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 11:18:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DS1PEPF0000E637.mail.protection.outlook.com (10.167.17.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Thu, 19 Jan 2023 11:18:17 +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; Thu, 19 Jan 2023 03:18:08 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Thu, 19 Jan 2023 03:18:07 -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; Thu, 19 Jan 2023 03:18:05 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V5 6/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Thu, 19 Jan 2023 11:17:41 +0000 Message-ID: <20230119111741.33901-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119111741.33901-1-jonathanh@nvidia.com> References: <20230119111741.33901-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E637:EE_|DM4PR12MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: f6c5259c-e0fb-4fb4-042f-08dafa0edd4d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VdQnLziabeIKGVvp5aNiYu/OkeV8N+xeRXo2qMCrsQs1RoTG0uOYGgM+/XEDtyueaOLTsMAfRZWJSXbMCp6GvJmN1BLZaeSxwhDGntQG5LoVJW+rvAqDANPaM0utzY1AMNWITqSb2xCEtJ3xWC3VpZnunxSp7vVSz2K/hEvQVpGMO4QD4nKla7WujYQfG1YjpHQ/QWx582Z45GmxKgTF4jez+ILhEshon5C6H9TwoS/wv8M/R5qliHwFn+0Fq5xAyU0Caw7C4Yw6w6UIk4b7Sasj6o/x+jIptt2xp0ph0Uzf7jOv8FvntwGmHRQqP6eLZc3Icktsut1lU4zXWqCQ5z6DeqxqzJttxqCxwZd5AKm9bv2ittIvwkotELsMVmdnnjmOFhHv4fzgGgq/vBFa6EWtn+X6DjtidazZqELO4/U2ZFQ1tUkKgap0PVP1qu6XPP66DvTXDSj4WhTR33jvqHIhuhHZrBtQp4Hb10HB9zYrksXAck3Y+ceGC4hitqD+kocTEei0GRRH8NPtyvJASTd8NE0FWnHxxLCA+enn5U1pYnEVI/WSG7LkeucDD1Mn4+ROTqjPEKbje2YeofDDEQkJ4Q4j6asIFQT0AJeT7f1GanlO/zQDknIxA0/VgrQGKOLBugAsYNX/tnQQjbrOuS7eGrNscHcTAUwdc1sf9Nvu1sy8SqLHueOO6lMg1sB3Ms5obaryoZdmZ/4TDZQ3TQ== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(39860400002)(396003)(346002)(451199015)(40470700004)(36840700001)(46966006)(36756003)(356005)(86362001)(82740400003)(2906002)(70206006)(8936002)(5660300002)(70586007)(7636003)(36860700001)(426003)(316002)(107886003)(54906003)(110136005)(6666004)(47076005)(7696005)(478600001)(82310400005)(8676002)(40480700001)(4326008)(41300700001)(186003)(1076003)(26005)(40460700003)(336012)(2616005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 11:18:17.4082 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6c5259c-e0fb-4fb4-042f-08dafa0edd4d 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: DS1PEPF0000E637.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8560 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 --- V5: nothing has changed 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 32c58aa00035..05819d8f8038 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 @@ -2115,6 +2115,20 @@ usb@3610000 { phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3", "usb3-0", "usb3-1", "usb3-2"; }; + + i2c@c240000 { + status = "okay"; + ucsi_ccg@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; chosen {