From patchwork Tue Jan 24 11:43:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13113845 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 B3C1BC25B4E for ; Tue, 24 Jan 2023 11:43:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbjAXLns (ORCPT ); Tue, 24 Jan 2023 06:43:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233950AbjAXLnr (ORCPT ); Tue, 24 Jan 2023 06:43:47 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2058.outbound.protection.outlook.com [40.107.223.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41423EFFB; Tue, 24 Jan 2023 03:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AUQw5m9jE0MKFnEV+FsUr9kusRWlbfDvcPrHD2F6ijV3JIHQ4baVEcrSJp4RbtBtTga8tW7k9jlSOsLdX6Lm4uFP1FpjVAj3WCh5NadrTUghoa/ndJPPZ3Prq/xxt0tu93wDbA109OJpg6w9l5SlpvoSF8nB4ZrNt5pQibbWw685T7Sse9nWnnACJFryeE5HiRS8LNmIlCgMzoR/vkAAb0E72jcTJFOrWP8FGL8mR1wfiQvoLfxgoZDSgaJgf18Acrlci7fM5AVlEBGaLkfCSgyDfVkoDx6kt4lGbWtHct/owNPnXxiIKCsPnIGIaz3rffTK5WCVe8pqD11kYiT9nQ== 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=bYMwHPUv5zH+etASKTO0ZvSUlbH4fNjQEpYAbPyINTQ=; b=FJdVAry9wPDK7woIc3VoA/XjSFAKI9/7fTQ2qpliv1xUSI+WJE0l/BgjzF3tiZyCZlG4Ch4trLeFHxDOA1pVynpkS/aJIwuVaoUTAklZthRWq/x//lOanN5ohAwPtL+yNJ6qGCug7uqggGWQjsMlS3pUd7NDm/D1KXYxhazjSEIX4YYyzI5hCSrSi1XyEQ0n8GVo3BYW69jax54ErFkVbLzjbOQOUvp2ehTUxff5CWaWXKm9GlkpjrYYUVox8H5bbG6F8h1+VgXZOTG2TN7qGPL+0B7mDp5snT2crxlY96uUw4paNVX9KqU48brItaRhKTKYcFKR3yS36aJy091HyQ== 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=bYMwHPUv5zH+etASKTO0ZvSUlbH4fNjQEpYAbPyINTQ=; b=cWa7hyvJzxYjW2ndpAlNa672fvG23wmtMgmpmwNS+9nz+z4s6OkqGo7AU/zUXJ9t0BWURPBP28UfU2ib96L8YSF5nfoYmhuCAy2OcF2P3oiQw/omsmAmIV9kJWiPSKKxw71ePauITJUolmzoDPKj4x2RLKdh+D4aGta/0wrPSvcS4KF7zofvJSi+P/jL/+PWgB9EOhfZuW1yPutBfR6JVQXNNWBDorei3LGBVOWtbGNhajAktcqYzeeS4tek/3BXusDtwjl7VHvdjH9MV1wVTZDHHsvIgm1orHMukEIr2ub5TWiwhE5q0g2x4wpM9ljgdcmV0ePmf0MlAK7h5CVAHw== Received: from DM6PR07CA0132.namprd07.prod.outlook.com (2603:10b6:5:330::25) by PH7PR12MB5784.namprd12.prod.outlook.com (2603:10b6:510:1d3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:43:41 +0000 Received: from DM6NAM11FT114.eop-nam11.prod.protection.outlook.com (2603:10b6:5:330:cafe::69) by DM6PR07CA0132.outlook.office365.com (2603:10b6:5:330::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Tue, 24 Jan 2023 11:43:41 +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 DM6NAM11FT114.mail.protection.outlook.com (10.13.172.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Tue, 24 Jan 2023 11:43:41 +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; Tue, 24 Jan 2023 03:43:28 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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; Tue, 24 Jan 2023 03:43:27 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 24 Jan 2023 03:43:25 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V7 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Tue, 24 Jan 2023 11:43:13 +0000 Message-ID: <20230124114318.18345-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124114318.18345-1-jonathanh@nvidia.com> References: <20230124114318.18345-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT114:EE_|PH7PR12MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: dc825a7a-1b55-460a-5358-08dafe003d7d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fmkZf4OOr6Z7AHcYD/FVo57l3IgLb9zFm3xRJ7+8yTxT/uH/Ne9nbXAHNkZKiQocHu7ll0iEJSEMvXXaWbAXqU2Aij6uZ62sV5cIu2tiKItr9x9Zs1UniwokVhJnhTuCFRHsIhB2Sw+Cpi5haxzzAuy2DfiNUMrkWfbJfX438KGZW4FOcEncjqSUMqenZW7RgI5eM0v/2rCovHP8hMULokzUVcpM4oNOOH6iEVKXqLBUuXFcMU4o4aUdBB/c+Fl4T4L6d1X1F1wplYjk27pIMSFFgvhTRqTAKOBQeTPTsUiPRo9e6nyEVhztOinipouuyHDZbauP7XfF9xC2RpZyJ4hhSssHo1nDW2YDkapBBvTE7NF1aX+Ie2FUzc4m3EbNNW+iVqaNGAwPrE0d6VSy9YxE9UgyV+L591mZGc8+KsK8BYH/Oe2kmSYmQwCiZkLbiijniFnenlHML8HOjt1VKXPiTJaz28T1DRMqqK+A9Nn4hZkI+JKQckQhXDvPc1NE5VcvjqOvwV6jWjN2V8TJkU2l+pmUnkkmVAuGpdugjS8TJww2hC3CD5hyJoU1pIxMkQKABVahsiOh3HiJPbIniiiKq0jXTA9b05GWiH/p8WIL5jSPQwCozEBpTOFrEaiLcUxmsDPTTWt3zuAgfp8cuoXbTtmTfK7ebbG+cT1wdtvw5zPQIGl9NfbJYMC4cTNroORc0MKM63azN70pAmqVavobFaSKO82KyXP2N0MJKGzpep/fuoVxqMJtfFe9ZGExPmmRncyiKox3ltlPlLdi36+TpAKfTi/kMBgd3B79uyw39sAJ7JJppCTr7HP/gJxZ 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)(39860400002)(346002)(376002)(136003)(396003)(451199015)(36840700001)(46966006)(40470700004)(36756003)(356005)(5660300002)(2906002)(82310400005)(82740400003)(4326008)(7636003)(8936002)(83380400001)(36860700001)(41300700001)(966005)(7696005)(110136005)(478600001)(86362001)(54906003)(8676002)(26005)(40460700003)(40480700001)(316002)(186003)(70206006)(2616005)(336012)(107886003)(70586007)(6666004)(1076003)(47076005)(426003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:43:41.0018 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc825a7a-1b55-460a-5358-08dafe003d7d 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: DM6NAM11FT114.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5784 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 --- V6 -> V7: updated example to use 'typec' for the node name V5 -> V6: no changes 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 | 88 +++++++++++++++++++ 1 file changed, 88 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..6db6d88ca1a7 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml @@ -0,0 +1,88 @@ +# 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 + +unevaluatedProperties: false + +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"; + port { + endpoint { + remote-endpoint = <&usb_role_switch0>; + }; + }; + }; + }; + }; From patchwork Tue Jan 24 11:43:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13113844 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 AD908C54EED for ; Tue, 24 Jan 2023 11:43:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbjAXLnt (ORCPT ); Tue, 24 Jan 2023 06:43:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233951AbjAXLns (ORCPT ); Tue, 24 Jan 2023 06:43:48 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2049.outbound.protection.outlook.com [40.107.237.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07DCE3FF14; Tue, 24 Jan 2023 03:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eQGIpk0s559CVLFtPZ3yzw8S0guJi35Z7oNdX3fyvb5DsExC8fwkq6j7N/7VpCI0CWTN8wSNEJZDr6jOibnZaGyyOV6nd5bRl3VCr/O4UeENVqDs5cfyJ673nVhw9MqiONFFU7eCbg8935HR/IKvPs7WCeqxlDK6bBQ79d2iHKP9kBiFBMIq2Rhws+ixvrrIHitANn8uAu4goEInAlKM5s0ATre12fNaYXsC4lUdNmeQpyrbPjKRxuqK96j6UXGC3xMFWeIx+UgIEsyo0n0zMy+smEiE1OlZ2D6wnn5t9EnIswjR3jq7+o4IRGbzU8bVFSnEFFp467/ESLZEUtWUxw== 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=GJDhsok1tyITNJ3tne/LHY5ahJSRlDb0sCy5IzITtxQ=; b=EcmjjZKGVnWr5PD5gic30gql+MzJVA0Dlm7r96Ul3kiO6og0jKEeM+EAYGFI5FVLpFWlCbK7mrFrTQUiUmm0KidA+rdsPPX1logCKPkHAyPZWXTzFTEe6368YxrtRhn5BsKXJnxZZ9ZJzsmzP55DguQQ+443BLV5s/VraGK09RP46XPjnR4kstVoWn1aH3G4nLFzeSYk86clbQ3HuG5DrrEGcUmQWgAMK3wBSJQqtcb2d0DwmYT35f2wDEvl+9lKYMTHFiedUbzhqvGnNxzLjx62jRTmgEpaJfZKsoez6xvQ6Qy7aceWonaT0PpyiFxzLFjt2guR9m45nIW8AxN8UQ== 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=GJDhsok1tyITNJ3tne/LHY5ahJSRlDb0sCy5IzITtxQ=; b=dtEld90N9Kse57aJI3/Pzkpw0y4ZS0UbSm46UdF8u3kSO/H1qVvx27rWi1hsScL4Hu6QpE7N83CxQN6YvI1ZsLFnhd2W2soyns/gc9UiCPNDTg9izTgbu4O8S7Qex/sAOjDeVjgJ2k+pnmFSCFBCBXJpMXvpXM0q0tO3AmXU9qfltMXlMDKMceoFzY/cc3nhnZGZBlc8PtT7uqDPGAX7WcpnReGLY0jPqmthUrWJWd7FI/1Zr3Q/iyI4FsByVU6jyiDoB4Dt9rEanZ2tDHn8C9zFjxFbA2BcXVKSM2CQrDTnn3Jm4ygZEauI/l31APIgmKVo/n+V5Kmhvsl47Zkezg== Received: from DS7PR03CA0163.namprd03.prod.outlook.com (2603:10b6:5:3b2::18) by DM6PR12MB4172.namprd12.prod.outlook.com (2603:10b6:5:212::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:43:43 +0000 Received: from DM6NAM11FT073.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::81) by DS7PR03CA0163.outlook.office365.com (2603:10b6:5:3b2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Tue, 24 Jan 2023 11:43:43 +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 DM6NAM11FT073.mail.protection.outlook.com (10.13.173.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Tue, 24 Jan 2023 11:43:43 +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; Tue, 24 Jan 2023 03:43:30 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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; Tue, 24 Jan 2023 03:43:29 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 24 Jan 2023 03:43:28 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V7 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Tue, 24 Jan 2023 11:43:14 +0000 Message-ID: <20230124114318.18345-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124114318.18345-1-jonathanh@nvidia.com> References: <20230124114318.18345-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT073:EE_|DM6PR12MB4172:EE_ X-MS-Office365-Filtering-Correlation-Id: 9196df54-77dc-451b-0bca-08dafe003ece X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FdAGK+uLunPDutEBd3KWGl8KMqPAiVrqt7XwaCMOvQsrxUkJWNQUK0RNQwdcCmr7Z4StZPXlLAEy/mMBfveULnzEqVV1kK7U495+8XF2E4458PWyXLB+akqb57Bt5DDw0ILs751M34gC2rTl3AHENlKDnuehknAPLK0FWzo1FXy5hBGjs/D9SilOEFaSE5dxKtYmY3glaM2N4yGWplovmOdfgU6PyOMfz//22VKxagOK9pX5tw72Vsmv54TE6ZjLavp46Phwxtt0c8WovX1aOol6OxMry5H9KIC/P+LbB7YVyapAjecJN8sybkxNV8EECvOUFfBnR5yV/I3NPJRpEhG2YEabNkxacWbIafPi5p5WNl6O/0DgrwHXxX5nPE6kFLPfc75hMDs5ajUjB4g2lC+0vfaGpSSqGaFtdm5zctzU6GCfNlTDpe9nBdjMuIX5UzW2aBwS224bNmCbAZpz0Kdb5VcObKBmtOh55LwOyYTF4HGx8CzqAwXZWZTouA6jHxIpbnL2ysZisMuug78CcoTC7+2rUkIpzoT8DQ9SftHxkhAlH3e7poQZJjfhx9symCZW4KuFZqot+WDWRzrZLvolYe6sBRaMzS7nsIY41CWMfMKJDhplsrxK3iyFAghVMEkr8Dg8J5xO4WiH8+WIToyBlyFhLS2f/bRM6ekWGhBqPlmnuCnnve52qjPHiWwhVgjvKEmeoE6EJnT+WQ9XEA== 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)(39860400002)(396003)(376002)(346002)(451199015)(40470700004)(36840700001)(46966006)(40460700003)(82740400003)(36860700001)(36756003)(356005)(86362001)(8936002)(5660300002)(7636003)(2906002)(70206006)(40480700001)(41300700001)(4326008)(8676002)(70586007)(82310400005)(336012)(426003)(47076005)(2616005)(186003)(110136005)(54906003)(6666004)(7696005)(1076003)(26005)(478600001)(316002)(107886003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:43:43.1930 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9196df54-77dc-451b-0bca-08dafe003ece 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: DM6NAM11FT073.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4172 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 --- V7: Added Heikki's reviewed-by V6: no changes V5: Added this patch from V3 drivers/i2c/busses/i2c-nvidia-gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 12e330cd7635..6d81ea530a83 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -261,6 +261,7 @@ MODULE_DEVICE_TABLE(pci, gpu_i2c_ids); static const struct property_entry ccgx_props[] = { /* Use FW built for NVIDIA (nv) only */ PROPERTY_ENTRY_U16("ccgx,firmware-build", ('n' << 8) | 'v'), + PROPERTY_ENTRY_STRING("firmware-name", "nvidia,gpu"), { } }; From patchwork Tue Jan 24 11:43:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13113846 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 9877AC61DA0 for ; Tue, 24 Jan 2023 11:43:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234261AbjAXLnu (ORCPT ); Tue, 24 Jan 2023 06:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233950AbjAXLnt (ORCPT ); Tue, 24 Jan 2023 06:43:49 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2058.outbound.protection.outlook.com [40.107.93.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B08C3B652; Tue, 24 Jan 2023 03:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mlZA266BZ2AsR6DM1ilzVf+Rmj6jp8fyyje3NEGTq2sL6AaHW1y3N0N5IDNmWax8lwLuLS40wdW1S6SSjiS3SmKM8jLM5UhftxeTyTQsJz0E0iqCcrhrfpKsvE5dKZX0hCjTDU/R594f69vZZfeA0ORb0MmXJVbr+hyZSlTAXyY80dbpcoO/ECSeii+OM2PM/DZcfMqqTGKW2z3ok7fsUwAXCNUAPtjSzTLfkZyKGwWn6m2eCRJL5EHCTkRa9QcyYbFbjAd+uRro06HT99BYOsMDIPHPZtAc4yrKyTmDYV23Svj3pmTKWt+h8L/+8U4NzCZzoxPAq1fl6z9WkJaAQw== 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=MtHf8adUMNw6lM8YkGQR+mIt8DhNt8JLe3H/Yppqq7Y=; b=BSN6SCQfvfU7zLOLN6Ijvh1bm2cmdhEATbGMyAwRofhO7k6jT8SrCzqo9Sj184HiQ/luX91DPbIq9MdJU+A0WPJrbJFyOKgWBaY5bSu3gJ8IPB8v5BEZO3ksUrXs7WZR2Hi4zpem2OvBcv1wj0CKXuFc3mXsZkYcT+isnHV1qx4xBKwlBusI8qgmSSAUGR6rGziywLHmgoBihaEA/rwL5kIyOd4qXzLWWU7dYmRRlRWto1LRhTSr1fIhfA0U61jdzEa8n0JNdxpTTOh8o+6zoM87z+Q+laJfSA8sMyiedzNgTIobIi1jo1vjtdXVSHSGmSq2C+lMOSb1kZ6phoDm/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=MtHf8adUMNw6lM8YkGQR+mIt8DhNt8JLe3H/Yppqq7Y=; b=pDt/kaPWFJrdtTWgFJW/eRZx9ttnjN7F9o1oAVdhX2zy42AHwf+BhC5W4zMflwGsdgySCBczBFG7sKkdhjXq85aflGi5SVWhL9OsfANiLFS6yTbEOY+uL8TNCUl2qHn6epkmteZvvuPaOBkeEYPbZg7uh4vm+GIOd3UUy5BsyJlqjhExno48lHv9WIgy4F79I+yYFT2Bd3quihtdmo+t9IlPRJGJJqD8CYWOYezDAK8NeLKXxGH6I553lkCuyYWFRBmbho8MMqwL2yoa0Qga+L5qZLLyGCTiAGACTWSIkk9PgKG7ByVVcNBPlOYhwuaryM1Bx95VUmKQTBDD5DCzAQ== Received: from DS7PR03CA0165.namprd03.prod.outlook.com (2603:10b6:5:3b2::20) by CH2PR12MB4293.namprd12.prod.outlook.com (2603:10b6:610:7e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:43:46 +0000 Received: from DM6NAM11FT073.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::6c) by DS7PR03CA0165.outlook.office365.com (2603:10b6:5:3b2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Tue, 24 Jan 2023 11:43:46 +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 DM6NAM11FT073.mail.protection.outlook.com (10.13.173.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Tue, 24 Jan 2023 11:43:46 +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; Tue, 24 Jan 2023 03:43:32 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:32 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 24 Jan 2023 03:43:30 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V7 3/6] usb: typec: ucsi_ccg: Add OF support Date: Tue, 24 Jan 2023 11:43:15 +0000 Message-ID: <20230124114318.18345-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124114318.18345-1-jonathanh@nvidia.com> References: <20230124114318.18345-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT073:EE_|CH2PR12MB4293:EE_ X-MS-Office365-Filtering-Correlation-Id: cc90a498-507c-48c0-648c-08dafe004095 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m0ZPXSHD9g3LB6LKB+TiGS9ariU2TbzAEfrdTJ1r8HL7vt5z/F7rgcICzTXJ3pMQ0kmNkD3Lq9VjyFT31s9Y3D1XjQz+9kROiVauBAA5Nmp5pP1Nxib7GdoEfqtix6RpaZKP67tOIFlsdsfUbyR0rkuPBbYi4HeFrgkjGvFUvxHxmMhRU8yMuRO14ru0DpVq+NIAQepI6o3Mc0lcXKziP4d5aqcZV+xmb+2R7E1imXR9w1AXLyBLa8rg3RaF4VO7PI1v0wRGy4BjJkk3+hasFAe/NywgAQ2RRgPAzO+GcYsVHewh678EBg4uFp62Pp8SVKaQeUpqTldcD94xSHyiAvU3mWhi7US5hmpyma53itNlFvejgvdKOsMipQEagnLGbnqxe7J7+nKztLYZxL/CTzQ69IfUIXfitZOTnl2Ga4KM5d50ZNP+WEBx8ALSz7V5YeRpQXoUaEG0GPcS5zpbFXZoPq6kMfFMuGn/YFznLn6Hw0A6haIxX/Peu7CULIEckMAcoejuCQD35pgoTS9MPeSSSs2iKVn1eWPFjlLS717a9JW1VEUz4LjzVF3kFurACiu6baoSDBLLYHd1OsrUflMH0s24UNJYrlym0XvUFOSyZGzR+HrcSGx41lZxDGQfkcPfGImBOUBXRGcSwhcLevovwbznQUEKxs4EsmZZjF8bdNDO26CQGeXHvAREctvTtvRWTHmaPMk4zTjqMkLKpQ== 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)(376002)(136003)(346002)(396003)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(36756003)(41300700001)(86362001)(356005)(7636003)(82740400003)(8936002)(5660300002)(4326008)(82310400005)(2906002)(83380400001)(36860700001)(478600001)(110136005)(7696005)(26005)(186003)(8676002)(40460700003)(316002)(40480700001)(70206006)(70586007)(54906003)(2616005)(1076003)(107886003)(6666004)(336012)(426003)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:43:46.1927 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc90a498-507c-48c0-648c-08dafe004095 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: DM6NAM11FT073.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4293 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 --- V6 -> V7: removed 'ccgx,firmware-build' property V5 -> V6: fixed compilation V4 -> V5: add support for 'firmware-name' V1 -> V4: nothing has changed drivers/usb/typec/ucsi/ucsi_ccg.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 46441f1477f2..8f5ad2094f26 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,16 @@ 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 +1434,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 +1494,7 @@ static struct i2c_driver ucsi_ccg_driver = { .pm = &ucsi_ccg_pm, .dev_groups = ucsi_ccg_groups, .acpi_match_table = amd_i2c_ucsi_match, + .of_match_table = ucsi_ccg_of_match_table, }, .probe_new = ucsi_ccg_probe, .remove = ucsi_ccg_remove, From patchwork Tue Jan 24 11:43:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13113847 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 BDB30C38142 for ; Tue, 24 Jan 2023 11:43:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231921AbjAXLnz (ORCPT ); Tue, 24 Jan 2023 06:43:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234273AbjAXLny (ORCPT ); Tue, 24 Jan 2023 06:43:54 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2044.outbound.protection.outlook.com [40.107.237.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 539603F2A6; Tue, 24 Jan 2023 03:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qrt3CKRtu2XvVePGyhzVBCivA5KDwXP0H9OQBy1Kc9UButQwlRKbYSKgr4XC6Q1hvSrxPcvYM4GhMyP+owWxCucCYyt8Ii7XS4mVq4QE3ThiIe6JEvb1wui1Q+4+9KPu4Q8ChdFAR4tNYwog3nB2EJwk1LWpX4NKAKtidRYnscZnea00sToZPH++2pUwjH2my2IePoM2L8u0l9sai0SYnv6ohyks2ezQNArpPh5ICEiLqWp6mGYd599F2jIU+CxwN9IR8YafEveKWd0G5t/ve61fMufizc1UJMToH+NslgRzVbeHvit3s6NUgJq2D6D1bAjfwPlsuf0OezpQoEZX1Q== 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=W/fmBgnAx2qcJTwQXxImfEG0FS8wduULOdPqIxExs3I=; b=CkmssC6R1H5O1+aMwuVNjCUgDalgpQHBZQid+n6X0Qd3kB5n2I9F/BAvAh9D2XmmdnPop6PmVsHHsu9hWR0kGzq9KI+sFJlxdSZvgWMlW1PYPbrSuZFe21xA3U4fKsFqgKEAzmwVjAgCgoHwzSrOSQhJ356ZyOMSHzm5tlNBHeAJQ5D26/NZJ7wpuRuA/duRuGjSk1ze/NSIYiWW0TqCwexaX70tvo8tGzFaISqN/k3EdxOtNhJltHe/5FQArWYIjZKBDP4bmUBnBqBOp7t02LFUTHVW4xkJVVE4OANE9sQFrxOYOgcfYySKu+OYqxsEdtyhYVBDGVaJqHpWN/EgCQ== 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=W/fmBgnAx2qcJTwQXxImfEG0FS8wduULOdPqIxExs3I=; b=oZRw5KcDR1dIYEVQJLbeJB8f79P8lemZOXST8DIEvOX5lIWwMOHkBznpBRolonH9cbBVAHma31RxaloLYnufrp1tiekxRJU6TeGsiuIx0AQiCFvz3J/t1pDdmGi/mabxbBub6x93yxOQ0d2In9rtotc2cRZydU6vTTItxfXIMNxb1bQUAZdD1LWyzPIMt73TVdwsKi4NGd66iWMR+Yo6qtyQ3HBpa0cDr5hnjIUjC5XJCMN+e73wUpZL1iH8TaTjFEtgrwRWcvOu4U6L6u8yzT+3gxSLuf31gOMbfLX+4spUoTj9G8sH7os4dP2DaxC4MyzoQ4dIpz+oeDbe2Se78Q== Received: from DS7PR03CA0179.namprd03.prod.outlook.com (2603:10b6:5:3b2::34) by SA1PR12MB6679.namprd12.prod.outlook.com (2603:10b6:806:252::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:43:48 +0000 Received: from DM6NAM11FT073.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::78) by DS7PR03CA0179.outlook.office365.com (2603:10b6:5:3b2::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Tue, 24 Jan 2023 11:43:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT073.mail.protection.outlook.com (10.13.173.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Tue, 24 Jan 2023 11:43:48 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:34 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:33 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 24 Jan 2023 03:43:32 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V7 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Tue, 24 Jan 2023 11:43:16 +0000 Message-ID: <20230124114318.18345-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124114318.18345-1-jonathanh@nvidia.com> References: <20230124114318.18345-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT073:EE_|SA1PR12MB6679:EE_ X-MS-Office365-Filtering-Correlation-Id: 157494b4-f0be-4b38-b2dd-08dafe0041cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8QRRDpvglFRPgCBsejeAEUvsCkQdFyN/4r9NVv/o8wc3wnZ7Dd7OD5kUNhsG/8M1EQboL7fxSXS59ohmqVyq+bcpDH34DhfL5wqTaR7VT0BQnf+933v461Li7IrhpRVBkuzgseoEepgfGCsyzhR/1JQ0P+zm15CpxlJxibxjYOU2XYaW/UFy/l4hj6zcTp3/ghvHFcOheH4OT2gcEtmjj1rxOBzYwqgijcb4T2xTHv07br1RZ44VXWCBxhXxaVyv3VijxZySC6eAoKr7cU7Pdx5DHnZuise6bB+DidARIjX52DbEDCVoPqPbs2UuEUqDlBturF7BZyRjyC0cuoWzYoF8oaxIgbvoLjjBy+kMb/Q7Kv8k30hakXRuHmxEaqa1mdJV3jhHP9xucoFkqt483IDoNY41ePDR2Um/cMn9ZE2cjcholk7yvA3UZ3W5dgNgGmA3e47PbMt4P0M0nMV2B+VjZDe8I8LE3XOKlgBbC/qzhIpZZkgrOJegAPA6reaEZzF9tL+glXKzKZTN/gP8wOjlDoXHjD/LcgzDVtB0LGuo23JsDUIeKJoCIJVpLPzcO4wH3I3MzOYsxPEP/RGAbhZ758JixOpicgs4MF4LK44T/k98IlI3YF5qfdbLPeql5KyKpmsQ7/ffNFB0vlV86JMezlh/YbJbBWZLrWhH1AzV4Oe8+cj5exqqg+iQxrKmXgLL8tgycXcz6vBWA04RxQ== 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)(376002)(136003)(346002)(396003)(39860400002)(451199015)(36840700001)(40470700004)(46966006)(36756003)(41300700001)(86362001)(356005)(7636003)(82740400003)(8936002)(5660300002)(4326008)(82310400005)(2906002)(36860700001)(83380400001)(478600001)(110136005)(7696005)(26005)(186003)(8676002)(40460700003)(316002)(40480700001)(70206006)(70586007)(54906003)(2616005)(1076003)(107886003)(6666004)(336012)(426003)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:43:48.2395 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 157494b4-f0be-4b38-b2dd-08dafe0041cd 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: DM6NAM11FT073.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6679 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 --- 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 Tue Jan 24 11:43:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13113848 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 1DCB3C38142 for ; Tue, 24 Jan 2023 11:44:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbjAXLoD (ORCPT ); Tue, 24 Jan 2023 06:44:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234273AbjAXLoB (ORCPT ); Tue, 24 Jan 2023 06:44:01 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2068.outbound.protection.outlook.com [40.107.220.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 812FE3EFDD; Tue, 24 Jan 2023 03:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZXxeJdnJgFbgmzyylTO9A/i2b7dvL3LUVjNWYsYDmcvqH/QSrkXRoPTpT2g7XYQsCoJ4/t3IZYCwKEaLGfsmI/sHdzMIhE6ctFfDTpT6Lhd9dbRJkRjWgbE4vyN1Xpk5dRVU3LesTnK/BommL85DtoF9itHCEn5FlWJJ2vVuC8AH33pJ4UiVHDNlOQwjoTdPbVuWk6F+adsWeApBP7ZCr8qfBaaed7sS/2t5LVsu66/4TI3RCTRnQMupxXFcBqlzeTtNmzxcanFJqZNR1SOd/simRUR4rTvVZpBlqcSeyTSvKd45qEVbcM3k9MoMHusNt4snkVqb+lIUF32smK70HQ== 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=6NKokIwQ0RhiJFL0rqhF9BBZCVv3Y/NP6T5l4CVSvIY=; b=a7csyZsK0ZW0WS2vIqlab8a6aXHLzzizD6IzzhPXITFjuVH11YSYgQbRzxfE+oWWlYJsQYAUZtkL4J5aGAUHgKAyirJd+I6fuNjnHDeSKJY+L+WdzUlMBItDsiUlDedfDGyXS6QYBRsEXey6UFddR5xvpQmF/j5j8E4NIiknrEd6HUa35/J2/dddj5h0z8FF1gcrLhdEsJL7yJcWR4d4qs1ZWN8omhuZIPUQ8fA0vyayXY4u6T2LjL8Iah+HMKak45wgV2xbvMgPW8d/xw6PCFH6s/1z4d1MKNLpF+Zy/IEQpgwiucrKR4/GCxiE3AmfOTTXF501Xuv8O1wtd5lyuw== 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=6NKokIwQ0RhiJFL0rqhF9BBZCVv3Y/NP6T5l4CVSvIY=; b=mslLMj/V4YnLgxNlouoipukhXnb//7MofoZH14U7GkhluEGIGKV6OEMx0HwzoKukDSO4OuHqrbNgu6mEuiB0guwN0vXk8YwLPXUHAf0iWun0RnESYn9at7CR3+ocirbamVf3jQRi1NnshATLU7Pm+xPV3IDLyiPBBHQbHfVUM9YQJ8jangm22lacs1gao1MOgnGNcUhgSZU50laj5rWEn537Dqcr3eZnBLEsN0cuVsU4raaUnwI4SH6dJU2wxcXSFlG1SJzdFJ8n0xvsQs3gnaK4yX+9maFArScZa8yr46KHgzUKWqOVEczNa0O7StFyiQC34zRyEn4uzvvROabzrw== Received: from MW4P220CA0006.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::11) by MW4PR12MB6897.namprd12.prod.outlook.com (2603:10b6:303:208::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:43:52 +0000 Received: from CO1NAM11FT092.eop-nam11.prod.protection.outlook.com (2603:10b6:303:115:cafe::5c) by MW4P220CA0006.outlook.office365.com (2603:10b6:303:115::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Tue, 24 Jan 2023 11:43:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT092.mail.protection.outlook.com (10.13.175.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Tue, 24 Jan 2023 11:43:51 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:36 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:36 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 24 Jan 2023 03:43:34 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V7 5/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Tue, 24 Jan 2023 11:43:17 +0000 Message-ID: <20230124114318.18345-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124114318.18345-1-jonathanh@nvidia.com> References: <20230124114318.18345-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT092:EE_|MW4PR12MB6897:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ecab190-5024-4a18-183c-08dafe0043c6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yTOB5T6jpX84EI8Atq+amt1J8C8k5oc3WvRUHMkSIky4a7twnK1awU9mce+6j81TK3arnzoJXTSgScmmKgdaYL/GmXlvUd+mxypMUnyQz8C2PgkrOPizi1j56KLu8FV/oSMqkr4VXFtdx511jK9YMPkmXKQO+D7ME1drkT7InZZ9pjIUbCU9tz43+nWkivqmsmj5Sxh9clQMsXyrOEaBRNNgiC6O9zzXZSNZSqrKDS7BZLkb7ZKyxxP8DQNzoFw8oSCi2D5XGBByM+uZOltPPl7LKIsWw9IURWjZbOU0ieD/sopA20tFBKc/pn24GUa4845IuKFuHHbt3KuSSq0WkNIN9NVOvobifzoEH/Xg6inssC0IrYjUPwZlZx/f9cgMj+sL4N0KWPC+fCc/MWciaO4GKQ2+ge+/+jHyIiiyisb1PpbAxDsRoqgjSPKgk4Y5wk4OZqqS9/W+i4/VNR5/hc7rMX5/9YJCswUwu8ey03Gi1ekNUuwmZbSH0Cc71YC5Wbr3IuaIlAd/klbbTvn+48GQ1Y0pOSvS7Xylyid+XIVNHiQjM82/s5Qq9v5xjiTHdfly3WiuPEB7XFPrHiM8gDZbfQpfQeRK3Vwy5GoQmBP80RvYf7MD5XC2pUnMbD9aVcnfyREGxHVO3meEJWmNCeio0PgQ+C+sEtjhwVaWdzpoOoi1gQJ8Kw87f/fhEp9K1a+atMOz1h4Mx40Gw4u7ZA== 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)(136003)(396003)(39860400002)(376002)(451199015)(46966006)(36840700001)(40470700004)(110136005)(7696005)(1076003)(4326008)(8676002)(70586007)(2616005)(426003)(70206006)(47076005)(26005)(107886003)(6666004)(186003)(83380400001)(5660300002)(8936002)(41300700001)(2906002)(36860700001)(82740400003)(7636003)(82310400005)(54906003)(316002)(336012)(86362001)(478600001)(40460700003)(36756003)(356005)(40480700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:43:51.5451 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ecab190-5024-4a18-183c-08dafe0043c6 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: CO1NAM11FT092.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6897 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 --- 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 Tue Jan 24 11:43:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13113849 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 CBCC0C25B50 for ; Tue, 24 Jan 2023 11:44:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234263AbjAXLoO (ORCPT ); Tue, 24 Jan 2023 06:44:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232664AbjAXLoN (ORCPT ); Tue, 24 Jan 2023 06:44:13 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2047.outbound.protection.outlook.com [40.107.100.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4966844BE6; Tue, 24 Jan 2023 03:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nEDlYf1ADsDS1ULGWOBKUfLpegRVXN2xJXQrW3JTtm4fg+3cMaMsGuuqCjbSP868FQqHuOJvSswGp3u+3VkQwXfGUH0KIqoewdfd+7qIMRmmrPeXCX7fhXZxDI9oAegYpKGsyZRCyN4hbHHMM6gO5tQdbRnOSODqs07PRiXvOmBjqhVPKeRA1le6ZXAJFZ37WECrK4PCGCnm7OxaMEuzPnTKtd1+CFPSewYnExPQaHPyQfZjBOQmFB7ckiDoCA3Ym4wWS+2RDmPyOF3Ui5vfD/5or/+o81oLIkPzTTeiXcuSCbN63TwyXSe6o+Oq9Q3B2Y9FxtTgin3mN9ME/bm8+g== 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=1M3T3PH5qIh7fo+qhVfoz+sQrDJcugUVoDGCKS5eqyw=; b=SiUlDK5N99vzkiWzoaxXEtWNYyBavTo2uumpQqgsor6I88C+8JBcaAC2BPxC8gcvxJYnq/A+E+2bPZc40mzmCySAkJm0kWMKm0FoOzDOY5Mj5cBqdSyP9ZR5QBi00nRX+qkxrzQTmzDyuGcThmHJXK4zE/VL1+RUm2beBx9Yed2qfIJZDAmulZqSsMw1fDAfJ9y7iIOcH+S1hYMAeORqG4O0nOBNUcKuz0x/48bvGSz1WLgm0LvAfBPcRnAwPGHiBg7rhovTezBzKle8UjOa7GXslajbMikzW7SxGHMO//8wE+1CwXJFcekO7RkoJzcYANszsR1impDkmRWpt/EkMg== 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=1M3T3PH5qIh7fo+qhVfoz+sQrDJcugUVoDGCKS5eqyw=; b=ZE/6vBl3sgboklin1AHNT4teW8XOind5ekKOPZq41R70iL6DZ5aKLU9K+AfvyxzUidsTSQ7JPyyKc2I5mtgHloYrh/rln96EvZXJFwu4Yp23nvyeBdFAdLNKOBJtICp0wgf088LvwCAP5wn4/x32Qd7M4E+PQFzT2dTTP4KiZ4RcwVhOiqwitwTDWJLLljQHDd3YtBhqLoWN8SqwZGbGn4oc7tH5UPaFp6Qrw9E6PLHin3wz5i5j/CO+0UKK2Wnsb8o5O6oAXXmR8Wc8OgbDIxrJF1opqoTCDQyqBu3uwsXEHzFbpVQwoNmViL+5vBm1wsH0Wbhml7u4OT7aKPv3hQ== Received: from MW4P220CA0005.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::10) by SA1PR12MB8600.namprd12.prod.outlook.com (2603:10b6:806:257::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 11:43:54 +0000 Received: from CO1NAM11FT092.eop-nam11.prod.protection.outlook.com (2603:10b6:303:115:cafe::b4) by MW4P220CA0005.outlook.office365.com (2603:10b6:303:115::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; Tue, 24 Jan 2023 11:43:54 +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 CO1NAM11FT092.mail.protection.outlook.com (10.13.175.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Tue, 24 Jan 2023 11:43:54 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:39 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 24 Jan 2023 03:43:38 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 24 Jan 2023 03:43:36 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V7 6/6] arm64: defconfig: Enable UCSI support Date: Tue, 24 Jan 2023 11:43:18 +0000 Message-ID: <20230124114318.18345-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124114318.18345-1-jonathanh@nvidia.com> References: <20230124114318.18345-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT092:EE_|SA1PR12MB8600:EE_ X-MS-Office365-Filtering-Correlation-Id: 55931245-41c3-4d54-c422-08dafe00453e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UfOI1PneeGUBe+Z5UzIyn4rhccMhAwD1/jHkqBtBV1c79UxNeBXdVyC4KJopAQ5j8b/1sQuP4dd/U4kfnLUfRhxkIuJ8zhYob25/G/6Ld/LX/U7ojvV8WOlo/ZIk72/NoB2dK1bb8yASUTLmq//caOvu9cpOkp6N/9e1xscJuBzHNIES5qT4KMR1HTVuJal88lXbrTnoR7xaBcAuJAuScDjHxr1uEmrmHy+PE2r2UjQY1FFt2wasAH9DD6RMwAvNXNu5XUtpD9xpAx9hPtr9tfd701U94RN1SoflObmFVaszFp7hZoXAcduNjsN+MHEwqFjXKrEN1ExfuYUyxL0VfC1HwGWjgakjBY0wCC2/2Fe+JbDcsOD/93Y2f9icIyR4UemspGnHvoT2Hw93yJIv6rnCreAVPaGG0+yNysp0oNuYV/aaDvZ/OM001BVrOY91pDZLS6vHaTdoak3qBvsgBmKJ9wXL9yvhCB7zn1Yn6Cv+XqcBJE1D49qyO6NqfHGpLTHq3QS9g7gJ18i0L93zlNWUBOvF1P5IuhzRh+HK6Rf99MuAFK2xGEcuV5bWFKiYmSMXXs8lpqRiN2AjztVcGryeQxzsSqzkT5Db4VhkxOjTXl9xiywuRBVeVrb+XSAYKJBkkgkAacGA0w2QgwKcxb4YrBJ9LoM0kjBXB8ibtryZoYRk0SNe4JQtK3OSYw/F7IZ5R2DwUBKKaeK0LTeujw== 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)(39860400002)(396003)(136003)(451199015)(40470700004)(46966006)(36840700001)(36756003)(7636003)(356005)(2906002)(82740400003)(8936002)(4326008)(82310400005)(4744005)(5660300002)(41300700001)(36860700001)(83380400001)(86362001)(26005)(478600001)(110136005)(7696005)(54906003)(186003)(40480700001)(40460700003)(70206006)(8676002)(2616005)(316002)(70586007)(426003)(107886003)(1076003)(47076005)(336012)(6666004);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 11:43:54.0449 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55931245-41c3-4d54-c422-08dafe00453e 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: CO1NAM11FT092.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8600 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 --- 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