From patchwork Mon Nov 14 12:40:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Chang X-Patchwork-Id: 1608 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2120827wru; Mon, 14 Nov 2022 04:44:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7n1uwE1u01QazPUlayrd7TLv/C+W7oVbkhDXmqWtNND9ziIRBOvh/d02mrpgICJfYyp6Ga X-Received: by 2002:a17:906:495:b0:7ae:9188:ddc2 with SMTP id f21-20020a170906049500b007ae9188ddc2mr10159961eja.647.1668429847062; Mon, 14 Nov 2022 04:44:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668429847; cv=pass; d=google.com; s=arc-20160816; b=qGEteybzrVEtCIXQkyM4zYQ6YihvnYf78YDQLVtZxcQIHlMjOGDy88+RhKJTR/hchw joIZqoLaJs4g6QQvjlFckdiUE/nNUPFE4DBviW2hPFU2MGA9PgbAzswphX4fsXqKfwuW 5qpeXDxZiekKNko2oW5ql1M6WPcgwtoak6ko6U5tQPGRGQKiFCJr5EN7Ed1M4jbWhNW0 Y3pDCbmxH3sGDLs6XX4DR46OGhlfgHJJqjAYjuPpcSM4X/oR3BJSqJyRpCfwgZSgI/zl X+JXrzKRF0eOeDluDDroj4qPozlpW0tLldMzqfDLKLDyQaWzNQsHkpJOKmJ3N+f8/BQR OwoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=J0ZQZ2J4ZCZ+q9t9NeKfke1u9CPG6vht03r6vW6WcO0=; b=A97zDEMIdyONiAs45vay8H3c7eB8O6mFBg2NOye4MGGzGzBPLAftqm1IjTY+RQ2iP4 MRForTJwKDSMMzTrCI4snsKA6j8NvAN+SaweHIkm8HYMXbXb/2UYIEmcoUhwqF4NJZOg vVOBfE/eO6x+OZdvJU8ru1pCAkjQP9T0eOeGxUHmkSKPHo1qNxUhSWw0TG8uvHnqrsMD N/cXjbcWGc2k3JPcDTyK+uqM9lhpcK8OBT+NwrgK41eVH+V/sYEwI/nYr+nkpkPDOijD Hx9Lhp67Ef5w922opt6II1Lkb9ai54YJRDTT8/+0zqRkM7NH8VyfJlJOc9V2vpcIkUE5 Yq3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Jps1dGqy; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay24-20020a056402203800b004613ae68ca0si7237205edb.442.2022.11.14.04.43.42; Mon, 14 Nov 2022 04:44:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Jps1dGqy; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237200AbiKNMlW (ORCPT + 99 others); Mon, 14 Nov 2022 07:41:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236154AbiKNMlU (ORCPT ); Mon, 14 Nov 2022 07:41:20 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2056.outbound.protection.outlook.com [40.107.94.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8CDE0DA; Mon, 14 Nov 2022 04:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q7Vscf+MFzZwDVt+BTGKDCNdCiWo2vEcKobvodUxuhDCqrxu5+tksfqRucAra7f7EyGza84AXLaECC/DMg2hRK1OPuzoTZEhZxIUmHgIL4+Bwkq7UOWCIWhKKI53ANr3oEeEh013VU6jvII36gk4R4v33qKbY+D+SrhN6aiDcL3bD8Ud8+QHPfjbNlgeXXYwVbML0z7Z1Lx6PuT+ZuVAWZo7B4KBqnTnIPqOCcwfj7ecaELDWgCZWlcNUF+STbeiy74U/nN7KVJQTdlJQ1HwciX7ecfvjeljPEvlLvOybm0aO9Qwh6aOPr+aFykUbZBO7DM4RCAFcW1OceUkgwj/Zg== 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=J0ZQZ2J4ZCZ+q9t9NeKfke1u9CPG6vht03r6vW6WcO0=; b=LAs9twgdE4k+IV0tfW/vmXlfsV23sKXQlgRcCZGlftO2sG5WAVLwEaMg24MuB+NT2YgO6bOfoFz4iTgYV6Gc4zuYRxnFNuPu1OelqlXX11ug1lnqltwnfQzYu+B2R6uKU5oZTQv1lgkFuHEg0fLBFgEusXiVdrgGrEXfKZR347OMVmIJCjzam+UHvngmxj6j/Xkni7kv5Tivo6UZtSEzu6RC2h7FglzYEpbz4GkJkjsrjbLQCBKFcM2yx5HUPZKkZa2BLHgIIEJQgnRnaOLqHlwoe1+0fcO6oTus2/orGdsW1JXoMeOq4DbCIyceNb373NC6W4jf1ynqhlKXKcje8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=linuxfoundation.org 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=J0ZQZ2J4ZCZ+q9t9NeKfke1u9CPG6vht03r6vW6WcO0=; b=Jps1dGqyh8tgvYK1vM95oBZnmygHEibWze+ZJkkyrvLA5VZPNja/c7XO1DnP8Dzj2oK9WgUX1Uyqqp88UpsxHkld/VMfHKb5WYykyz2pyT6P3TRsf2rp1L/V88/E04iYP1/yh0e+l6ltQvcVq5mtMbztdJzZjyQp5RR6Ux+i5/5Fx7dOy0i+sZnyn8Ej8iJNgcCXWru3RoKWG1KIaTOGC63pA1K1MySIDZ7BxnGYBp9VYuhVmA67oHUmCOANRGXR+I2JTFRDwtZN2CpmUurGZxgxoMYckFaK+Zsoul3DcoRxIsfbhrdwsGx5Wnye7zzNFnutVHhlcIqirwN/Kv/HUA== Received: from BN9PR03CA0248.namprd03.prod.outlook.com (2603:10b6:408:ff::13) by SJ0PR12MB6944.namprd12.prod.outlook.com (2603:10b6:a03:47b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17; Mon, 14 Nov 2022 12:41:17 +0000 Received: from BL02EPF0000EE3C.namprd05.prod.outlook.com (2603:10b6:408:ff:cafe::48) by BN9PR03CA0248.outlook.office365.com (2603:10b6:408:ff::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17 via Frontend Transport; Mon, 14 Nov 2022 12:41:16 +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 BL02EPF0000EE3C.mail.protection.outlook.com (10.167.241.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.11 via Frontend Transport; Mon, 14 Nov 2022 12:41:16 +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; Mon, 14 Nov 2022 04:40:59 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Mon, 14 Nov 2022 04:40:59 -0800 Received: from waynec-Precision-5760.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Mon, 14 Nov 2022 04:40:55 -0800 From: Wayne Chang To: , , , , , , , , , , , , CC: , , , , , , , Subject: [PATCH v3 00/13] Enable USB host and device functions on Jetson Date: Mon, 14 Nov 2022 20:40:40 +0800 Message-ID: <20221114124053.1873316-1-waynec@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3C:EE_|SJ0PR12MB6944:EE_ X-MS-Office365-Filtering-Correlation-Id: 52f8c09f-e25e-45a7-7378-08dac63d85e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pcnPuaKZZSpUKWbNz/ejS2sF8R4R1Jb4mQRbcc/nySaL5BA8wdZ413ILhGx/OwJAg6RZrIvj6VVw4vjYf9KbgzgM9b+8zae5vKJOB8+JilpFZx+tUt8aNSLAXkGSj+vPmngKRXvstgfsqqWTKtv2pzoHGxz0PU/raFkZyD+xjkjtG7A73vdaFayJJhB39FPU3SdD1622bRWfMKWXRqskdvcagCuGyssyevw8s0/2P7nh/b2TAaCUTGXAIJSfuxFXKhYOhizFXzNsicknwXN1j69uQ5NTaMzZ7B5T1qr0YkG/JhkD2/+/wzW5hbJbXaIx4+Dc/WKqsmHk6OIP+KX+oWVL0KmTuqmhNrd7YmGV/9ZRqvNAyWqVQPNfWksvvkepYFXYa4Ik2g85E/5T0QX8Ga2J8EBlxMZ+48ZSw3IuFrVRx+pwk6GyBMZI3YhiDBk3DNDf5XipjJFUX3CBRKpAme7Gf3aCWafukbGGZQQI/wYnGCiiQigSh5lHPHn6e0bGkaPMIT4ZnT651aH1bKmR6DbOrDfsek62DA7iBdklHhzcZ+iRpsmSpWcCuFnPZPvw2zqSbk7fhuHcpGu1U3m+IvKJU1o2ihBe6ykEWmz3Ga3dkCOLaRqv+qrG5Pcg5+par8w69OYHVGhRHVrYEQldbt97Om4M8WsZ5R55op2N2EL3StOqdE6rrCFcwOPU5a91ZsS586btuuYdbrByCrpGb+hMAImvMEkjfQgDBCjG1r66+d0uWQI3w38WYg9iGvpsrAoLFf6b7oKRT4jGmNL9TB7bso25gsIm3Ab/9vhe6RQDXoI3L/gpH5yioKURmZ/O7EjqUfJidTUKnuTZJoosKQDK671AsM64bUESKGPQUcWqoloRb7AQ2DFsYgG+mrVp X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(136003)(346002)(396003)(451199015)(40470700004)(46966006)(36840700001)(6666004)(478600001)(36860700001)(40480700001)(54906003)(6636002)(110136005)(966005)(186003)(426003)(2616005)(7416002)(8936002)(36756003)(41300700001)(336012)(2906002)(26005)(7696005)(5660300002)(47076005)(70586007)(70206006)(316002)(4326008)(8676002)(40460700003)(921005)(83380400001)(1076003)(86362001)(82740400003)(356005)(7636003)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2022 12:41:16.5764 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 52f8c09f-e25e-45a7-7378-08dac63d85e1 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: BL02EPF0000EE3C.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6944 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749475495406079334?= X-GMAIL-MSGID: =?utf-8?q?1749475495406079334?= The patch series enable the USB host and devie functions on Jetson AGX Orin and depend on the following change https://lore.kernel.org/all/20221003125141.123759-1-jonathanh@nvidia.com/ Sing-Han Chen (3): phy: tegra: xusb: Add Tegra234 support usb: host: xhci-tegra: Add Tegra234 XHCI support usb: gadget: tegra-xudc: Add Tegra234 support Wayne Chang (10): dt-bindings: usb: tegra-xudc: Add Tegra234 XUSB controller support dt-bindings: usb: Add NVIDIA Tegra234 XUSB host controller binding dt-bindings: usb: Add binding for Cypress cypd4226 I2C driver arm64: tegra: Enable XUSB host and device on Jetson AGX Orin usb: typec: ucsi_ccg: Add OF support usb: typec: ucsi_ccg: Add cypress,firmware-build as a well-known regex i2c: nvidia-gpu: Add cypress,firmware-build as a well-known regex usb: typec: ucsi_ccg: Remove ccgx,firmware-build property i2c: nvidia-gpu: Remove ccgx,firmware-build property phy: tegra: xusb: Disable trk clk when not in use .../bindings/usb/cypress,cypd4226.yaml | 86 ++++++ .../bindings/usb/nvidia,tegra-xudc.yaml | 24 +- .../bindings/usb/nvidia,tegra234-xusb.yaml | 159 +++++++++++ .../boot/dts/nvidia/tegra234-p3701-0000.dtsi | 48 ++++ .../nvidia/tegra234-p3737-0000+p3701-0000.dts | 175 ++++++++++++ arch/arm64/boot/dts/nvidia/tegra234.dtsi | 170 +++++++++++ drivers/i2c/busses/i2c-nvidia-gpu.c | 4 +- drivers/phy/tegra/Makefile | 1 + drivers/phy/tegra/xusb-tegra186.c | 64 ++++- drivers/phy/tegra/xusb.c | 6 + drivers/phy/tegra/xusb.h | 22 ++ drivers/usb/gadget/udc/tegra-xudc.c | 17 ++ drivers/usb/host/xhci-tegra.c | 270 +++++++++++++++--- drivers/usb/typec/ucsi/ucsi_ccg.c | 22 +- 14 files changed, 1014 insertions(+), 54 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml create mode 100644 Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa