From patchwork Thu Jan 19 12:16:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13107791 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 855DFC46467 for ; Thu, 19 Jan 2023 12:17:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbjASMRF (ORCPT ); Thu, 19 Jan 2023 07:17:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbjASMRB (ORCPT ); Thu, 19 Jan 2023 07:17:01 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2061.outbound.protection.outlook.com [40.107.220.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7241715C; Thu, 19 Jan 2023 04:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWL+mqjcsjv5kRO/2wjPgi2AVTGCb3FLU1pvcFfN0qTulNgtG+LqoS6kArcXhbZq/jTXBno7U/v0DrogavWpjxMgDUjODRi6n0hl5x1Dpjx/ba77VcTeoBRX8D+l8/6LMD56Zpt+cU9bSAk6boEoIuGn7+bMsPboz6nlhswJcowbpgJMYGQIsAVUOxp/2RU8x2v/4n6ldR2jEoU4Dv4UGljfI7WXqx1EnZtwz3dfX4z0nz6/JVVy5XtqqGAqJUt7kXWmkRIKhTpyX0bbDoLIRnCtTsTtW9uAGrfb2/rdb3hfrqEdEFcZgD5e1T5TqblkWY3tyG7ATfjE/87ZRl7RMg== 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=Uu1942/4Y7BPbre7KL+rDV9PJz0S+SGb8wVkCEPKuG8=; b=XxTR++MwpQDqhqMhSqL4RScaxm32wK82ftC673VGEw1Z2n++FyH3GF6rMjJ5J0ZX8AEW4KyCvmSzTfWo8FV5cqN8g2NMNCmI2HLKATgDGXmWBQ5G/NA5BKROdyDI6IcaSrHEsKU3Eo6SWEJ9ack49a/7QeyAGaO7Ub8kFLXgkeSMigmXLePBCEFXwkVzsdPiuOSHLlMSFlLpb664nKJHXnnGeQ8loUEznlLlY4AxvbpC0DGQzUVmdDmAtMZ5WWhO4nmwEwvlbYZZvS6gQgBD8KdBPQ7JCbZK9Y2VZ/s6VNGHCyBPcDqPcyKJvb2zm+tjfbIjW24YcWOJR07d7LZexA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=Uu1942/4Y7BPbre7KL+rDV9PJz0S+SGb8wVkCEPKuG8=; b=aDQ2e78uYJzmeSvnMal+zKYJS7ICGOXMU9Jkpx/2/spNaWoSK52HJmLZNHoQq8tlAnj5+UO9s5maQBI4ZRP/Ub/ZYWPSpjZTloo64GGUjMeyS4h5vIASKHSZSu/0rfHAKr18pzgF+BySnvj5Dm9b42VRx2u0kEYnIy6tbjcMO23/y/bR09RQ7EENR6FS1XyRdmc2g4vlfZfhPn4eoyGf22br8nt6Cl6KWc7ocjnNMxnWWblMmWWx+bLN8SvAF/tcc71xXzAFxp1gMRheIRbU3bTvCwhJ7TQiDbeczHmpkrLawa5OoosekVZ7otdY5NvMZ+H3RlGCooEIYVAH3CZ7Fg== Received: from DM6PR07CA0098.namprd07.prod.outlook.com (2603:10b6:5:337::31) by SJ1PR12MB6193.namprd12.prod.outlook.com (2603:10b6:a03:459::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Thu, 19 Jan 2023 12:16:59 +0000 Received: from DS1PEPF0000E657.namprd02.prod.outlook.com (2603:10b6:5:337:cafe::82) by DM6PR07CA0098.outlook.office365.com (2603:10b6:5:337::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Thu, 19 Jan 2023 12:16:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0000E657.mail.protection.outlook.com (10.167.18.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 12:16:58 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) 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 04:16:57 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) 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 04:16:57 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 04:16:55 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V6 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Thu, 19 Jan 2023 12:16:34 +0000 Message-ID: <20230119121639.226729-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119121639.226729-1-jonathanh@nvidia.com> References: <20230119121639.226729-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E657:EE_|SJ1PR12MB6193:EE_ X-MS-Office365-Filtering-Correlation-Id: 087e779c-0e25-4b3b-0077-08dafa170fda X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XR07vjtDqvbINEHeBfoiyArVrFK3oiIHQDCAlhDX/e3q+UGv4OHp20QTq7snRoG9HMcXPLg2Bv/3vDDZexGCFOJmnDusXUUxf8Sos46010UqTaAaxZZQvEoAo8biIHfxYuKr9+li8ZTtHisWrTzCOv2q7MLY0VfPKQVbyr6mayCeRekTszXG3UkwKmg2ZPye/GgaEI9x7rhyITKS2PPu1yXoLTmJffncu0CIfeetbeXrmArqoG4Y5LYzOySsej1+fPVR5iUdjsk504vwxrdklCaONYr+KzTgz28+B/8hmT7nlPxSG5XJlKkKo4y3j7+vY/IVTNHFDYOuo1bRfOFrgxQeWc2UesWOdiWcO5JacJJLQ6KsaRP+I+81YCzpDRb0dKglqzuim8H8/oZGYO/MzW6YRl5+XYit3+rYphavyi55Ngbg3GU/kN22hU1HtBce2Xl9DqAaFQfr2lsf1BQ+qKhsxh9sEKQtFIPxynmNCYzpte/MrRBO7SqWjCB6TatAuNOH1LueurJXrkFBpdm2D01jIxJXxIHd9Rf3jSA4CEYHFwBeJ0JqsfP2d01/UX2VSZJVZg1fCCU+lGgYcb+8au4PUCiBbxG+/XbCtQEv7lOh71h+Yv7/AnTxPzevoiWUmg8hY0RmSAmA7FGw9iN/xA4ECC2MyoLXjRuOPnvApSyf8+5euQtmNRa83MnNNwtiXe2BGHnO34E8iOHaTbfy5j2Z4Xy8VVWjstg8AT68F3Bmc1eRlyK6tVJLgj+Ju+1sOiosdL2NM6p9eBTJsXzrU60KOgPNdegU4HtM9xjr0TbPJ0bCjFWMd2SdKEJoy5cQ X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(346002)(39860400002)(376002)(396003)(136003)(451199015)(46966006)(36840700001)(40470700004)(40480700001)(47076005)(40460700003)(36756003)(426003)(8676002)(41300700001)(6666004)(4326008)(70586007)(70206006)(26005)(8936002)(478600001)(186003)(83380400001)(107886003)(966005)(5660300002)(110136005)(7696005)(336012)(316002)(54906003)(2616005)(82310400005)(86362001)(1076003)(82740400003)(2906002)(36860700001)(356005)(7636003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 12:16:58.2077 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 087e779c-0e25-4b3b-0077-08dafa170fda X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E657.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6193 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 --- 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 | 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 12:16:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13107794 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 4B750C00A5A for ; Thu, 19 Jan 2023 12:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjASMR2 (ORCPT ); Thu, 19 Jan 2023 07:17:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbjASMRR (ORCPT ); Thu, 19 Jan 2023 07:17:17 -0500 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2073.outbound.protection.outlook.com [40.107.244.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81DF474E8B; Thu, 19 Jan 2023 04:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OH2jM34FEcElBAmzmTF5NYxqSDdP6U/ngDWESneG+Q67lVOcBe68uLI+zAbor+JylyRvvvsL+jTpqKhwRT8XKQjmTdFFamMyZRUs/NnPff4PQQX7HR7LKBb/BXdQLg9FgC/xnKuiKmMDE2nF1bHIsnHYU9gJ+1Wf1kTFfLr5QlCoS26DnVQ7Rbpd1XHnqFSByeWxZlqsZoUr4YR3/an/9tU8uKc47ZMkvLG1XpPQCgn4DDESbvx9GCVxHQAj9ZaWtZsGQ3csJMZBHUM/Q7ywY7S+hGD1oXLcNZdbLhlzblcp+r6MZa9Y6V0SmzXEkMHoB+s1FNFvDb8E4FrC8B4ruA== 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=jEv2r1i6JAJEeRYonB3zHCrPHMXHuhzHZIk/CuIH76M=; b=I8u+QQN1UBNECVaSyx89zI7Q0nLPoGHeAwNYaf0YiuwexX0oKh9Nm4rsGTXHmIC90CpxHix1f5MKIT7HCriS0aRcoms1O0oB5I5vhJLuAH2kjFjlgihcQZAIQTSNdHWSIgNP5dJhW3+oCRd3E8CWNWWwC8UqEo6sunwPTxF1YD2amnkquNNI1ZWQ0wf7yTA1EvmXO58vowENmkks/zDksggohJ9fR+jR3bTVBG56ELRsl19BhyhrY8mz/vlnF1zlnXRPjXmFi74HTenyU387otkCcYm+1mzD130Rvo8RD4Bvk08K91Q91630behnX311Kv7JxnGQ7Jzv2IKRsPDM2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=jEv2r1i6JAJEeRYonB3zHCrPHMXHuhzHZIk/CuIH76M=; b=c3TUyrh/B3TJUfl2xsfWq6l5DpnuGDJMp3vfJnOIy5kpmJNL2W3cl+B/fsUF1UngyMHIpU06KYbrnJrZrqW+iLi7HDx38xaSVrmf+oXUrZ6SLgJJsokBUiIUvWqWELGS5L46ECYrjqSxhebnC+ReWKPezmu5OhIKk5yQdGBmT4wyBBK5/glVJc1OhyRwimApb5RDruiRAFpSJxvEb1IWAaTj2EJB22sl7jrJxEdz4dI7bytuCsPudUhq80fBy4mQI3fH6SZBQj+bvMUv4zizg2NUhTR0u8eo0FqWWD6oE5iBWYgvhdOB2tv7fk84ZjRp5rJ2ZAamvD+otRZaxE6z3Q== Received: from MW4PR03CA0306.namprd03.prod.outlook.com (2603:10b6:303:dd::11) by SA1PR12MB7037.namprd12.prod.outlook.com (2603:10b6:806:24c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Thu, 19 Jan 2023 12:17:09 +0000 Received: from CO1NAM11FT063.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dd:cafe::fb) by MW4PR03CA0306.outlook.office365.com (2603:10b6:303:dd::11) 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 12:17:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1NAM11FT063.mail.protection.outlook.com (10.13.175.37) 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 12:17:08 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.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 04:16:59 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) 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 04:16:59 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 04:16:57 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V6 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Thu, 19 Jan 2023 12:16:35 +0000 Message-ID: <20230119121639.226729-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119121639.226729-1-jonathanh@nvidia.com> References: <20230119121639.226729-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT063:EE_|SA1PR12MB7037:EE_ X-MS-Office365-Filtering-Correlation-Id: d88fc1b5-42e7-439a-5de1-08dafa17163e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l/DMBtdcnwB06st/gj5pXD1V10G6HYrT3CF70+dQh3lcADs3ZNB7jBau4l99efGMRtNsR3RJmR2zlp7wMu1R7WDUZMhXaJ/da/C/+JP9Och5TbTI8bDQ2LUSNYwz52JURWlz34xWiqXfZ6Fomvh0Az+i2FD/ULr5/KubZos3IMfrrM6jv2CXP0SGu0pVkwRYAuUk0yRUooSBM1GI0ZoKNF7ITip6iUGyv+XxQbei8QuC+Ka4F4Kh9zain5FEMsP2KniaHYBY6Ih6jpXMmwD0HNvEiUcETsBfGV+yTFhrnQqUIaQw+vbNXUPgFnQ/IOvnx52QHOMAlJf2IugW5Xh3TJj/0MScuSi2hSRZPADSQSQKToJWdmU6d1FD/4mE4df4LNFu6fyKEX8jXVE+XVZopuDRHTo3gGWSggn4KCANPNzHFLaF1yc8qwEqwUvGRCe9TSOcyaIrjwKK1qFNr4bZ2sNVcADsTRIgOS6SYDYSmdx4SI7/9n2IaS1Q97lJYCdow+/szGUKl96rO7F3usGgi3updoed04DrGof/RlSl/E+IEHUBpVASqN1qslfhcpU86xpMYDfJX2LIhRlvIrWx/UHU/O8ZF99zGPHNjIDo7pOS2qKzrc5m7+psV8DLpuhi7vhH/WgT8jdsrdyBoi1FEtH+2xgxuiAEudONhflmoJzOO1yemPxTaGpxGU4x0WhnusrPmHGnv3dVs+oD3gjVMg== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(346002)(39860400002)(376002)(396003)(136003)(451199015)(40470700004)(46966006)(36840700001)(40480700001)(47076005)(40460700003)(36756003)(426003)(8676002)(41300700001)(6666004)(4326008)(70586007)(70206006)(26005)(8936002)(478600001)(186003)(107886003)(5660300002)(110136005)(7696005)(336012)(316002)(54906003)(2616005)(82310400005)(86362001)(1076003)(82740400003)(2906002)(36860700001)(356005)(7636003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 12:17:08.9786 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d88fc1b5-42e7-439a-5de1-08dafa17163e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT063.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7037 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 --- 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 Thu Jan 19 12:16: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: 13107793 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 F103FC46467 for ; Thu, 19 Jan 2023 12:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbjASMRQ (ORCPT ); Thu, 19 Jan 2023 07:17:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbjASMRK (ORCPT ); Thu, 19 Jan 2023 07:17:10 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2072.outbound.protection.outlook.com [40.107.93.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A2D471F17; Thu, 19 Jan 2023 04:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UsHShYcPVdwvNBubcl3FSyhm9mfPjv8vEx0MP1P62D3la+2E6TnTfQqPFEvuv9W3Tt9oZjaPGDc4j0fOMPhvPK54Dutf7pAT7u6x1tso2X6PL/OUQpc6+g9jRb325e4HtgY/ngNLcG6iM3EJRPW9aFVLLz33fklvstya10Iize/885cwjhoZ9tkZSE64l6a1Hqr2crWErbxoGncwvRufjVDsbKFoOWMHcV3+HTUzL9PP2a+6Nu8gXgUGnKdQTGLig/xuMqUlZ+xObGbJkwnTWVwtoIWihTI3Q7lKbpPt6rJHsoFO6BlCQn5OgwNmVpijEMwp2GW0MNQaJNd9Eacz9Q== 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=ZCocK6ysoJTl6U7TqKdW+kMqgPkCDQepU1aFe2gYM7I=; b=kQvB4HW69Cxb0ixyGChI5L8Uo2ixR7Kh4FCH4OyjKB9rGyMaHaxuYsUl1sf3i9upNXAmjPmGzLlD7Rmez0ZtQwdsBNz9hWmclZPP2XbwBGaFDpqBWws9tUuFloCjXIrbAGeXEcBi0tE/LFUs60Qpf9y1rSLy530hHlgW9LynhJXdTFA1nYhZX+jX0bZ7Ont9ByxV/yT4nH5Qx7mlUmWA3Nv47Jz9ZlYRZokPYHm8a+BDqgemY0M4k7+UiBU6SyfY+7TltAF6eWe+yLI5JRSzII7Rg9uaRG2r/k0Gpoat3B2GnaXZVt6hlXSy0ywA/6zF2kaPvlSM2WSswSn7VqnfQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=ZCocK6ysoJTl6U7TqKdW+kMqgPkCDQepU1aFe2gYM7I=; b=cYtNWg+LqXKt9DMzQ7iq0DeID+lgnJLWwbURNyBvlCfp43w4ZFfQf8IkI6i3hurgnl8Th04P3TjG4lgPC/cfpi43focQWs3uMwahpRszgrIvuB2bUKWsS2WLBzGpzCGBOv8+LafvKBqOZo/JhV5OLqfKzbR964YLOtssQG+GjQ3rHMUL6sOCJgYb/+qeDrbWHPsLgeJOmkfq3Dx2XpvhN+jMRsmW5qQFoEN10rkAhiyluWD7Kpd6ELaOXVIVyNwv98OvPx1Smn098d547ulLT+oz+Tt2URp3jh37VQTomS7tOy6mUiHuYdKROdiLo6ho9r/MU+mdQgvgKmZcACj2pg== Received: from DM6PR07CA0079.namprd07.prod.outlook.com (2603:10b6:5:337::12) by SJ1PR12MB6098.namprd12.prod.outlook.com (2603:10b6:a03:45f::11) 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 12:17:06 +0000 Received: from DS1PEPF0000E657.namprd02.prod.outlook.com (2603:10b6:5:337:cafe::36) by DM6PR07CA0079.outlook.office365.com (2603:10b6:5:337::12) 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 12:17:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0000E657.mail.protection.outlook.com (10.167.18.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 12:17:06 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) 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 04:17:02 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) 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 04:17:01 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 04:16:59 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V6 3/6] usb: typec: ucsi_ccg: Add OF support Date: Thu, 19 Jan 2023 12:16:36 +0000 Message-ID: <20230119121639.226729-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119121639.226729-1-jonathanh@nvidia.com> References: <20230119121639.226729-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E657:EE_|SJ1PR12MB6098:EE_ X-MS-Office365-Filtering-Correlation-Id: a20964f8-348d-4495-368c-08dafa1714c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CFhrb2k0RqJOtjg0lei85+OAoUsPwWHeB7/uxVLzqACz9prwT0ojoq5P2znT+6husFRaZ6gcsNC3EDdBOAaANP4WYc2p8gQ18VOgEye+msdmJUl853VJ1vUxE4KEMQnOT/ts2MeiwYgG8OfVvn3dJyCykqLF4MIBAyaJUBbYtQg+3COL6Kg45UW1zcr726F6m3fT10aqlevOoWTQdxrjtJNCXvZCZOidbCshxcnBPRG1s63w22kQl0ofezoizQPI6pcJmF3xHDEZIVDsiQcdKz0Qyxwn1qPgUPXdjynl1dey1fxe8RL64bBSOLOOJUzm6JCWFybRVacQEQQ3S0V1EudYEm/AEmdgRZMmdebmIltCwGUi5BErvTZSNMjeDKhp/oeuFVfR4UGZV3EAwrWSd0BzFrZLAXnseKnHx535PkBkSFMBC7eG/hsOsL5B21+LzJT8J0Z/p+qGJ3XoeO+PxZXaeN2JjLbxhEyeqGvS5qVjPZc6perLal4JUy2UAZ3JriwbnZGNr7TJ8ZydYVjQZM+/G55bVrqpjWDvUZcSdm36D2FE5RZVOefBw+S/vF1ARN+L8C3jZ2330oa5fwgznqPRRiCOSE8gEmojLcyi93izpbFoKQNBdnqQ0if1UFyQpNonYYxVqPX8J5/8rHxDcKsyMvemQHczApwZekqqWhveGnwrMkdBUWHCdhrkm/vTStkrkBMujcy061HViiRnwQ== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(346002)(396003)(39860400002)(136003)(376002)(451199015)(36840700001)(40470700004)(46966006)(7636003)(70586007)(36860700001)(356005)(86362001)(5660300002)(8936002)(2906002)(82740400003)(70206006)(4326008)(8676002)(40480700001)(41300700001)(82310400005)(40460700003)(336012)(2616005)(186003)(1076003)(26005)(83380400001)(47076005)(7696005)(54906003)(107886003)(426003)(316002)(6666004)(110136005)(478600001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 12:17:06.4732 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a20964f8-348d-4495-368c-08dafa1714c7 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E657.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6098 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. 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 --- 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, 21 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 46441f1477f2..661a3988b39d 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 12:16: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: 13107795 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 02C1DC46467 for ; Thu, 19 Jan 2023 12:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbjASMRc (ORCPT ); Thu, 19 Jan 2023 07:17:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbjASMRR (ORCPT ); Thu, 19 Jan 2023 07:17:17 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2086.outbound.protection.outlook.com [40.107.220.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C921374E9B; Thu, 19 Jan 2023 04:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdZThOIvl3dUpHNeUjr2n4roOWO9DHvVgeabLvacpM74Ve0bvX0yX24/2hmCQVPx9Cl9p3FSq4nxd8+KBlECQCiU4s9yks9fnEyog35exLNe79RV6uaiTjUWAzmcfUNsxPSWg2Ntx5vxasgduC31pAungHWfvSJw+QvvfzKR/4tRC5c+UGDN5i1fzHR7joM0gn52by6JgPC4pZ5ATr6Mf8c/vEQbrH/yV7Xm6WK/We+4CZSHjRE6aku6119ayGc7zOphSFmqmZefEVj15oal4hlQhlB+wrUQMQekgoGST2S9Uv9NexaeWvx+s5TAk3hQfA4MvtFOybKEm9rZgg5DvQ== 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=g9Zj8l/fSmCBrrYP4n0wsXfyNBrbko7z/znipV0C06Y=; b=WHcp3KjUxgsMOi2JaHvQ5jy/g/OO+QS3n18JiePptPxGcgoiI1XE9/tc30ohROtpMH2dpAVP612CdVoQRM4E0jSqGE3ZBMsmV0QWNXH16cOsMMrN7Gfy5gi8aydM+FEioa3APz2cm0LnZHwznsWqR9NzpyIG78D/U0e4SW3OjbTcR+kUonJ1RlM6aEKW8x/FBIfI29c2Eh+1FsUtKdNY87hJwgqNJSKpNGyu8ASgxlJfFq7CRToq0hDD58EvW9NVi5DpFRezh6Tknw+fwOiVeGWCPkpFYUGROWRUivNoM8SjTxXSxWZl9H0TxMnITj0Rjo1r3J18YLaV85WTvmvxyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=g9Zj8l/fSmCBrrYP4n0wsXfyNBrbko7z/znipV0C06Y=; b=on3N6L4C2lKp6UFpl+We5qO7k6Qk5HvFrfB2d9fBcyjRt2SacHm0WK57zIZauJiZdddiGHrsT0qzpyjMSeUwc4ixE+xlEoSXMiOxrpxB2onxhGmaGMq1Huuhunlcx78CAwjLJnpG/Ub7Mx4lnBJF9ZZYDaN8CcKOEnDbRHVU/Q4dTySLp9a8Ff4pRgT5YzPGAR+ZCcCL6b8KtVhhkeb/yaDRG67Nb8vPAXYGiaSRKRLcL+z28tD9JrOG+BOkgFSae+GwUgdKUgMU2wYjwyHUB81PiwOcrc3NJC6Umy4DU/jaL72t/WfWPEhtyo44RYcSh1CCzkNTtqqoXO9gy5OSfQ== Received: from DM6PR07CA0090.namprd07.prod.outlook.com (2603:10b6:5:337::23) by SJ1PR12MB6339.namprd12.prod.outlook.com (2603:10b6:a03:454::10) 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 12:17:09 +0000 Received: from DS1PEPF0000E657.namprd02.prod.outlook.com (2603:10b6:5:337:cafe::c8) by DM6PR07CA0090.outlook.office365.com (2603:10b6:5:337::23) 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 12:17:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0000E657.mail.protection.outlook.com (10.167.18.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 12:17:09 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) 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 04:17:04 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) 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 04:17:03 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 04:17:02 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V6 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Thu, 19 Jan 2023 12:16:37 +0000 Message-ID: <20230119121639.226729-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119121639.226729-1-jonathanh@nvidia.com> References: <20230119121639.226729-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E657:EE_|SJ1PR12MB6339:EE_ X-MS-Office365-Filtering-Correlation-Id: 78b97c41-cdc9-4f25-f7ac-08dafa171690 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MzBkrec+OJ/PyuqkUkKAYRFYAEmmHW8rc63Ro2At4odG7u6NGZXHuRQKiVScoI5tbjQjtozIqUtfmQYY18FtqaVLEE6f8KvLGDPVblq4FMEA3xmP4J1nmrnxcmm8/BSBGMUDxZ8zX2HSTJL0/yBxXMLFts14CDLI5FcgkLQFEulIfcrdyZaTWlJ2b0DQYo7Nabi+fh1LeDMKZ+dOeu55RfWKDVBdp9FDDmOf+4FfbQII0XcO5YZc0dQ7jkYJ+no4XkV4Mm0ElGOcbSeHaVmieWkvC1RVQzc4RjtKkKWI5q+E4qIT2Tu6hMa3GhGOVQpLAqRIwhs6piw1t3M0xvqMV0Bk1kmMN0zpW/iDAGxSwFSIYFGTtTN7tUNVp3R7epVBB5FaXmOi7WFDOEnpDcaW5VFlM1tBBi0iEut78XFoV0EM+cYibgPfJv9/G3Bo9OQmXc+XNLsx6tAtO/p8454fZ0FLB/MHXkBhZfSUuWpZtgbo+HnjQxLPcE+RdsAKzz9ST55S18NehY1ZAhlBXcO5kBA81Z4s0BgP5AsfU6jh7ehoYBJIeA3EUIkIBftcPKz+KlMa29gEOFyOlTCMPf0p30WlY2spBeDWDAhiV8APPzHowpv6crCkaKzenjNuDlcmDI9EZxhvZoaet8uldfu59X9K96BjB8Y4JMkDXovKY62kfgui2t5PH95fLbvTWM4iDOPccU2hFEhOgQtqgWNcDQ== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(346002)(396003)(136003)(451199015)(36840700001)(40470700004)(46966006)(7696005)(107886003)(7636003)(36860700001)(6666004)(36756003)(110136005)(86362001)(2906002)(54906003)(8936002)(8676002)(70206006)(4326008)(40460700003)(40480700001)(82740400003)(70586007)(82310400005)(5660300002)(316002)(1076003)(478600001)(47076005)(2616005)(186003)(426003)(356005)(26005)(41300700001)(83380400001)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 12:17:09.4731 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78b97c41-cdc9-4f25-f7ac-08dafa171690 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E657.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6339 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 --- 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 Thu Jan 19 12:16: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: 13107796 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 85BC1C004D4 for ; Thu, 19 Jan 2023 12:17:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbjASMRf (ORCPT ); Thu, 19 Jan 2023 07:17:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbjASMRY (ORCPT ); Thu, 19 Jan 2023 07:17:24 -0500 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2067.outbound.protection.outlook.com [40.107.102.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2386D78A82; Thu, 19 Jan 2023 04:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hP0r1LQT/r62gBR59H1B3sbc+A8HJnVsXtEz+CQir1bZUeyz6+AaeNHRWL6o5s9xJltMMTHnhJI85i4XeoaMKWiJ4k2uVDKrCYY5tvB6W/dvzfV6qyu7iR+STRVw3xTy+Y0tkMbrrb9eML9hGiao7yWHsamoehfw0tKSH8c7tMmsjZpGAgw1wC7EWjma/55Cd0M0ct4EjEHbws72RqYR2pv8God9eGtXKNkE1bn3HNVSGpjQM8ESN/fgK8nHhdv6OWW30JT7MbqK9HZOYXtXHaaGipOkpFCj7XWYyXg0/2s2kQOLiPQUHy07WHpnZGA8oR8FvJxnrVt4zKLwvVzz4Q== 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=dHJLuSETTWWZXDkwN9dipH3LRur1S5TD9bKqRsnOyEU=; b=H9dRTA2kjXZuIIqLEe10geeEq9EO/mNdQ1uwWNMzZExAOKnt2b2NP2TIM9cBix7GelAhl6BVEwSodh9tnti0lf1ugapQWWi3UInWUU9rzqj34k3uaFkgkAtIvBzQVm6fqGQ6KFJFvE3SWL2TcWgrAOwwedUw120ESsyjVSNP9vtFl7TdwrACtf0BA2ZFmMByTIWE4fiOFxTkqSIfhWqdM9z5RNREi8NNdUgZoOST7A4mzTJhAd/8s+4mGl5SICRRJaU21qBXaZX+x56ziV7PT4U7nstuX9DzhYr2ZIYVnoi7a6656LYTGOXejEUtmu7XErbH0RcPI/uqAOwUx56Vcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=dHJLuSETTWWZXDkwN9dipH3LRur1S5TD9bKqRsnOyEU=; b=d7ThYrBIe+Aomj153JonGbgVdfH/0TWegaVMt1jaE7dXjXSdTgN6a6d73t5VWHwM8UbAwOQZp7U47JLImli6DSIvijf3VTwTKLzvDm26piPetzNX6f9veRiS9wcUNCsW7AR20UXftwC1AXmRb2Wb1K22HYlbYK1WcGscOGTfPyT6LIH0Bl9DBqVDGspw6Xl+xYXd8WZaUDsVMRya72kf1nwQmal6g+Z5OXdYXKg26gFRK3/9ks5MHofEOXRmZK8Eoy8pyY0J0i9/2b+8ug0RoP0cwlF0kfWWb2ovfnwyBP8bi0oOTG/dT2Bk7ClHN138i0LD+pK4kvFZoWn+gwNImw== Received: from DM6PR07CA0090.namprd07.prod.outlook.com (2603:10b6:5:337::23) by CY8PR12MB7241.namprd12.prod.outlook.com (2603:10b6:930:5a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.26; Thu, 19 Jan 2023 12:17:10 +0000 Received: from DS1PEPF0000E657.namprd02.prod.outlook.com (2603:10b6:5:337:cafe::c8) by DM6PR07CA0090.outlook.office365.com (2603:10b6:5:337::23) 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 12:17:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0000E657.mail.protection.outlook.com (10.167.18.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 12:17:10 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) 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 04:17:06 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) 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 04:17:06 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 04:17:04 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V6 5/6] usb: typec: ucsi_ccg: Remove ccgx,firmware-build property Date: Thu, 19 Jan 2023 12:16:38 +0000 Message-ID: <20230119121639.226729-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119121639.226729-1-jonathanh@nvidia.com> References: <20230119121639.226729-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E657:EE_|CY8PR12MB7241:EE_ X-MS-Office365-Filtering-Correlation-Id: f32f6337-5c46-4464-3de6-08dafa17173a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yD4ZrCEqMdEPkMm8HHoySq2ihm0qxRvaUoZN6tfJJf1dpoDVDyOl9NriNwf6LSJkIKBsQCFJes9BPc0NyTURi2O+fbfsJKboug7ps8AciLOuZOAfys1AqV9FRKUOSZDuIkUc5tfNmcDiCKp3lPjVuOIFkO8JJiZoch87zfzjNEkx4w8OupwGR6KCsy43vlqI1eHbFJKRjN5cB9EAjGljeiJsb5y6OJSNNqVYjZvIqs3pPgoqM57eZc4Ev37NyvYlpvd4K5KXy+ZVxdesx4ME8L9eub2W+n8nJxpSogNtxHRGMScZ5CL6uas/Ylyhs5iMEQfyBy7RfYnMblTeKtApq1Zm+UuhY6Nh9t3xRx2wX4qnhiib7aqB/Szk2W6lf23s9f9+mQhyZxFY6bW+ShUI8+F+6dLgwVM+n4SPtVY+TGzMEFoHUbB9oD5Zwk/yUmtuTfUwT/xWpBXa+FoGu+vjbCLjI4Lxo7m/vmuMQiu5m8WMRnpHuXGktddkkGTr3GM99XVIQjwcVn0kdjlFEhbk4nzhI6d01fL6Kc37ATJf9Q7PIfMmri2anqc/piSc6Umdr402/FytDUt0z30Ew2v8ssiYq3kjNo21C2poa+cqs9JziCBjjLIwWzmCRBuNbczw9vpi8okOCaVTvXTyR3X6f5BpPe6aNMESVf/fXFwjSfYKAiCECxMFuSAeZaDUPfAU5T5J91zvlSt0XCPBN2XPCQ== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(346002)(396003)(39860400002)(376002)(451199015)(46966006)(40470700004)(36840700001)(356005)(82310400005)(107886003)(6666004)(40480700001)(36860700001)(478600001)(7696005)(336012)(86362001)(2906002)(110136005)(54906003)(4326008)(1076003)(5660300002)(2616005)(82740400003)(316002)(7636003)(70586007)(70206006)(8676002)(40460700003)(83380400001)(47076005)(8936002)(426003)(41300700001)(26005)(186003)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 12:17:10.5825 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f32f6337-5c46-4464-3de6-08dafa17173a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E657.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7241 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 --- V6: fixed compilation V5: Added this patch from V3 drivers/usb/typec/ucsi/ucsi_ccg.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 661a3988b39d..8f5ad2094f26 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -1358,17 +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; } if (!uc->fw_build) From patchwork Thu Jan 19 12:16: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: 13107797 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 AD06CC004D4 for ; Thu, 19 Jan 2023 12:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230481AbjASMRj (ORCPT ); Thu, 19 Jan 2023 07:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjASMR2 (ORCPT ); Thu, 19 Jan 2023 07:17:28 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2073.outbound.protection.outlook.com [40.107.243.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 750337494F; Thu, 19 Jan 2023 04:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IopJfpAEY6mhZXC2BAYQ5ewPxs3uJQ5XNMuVQaWT5m/m6MKkPdRJwSSNV8oqBB5aGSR8KtfsinE9WGqmMCmnqRERVZPgLhZlJnqyuuX+hiH1a4o9E1X35bJliU1/HbZaLPwXnGpATAUvD8IqxKfnWQgVcU5OizyLLZpTL6B1xdKy6G4zpjWdSPgWMFa1HFW0SWwEP8L+/pedNwmnTzOdnhUXipcocb0ZdZGiVwQMuhySURhzSRlVo2aBD9GEzO7dkUpYKVrh0TuxyRqzo7DiJrsWa1IfX1GwgmzkF4QN59ennzM6X0n6K8/7zgu7obX1BteFh0Cv+1OWY9CHaJvvmg== 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=STkxZujXtbr84jEqF9p/3iLUJ9SwyFHWz1dhc7Vp0qE=; b=NEOjLM0ZEU0dp4O+V06e/jNsE9ojHXufhVdi4YXdQUUwKmHJsiiAyIJxOxWSlDLCBkjZSaZ6y+eNtowvGxB57kYfYWtLxkMnc0VRUNOtbyZfPMSpnsMAb+Ef7oYPAcp3eXnJvB9q6dgSGnXAEzktbyFwWYKVZcsZl5SNDvMvsLOwRwP8PAogPEpmNHVl20HF6uaAXOrMQtK7cWgBCerGBqCT/0hJnObsezwGYbhdnYbGSLpx0jJPxHPYFhdfGdINUr7J2fC2rSy4caxlDQixvW1iirCqbpW8K2A8rTyPfspqS3yZ4NArnd6pkWC6T58Y90pK1FJdgEM8EVcaI2YqJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=STkxZujXtbr84jEqF9p/3iLUJ9SwyFHWz1dhc7Vp0qE=; b=JC/TK4g5WaKBqxFsB8Bka4Q4T2t5ouseHe5wU4IE9Dw07Py8DiwDBTuyqQGYPkh2FofN7dgoxoc8ZOdioPIi+qWBF5jJSAqxSgFJEpiSL22rWAnQU57vi0QTQYIqFJaqI9JKZZ0+LWs+5gxeQpJ3GwP13wjHlebBOm67u0VlIGVMVQwq2Sq/CM1O1998aqZmdVVKlYUy93fWwy0iaelSJKWKs226AfGG2DQoum1gS68hQ3WPCmuDJHxxC9xMRXZl+zZlCIE1hZV+94ZFJPKyYHu9OO6RXZ1XUFP1bpRwFXE+ynNMR6e9ZzJPhA2E8ZS5Y1zdTCRQp6zcnwgl1xppZQ== Received: from DM6PR11CA0007.namprd11.prod.outlook.com (2603:10b6:5:190::20) by DM4PR12MB5311.namprd12.prod.outlook.com (2603:10b6:5:39f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.26; Thu, 19 Jan 2023 12:17:13 +0000 Received: from DS1PEPF0000E659.namprd02.prod.outlook.com (2603:10b6:5:190:cafe::8b) by DM6PR11CA0007.outlook.office365.com (2603:10b6:5:190::20) 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 12:17:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0000E659.mail.protection.outlook.com (10.167.18.71) 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 12:17:13 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) 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 04:17:09 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) 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 04:17:08 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 04:17:06 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V6 6/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Thu, 19 Jan 2023 12:16:39 +0000 Message-ID: <20230119121639.226729-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119121639.226729-1-jonathanh@nvidia.com> References: <20230119121639.226729-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E659:EE_|DM4PR12MB5311:EE_ X-MS-Office365-Filtering-Correlation-Id: 91c2d57b-ab13-4514-3b4e-08dafa1718b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lcVl9i1M4zF6Y8slEpNKxS3xcUognGmaCXxioGYSlCb85fDRoDvOX2IGljPbmJZ3bBB4BI4FLTSOGX+QC+E+0kyinTk/PaUbP3lSygxuJuodZyRaM57dQKZRveii/nUZZ+0wDz6pECA8uofrePjJQiIwaz9vY0zlWhAM7XDCgyIGdbcr7lqDkilfHTmSVBR3+KwD+Wi62wQ69A+rZkD2lg8CQJy6jKEUxYn+H2q9rsROK1WS4DMCVosHKo4f8ia2OGPztRBkzq8+u8CdxSQcvVwCA3KTXkSF+j26c/W4MxX8AToUutXVGM4dTZBakuiUjctkM/MWzIZClmZProRZMKTF6qGvU1aA/oFxLNyQqelI2OeGbI3T+hp6+K7YLfXDjSX0sccRiIbEKvaIEuqm8aL0V0MhUhJfF9rnxQZLRXX60GDK5L2PgMBXFkwKXv2UXdWE0xlpKzqeL398L9JVJaK+GVRZbpPwtygTPJWkzqQDaZp+55EDWD88FL5v7WvKzMfi9xmJXnRgt0JWPaxe1VT/AURj/HJ/GhIfI0FcjxXbrTPQwU3lSo5H6+0l73ynnWe73x6io3u01uIaZ5PSD6Qm+eL5SiZGsg6OZVmOk9D5pdP9R++RoonZncjnQJd2eKeTz3HJ49HhA+Uns+1D09gv6/6ySfFyM2RBeJtcAOQvE7qPvbw48dCQZXhqzyYF3VzreaFmbazXYH2D/MSGtw== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(39860400002)(396003)(346002)(376002)(451199015)(46966006)(36840700001)(40470700004)(40460700003)(86362001)(107886003)(478600001)(6666004)(36756003)(7696005)(8936002)(5660300002)(316002)(82740400003)(40480700001)(70206006)(8676002)(4326008)(70586007)(41300700001)(26005)(82310400005)(36860700001)(186003)(356005)(2616005)(2906002)(7636003)(1076003)(110136005)(54906003)(47076005)(426003)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 12:17:13.0924 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91c2d57b-ab13-4514-3b4e-08dafa1718b9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0000E659.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5311 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 --- 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 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 {