From patchwork Tue Jan 31 17:57: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: 649130 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 48591C64EC6 for ; Tue, 31 Jan 2023 17:59:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbjAaR7P (ORCPT ); Tue, 31 Jan 2023 12:59:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbjAaR7M (ORCPT ); Tue, 31 Jan 2023 12:59:12 -0500 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2067.outbound.protection.outlook.com [40.107.96.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C36EE38B44; Tue, 31 Jan 2023 09:59:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sfpko5u/US7T+9Nh1RcqkrO9fcP7RkepeHAJGB1bFqAQluWIVGmrxMIPM8bOht0wave/FOqc6lCN4gL3Z/2MzTr2wUNDMRzQW2En0BdyS++501tQZb7oJF9KXcExAmyh5IFjV5/Th0Xnvt1Ggm21pt8aZaX2dciCPdfNhxv0YYAzMpbEk7PhJXa+YqOjBEI67iqRp1dnzVe6Sllz1W8eQPWU8F9wrPYbyDm11T7P6FUH8Nbuz+H+OXvJhfb0CvzfJELQcTwx8kUcIsi+233g7YmL/c6Zbc8925MocVwub9GMTzGfOtolPNIAHGmK/EhHXa94QDUF5Xfu/83/1aVNdg== 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=aslm7a9SyXLh/GIMuxNvV8X7WGCAha4Hla78fxuDZWI=; b=CaUvaBVtEgenClvGUlZY5DDWYOjrMdCYw+mepUV4OyN4oXgKP1h4g9dB05jUwrqlbAHnM8OevfqMaWtAr2vDXud/RGsvUV4b43SRnQamzG8U68pFLQ7zOCNtwElZe0JiTArMlzGQhytpe0x0qLVuEUz2VT+asaeXtvRVpexDceKENvzhEY6DXjW8wsDMcIPgAdmUX2JX8Qj9CciNGY43yNbP7kaPGOtLrGs1/awkJLS/wqEX6s/NbSPKaDWMNv7VAKZOS4wUG025yy2/D+gs/LkxeGC4LM2jZQmM0CKpEoZYefVPaSzMEJr/t2uCFP10keDkpsUN2ln2LS6HZ23kAw== 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=aslm7a9SyXLh/GIMuxNvV8X7WGCAha4Hla78fxuDZWI=; b=EOUwny7WIxdbfUCD4orjyGyHmVdiCYr05dIarv1r9LqtW0IiohHkZDU7rZIgOsqonoa98GCAZJppzHiWcRCY/64mOfUX/5C8siG60FxTJqw81gFfhRRYEVoGBRscPo5z1+drhmJpDunkPBkdyGe2TV7S3/8XZn5nv/FXz8zosifqcSy2hxlk/UhLHMPhnwwu2+NbxLue38+f2wOayARjc/bTB+DPzcFoSbR/r3g2XBMLKderWLFGDz/gvgeKei2CdsBTeZ9QONvJe2onKEMWE9q9xY3mJTc8fUWEhPrHtX8fSLj9w20uUiifMdBuCGJNUusTMT+FCGuF+h6/SsxiWQ== Received: from BN0PR08CA0011.namprd08.prod.outlook.com (2603:10b6:408:142::33) by SA0PR12MB4464.namprd12.prod.outlook.com (2603:10b6:806:9f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.33; Tue, 31 Jan 2023 17:59:08 +0000 Received: from BN8NAM11FT086.eop-nam11.prod.protection.outlook.com (2603:10b6:408:142:cafe::96) by BN0PR08CA0011.outlook.office365.com (2603:10b6:408:142::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:07 +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 BN8NAM11FT086.mail.protection.outlook.com (10.13.176.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:07 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 09:58:52 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 09:58:51 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:58:49 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Tue, 31 Jan 2023 17:57:43 +0000 Message-ID: <20230131175748.256423-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT086:EE_|SA0PR12MB4464:EE_ X-MS-Office365-Filtering-Correlation-Id: d71ca5ed-df97-44a8-8907-08db03b4d915 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XXAiPIvmyU2eKdNb/OVKV9LHFehILxTpEKVFwLjcDG4pD7LrXTP2HbonOdGWbBpOELxItkWL9WPJa3xnLfRjKUOKW8qIdzlEBNAc0G/LBqbQuBnKIguvDwjSe3sfyqZiMs+c4wEM8Nox4lz0modqNvD/Z4vH+dHDL74aP/ViK+VMeN/gBY0XgRJOdkoT4fB0iXQXFJz4xgmP9I6KMKa0S9XFq6xSjdf3SG5YRdJ/JM79PfgGztBXxAgdV7Q3JsuUWP/K4Hy/sVDkdWL2X5iAELEpoRzywiOqLFm5Ob58ZiLwzUDbuDuP/jUv8l+AxYaF1yxyqBEXZVfIjSSILaIZ8XrGD+oW+xMFMvWf+SBCPlIF3Q76Wmnk4ufoeblN5Y3EVGk6SWIJaAXZpbkG22DiqNiLASCfWwMrAI30MSi7eQ7laZS/NzR0ZP3eXFmQ9d9u1SPo5AXrjS27ErmrGepr2OF2SMmX7pHyrCCHAqBYpbqVQIuzdoj77H2oL4L2/9fjEF6SmnXmsSGj9hHqlSbIsEcSGrpP0KNJVtIo7LC8j7/IwE9zWaZxx47cbTP34gCYc+qNuXh9vKWat2rTm1WJKOEKNs81k9O0Px8EK7JQ8UN6kC2PJCXf/qyFGYE9mA9+1xapA+msPPsy3/GKAEWSdQWh8ehErX4mF6D9Zt6lWNvZaGKc8jGVuFUxMh9c4k7/fKDzkmZbA/AzoB/gtZWyMIg42bpqG+A8N+Px++hvZ//b/DT+b1P2rJ1Kzt7nNLePr7Lw4c17k13iNdBBNfHRPwszDNTiHIl2LegmNX1z51ovOnbjgcgcHmIwEoHg/lkX 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:(13230025)(4636009)(376002)(39860400002)(136003)(346002)(396003)(451199018)(36840700001)(40470700004)(46966006)(82310400005)(2616005)(82740400003)(7636003)(47076005)(36860700001)(186003)(5660300002)(26005)(2906002)(40480700001)(356005)(966005)(478600001)(1076003)(7696005)(36756003)(86362001)(70206006)(4326008)(8676002)(83380400001)(426003)(336012)(6666004)(70586007)(40460700003)(110136005)(54906003)(107886003)(41300700001)(316002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:07.1308 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d71ca5ed-df97-44a8-8907-08db03b4d915 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: BN8NAM11FT086.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4464 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 Reviewed-by: Krzysztof Kozlowski --- V10: Limited connector indexes to 0 and 1. Added 'anyOf' to ensure that there is at least one connector present. V9: added 'unevaluatedProperties' and 'additionalProperties' V8: removed 'additionalProperties' V7: updated example to use 'typec' for the node name V6: no changes V5: updated subject and updated binding to use 'firmware-name'. V4: no changes V3: fix additionalProperties warning on new schema V2: based on the review comments. Fix some addressed issues on .../bindings/usb/cypress,cypd4226.yaml | 98 +++++++++++++++++++ 1 file changed, 98 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..75eec4a9a020 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml @@ -0,0 +1,98 @@ +# 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@[01]$': + $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +anyOf: + - required: + - connector@0 + - required: + - connector@1 + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <2>; + + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio_aon>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + #address-cells = <1>; + #size-cells = <0>; + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C"; + data-role = "dual"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&usb_role_switch0>; + }; + }; + }; + }; + }; + }; From patchwork Tue Jan 31 17:57:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 649129 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 56000C636CC for ; Tue, 31 Jan 2023 17:59:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231575AbjAaR7Q (ORCPT ); Tue, 31 Jan 2023 12:59:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjAaR7N (ORCPT ); Tue, 31 Jan 2023 12:59:13 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D314A4900E; Tue, 31 Jan 2023 09:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kSKNrE+z1ADcyFCCKtLclFw09PivMsOpU5ImD60O5UaEuV8FwbsQnXVO0/MJKNNlrNwD3eFfZ/fd772q+RmLx2Oszaagp+k2doO0KNHfM4qgPxLWPDGFjuo9uFgff+h/LsbyxzLjnXPLCI5Pe5nSchRQ0gGadUJlGtEFUZPocIC63tNa1o82rMrn6bzUk1ZiBGthpm3KsVM+E0gFJ0u/0/0Syz7jfqvLEwMpQOrQnrtqJ1uNSknSaoAi+BoBY4WTJ6S0HtSbwTRFoZ8v1EFJLcAmZWTHfCnjrEfGHXbU0neKhYB0jB7p2w2Ff0GSkzysD9Oy0gv0KJUk4XofISRzIQ== 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=XBXshQTJI2cqEhrRnFsqGNGlKErb7yK6vxxhU00D4oA=; b=RQhJGOlEI6FxYEHQUE8XMb0oybvyerfg3n9MtWC9QQPRw8CgHY7PimYy8kEcBhvLfzzP1lOjl1sxOKAHexcHqxEvDznA5MAfMysvf21GzYQUB7L51owPfyY4WrNmoDZ62KjDwEMcJx2s2wgOJGH3xfmC5DbNN9KYmZxWlSoTKsESlH1TH2PIeN8eq89/4ZWsveS/GUtT+nrxpAttOQyhYrSTDbdzKm3u2V6j7kH4cNSCrtfPANUkuRrxaSCG9E+vDqJqKlUKdiYFWfO+YYIaMHSW/KRJnVRkh4vBBdpw/D2m/iPPpWdKof/ypqsNVMVNLx/FFFIj0mazfejElqTBgA== 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=XBXshQTJI2cqEhrRnFsqGNGlKErb7yK6vxxhU00D4oA=; b=YeJ+ch9edWNWNT08Yj/f8hW/4xiEUR4g6WiTMBSPBcisEBzeqUK+FWG/LpoQNXCM/m4ZpijR/eGUdw/gH9ylE8NJvuR1+5QZbo5RxWnT6lP6yrQM1Ws4k8Lgh88su7i+REhSAfkHnDJWspvcuBQvReWV9kDRqN43qBSKU5trwd7yYGLxV4tVu2Hzrn4cXeyaDePFB76PSIc0He8tLvLrar0jLQo/xR8A5BuAhXRwOVQjDpAGhXzKm076V/pHCquRijoCG7G8FBp26wNYydrbjnf9Pk4Ek+VPKENlv2vaFnSE49xPgn5L9zgSgc/pbwYZZ7uD39gjYKPXgZuJbCt6Aw== Received: from MW4PR04CA0091.namprd04.prod.outlook.com (2603:10b6:303:83::6) by DS0PR12MB7678.namprd12.prod.outlook.com (2603:10b6:8:135::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan 2023 17:59:09 +0000 Received: from CO1NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::8d) by MW4PR04CA0091.outlook.office365.com (2603:10b6:303:83::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38 via Frontend Transport; Tue, 31 Jan 2023 17:59:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT031.mail.protection.outlook.com (10.13.174.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:08 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 09:59:02 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 09:59:02 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:59:00 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 5/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Tue, 31 Jan 2023 17:57:47 +0000 Message-ID: <20230131175748.256423-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT031:EE_|DS0PR12MB7678:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f3f214b-5952-4354-9ae8-08db03b4d9ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kRS4Ta6VFW2xOcssAdl7fCuIho5ATymyRXivKVhtuf2mJjOiJUiist9GcuY6SpKemeQYs0j95q2AEFtsTEVZeaO7aKyS+jMeNFxa0KwMfkSSht39opKR9r2JNw7toizIPbtbNngtxpw5n65PLlGhWRikT/VInD4iqI32dGs+TlASdlsn8k4GmuWiR8z4AJ7OuBCVwG4UPH5fZb3g5TPXv0OndbPkv2WxrxFLIk4OReNkD2HVs7CUPDDyXRml2dc90VT2ujEjDxjNAD9pla/L8P0Oo9Umx2129IDojxZ58q07udTxmrPpa1a3CQ47gjK2Yn9dEiPRC4GmolJrQmyOnIwJw6E3rO49pBowjNeEUYjb/v0tmFNE+Au79uERDOi0qGzXiLOAnsMSeLTzyqZ9BOpHqynslvKhE53ieBFvQQ3IkyA5XIuXNqErGtK69XSYOZWV1bBmBg9o7d33WnxKhYqPqDYcx3cazwvh/gWkP7yBGfgSkv8sYwhfH9yKPPYcROHk6VmzFBcgDVxjDdYrCiVLgHieHyJ2QnhkkhXWUPrEnNjQqtg+ZseACq6Yiuucnjhd46Bi/4D6K5Q13SvBPttUmaH4gzm7bck5Pp1sy2YKP2hyDUZC3UkQESGYRjNhfTqUJR1UwzDVybXN5uIR4hvuMJF5mLTApuLIjp5doqDc+WFej163UGgMzX3W2oJ18zV/A7qJRTuYWorB7i/RxA== 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:(13230025)(4636009)(396003)(136003)(346002)(376002)(39860400002)(451199018)(46966006)(40470700004)(36840700001)(82310400005)(2906002)(86362001)(336012)(426003)(47076005)(83380400001)(8936002)(41300700001)(40460700003)(356005)(7696005)(26005)(36756003)(36860700001)(478600001)(186003)(6666004)(1076003)(107886003)(5660300002)(82740400003)(7636003)(54906003)(110136005)(2616005)(4326008)(70586007)(70206006)(316002)(40480700001)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:08.6991 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f3f214b-5952-4354-9ae8-08db03b4d9ea 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: CO1NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7678 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 --- V10: Populated connectors for type-c controller V9: no changes V8: no changes V7: updated to use 'typec' for the node name V6: no changes V5: no changes V4: added in this version .../nvidia/tegra234-p3737-0000+p3701-0000.dts | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts index 8a9747855d6b..33ef939fa3bf 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 @@ -2073,11 +2073,21 @@ ports { usb2-0 { mode = "host"; status = "okay"; + port { + hs_typec_p1: endpoint { + remote-endpoint = <&hs_ucsi_ccg_p1>; + }; + }; }; usb2-1 { mode = "host"; status = "okay"; + port { + hs_typec_p0: endpoint { + remote-endpoint = <&hs_ucsi_ccg_p0>; + }; + }; }; usb2-2 { @@ -2093,11 +2103,21 @@ usb2-3 { usb3-0 { nvidia,usb2-companion = <1>; status = "okay"; + port { + ss_typec_p0: endpoint { + remote-endpoint = <&ss_ucsi_ccg_p0>; + }; + }; }; usb3-1 { nvidia,usb2-companion = <0>; status = "okay"; + port { + ss_typec_p1: endpoint { + remote-endpoint = <&ss_ucsi_ccg_p1>; + }; + }; }; usb3-2 { @@ -2190,6 +2210,64 @@ TEGRA234_AON_GPIO(AA, 4) phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4", "p2u-5", "p2u-6", "p2u-7"; }; + + i2c@c240000 { + status = "okay"; + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + ccg_typec_con0: connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C"; + data-role = "host"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + hs_ucsi_ccg_p0: endpoint { + remote-endpoint = <&hs_typec_p0>; + }; + }; + port@1 { + reg = <1>; + ss_ucsi_ccg_p0: endpoint { + remote-endpoint = <&ss_typec_p0>; + }; + }; + }; + }; + ccg_typec_con1: connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + label = "USB-C"; + data-role = "dual"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + hs_ucsi_ccg_p1: endpoint { + remote-endpoint = <&hs_typec_p1>; + }; + }; + port@1 { + reg = <1>; + ss_ucsi_ccg_p1: endpoint { + remote-endpoint = <&ss_typec_p1>; + }; + }; + }; + }; + }; + }; }; gpio-keys { From patchwork Tue Jan 31 17:57:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 649128 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 47411C636CD for ; Tue, 31 Jan 2023 17:59:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbjAaR7W (ORCPT ); Tue, 31 Jan 2023 12:59:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbjAaR7V (ORCPT ); Tue, 31 Jan 2023 12:59:21 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2079.outbound.protection.outlook.com [40.107.93.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74BD121A31; Tue, 31 Jan 2023 09:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBisflVk6cfyXZtOiIoQJBNo6mg5FBnUfa8TPDTrMAqhPJmgp6YMYbz1HWIw9zO6wJXJ87tPdMjfpm1FnrSP+12lDNZL97mvL7KgVLoLxoPQe5pgl2sg320BrDRohq23wMISUFkSg2yoj0ejUK33fh0yRvlgr1IaA5jfvZ1Q2v3jnBn3RPBImEO3HH1Es+Qy6CQeE5lOd+ycyehckzCzNKR12lB3GJ+gXGlaR3cvdRqHfu2TzJQZckdgMuf1yyjtfRrfBS0MwMca7C5yDWXdo7iPsuY9iVyoZkvJNnLBa5Sr9iJfinrjvj3rrc6hvjPo1l5i5yaaqECpHOetkjJ0yQ== 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=z7FDRxLahFR6uDmDIwphTX0R7vjBs5HU4RejtC3PX70=; b=Tt8jofG0J0tzGKn27erj2Z0rcXwYY7yRutKlC3P0XBNr1EK+jxIgeKij+nDfGiHmbSapLPS4Oeo2TUaH8gQ9E5B/iHCdmLH0G4VkETXjUyTp7aeNro2mQp7w0I6Hk8OLBsqePTgXt8sUCG0T59WNtYmplbFtZucJKgxbyWfkSRquzJGkK1gKsraN5qvDuILGVffftO54MMJAOr6oANQEVm4jUFDmAUKo/2nXfCf932Ssc9tJOsbfhsXIvr8zY/g+N/+TWO53j9HEfwPRsIF6CkprEVasnuFkZdGKjBA0vJ6ku4LYYq4hxQ2PIsxeAlF1fhZjqxCzx0XXlJ2oxnBxGw== 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=z7FDRxLahFR6uDmDIwphTX0R7vjBs5HU4RejtC3PX70=; b=Hi2gJgTG5YVV9dsACnFK9jxAns6TYDe2PzkEJGB/iPrOFF7X2NZgB88zIa5e43M7OuI0NHvZnuj5VIEYETsFWXym5R2GANEPK0uvcTF8zK8wr31KbrcpeQs+vp4oQGfBo83b5EofhOwOV42THOcu3+Xa/J2SnwsFOi0q0lVhlnbEOvs5yuznXw9RuXAwgirUDrfKeLDN+HupHfQEWnkAtzkFZkg64D6wx4s9u18VBujQ3Ydnhs+bmj6E0xIj/6ayxgesO4S3fvcuycrk/G1oWenck7JGmdORgs7S5jHAVnFQr8Rv7Lx+ZR5d0TBmSkd18heVV3lPxits8MUc8n1QJw== Received: from MW4PR04CA0110.namprd04.prod.outlook.com (2603:10b6:303:83::25) by DM4PR12MB6184.namprd12.prod.outlook.com (2603:10b6:8:a6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 17:59:14 +0000 Received: from CO1NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::94) by MW4PR04CA0110.outlook.office365.com (2603:10b6:303:83::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38 via Frontend Transport; Tue, 31 Jan 2023 17:59:13 +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 CO1NAM11FT031.mail.protection.outlook.com (10.13.174.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22 via Frontend Transport; Tue, 31 Jan 2023 17:59:13 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 09:59:05 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 09:59:04 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Tue, 31 Jan 2023 09:59:02 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V10 6/6] arm64: defconfig: Enable UCSI support Date: Tue, 31 Jan 2023 17:57:48 +0000 Message-ID: <20230131175748.256423-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230131175748.256423-1-jonathanh@nvidia.com> References: <20230131175748.256423-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT031:EE_|DM4PR12MB6184:EE_ X-MS-Office365-Filtering-Correlation-Id: 450fe0d3-858f-48a8-0a4e-08db03b4dcef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KhJzkncrdrTOoevo6Ho0lrsU/zMRqnBGcIEGfGSArSbWhe7Jir1XZ+4uT70lm2K/+Kh8I/mBhI889T43d4XZhktMcfbTsaFpjDF8iYq+CxNz5JpTaIqehgHoGJzuI+/2gK1Sfcrmj8nWMaTF/hD1yR/RZxHiYaEAItdSpaqX+kMVccGFqh7MRBI1d75BPUsBD6+0O7CQ5yMNuOJE9gLCmRhdz1Ssuh8YHWbQYbJp60EWYutNqsvrNHkvxwjikvN4owRR30OSVGeQHL1Zz1C0weaoVWZPHz0GtGTiXAjfL09xNk8MHXJzOe+raTknzzatPP+i8DVPOlb+KBsAZHIhlNBzpI5S6kK4PnSRdD8dbQStPox1/AGcIE8rEV0fZ7J7GtbAHjLsWUunjtzRXv9fSTtJGpkj78Pbe0bfbWA8+KuIyNF2MwTmTOJAb1WpN97zW6a3Y0C+HxA3ZH8Ap1mEz36GGJiddyJShqBvRgFWfVA6IsIK3wVYRcidt1oChsymeuY6w52LOySIpkkHW5HPl6Yw5gJ9VXmADyLhhAmPZNzpdNnXLFUiLkY49yEaAX53hlCc+PwIazQCC60ra+ZqiMPAd8V2Z/Cw9VtgPZ5KQRcRQYIaVy+xb+7bEczMN26MbEk0NQp5ZK1LrjD3PCjyD6uQuU5TdliVb6zzxs3IXCz3LtwITiALhpYlZVh1EQjHJH47L5vnzUgwYUb9/jRMjQ== 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:(13230025)(4636009)(136003)(376002)(396003)(346002)(39860400002)(451199018)(46966006)(40470700004)(36840700001)(2906002)(36756003)(82310400005)(4744005)(2616005)(110136005)(336012)(426003)(316002)(54906003)(83380400001)(47076005)(6666004)(107886003)(1076003)(40460700003)(356005)(186003)(7696005)(478600001)(26005)(70206006)(4326008)(70586007)(5660300002)(8936002)(40480700001)(86362001)(36860700001)(41300700001)(8676002)(82740400003)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 17:59:13.7613 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 450fe0d3-858f-48a8-0a4e-08db03b4dcef 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: CO1NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6184 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Enable the TYPEC UCSI support and the Cypress UCSI driver that is used on the NVIDIA Jetson platforms. Signed-off-by: Jon Hunter --- V8 -> V10: no changes V7: Added in V7 arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 984553d55e17..d487d0e2b8e0 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -959,6 +959,8 @@ CONFIG_TYPEC_TCPCI=m CONFIG_TYPEC_FUSB302=m CONFIG_TYPEC_TPS6598X=m CONFIG_TYPEC_HD3SS3220=m +CONFIG_TYPEC_UCSI=m +CONFIG_UCSI_CCG=m CONFIG_MMC=y CONFIG_MMC_BLOCK_MINORS=32 CONFIG_MMC_ARMMMCI=y