From patchwork Mon Jan 16 15:50:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 643375 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 99BF0C677F1 for ; Mon, 16 Jan 2023 15:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjAPPvb (ORCPT ); Mon, 16 Jan 2023 10:51:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjAPPvZ (ORCPT ); Mon, 16 Jan 2023 10:51:25 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2086.outbound.protection.outlook.com [40.107.92.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F43CC0D; Mon, 16 Jan 2023 07:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IniuvupnkNQ/HTjYCU0dkb3CFg9zKSSym4L6Cx9L4IYNaS8vVJEoJQWgH7mdeoTC3xgLqTaoFOD+OfMUQukR5zFdM6+I0q/8ieAv7tSKRw+8scz86iQk5TMQgaAyxwsZ4qk5pD3kBnusfBuwVtxVp39sqdfoRfBe/f9YuvJ/tasK0sBCwHEQDo8U4Uo9eKuvRSdVv94xoiwE7u6szDbi0Mcj/znn2icOwkJoMECPIwW2PkRxML2SsIkbBd1C2ROPpkt7L3HnkiAVUF16UVLgPo7dTvrKozyyK5tC3/sMAo9l26nQTp2RwNPkekVIZ7C5pQTbMNYAFVcgTgdw6tVjcw== 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=mTQdoUINfb0iEOrD872vLYF8OZgxImmj53n5yi2Uxko=; b=IzToy71gQWZ/vbzQIEbH1mqpLl2KNyNZCgPs8SkRLW/PqQU7yXlwG4w0/Lbqg33OzB7uzpzE+9x0eVpikUJgH7eBNktJSCTjS5juzmEq0W/Pfq77M9wf5H302y4lHBTZz3tNpcunAwoNNOc0vN8Fb0HUj7S2iO+GxpwBK3yaGydqiJD54OUPf9p/8b/wnP1i7J2+TSiNaxwS3XyFJLzUO+lQWpwOxVOmorNsVFoziJUCcvJM8dbbFZ5iPluFTOE+b5Bg0uvANF1aM7ZAA3fA1oU8hEWc9OGBcwMcZH3i6JU3ki1JLnRkUT+N4bsv1OFmtxFppCFs6gLFTErIQxiZHw== 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=mTQdoUINfb0iEOrD872vLYF8OZgxImmj53n5yi2Uxko=; b=t4+c/O3JPwQp9tuqcZZ3w86JlTttMDfUcpln1XNSjO9yd4SnVAk2+2Kh6jTUCvEmQ4+KEEtXzY9dHYZRsllq6y7yxV0/yOlk6jZimNFnUzoS9zb1AGzNnUEkN5Z9tfpX+G+J12qfR6OpJdLei29PqNoSMP+A95/TohHRw7RYf635iKzLsOtpdaBqIRoH/Kxcbz4sLhRyRYdlfP64FcjIGNx+bYQYshyVZO0Y8QNEKWHt2+t9cf44anLRox0eG7KzmpoO7CHCqzF5QEKk63xRZfC9Ml+JLspYT6oGr+IYYEzr3MvPk3CtMit46y7E5a7vYG8EsceMyxGwTtEUVvcxcg== Received: from MW4P222CA0008.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::13) by CY8PR12MB8241.namprd12.prod.outlook.com (2603:10b6:930:76::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Mon, 16 Jan 2023 15:51:19 +0000 Received: from CO1NAM11FT082.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::bb) by MW4P222CA0008.outlook.office365.com (2603:10b6:303:114::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:51:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT082.mail.protection.outlook.com (10.13.175.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:51:18 +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; Mon, 16 Jan 2023 07:51:06 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Mon, 16 Jan 2023 07:51:06 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:51:03 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: Wayne Chang , , , , Jon Hunter Subject: [PATCH V4 1/5] dt-bindings: usb: Add binding for Cypress cypd4226 I2C driver Date: Mon, 16 Jan 2023 15:50:41 +0000 Message-ID: <20230116155045.100780-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116155045.100780-1-jonathanh@nvidia.com> References: <20230116155045.100780-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT082:EE_|CY8PR12MB8241:EE_ X-MS-Office365-Filtering-Correlation-Id: d863578a-2ae8-4f81-39f0-08daf7d9823a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5YA32rtJ69obmZrwN3ysRS/sxhtwa2PdX+JBk2u5zYF7+kXHHj/oq6oTJAhzCrxfeo9b8yCgAhWtKZbG+mw1VC/U/EhUtcqRD7qIB89yXHxboUHgJlWd19YbHu472CpcylJE4YT1D0hfOtgXODs63bpE4gT/AVYlfiiT4aZYRwbs4dxNzM02PN+hDY5VCt3QM4zhIdh1h4pTBcJWPvU22RYGgsSExNgkkOu4MaTxNviNe6joT6yp6WNeHi/ddFXxHiT1UaKmHRj+k2/fYqpw809Vo+M3XGGY8UDMrxH2prxaC5NWbBpS+rI/91TBhMImI+2yibCLfqhM4AWzoVz/tb4XhBD3JSTa5JyVEqb1a2gx3MCJXKKVXUQgY0sAHYmWdSO3qGo2tRXwTxLbaJ3v9CadcoHghHSBt5EoOaLJ134XCCfT/moSZW6Gc2DJD5ZR6ox2IwZblyuMJEwgEbZ7NlVu5LfgD2ErZAP2HLoQdBhKXPaJbGa73ZDU9+09STLqJe0d2q9GI6CY9hDtLTl2BXe5C64W7onCwlNR6pdJmkeAAiMMOxGdv8+BK7CZn2cLVdumtcB/LW0TikpqXsplbni7Td+AgbUdNQGegzy2Dfcoj6gnvu/aD1MTq/quRL8M8k5FGLujy6BoJ3gCJBewbdaEf1ZxX58FEoZYVGU9ccykwvFmIjs56CBeJe+MjTBMNfn2YzcK7ZziEYP+ntsp26gErV3xBOCW/tIvF2lP+jjnl13jI8e3xKmLyL5ym1YlGUXsBdQDziB/n22EmtGfwjjqsu2SrCPTuGCH3fVo9vVDeyPS2wy5vWnPfbsZly8M 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)(396003)(376002)(136003)(451199015)(46966006)(36840700001)(40470700004)(356005)(8676002)(82310400005)(4326008)(54906003)(40480700001)(70586007)(82740400003)(7636003)(316002)(336012)(426003)(70206006)(5660300002)(36756003)(7696005)(41300700001)(47076005)(8936002)(1076003)(2616005)(110136005)(2906002)(107886003)(6666004)(36860700001)(40460700003)(966005)(186003)(83380400001)(478600001)(86362001)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:51:18.9601 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d863578a-2ae8-4f81-39f0-08daf7d9823a 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: CO1NAM11FT082.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8241 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang add device-tree binding documentation for Cypress cypd4226 type-C controller's I2C interface. It is a standard i2c slave with GPIO input as IRQ interface. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- 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..5ac28ab4e7a1 --- /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 UCSI I2C Type-C Controller + +maintainers: + - Wayne Chang + +description: | + The Cypress cypd4226 UCSI I2C type-C controller is a I2C interface type-C + controller. + +properties: + compatible: + const: cypress,cypd4226 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reg: + const: 0x08 + + interrupts: + maxItems: 1 + + cypress,firmware-build: + enum: + - nv + - gn + description: | + the name of the CCGx firmware built for product series. + should be set one of following: + - "nv" for the RTX product series + - "gn" for the Jetson product series + +patternProperties: + '^connector@[0-9a-f]+$': + $ref: /schemas/connector/usb-connector.yaml# + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: true + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <2>; + + ucsi_ccg: ucsi_ccg@8 { + compatible = "cypress,cypd4226"; + interrupt-parent = <&gpio_aon>; + interrupts = ; + reg = <0x08>; + cypress,firmware-build = "gn"; + status = "okay"; + #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 Mon Jan 16 15:50:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 643374 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 42C0BC678DB for ; Mon, 16 Jan 2023 15:51:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbjAPPvf (ORCPT ); Mon, 16 Jan 2023 10:51:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbjAPPva (ORCPT ); Mon, 16 Jan 2023 10:51:30 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2070.outbound.protection.outlook.com [40.107.223.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B55B01555C; Mon, 16 Jan 2023 07:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UUBPmVluExrvNRkYoKiWdpr98mtR6DWPOlGP/ff+gGPA3pubcg2Jji3t/4T31ZZ/kq1iSIpkxy53vMoQEujIQ2ZeZZ9nll82CT9abn8ZAsRchqkOWGfXseC44is8O2Av0k4I7TA6Nu1KSbAhSemNEM2lzQsxQTgRYPbfsfXb8Z4OM7KaUm52tkQemYAl9+hZ8abwBV+JNcE4uCO/BuUXS7KF74erIs8nM4xt6T43sviJoo0+Tkkb2GUKS+MwQ47rBsfLUgSfIOkf5QYIWD0wAq7XIbJRdwftK2Lfb2I7M69tuNiTkmBIdsutbh1RPnov+EaYo8AJ2ynHa0XjgkLEUg== 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=jr0ssxQ/sIq9hEYPd7XFprdMCJPGoblbiEzD7YtfYOw=; b=bPApnhz4Ap84UGbSJdSX7Zal0Qhl21VodPH6753Hvi0T3MjEoDo4Y3NXu3trj/rD/WQnK7vGx/yyZvy19ySH6hF6FPWoKZJuruQHLVKkg04wbs/x5EURwawZ6N/4lIY791GKdJn8zmcn+O5a5cZsV0stiGskFxg0imAJjJI6TAnoEv4rpcYf7ZydpePL7zUeAr1tithbwUCU8GJon4bE8gSzZv/r5YVBdCy2qw2Fl3n+s2NipR2p/QwIauG2T3mcJMBmDZhcHHNEcG5f4jpz0RuR+fix5gZAPSNdYDaC6ibtmvqxbwMYQ69qHnSQ9piNkm5hBhj5qpMJYgCZNQCy9A== 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=jr0ssxQ/sIq9hEYPd7XFprdMCJPGoblbiEzD7YtfYOw=; b=gkeM2aJ1mz9pbwL5SvKcSjeCw9ksVwRDf/f6eOAdbmDErEARPkqKvrspIIYqhpNAl9JttXZHdsUSjwigowTEZf91mngvP68oY3/wExHcGBLUZOCYEerZNGeA6pHDkfT3zdNvGCGgQi3WK7408hx3tWE1tgYEoBDqKqA2StkEqCPNxNkK71HRRIePKt/gJij/SCOHux6Zb9L1xy7J5mXJ2AfvrYXuXW+7dd7Ti3irDOY5zQbG4oRCzqMheF6UdFe+yXxhQcD+Dn8qkLKc/wjBF8qcUMtonnuTjJdCzAmjDWXb9i679SrXQTc9mvyPF6ljFeKRTOnBPBZmMQZvPTebLw== Received: from BL1PR13CA0173.namprd13.prod.outlook.com (2603:10b6:208:2bd::28) by CH0PR12MB5202.namprd12.prod.outlook.com (2603:10b6:610:b9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 15:51:25 +0000 Received: from BL02EPF00010209.namprd05.prod.outlook.com (2603:10b6:208:2bd:cafe::74) by BL1PR13CA0173.outlook.office365.com (2603:10b6:208:2bd::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.12 via Frontend Transport; Mon, 16 Jan 2023 15:51:25 +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 BL02EPF00010209.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Mon, 16 Jan 2023 15:51:23 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:51:09 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Mon, 16 Jan 2023 07:51:09 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:51:06 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: Wayne Chang , , , , Jon Hunter Subject: [PATCH V4 2/5] usb: typec: ucsi_ccg: Add OF support Date: Mon, 16 Jan 2023 15:50:42 +0000 Message-ID: <20230116155045.100780-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116155045.100780-1-jonathanh@nvidia.com> References: <20230116155045.100780-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010209:EE_|CH0PR12MB5202:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d9cce33-8b34-4748-54b5-08daf7d9852b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fVcG3aOTSCmho0I4E22ZrU2by5hrBHknHYm0LIClq/4jlNpHODrQp/h8rumR1UbN21TzMcqmLfoBseAeqbUvQ4MA/iSb7wJJrP8tVdYMOGqjOH1cy6W5PFrtzIoweW6sUr4rN6M91eFKTcxARaxHzA18FphT8ipZLUrPZJ2tx4KWS7gp1irCR1Gt7CUyatSrliaNBCja6tDGPqWWpqTBLYYWMvwfCfWL0tROdUhsFCfJA3DkcNyjeJwrHzGAxe9kLtO5i2VK6bLdnJGJ5dsVcbT8NvPLQ+b4efTRNfLc1GSTNYwkvnXyREfvf89pPzpBZ2+NR6xF42QHq+AS8wJV4a0pon/OIUYTWJuXNQASRD/OZ4jQIgN+U/hqAj62+Y5ZGgGG/xm0+36DdKK3XZQ/bLck14D9nqXpY/mIK1L1DmIZGqwcg0zUyF5MlYYADhMY+pbLM0IXYfEwEWsVHtjF88WbpPN009/wxXiFiquQFTJIDOBSihNYVku2yZ7QnmxLVwwelexvcYk2ck4Y5RDzpcpnfV04P71gwMCP8KNdFkN+DCqlBw2fcbm/abFZQrAQscxdjOd2Zjl8A6Fg+vNcY5KIZB42+WwnvJEArVbWQSLpqEtY48Tf+8TusfutJeDs/duYA9hTFz0IEFeUT0Luy1OSTFZAYbz8Qh2YrKMJtIARLCnLVVUV32JKtzD52z8HQm/FrMm8XK3HuvDNBfYPyA== 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)(39860400002)(376002)(346002)(136003)(396003)(451199015)(36840700001)(46966006)(40470700004)(8936002)(5660300002)(4326008)(26005)(82310400005)(41300700001)(40460700003)(8676002)(36756003)(70206006)(70586007)(2906002)(40480700001)(316002)(54906003)(110136005)(86362001)(82740400003)(356005)(7696005)(7636003)(478600001)(6666004)(107886003)(1076003)(186003)(36860700001)(47076005)(426003)(336012)(2616005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:51:23.8488 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9d9cce33-8b34-4748-54b5-08daf7d9852b 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: BL02EPF00010209.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5202 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang The change enables the device tree infrastructure support. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V1 -> V4: nothing has changed drivers/usb/typec/ucsi/ucsi_ccg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 46441f1477f2..4bc31ed8e5bc 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); @@ -1426,6 +1426,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 +1486,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 Mon Jan 16 15:50:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 645012 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 16722C678D7 for ; Mon, 16 Jan 2023 15:51:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbjAPPvh (ORCPT ); Mon, 16 Jan 2023 10:51:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjAPPvb (ORCPT ); Mon, 16 Jan 2023 10:51:31 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2082.outbound.protection.outlook.com [40.107.220.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D0EFCC0D; Mon, 16 Jan 2023 07:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TmXxxHFmxmdgF6wB08nqawTX5d+wjSrzZ9jJW1koMTh1xDpsed7bkeASsbNhef0BebU4s4FtZ1LnUoBhTrsUf2B3XZtq7XbbI7DC5t00yDAjTAhd6t0XWjYOp65U2POCWL66fyLO/XOyjc5yvs2HDKvmfM87+qIEDdiR5IdwfhI6sJIH19+T5MWAdORA1Q93tIKglTNy/4jR54SHogGTeOXDgx7VmBX4mr87x1g/gHOS+hYe04n/mXUa4uaiHgByAhvgN3mpddKlXW5yZwsfhRLFsZkNPnt0ouEt4P4uGotjwkcRwletO9BgE6/HhJlDWHnj2ANlnFOdfNOeUucm1Q== 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=S8gS+A4+OHJ9sGDL1cJBwHktVJudxKv8QhNzn/LL/gI=; b=Hu9kxJagavvw1cia/+hQFSo+6TanDwZw19ZVHsV2wRVdKG3bCnJokwf5dgd5+mwYc1FXQQ+DWluwXREi8GACeF/83ZmtNYlHEyVwOBv6uOUBbZtYID5eBIUMtAp5eTosEe8nVZjvAubG+Nn+xd4U7m2F3NUCfDkvFHTOi69MyzzoLoTe8q7471lhfcX6iLocSjZhTG9aZR3GkOgyzyxkcYRY3/asXi8/TRafX/xdOeL7LWf08SvYJYCqkv2ce6zkWqVUwGfAezOe9DB3keMwRSt02NalTvupY/T8icp5KCEsZo9CajGFQl27ItdWRZ42WrzSOpq0hRaIdRmhw7jHww== 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=S8gS+A4+OHJ9sGDL1cJBwHktVJudxKv8QhNzn/LL/gI=; b=FDMROhOakhv1BTu1IGqMOapp/g4cS/vyQuflnwV12w32N4iOEJEcw2dZfqlSBEF6dT+zzcA9qaaPxZx337rBuTcay/hO6xPoUq4KjCb2cQyvvhlVHXya7rA1S4f0XyFzear1Fm1vTxlLq1KfoMUPv6O/tPJ0mM3g2LX5YzVcZy/autJpki+cIA/WVr/OBzvk05K2ZAMAd6m0fnWYEtYL96v09Lun6Z0ppfrFM+sgMkv2AtAatu0vwytRsXz43mTFVc9wionB4UgOu9CdJzpVFicpmxZBzDREEJvOJOYNnFBIImCgZAKvzQxBcIM7QTMM2c6z9AjwXMX48kb+Jyt0ow== Received: from BL1PR13CA0159.namprd13.prod.outlook.com (2603:10b6:208:2bd::14) by IA1PR12MB8240.namprd12.prod.outlook.com (2603:10b6:208:3f2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 15:51:28 +0000 Received: from BL02EPF00010209.namprd05.prod.outlook.com (2603:10b6:208:2bd:cafe::df) by BL1PR13CA0159.outlook.office365.com (2603:10b6:208:2bd::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.12 via Frontend Transport; Mon, 16 Jan 2023 15:51:28 +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 BL02EPF00010209.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Mon, 16 Jan 2023 15:51:28 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 16 Jan 2023 07:51:12 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Mon, 16 Jan 2023 07:51:12 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:51:09 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: Wayne Chang , , , , Jon Hunter Subject: [PATCH V4 3/5] usb: typec: ucsi_ccg: Replace ccgx to well-known regex Date: Mon, 16 Jan 2023 15:50:43 +0000 Message-ID: <20230116155045.100780-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116155045.100780-1-jonathanh@nvidia.com> References: <20230116155045.100780-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010209:EE_|IA1PR12MB8240:EE_ X-MS-Office365-Filtering-Correlation-Id: a52fa497-55de-4e50-e7bc-08daf7d987e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rtLg5ng+/g3aBa00UXFaPklZ1uPS+tvEDABx/g0b6t44WAtf2u8yvs6J0tlmZ5nQIexxUYFiioG2Foy8Zd8VEtU24GDPO98o/om09DNF3P3EGHQLMAAPkSk5RX3W3FhO5+dljE/jYKQ933tzKEXXPhnN3QpuP0Oip3ovKJuL9+xYigJhhdTDH1yghXo/Ynxndvrg7VpoBt0u7Dv7mvcIAnpCbx8W6A7H//oU48sYBulNsd94opgBKsth3L0GbgUI+dxTQ8hCYhEd+v8+3CXMXRsS7u0AFmWvB9Y+SX9uXcHLq0rmqCJIFnlFw2hYHDGJgSsxvKDbt7KAqVvuFExGuZ2DkY9C+3I2MeI8WwoI3vL66CeCOhaoFrObofKuukkPd6/CbuJXfwbYRhu3DU0f4qPUYf2bvQaSs3CwyGK3OYMmxG3qbSqaOE067cq03uJWA5Brvezg4r2ZM3tbBdSh5AIkk7MTXMsD8rriA9g3GTurFQL3pyAI0ikYYUygTVDojcK6pZUTnqCz2KP4SdD9q6LweVX1ObAXDzKTQEcA0qjewd+EGenFP3YuWZbhqyIYLmt+jje3FResu0tSjSkIWaFhWS8ACsXd44OmNgaeSUXr36ALKaRh39ietaS0eMXEvjbDIOzU574f9WHrzH177eNh12RwcAvREYZkDFU5NrGN42QMqZRu4/LqdiZXgtvoB8kGd+1UNEMrf9ffV+SXLQ== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230022)(4636009)(136003)(396003)(346002)(39860400002)(376002)(451199015)(40470700004)(46966006)(36840700001)(86362001)(82310400005)(426003)(26005)(4326008)(8676002)(36756003)(186003)(70206006)(70586007)(47076005)(41300700001)(2616005)(316002)(1076003)(7696005)(107886003)(110136005)(54906003)(6666004)(478600001)(40460700003)(2906002)(356005)(7636003)(82740400003)(336012)(83380400001)(5660300002)(36860700001)(8936002)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:51:28.4271 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a52fa497-55de-4e50-e7bc-08daf7d987e5 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: BL02EPF00010209.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8240 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang ccgx is refer to the cypress cypd4226 typec controller. Replace ccgx to well-known regex "cypress". Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V2 -> V4: nothing has changed V1 -> V2: new change added for adding cypress,firmware-build drivers/usb/typec/ucsi/ucsi_ccg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 4bc31ed8e5bc..d6114fb8d5a9 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -1357,7 +1357,7 @@ 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", + status = device_property_read_u16(dev, "cypress,firmware-build", &uc->fw_build); if (status) dev_err(uc->dev, "failed to get FW build information\n"); From patchwork Mon Jan 16 15:50:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 643373 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 4CBABC46467 for ; Mon, 16 Jan 2023 15:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjAPPvj (ORCPT ); Mon, 16 Jan 2023 10:51:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231247AbjAPPvc (ORCPT ); Mon, 16 Jan 2023 10:51:32 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2084.outbound.protection.outlook.com [40.107.223.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A92F21A494; Mon, 16 Jan 2023 07:51:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OczeH0ryB+dXUDJpUsKxoOF068fxjNA36iXCITO8SU6mG5KVMp9XqCTz2CZ3YLGG/QPOtuKszwanhbao49P24GS8m9LqawMmvheZWW6ajtcTUF244Qx4Mi4nLkWBMHZQCFc0oDnID91/thMshpnpRl0yOh/1nbqZ2AhYQ9bipFo15+2VYRRTetNf2PIuZ/Ng6wQZ9J5+HSrxPbhGgrVj1kVOCw5YxwKb6b52zjfpodxYSycllYXemm7fUsu6jwHP/2gY8oHrvjgQTw0nIKqFItfboCWVpNG/PL99eYzM8wBctDdTzbaKygXZUtxk8KrffKPUvGRoWvY39ZexK7EOVA== 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=KGni8ioPw54bmdE+KbZBu6di20jvVBsni4UtN10Svrs=; b=KFQGkCgA/zaHDAdVJR4H2ORyExYcUL+oWiGFFFmucIaST1JPemjk35n+6oEeH4KDzt46f8ipWFEw/9JfCGUoPz2KE5k6Vu7dWUPEkC63/1p26tQ5BROkwS6Q9gIzSvy7zQnXZ+A34M7vXpJppQw65ttQAdKe/3RQhA9JflFtbUhc+GuTluqOyAlr0y1RlygndzuvX+G4jFfyzIiMMg7cS9r0ETUbDSwYTAk0jIiYR1gcUPIOB98zcnUTMKrM0awUeOpSssM0P2OEnOyiuATZozQaOMzHsR/vKmMO7fEUVnFtoSnwjc3kHqycCsercHm5SeZq4/XrG7VB1DIoWF7uTA== 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=KGni8ioPw54bmdE+KbZBu6di20jvVBsni4UtN10Svrs=; b=JEkemIH2v87IdUq0hu+bsIidpC2jaUUG9wlqQLteugPM8s23thWz/7lC7Gl11WEhCr98lrjXeK/Z1a0xYTg54yQZd0+ZXGbWLx3eoAtXOnxm6iLNjj9O9uRM7VPtTaBGhMednKLsGWNqOGy+un19DHaexLbUlZLnHhpytownAVD45GH8V28BfbifbZUHL01OswRkTGaKRDUl+g7ixTcRgRjBW0xMuglTmtmmyKi59IAC4NGk75/WG43aPJmpNciyYkE38/Agujl9S060JN/AU0G91Z5ObHyiGYC/s2Q95CuJ4UdFHsM2XWfOfpKPmUZefDnvKkFsoyxqa2BHcgLCww== Received: from MW4P221CA0002.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::7) by SJ0PR12MB8140.namprd12.prod.outlook.com (2603:10b6:a03:4e3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Mon, 16 Jan 2023 15:51:29 +0000 Received: from CO1NAM11FT018.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8b:cafe::46) by MW4P221CA0002.outlook.office365.com (2603:10b6:303:8b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:51:29 +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 CO1NAM11FT018.mail.protection.outlook.com (10.13.175.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Mon, 16 Jan 2023 15:51:29 +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; Mon, 16 Jan 2023 07:51:15 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Mon, 16 Jan 2023 07:51:15 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:51:12 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: Wayne Chang , , , , Jon Hunter Subject: [PATCH V4 4/5] i2c: nvidia-gpu: Replace ccgx to well-known regex Date: Mon, 16 Jan 2023 15:50:44 +0000 Message-ID: <20230116155045.100780-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116155045.100780-1-jonathanh@nvidia.com> References: <20230116155045.100780-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT018:EE_|SJ0PR12MB8140:EE_ X-MS-Office365-Filtering-Correlation-Id: 55460d3a-de5a-4e9e-80ed-08daf7d98869 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qoBlEKJRs5TlHaY+AkYSPQRwTmja2OZfsIni0MTlLGM6/yczK1a8r+inM8+rtnJOQuhZRaB8frhtki436+B5mPSGNElkMFmKUaMpXr7Xd1CAQp+K9eak33QsxPKyavkfXywOE4w6+L5d0X35oozhtemP2u0Yu4g/gsF9DEjhjtwt1iDb9JcPfO25NvFGLOD1Ajy6jFn7xmku/F7wJQYzFWNTFBvfX7QlZv90v13RedWZViWqvBTmnH10At5YKvuEPSnkxxJFVGYOqGNpkV26z54aPbDaCRP+z2ODvxSm/Va2EI7um81aq8tuAiQr6lS0ls8ouTGdjcsUN7QXMw2lgXmLG3mVNuwAxpi5agh2Yl8B9WsY5wOhZADyEXy9Bgrn9XVNA2znSUYXkMgHKf6MVGZNVd8gzUEybgt2ubvz6oG6/TxtGNRIueZvBhF3t+TBwAvL08imZ3d8XLU8y1qFFzdtCTNEd/MXJmgezYbv9iE+g9UZ2fAPZgPPEd7yXBQNxgZvDsWpxdGWi/qZ4bsH8VS+4P562B2zOlPsswUh3fYtvzDdl22awTElgwEGm6W9MWEfrWbxODGtwumATIhlIcLu9EnvR37IKPFj1O0rw0vFaxmqoTnTGyWlZQIoKqvz4o+MDa0CZ7WEU02h7Pz2FPzT3/H+W96aiXnqKy0PUx34jUEJXP6mBxPKUOQwCti3nUMD10gvOBtaYfTzo3Gbzw== 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)(346002)(39860400002)(396003)(136003)(376002)(451199015)(40470700004)(46966006)(36840700001)(36756003)(107886003)(36860700001)(6666004)(2906002)(70206006)(4326008)(82310400005)(5660300002)(8676002)(83380400001)(8936002)(4744005)(426003)(82740400003)(356005)(41300700001)(478600001)(7636003)(47076005)(70586007)(186003)(40480700001)(336012)(7696005)(26005)(86362001)(1076003)(40460700003)(2616005)(316002)(54906003)(110136005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:51:29.3363 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55460d3a-de5a-4e9e-80ed-08daf7d98869 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: CO1NAM11FT018.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB8140 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Wayne Chang ccgx is refer to the cypress cypd4226 typec controller. Replace ccgx to well-known regex "cypress". Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V2 -> V4: nothing has changed V1 -> V2: New change for adding cypress,firmware-build drivers/i2c/busses/i2c-nvidia-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 12e330cd7635..0934f8ad7f49 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -260,7 +260,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_U16("cypress,firmware-build", ('n' << 8) | 'v'), { } }; From patchwork Mon Jan 16 15:50:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 645011 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 63794C677F1 for ; Mon, 16 Jan 2023 15:51:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231373AbjAPPvl (ORCPT ); Mon, 16 Jan 2023 10:51:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbjAPPvi (ORCPT ); Mon, 16 Jan 2023 10:51:38 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2066.outbound.protection.outlook.com [40.107.237.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA16D1E2A1; Mon, 16 Jan 2023 07:51:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jJ3ViLoJvUalX8tnrOl44h+leCq6hVkgGWidW382aCgwsgFrFTA+syVrEiDRBoIUBjURpPQIW2N/WfDVX7C14AsUsFbCj3sAnujS81knpmPb9T+IGH0bupoZSUxpejQWscYg6S9pLWlVqr40VaCNBGsvb/MuXqPvOL+AVaufS3ci0VZ/gnpydLNU1yn1zxs4+6GvNnFzFh1nz4wVdriP9wSF7J6l152yUFDlcJwbCbOKhCrKYcqSsUvXM4XXhAqA35qk7waW5oefi7EFgmAO/R9e9cVWmOSlIbWa3MqNdzGj203VmD0clMel8G2p8fezZqvcz/x7F+DEYmy+uC02OA== 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=yjnA7qkGVQm7l6rnA0O6TuQ+17H5k/FgfH6AM63aH98=; b=kDvIPngHGNDZ0i8rXIm204D42TVDvJeIyjx9SC/udIQMgNJlWKe1sF1LvUFFkH5qX5owz72xuKqzibHDhfrjXACu4GeW0qNGKhe/Mm8zHvpMSMKaqpbX0hhfCrglE8kHxkNInle8SOlhL9nh6coR3V3hRqfxr0AP5uQskOW9LMg8pkxQTysomW8+4DQizypPSJNxX9HniodcyniHsYhvQUhkLlUQd/y6awnRdvDU4fLVnMt5dg9zWNVPVCwarxACHOcfWN6hTaIRqzEFqhJL5UZpt52RPY1g0MS5Tq2bGMTR3V4NlR1x0tmx5RmwB3E1Vye2ZPktEuGyBAruSVYbqQ== 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=yjnA7qkGVQm7l6rnA0O6TuQ+17H5k/FgfH6AM63aH98=; b=G9ca0AgPgPfFHMwZ+aEKgfZBODfQQUdMaavlmWM+MAokKRlOUkIQQNMpWO0O9ishUnpfTVlL0Lw2GbRiAXCteGS5RStugyOuUtwQ68bnU4GWG2hFwB/aplUP5ehfidQHaV+jBTo3/j6DA1wfUusfswXptI2OQZ932CdaidDZDNpudme9FGuAMK+D22+hRf54BWjzal4V70yvLwjDn2jKNtcMZ2fn2MbewW+3SPA1ZKO3lOfN9nTWn1vK6kW4tweCehofxYIAPx6FeyfgAY5kJ8vJaXWn6csez21XSaftQowULJVQaizMQB0D1IZKkcdWOmxwiDxmga4yF9HV/MqWpw== Received: from MN2PR16CA0001.namprd16.prod.outlook.com (2603:10b6:208:134::14) by PH7PR12MB6693.namprd12.prod.outlook.com (2603:10b6:510:1b0::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.19; Mon, 16 Jan 2023 15:51:34 +0000 Received: from BL02EPF00010206.namprd05.prod.outlook.com (2603:10b6:208:134:cafe::39) by MN2PR16CA0001.outlook.office365.com (2603:10b6:208:134::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Mon, 16 Jan 2023 15:51:33 +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 BL02EPF00010206.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Mon, 16 Jan 2023 15:51:32 +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; Mon, 16 Jan 2023 07:51:18 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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; Mon, 16 Jan 2023 07:51:18 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 16 Jan 2023 07:51:15 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: Wayne Chang , , , , Jon Hunter Subject: [PATCH V4 5/5] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Mon, 16 Jan 2023 15:50:45 +0000 Message-ID: <20230116155045.100780-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116155045.100780-1-jonathanh@nvidia.com> References: <20230116155045.100780-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010206:EE_|PH7PR12MB6693:EE_ X-MS-Office365-Filtering-Correlation-Id: 935803a0-5b54-413c-b69a-08daf7d98a60 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RgeNFLKYUv40w13BV5RJt23pKjX4pIS+i6/Fseb48HsGTtbgk7n+rLVunDYWF+9gAFRbhyTribOVOEytGA89VbQxKRJRUevL7I5UzmLDrvLMmDA6nOqnyjEK3O6UAhobDGD8HBbXYE+QLbZnOi4ZZixlYROxvjjdrBFmd4vONpXVIDet06+eSKRGDgX08BO4UIhyGo5wHFHaUZSY1tZc65LNSanE1PQqATnuJh3yPg+JqFCF6T5UIwDcdQPlqFAV3pc4jGvLhAZNb6s8ooHV88v9fKvPpFOJKh3Og9bpyBltwBMJbbjzuUrwZYUWuQSC/zqEBOf2hgzaY3yGjair6DZf31exb2zcargMKKXMVyCyu19NxBqn/xKm3oOVCZVMNOopr7MLr++cnSLyDiiznVCdBTgYj2ZwO5h4u3AOuysE5a98zVa5+cyUPEpb8JfrpudOeOOxagWNepW3hgtDFUD5fqbt1plLiw65qjuh4Oga5aQ9k225EtD0B0bGRCLZkqvDJ5RMqkgjXZW/LiPc97ALppSFfx+HFDdAOTLdjdyOg7W95VZqfg5CmtigqU59JQn7Dz58qpD5JTvxXgKsLEPCLJgMQeW2tTwECpNquQHZlwHqnNdrifo6x+Eyyo0yFD/J5p3VUpz4+sxMK1zMENN/NqckSBtSTIaKHZJkh2Q56C18+ktXOlKjTehDj2RWk0cHkqxvWlZwzOmisnr62g== 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)(396003)(346002)(136003)(376002)(39860400002)(451199015)(36840700001)(46966006)(40470700004)(5660300002)(8936002)(41300700001)(54906003)(70586007)(316002)(70206006)(4326008)(110136005)(8676002)(2906002)(7696005)(7636003)(356005)(478600001)(82740400003)(6666004)(82310400005)(26005)(107886003)(186003)(36756003)(47076005)(1076003)(36860700001)(336012)(426003)(40480700001)(40460700003)(2616005)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 15:51:32.5873 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 935803a0-5b54-413c-b69a-08daf7d98a60 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: BL02EPF00010206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6693 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 --- V4: This is effectively a new patch that has been added, but based upon a patch from Wayne Change that added USB host, device and type-C support in a single patch. .../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..059a23ce810b 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: ucsi_ccg@8 { + compatible = "cypress,cypd4226"; + cypress,firmware-build = "gn"; + interrupt-parent = <&gpio>; + interrupts = ; + reg = <0x08>; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; chosen {