From patchwork Fri Feb 16 12:28:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1900023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=QObrhIvb; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-tegra+bounces-853-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tbrnf3chbz23j8 for ; Fri, 16 Feb 2024 23:28:38 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1DDF51C22FFC for ; Fri, 16 Feb 2024 12:28:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 781A978B5F; Fri, 16 Feb 2024 12:28:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="QObrhIvb" X-Original-To: linux-tegra@vger.kernel.org Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2054.outbound.protection.outlook.com [40.107.93.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B825079941; Fri, 16 Feb 2024 12:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086514; cv=fail; b=j7PWVdC4vlOetijBEBNwTJuda9+l1083Z1V3pf1sjJ2CquQ6Yv82UX9W6TpTyudUFJuB4JO31USSsTcgDE6E6v9PPz4M4YkLGYl/A98UkJei+LEPenEW2Kzob1+pJjKFhCdM8Py8kwr/l5uOY5Wucff36HleTbVGVzlNf9vyEdM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086514; c=relaxed/simple; bh=9deSuKE4ATWSNCuLMScqkQCo7faUjjxjtQ/OKbtkCV4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cKdlb1Tc6zwKkWz5qo70OhiNZaBUTz1/g/nA222Di4tJT6NTsEccVsLtiCX4NnAYbTbGwo2ouOcJt0NcKopS0ZWaFEHLZpv0W0QSl60Yuktfjv3Za7mdbiIqIgy2qY7SVCq88NCWbKWqane+/hvU8upnoi/Kj128+Hl54+2uiGo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=QObrhIvb; arc=fail smtp.client-ip=40.107.93.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H7d9cA/l6ZenEYHaTH2EpCnhD4kXnJh7YZnH19YA0I4XdAmYDt1vWqRBO7Cz4tM43MuGxLraAre6rMjNgmO6f8XVEbA8FLF014XOPesjv+W85xPUFRa+JfVx7/XuLfhnQgP9hGYT2DmtiW13VcHgN763pMitr5zq5ybpdX9p5osdepaw5U6+g3rh+bqioJMYVH78j4dnCb9t5cM2Qbp3J7KGHcah3r2x/Cf3DliQz1WleoWp49dfFCh9i6pQDPR5R8jlR+FniBXsbla89zJTvTxbbA5o5oMv/0sGuqCgPFAb86c1uEEPkvWBUGj7b5SkSPU5dx8xiwZjgU4hN7XQ2A== 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=BSah5M0K1FNnltHMK9u7Ja2uU/lFUh99XWHaAOkM9SM=; b=CPpnncY7FKU5ABB4hrWtgIoOGRl4n0LlHuU5ikFd1/kh+ye3y4JqmkDaKLv/6IRqZJ3oi36Rs+apxrpmquvbiYJcctSn6XFgaLVSC+ihj5L/d5NoxpHb3kB3cS9b+lawYThEU0Ux1gr4kTHbtVq4LLtl9jC+JNU9dW+gZrcO1AT0MihpRTioYyQKC5nZyd4bpOXsxa+zFG1d7ENRLJ/Ex56n1jLyRvecX1dCSMHA69bFI0geKClZI1Tq9Fo782chEOEWqookLxwZYOb490+o5Y6SeEWPj41PQ6whVgaAyQCZpPWwPCSpVUYw77l3tzv/xxQ6J/N3YsdUGtpIJCgQRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=kernel.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 (0) 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=BSah5M0K1FNnltHMK9u7Ja2uU/lFUh99XWHaAOkM9SM=; b=QObrhIvbIUitw1H0BHKW30RrDKB5NqA+n6y0WQUD1fT8Bc3kahxsVgzSOtLA53nmrClff6ENKhVQwyeA67+poUriSRRJL6FVKvLrGqdizJW0Bsm5Uwz+D10mqpRQjwJdTfKkCr3iok/M6W/2G29GNJ4EiBL6NKOYfjdcNhyEO+/v8ranxqbauE2zbufIAwcQtMkU++KyLCuOVnSs7ld7J7nH8ZdbB9BWWWl5RD6HUiSf7CbZHMWGN5HBoDhBq0L8H2/kAj6qagElfnFdWWfWsaHX8Dr11RYTypj8Evrr6Hw5El9aqBttRjEZDk1ry90hXnujUA4/8GiaoRWVmRsJlg== Received: from DM6PR04CA0015.namprd04.prod.outlook.com (2603:10b6:5:334::20) by DS0PR12MB7748.namprd12.prod.outlook.com (2603:10b6:8:130::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.28; Fri, 16 Feb 2024 12:28:28 +0000 Received: from DS2PEPF0000343D.namprd02.prod.outlook.com (2603:10b6:5:334:cafe::c6) by DM6PR04CA0015.outlook.office365.com (2603:10b6:5:334::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.26 via Frontend Transport; Fri, 16 Feb 2024 12:28:28 +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 DS2PEPF0000343D.mail.protection.outlook.com (10.167.18.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Fri, 16 Feb 2024 12:28:28 +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.41; Fri, 16 Feb 2024 04:28:13 -0800 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.1258.12; Fri, 16 Feb 2024 04:28:13 -0800 Received: from moonraker.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Fri, 16 Feb 2024 04:28:12 -0800 From: Jon Hunter To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding CC: , , Jon Hunter Subject: [PATCH 1/3] arm64: tegra: Add current monitors for Jetson Xavier Date: Fri, 16 Feb 2024 12:28:03 +0000 Message-ID: <20240216122805.32529-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240216122805.32529-1-jonathanh@nvidia.com> References: <20240216122805.32529-1-jonathanh@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF0000343D:EE_|DS0PR12MB7748:EE_ X-MS-Office365-Filtering-Correlation-Id: b612cba5-2202-4859-3677-08dc2eeac796 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RHkXarJVJhDhTZLjwml3Q1qBv4c5FDPB6MWQP993TH71UPpSZgNA7z0Cz7/GukVZUlCc3REKrDED2F3NixROYv1oBsc9nIfWrHNHiAOqcIRRQjVizZHokNbLBb/cH2e9jYjRufXRUzQV65LaNOG7mVHALzPLucRx2JOivzCD1ZuuaGV8bFit4kQyaDgIHxJFgd3Nam5dfZfmYdMRw3aEGIXj0YhzOI62eWuK5L6u0WfsHTDVbWqpxTuJyva/B4ncLA1wDFg0BprJgGdEJqv4/s5B61W9afbQOjEn/sQY2snyGfr+F2CMqB3I5ErncsCzcq5MVODO2K7PodxWgX1bAUBMESo7bj9m4c6ti8HzfChMvqWm0K7EzxFzj13UoBF3fPot3ZnhFo5tzC3MuiPwGO9mqDycTye2CJkvzEOW/t0fcNEYoQthtsbFbnx14zar2cgIy17f5dDQir/8SsMSTScLT6o5eNYq/pY9/nntf1KihAZW8+nS6WT1G23GMByYjRChwkdsBvi7iXPl20SYeXRNr49zV2bCm2zcChfghyV6ezTHLnLVirVJtEPd2zqUXuYqfkxuUUS4rOetw2rhnZULxsHo0rWqWsSjKCFM8IHMRX7dKCVLVeGqgtuKzUn7dRugHwgh4BqO7IF5SFHXqI2zKr6ci2Q0NaeYObk8p/g= 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:(13230031)(4636009)(136003)(376002)(396003)(39860400002)(346002)(230922051799003)(1800799012)(36860700004)(451199024)(64100799003)(186009)(82310400011)(46966006)(40470700004)(82740400003)(86362001)(356005)(7636003)(478600001)(70586007)(1076003)(107886003)(7696005)(426003)(70206006)(110136005)(6666004)(316002)(336012)(26005)(36756003)(54906003)(2616005)(2906002)(5660300002)(8676002)(8936002)(4326008)(41300700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2024 12:28:28.4096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b612cba5-2202-4859-3677-08dc2eeac796 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: DS2PEPF0000343D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7748 Add the INA3221 current monitors that are present on the Jetson AGX Xavier and Jetson Xavier NX boards. Signed-off-by: Jon Hunter --- .../arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 50 +++++++++++++++++++ .../arm64/boot/dts/nvidia/tegra194-p3668.dtsi | 27 ++++++++++ 2 files changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi index 5b59c1986e9b..7c57272af044 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi @@ -53,6 +53,56 @@ memory-controller@2c00000 { status = "okay"; }; + i2c@c240000 { + status = "okay"; + + ina3221@40 { + compatible = "ti,ina3221"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + label = "GPU"; + shunt-resistor-micro-ohms = <5000>; + }; + input@1 { + reg = <0x1>; + label = "CPU"; + shunt-resistor-micro-ohms = <5000>; + }; + input@2 { + reg = <0x2>; + label = "SOC"; + shunt-resistor-micro-ohms = <5000>; + }; + }; + + ina3221@41 { + compatible = "ti,ina3221"; + reg = <0x41>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + label = "CV"; + shunt-resistor-micro-ohms = <5000>; + }; + input@1 { + reg = <0x1>; + label = "VDDRQ"; + shunt-resistor-micro-ohms = <5000>; + }; + input@2 { + reg = <0x2>; + label = "SYS5V"; + shunt-resistor-micro-ohms = <5000>; + }; + }; + }; + serial@3110000 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p3668.dtsi b/arch/arm64/boot/dts/nvidia/tegra194-p3668.dtsi index 58f190b0f868..6f5e9d114e2a 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p3668.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194-p3668.dtsi @@ -50,6 +50,33 @@ memory-controller@2c00000 { status = "okay"; }; + i2c@c250000 { + status = "okay"; + + ina3221@40 { + compatible = "ti,ina3221"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + label = "VDD_IN"; + shunt-resistor-micro-ohms = <5000>; + }; + input@1 { + reg = <0x1>; + label = "VDD_CPU_GPU_CV"; + shunt-resistor-micro-ohms = <5000>; + }; + input@2 { + reg = <0x2>; + label = "VDD_SOC"; + shunt-resistor-micro-ohms = <5000>; + }; + }; + }; + serial@3100000 { status = "okay"; }; From patchwork Fri Feb 16 12:28:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1900022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=OWIODMNe; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.80.249; helo=am.mirrors.kernel.org; envelope-from=linux-tegra+bounces-851-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [147.75.80.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tbrnb4Zf7z23j8 for ; Fri, 16 Feb 2024 23:28:35 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0CBD81F24D47 for ; Fri, 16 Feb 2024 12:28:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8674179922; Fri, 16 Feb 2024 12:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="OWIODMNe" X-Original-To: linux-tegra@vger.kernel.org Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2054.outbound.protection.outlook.com [40.107.244.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B70C62CCB4; Fri, 16 Feb 2024 12:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086511; cv=fail; b=iIKGlbkeUS1aqKRU5bTHYK9rjxsTY1FEoEJRa5VUmrn8XFEMUp2LXGL+0dNgSDloTdXvG99Y84Ucm0vyzxxGvzwbj0TlX4uNRN5KdSfcIhLDln8dhSIeMuPiH0+9wELm38xc5bhOfLACpWLxN3QE+CkzGoI9GOTLhXwF9VQZdfM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086511; c=relaxed/simple; bh=RwDcO0G8U1OGOIPxPoIIPIacJTPw6um/pAGtHCjYADk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jdxa/MAtzGXyLj24f379YqRNfra6WtnqLMbh7FsCmO1ixxepR8FKVIRiMRkx+XXddxTyuc+mjjBdkNrQG4AEMrn6BQmc0W/tOMAgESeT8GjqWKtm536zKymTPSx7CC0uaZgMYfkIzO0p4WqTf8x3qfP1pOz0oMcS7JFqQu26CE0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=OWIODMNe; arc=fail smtp.client-ip=40.107.244.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S12ApaVXIq8NpYwQAcjYhYwlVwsxc31/aMPE/ne6YlzzQiIQHLIf7z45EnmyerlvJ06iNngNrKC0jaF+tnrV1oKMlFn4GS6SOGbHnNgz6dy1l8LSLVuLzuBOVCklF1IYBUyHG0xrrS3g0Wq4CZ2/ZO6JS1W3Eym9WwMu4wTglelz815mhuhp6P8qRA7bOcasfTRo3lJLENGvcEVWCCLITDTqWttz6o67iDWIhxhkUFGMr5DJiPwTRqdyHAcHXt84tuaf7qdtcAsY5w7TxgXKYyugroH/s8Oz/48jbwxmMp8z8vc1eThVG/LVTY5a0ufPOURmz6Z318nQUocjpZOjCg== 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=8/cRgmdzk9dkakwkG1MlXemz5AUIYgTShTcIltwxXXs=; b=CprBv/K7IAP0x3/yWPoAkXG8kQoGqdlTbeXkTjMMiMDa+8yPive9DXM0n/3gjW5y7yDbJljn7RS3VdLVtDkC5VgLhMtnKEvokI3xH0rqOaCve1M8GtrawY28Pqx4BNro/yBEsZxD1H9gHYlMV4uLXNtk0Oxo5quGHqFMnWAq/a1YOHrCyggwNE0ueryrCqJbySogXP3zJk8flKqOug9Tvx3vPxugA0WTZ/16LlevS5VSeAupREzhjzNNNJVuWBJ3+Ti30okzJYCrKutnQcbezlgwO4uix1+DxzPb+5ytzvMuTZe1E5HuSlARx4D9ljweaFuTECtj8ZSwoGHJGYhkgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=kernel.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 (0) 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=8/cRgmdzk9dkakwkG1MlXemz5AUIYgTShTcIltwxXXs=; b=OWIODMNe1M49iaThu0EkadzVwDKVeOlABoTqRv+psBxq35C2hDj9vZhdZuPraay5uYmM5F2j0NhvdSoxsvVZkTRJBuZj1xNwcDFdPiZUi2vEvqnSBkdmN1TB+JAv31M7P4lT824mc0amp18wHkE0aP8pTceFkyxKSjkbpNQT66MryMezo0gOl6JgffW7+xrVIbs24Kjd/WRDM6jqJESZRWY86i5zSSW5tbUgWE42feNMBBCaAsqOCbrZTQ9GRgXTqiVAk3GPfIeN3GkPnMhRhmV2IfB58o0CYld9g3VPSP3z/eLrIgT2Xc5MpjHRalU3fvFzgbGgIDaNrYFsU0wY7Q== Received: from CH5PR03CA0023.namprd03.prod.outlook.com (2603:10b6:610:1f1::21) by IA1PR12MB6460.namprd12.prod.outlook.com (2603:10b6:208:3a8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25; Fri, 16 Feb 2024 12:28:26 +0000 Received: from CH1PEPF0000A34A.namprd04.prod.outlook.com (2603:10b6:610:1f1:cafe::51) by CH5PR03CA0023.outlook.office365.com (2603:10b6:610:1f1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.29 via Frontend Transport; Fri, 16 Feb 2024 12:28:26 +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 CH1PEPF0000A34A.mail.protection.outlook.com (10.167.244.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Fri, 16 Feb 2024 12:28:26 +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.41; Fri, 16 Feb 2024 04:28:15 -0800 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.1258.12; Fri, 16 Feb 2024 04:28:15 -0800 Received: from moonraker.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Fri, 16 Feb 2024 04:28:14 -0800 From: Jon Hunter To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding CC: , , Jon Hunter Subject: [PATCH 2/3] arm64: tegra: Add USB device support for Jetson AGX Xavier Date: Fri, 16 Feb 2024 12:28:04 +0000 Message-ID: <20240216122805.32529-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240216122805.32529-1-jonathanh@nvidia.com> References: <20240216122805.32529-1-jonathanh@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A34A:EE_|IA1PR12MB6460:EE_ X-MS-Office365-Filtering-Correlation-Id: 95c03021-aae2-42e6-a2b3-08dc2eeac652 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1tKZOF5+V3S7WvUN/1LrCWGO4hPUK3js+wl8/BHhOX+aojxAFc7J+T1/mikXM5ieumICZ2dIS09StCb5FQjb8bmjRp1/oc8U9M3QeQonqLj0FkqC95tZkOVN9VuPFlOdM5jQBiVNHR3zeY+hJt0bYMJfNqHtYP/bo6yEkdspkOJWo4w/K6Zp+UhC0A2iaJyBPso2zQjxylRfvnpiBPof2cj9wd7s8oJp66BRx8wYad8Z5vlDnS16cfD+KyiqINiPRfqBoLt2cP6ao1sJWWZA3qH3TF+4PKCeyaUzxgYFqQLmGrLyqRjKoJS2/Hg8+y4MG7eCV6nw8rFXazjTbgod5RXDh91iAxq5ZnWDvgN2HLe6F/tsY+2mCJTJBdxFI05wOQ5z6kQyg3FM5nTygJzfO8oFAeyEOU8R/RHQBJebvFxDZ76/8zPRX6bTVYZc42rlXC7Z1+cPvWxjTXWhiWGp4UZoEtOeHYNC/3aaz8bOmqdLebK3gb44PcqNHBR7M7dvAgUr3NPdgTM+qsoJ/f9dLvKp4TQonde/h0MRtyEIZKVGr6e4PzZw69CqUuefdLk5MQScYDCQMurKKq4WauBYeXu496q8/c9q41CgAU1Qic+a2t6+QRDzOjZg29iSAtBh/ezwlo7ZdLI5RZhVBqs1lh7Qlx5cvSEO6hXzcilWe7A= 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:(13230031)(4636009)(346002)(39860400002)(396003)(376002)(136003)(230922051799003)(451199024)(36860700004)(82310400011)(64100799003)(186009)(1800799012)(40470700004)(46966006)(2906002)(4326008)(4744005)(86362001)(70206006)(426003)(7696005)(36756003)(26005)(356005)(6666004)(7636003)(8936002)(478600001)(82740400003)(336012)(107886003)(1076003)(2616005)(5660300002)(8676002)(70586007)(316002)(110136005)(54906003)(41300700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2024 12:28:26.2734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95c03021-aae2-42e6-a2b3-08dc2eeac652 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: CH1PEPF0000A34A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6460 Enable the USB device support for the Jetson AGX Xavier platform. Signed-off-by: Jon Hunter --- arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts index 64a3398fe7a6..63d6cca542f7 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts @@ -2094,6 +2094,14 @@ usb3-3 { }; }; + usb@3550000 { + status = "okay"; + + phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, + <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>; + phy-names = "usb2-0", "usb3-0"; + }; + usb@3610000 { status = "okay"; From patchwork Fri Feb 16 12:28:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1900021 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=qI+zqrOp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-tegra+bounces-852-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TbrnY6qd0z23j8 for ; Fri, 16 Feb 2024 23:28:33 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A5C2B28704D for ; Fri, 16 Feb 2024 12:28:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 549E878662; Fri, 16 Feb 2024 12:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="qI+zqrOp" X-Original-To: linux-tegra@vger.kernel.org Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2055.outbound.protection.outlook.com [40.107.93.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B27378B64; Fri, 16 Feb 2024 12:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086512; cv=fail; b=Kj6RmJw+Jqr72mhFmrZ4QHx1R3G6vj7ZedkIK6K+ZI0u+tpupjsDJV0Nzg23ZDKfbDlAMn+rym2SAI44xmM+XuiXdnF365EW1Inf++sOyQ0a70O3SUQg+4ww7lQvhtELUDgPLvcVCVYP81jc8lp484QTYjV+x64KRv9AoCJwSNQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086512; c=relaxed/simple; bh=vVlhhmVauCpp0m6wyRl20ROjbkL2zfQWKyIwwpSnQhw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bdBbLTQd/xpGaNDPiuspBuDZc+60hrqcXZt1wTRmb1LuJ7/8qlw6jFpisjvviGxgl6/2Ax4ZA/v/z99uA7FZ/iWEwuIuTrusosuH2LExBs0lvuwLBtLpIeAtWuVWiAymVvRfk3nAdMt1bgEMq1XSLdFPSy0NrBgByxvC2cX3YU0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=qI+zqrOp; arc=fail smtp.client-ip=40.107.93.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NOymAMnrd1aIjKW8CvhIVHD4OAeueMVj0MkRjF6YFYg7CBcA9NZK81ZNXMLFwR9+DzezqTBQQJ9ag3pVqYu1aDlWJj8VYfZ0Pp3tTJ9a22sjcWI+fhNk0UU85bm42n0hoean7VpapyHj4rVidyGB5oeVILPxA0RwWFYRj9vErLkHnxID8r5c5rGBIT3jTkWNzYKeMlB9+0bUv/bp01CCdGatpQqv5eQrX2l4eSUQI+WEHIJ/fTiaatGVTX7J8V/gVxQiDTyd6r+IZ1E6e1h8h641z+6Dp4jBBh0pHED3eg9LIM5RNDBq0ETWjsad23XWiB73iZHtMPSZXbNMwdbY0Q== 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=OvtazFFSvOwo4siB8eTESBTrtIG6UEvrpkw9ZzOaGNo=; b=CzWcJ9yTvRCt8QK9qWbHQM9+kzYm/rzH89pu3TCsYjHV4D3uRKFkkWgjdGwvFNPKQ+2JB8W9MdSCZTXJ1VqXUGZ9SxD8BaFRkEIRe8a+WK7BJvzC/gXuffcV47ftR8zXfsL1cTkB0kLZpAqJIXZHW4u1ASSOapO0AT5eTtP/nxky3CN67z8dXuSANQI1vSrAVAmt9XtM5skbLM3L6wRjU0+n8Gwpwiuvp59R6VrO2w2fUYPW41MR0i0cQjGi0rpHPaPx5C8SOLBbaooeGYMfb/T/Vk+kDgxZnSBGr+gIEJVmcdcP6mWDwGch19nDIjXrd/ypuvKmU7TIVMpqsQMAjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=kernel.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 (0) 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=OvtazFFSvOwo4siB8eTESBTrtIG6UEvrpkw9ZzOaGNo=; b=qI+zqrOpTGwGfUE5glK7QN7TuozzFZESevM7hsLK7ftBmdj5MOt9ygxMUlkeLmj/wm5ddrkqFBspC/0HfWnHZKHSwzD0mUGSrVVI2umKTIguCEa/0WuAzUMpuTe5Ys+yfxKMbmmOxymK4/gaMI/tms1pmPsuyKdZCWX2AZL5AJ3vfJSSH4Aq39utBIJauCHtrsNyRlo0AdFW+o7Tg1gDYr7f5v6juGdqOcR4i4lYF3MpxcTTVa5b0mx9aYYtprC4JlnQGpKHvwAdR2hOK8868mKr0KlHGi9O8IhTYR9y+bsFlFLd+AcS1bdZhjtYSy7B6DYU7ltj/Bp1+UNcyAeKvA== Received: from CH5PR03CA0015.namprd03.prod.outlook.com (2603:10b6:610:1f1::13) by LV3PR12MB9094.namprd12.prod.outlook.com (2603:10b6:408:19e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.26; Fri, 16 Feb 2024 12:28:27 +0000 Received: from CH1PEPF0000A34A.namprd04.prod.outlook.com (2603:10b6:610:1f1:cafe::b8) by CH5PR03CA0015.outlook.office365.com (2603:10b6:610:1f1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.26 via Frontend Transport; Fri, 16 Feb 2024 12:28:27 +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 CH1PEPF0000A34A.mail.protection.outlook.com (10.167.244.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Fri, 16 Feb 2024 12:28:27 +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.41; Fri, 16 Feb 2024 04:28:17 -0800 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.1258.12; Fri, 16 Feb 2024 04:28:17 -0800 Received: from moonraker.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Fri, 16 Feb 2024 04:28:15 -0800 From: Jon Hunter To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding CC: , , Jon Hunter Subject: [PATCH 3/3] arm64: tegra: Add USB Type-C controller for Jetson AGX Xavier Date: Fri, 16 Feb 2024 12:28:05 +0000 Message-ID: <20240216122805.32529-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240216122805.32529-1-jonathanh@nvidia.com> References: <20240216122805.32529-1-jonathanh@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A34A:EE_|LV3PR12MB9094:EE_ X-MS-Office365-Filtering-Correlation-Id: 98274d15-7a04-4896-e7a7-08dc2eeac71a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lOXfI0WTOMT0f75EZJ/Qp6qAWv2Yi83lz10QsHAGhZWdmuHwQvWIivg6DII3lpMT5hUWiXFNwc8yIt2SPCvlDlrhUuIKM+53oBH+CPZ9QnzwV7Fz1zcvBQoRAQC2IHyaYKpygr/o4g8PE3xKx0UcUFAZ+aBvVd8mW+k53r/NsCddsiUmAghvCjLjSYGYGlyPfFKnI67istn4Pt/E0iUSoTA825Zoiu3vwsl+ZxdagWA3L64bNPMRLf8/o8DJYpYwR+wRCTtYxuXV6sSX4e3DaW8GstU/1q0K/JhiHXghOyOhQh3oxnNnXg2XaznSwoybJ/Ua++iGMfl2AZCCTZkQnkM2HPJxjgT4wLvW1Agr/0+esPJQu8/qS02/+BI/1l44Et18uNT1uGrfmbGzoI52wzZfQlVo4WD0/Nu274ldLMUJVatihIN2SPN6EQCyxbHMPJh8BzlE1SXdJxzlUT5YU6qoGfTnrFGvJopHf6bt7ad0VcSlKDA8rK8Sx0mOdMKKI3Qgy8J8RukYeADhMz2iHbM4YOXq3pSNSQye8PgXzE99JVYwCl7FeRICLwXEYR9fDph9hzeSQbFQsvryobkLyzHttAG1calctkcYxet89btSESdWvidXtS48CU/kkHvsEK6T11m1nzZEs+fmla22/911u7LxernSEHxRI75bDY0= 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:(13230031)(4636009)(39860400002)(346002)(376002)(396003)(136003)(230922051799003)(36860700004)(1800799012)(64100799003)(82310400011)(186009)(451199024)(40470700004)(46966006)(8676002)(8936002)(2906002)(5660300002)(4326008)(336012)(426003)(83380400001)(356005)(26005)(36756003)(86362001)(82740400003)(1076003)(7636003)(2616005)(7696005)(70206006)(107886003)(110136005)(70586007)(54906003)(316002)(478600001)(6666004)(41300700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2024 12:28:27.5859 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98274d15-7a04-4896-e7a7-08dc2eeac71a 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: CH1PEPF0000A34A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9094 Populate the Cypress USB Type-C controller for Tegra194 Jetson AGX Xavier board. Signed-off-by: Jon Hunter --- .../boot/dts/nvidia/tegra194-p2972-0000.dts | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts index 63d6cca542f7..c32876699a43 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts @@ -2062,8 +2062,15 @@ usb3-3 { ports { usb2-0 { - mode = "host"; + mode = "otg"; + usb-role-switch; status = "okay"; + + port { + hs_typec_p0: endpoint { + remote-endpoint = <&hs_ucsi_ccg_p0>; + }; + }; }; usb2-1 { @@ -2114,6 +2121,40 @@ usb@3610000 { phy-names = "usb2-0", "usb2-1", "usb2-3", "usb3-0", "usb3-2", "usb3-3"; }; + i2c@c240000 { + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio_aon>; + 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 = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + hs_ucsi_ccg_p0: endpoint { + remote-endpoint = <&hs_typec_p0>; + }; + }; + }; + }; + }; + }; + i2c@c250000 { status = "okay";