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: 643184 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 59FC1C46467 for ; Mon, 16 Jan 2023 15:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbjAPPva (ORCPT ); Mon, 16 Jan 2023 10:51:30 -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: devicetree@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: 643183 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 D5E50C46467 for ; Mon, 16 Jan 2023 15:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230439AbjAPPvd (ORCPT ); Mon, 16 Jan 2023 10:51:33 -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: devicetree@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: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: 643182 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 B01D8C677F1 for ; Mon, 16 Jan 2023 15:51:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231297AbjAPPvg (ORCPT ); Mon, 16 Jan 2023 10:51:36 -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: devicetree@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'), { } };