From patchwork Tue Jan 27 05:03:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Prathamesh Shete X-Patchwork-Id: 2189304 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=ftKqYtnH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=linux-tegra+bounces-11634-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) (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 4f0YH266qnz1xsp for ; Tue, 27 Jan 2026 16:04:30 +1100 (AEDT) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 6C3B33006788 for ; Tue, 27 Jan 2026 05:04:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EB3C328611; Tue, 27 Jan 2026 05:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="ftKqYtnH" X-Original-To: linux-tegra@vger.kernel.org Received: from SN4PR2101CU001.outbound.protection.outlook.com (mail-southcentralusazon11012055.outbound.protection.outlook.com [40.93.195.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 953C92C0285; Tue, 27 Jan 2026 05:04:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.195.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769490266; cv=fail; b=Leri6Waay3O7NT/5IDhoViqP1vNfPVEodb1bWVsMcUHOkGbDAIefEKmVedA4um347zueuxS+BS3aWFbSnThqTDpodQgUUHz+awu7DspUBcHWbxLPGDMeBa0LT5Lga9eTi9giXLxrxL96mc/MlL7dmau/lE8SjgLap3HxSFjUS/k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769490266; c=relaxed/simple; bh=e64opGKISaRCQGszfF7EJSi9zcB5UlQcp50fnwO5DnU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=vB0n4MTDM01D0pg3gkgIjwOdckbB2wYCZHCJ9x6R/O14lMtD1y6FbOpS0REPHr4Aw4i5/ChDcUZNvXpk4Z48xLpm8Yn+CsV+dVzT8ZBHFJ8ZeTcrOsco8Vgd6U54WhTVr4r7TfMGFQSOnkxO+8v5gd7dB+I8p8eGMZ0cNiluUV8= 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=ftKqYtnH; arc=fail smtp.client-ip=40.93.195.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=arcselector10001; d=microsoft.com; cv=none; b=um3JrP7Ra/+h8PCpMwEk0/Cv5UMkJSZfr8hrAdx3tRTwxLHmCtskxqny+iWChYdcCGdQrgadeb5hooZXNBhmKwMdIX5I8I723Yf2fXK5ajSg0z8BQlsP3OTBlg2q7Qi9rhZzJGQ3pV5XoZdr/EPGzW/cAsIQ84vvgjRfzzYQ+tKAO63FiXl4RJjM+B8diWYuu9icqSAWv2aQEuuep4bxt3yFTelKsTedVtbx7hIiyfQHhr1rCwLQxQrgnPeL/YSGGDWym8lbznuB9tg2b5meIjXWl3G4lnSGC7XFfAi23skmWXg6eZgcKRRbLWcWaPXfaTyjW00AXkevh62Vpg6NYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZfvDdHrJ4oR6mI71rnHdERSuGxQEwCnRjfMeMiKvohk=; b=CvOay1eTgBmNqf8fItyKfDLL/aKLcR82BGMNfl3/+dkFhQTZlrfyAZhiVBSVahAZuxbKrEcX+EO0mQK6HWfIwgCrQq46PJb0AeLHmcnH8dDWJYCt2wMzItnc8OrGSJrt6hCQ4xmVWaZ16jxYbh66k0t9BTFs1f1lIITWkOTvqeNPz9hgsLt3JZCpTeNOQmC9wj490RdloWbyKbtxO5GdkL7rWbHirlzqMMID9txU61BB3TOVxiE6inLPJmNPjvKhrG2UH3185K+Np5owOwHyyzUQQm19xo/uCPNP001BLNMIqWgaqMBDZHHpT7mk3dZ51X+KlTQMhYFNaXYfYN1mzg== 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=ZfvDdHrJ4oR6mI71rnHdERSuGxQEwCnRjfMeMiKvohk=; b=ftKqYtnHHsnYAq8+QXP5hn/FU+D5d1rTYbhoyfdHXkrojcyPcTY64bLvUkQSxHcFHfkmkU+3h/nSq9GGco5Hy41O9mCOgp7KMxFId59K3Xua7HwmsiFXeYT0fR0cPKyyHIMNqD4rLabhIXMnWlLthI8qgkcy6evvI9uTm/6zBAbmsqMBXZo8jP/RkGG2khv0m0RmGDgrKa2KLbK/GwPPNauys0HJ9WYSvmEqr5iczq+6hKjOXeHZwBkzLx1kOVauT2zxhRAMv45ZsHlA1EZMxGBvdSBtmfN02Gitow2hNHOVWvUgmow4sfdpIvRiBinEIBp8FeAdxvx1Q+nsl/t+QA== Received: from DM6PR01CA0024.prod.exchangelabs.com (2603:10b6:5:296::29) by PH7PR12MB7284.namprd12.prod.outlook.com (2603:10b6:510:20b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.10; Tue, 27 Jan 2026 05:04:18 +0000 Received: from DS3PEPF0000C37C.namprd04.prod.outlook.com (2603:10b6:5:296:cafe::2c) by DM6PR01CA0024.outlook.office365.com (2603:10b6:5:296::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.16 via Frontend Transport; Tue, 27 Jan 2026 05:04:31 +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 DS3PEPF0000C37C.mail.protection.outlook.com (10.167.23.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Tue, 27 Jan 2026 05:04:18 +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.2562.20; Mon, 26 Jan 2026 21:04:05 -0800 Received: from localhost (10.126.230.35) 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.2562.20; Mon, 26 Jan 2026 21:04:05 -0800 From: Prathamesh Shete To: , , , , , , , , , , CC: Subject: [PATCH v4 1/3] dt-bindings: gpio: Add Tegra264 support Date: Tue, 27 Jan 2026 05:03:56 +0000 Message-ID: <20260127050358.1136279-1-pshete@nvidia.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF0000C37C:EE_|PH7PR12MB7284:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ff6560f-5ac9-4a65-88c4-08de5d618696 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|82310400026|7416014|376014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4IBOX7CYceP09CPHtEyznwjsIfbCdBS?= =?utf-8?q?LsQ7OQ7LzC6R36P3JxZLXhFnfaQaarRe0DQF4kHJo1f7ViJABYpnXMB+BQ5ts5ejv?= =?utf-8?q?qPqGThyO/flYJYHN9oCHpSamEHAVFZyjEYvEhQN5d5aswJAdsqo6xMxj3S6nPtfmD?= =?utf-8?q?f2ekGQnqR0YKu9/+90FeLNwnXULqgGv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Aeck3BSRemKze7rHSQtoH/foFUAbbDMuSnymQP8sGT1?= =?utf-8?q?mFTMC3hTCZIZfMycM49XA2x/eqkiUeu+pAH1diPFi14Xogwwn7kuFTR1uLQqNuYNp?= =?utf-8?q?hyw++zflE5g9zffQ9cB4u2GJ4LB352xHYT45MHcAsD6B3TAOyj81/Be3kWL85XF4R?= =?utf-8?q?iXuM9qbC9iDAbX/6MmG18JXxoqTcTOyERnk3m83xX2DS7aJlsWkOMu8PXsMuYcGR7?= =?utf-8?q?o2yz6Gp9gTANMD5/WntokGv8fmk+klWnRi/JC3fKhgLT0KggWdD3fgkyFfJRZNrFf?= =?utf-8?q?j2Ivzs6EftApwZ37eZmAsHxC+iDrnWjzsxrTreQrEDpA3mtye9MYZ0K//h0MGlAVK?= =?utf-8?q?62Iwc/nS0CQPTdVGYO/a7DzPyqAG5bH0t2tCoo9LNvT4B2ko/kDaiYzSOpsXXQGtV?= =?utf-8?q?kxYFiOTHi53+pfU7B9YZLKx3Wd/+eexwLNhMiAYb1/k71ufjZ+wnKQxNT+HHd+MEJ?= =?utf-8?q?eeuyxw7qnax+jocr3GcLNKSpQWhMJkAR9LUTdwsJWorhKSAP0U7oC2n8i/JgnpWWu?= =?utf-8?q?g1otkHt28XbimDnq0cvmkl5RYrUcL3Rv9oGYFhsWfEeD149YBU4=3D?= 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:(13230040)(36860700013)(1800799024)(82310400026)(7416014)(376014)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2026 05:04:18.2855 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ff6560f-5ac9-4a65-88c4-08de5d618696 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: DS3PEPF0000C37C.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7284 Extend the existing Tegra186 GPIO controller device tree bindings with support for the GPIO controller found on Tegra264. The number of pins is slightly different, but the programming model remains the same. Add a new header, include/dt-bindings/gpio/tegra264-gpio.h, that defines port IDs as well as the TEGRA264_MAIN_GPIO() helper, both of which are used in conjunction to create a unique specifier for each pin. On Tegra, GPIO wake events are latched and routed via the PMC. Document the standard DT property, wakeup-parent, which is a phandle to the PMC interrupt controller that provides the parent wake interrupt domain for the GPIO controller. If the property is absent the driver falls back to a compatible-based lookup. Signed-off-by: Prathamesh Shete Acked-by: Thierry Reding --- Changes in v4: * Drop local $ref for wakeup-parent (use dt-schema default) and inline its description. Changes in v3: * Fix DT binding SPDX license to GPL-2.0-only OR BSD-2-Clause Changes in v2: * Update DT binding to use “wakeup-parent” (drop custom nvidia,pmc). * Require “wakeup-parent” for Tegra264 compatibles in the binding. * Rename header file to "nvidia,tegra264-gpio.h". --- .../bindings/gpio/nvidia,tegra186-gpio.yaml | 22 +++++++ .../dt-bindings/gpio/nvidia,tegra264-gpio.h | 62 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 include/dt-bindings/gpio/nvidia,tegra264-gpio.h diff --git a/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.yaml b/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.yaml index 2bd620a1099b..17748dd1015d 100644 --- a/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.yaml @@ -86,6 +86,9 @@ properties: - nvidia,tegra234-gpio - nvidia,tegra234-gpio-aon - nvidia,tegra256-gpio + - nvidia,tegra264-gpio + - nvidia,tegra264-gpio-uphy + - nvidia,tegra264-gpio-aon reg-names: items: @@ -110,6 +113,10 @@ properties: ports, in the order the HW manual describes them. The number of entries required varies depending on compatible value. + wakeup-parent: + description: Phandle to the parent interrupt controller used for wake-up. On + Tegra, this typically references the PMC interrupt controller. + gpio-controller: true gpio-ranges: @@ -157,6 +164,8 @@ allOf: - nvidia,tegra194-gpio - nvidia,tegra234-gpio - nvidia,tegra256-gpio + - nvidia,tegra264-gpio + - nvidia,tegra264-gpio-uphy then: properties: interrupts: @@ -171,12 +180,25 @@ allOf: - nvidia,tegra186-gpio-aon - nvidia,tegra194-gpio-aon - nvidia,tegra234-gpio-aon + - nvidia,tegra264-gpio-aon then: properties: interrupts: minItems: 1 maxItems: 4 + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra264-gpio + - nvidia,tegra264-gpio-uphy + - nvidia,tegra264-gpio-aon + then: + required: + - wakeup-parent + required: - compatible - reg diff --git a/include/dt-bindings/gpio/nvidia,tegra264-gpio.h b/include/dt-bindings/gpio/nvidia,tegra264-gpio.h new file mode 100644 index 000000000000..63a3541c2fb0 --- /dev/null +++ b/include/dt-bindings/gpio/nvidia,tegra264-gpio.h @@ -0,0 +1,62 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. */ + +/* + * This header provides constants for binding nvidia,tegra264-gpio*. + * + * The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below + * provide names for this. + * + * The second cell contains standard flag values specified in gpio.h. + */ + +#ifndef _DT_BINDINGS_GPIO_TEGRA264_GPIO_H +#define _DT_BINDINGS_GPIO_TEGRA264_GPIO_H + +#include + +/* GPIOs implemented by main GPIO controller */ +#define TEGRA264_MAIN_GPIO_PORT_T 0 +#define TEGRA264_MAIN_GPIO_PORT_U 1 +#define TEGRA264_MAIN_GPIO_PORT_V 2 +#define TEGRA264_MAIN_GPIO_PORT_W 3 +#define TEGRA264_MAIN_GPIO_PORT_AL 4 +#define TEGRA264_MAIN_GPIO_PORT_Y 5 +#define TEGRA264_MAIN_GPIO_PORT_Z 6 +#define TEGRA264_MAIN_GPIO_PORT_X 7 +#define TEGRA264_MAIN_GPIO_PORT_H 8 +#define TEGRA264_MAIN_GPIO_PORT_J 9 +#define TEGRA264_MAIN_GPIO_PORT_K 10 +#define TEGRA264_MAIN_GPIO_PORT_L 11 +#define TEGRA264_MAIN_GPIO_PORT_M 12 +#define TEGRA264_MAIN_GPIO_PORT_P 13 +#define TEGRA264_MAIN_GPIO_PORT_Q 14 +#define TEGRA264_MAIN_GPIO_PORT_R 15 +#define TEGRA264_MAIN_GPIO_PORT_S 16 +#define TEGRA264_MAIN_GPIO_PORT_F 17 +#define TEGRA264_MAIN_GPIO_PORT_G 18 + +#define TEGRA264_MAIN_GPIO(port, offset) \ + ((TEGRA264_MAIN_GPIO_PORT_##port * 8) + (offset)) + +/* GPIOs implemented by AON GPIO controller */ +#define TEGRA264_AON_GPIO_PORT_AA 0 +#define TEGRA264_AON_GPIO_PORT_BB 1 +#define TEGRA264_AON_GPIO_PORT_CC 2 +#define TEGRA264_AON_GPIO_PORT_DD 3 +#define TEGRA264_AON_GPIO_PORT_EE 4 + +#define TEGRA264_AON_GPIO(port, offset) \ + ((TEGRA264_AON_GPIO_PORT_##port * 8) + (offset)) + +#define TEGRA264_UPHY_GPIO_PORT_A 0 +#define TEGRA264_UPHY_GPIO_PORT_B 1 +#define TEGRA264_UPHY_GPIO_PORT_C 2 +#define TEGRA264_UPHY_GPIO_PORT_D 3 +#define TEGRA264_UPHY_GPIO_PORT_E 4 + +#define TEGRA264_UPHY_GPIO(port, offset) \ + ((TEGRA264_UPHY_GPIO_PORT_##port * 8) + (offset)) + +#endif + From patchwork Tue Jan 27 05:03:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Prathamesh Shete X-Patchwork-Id: 2189305 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=XRg3Fh4v; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-tegra+bounces-11635-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (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 4f0YH45fsSz1xsp for ; Tue, 27 Jan 2026 16:04:32 +1100 (AEDT) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 4D8E5301AB89 for ; Tue, 27 Jan 2026 05:04:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 221D832863B; Tue, 27 Jan 2026 05:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="XRg3Fh4v" X-Original-To: linux-tegra@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011002.outbound.protection.outlook.com [52.101.62.2]) (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 7D9A232692A; Tue, 27 Jan 2026 05:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.2 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769490266; cv=fail; b=JJwGAF/BBx/MhaD/nWU2P49aCc7a299UhN2cK6o7IpWbwpgMN+fQ5AKHqhZLRaxaPLWhw5D6nhdrtETcAdu8WJhvnV21x4I9EZMnZJw8xfO9JzamOP/7lOUIXNC6DrRifwbotb41PpyfCQ6AK97+SC0oV7GQ01azEKpDJQi+jPI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769490266; c=relaxed/simple; bh=JxEBGfjiX9MK5qnjl6K7d5Fi4P0RPk0cU6W+5Im0+PQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jJXp0JaiePfljgkVs0oFEmEUYocu8LQXpe1wfANLKeM/Bm0CdMzBjF2JXFG3a9HV3oFJTSz/XTyxUQYa55NlvDsA5+yU8O1iMlutsbJ9yd2eDnBMdsVbAKwAIYtHhIduOFTKjHlc82Fd+L3fmaIY3cJcQjMXNtcDHSUeTu8He/k= 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=XRg3Fh4v; arc=fail smtp.client-ip=52.101.62.2 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=arcselector10001; d=microsoft.com; cv=none; b=O/8/uuj55bHm1CU3LKdHGiNtfZyWl/xL4FF99R6mA1uRuyjKuODWaXauE1N3GrFyfq71jDBg43drNYDodFVE4SIH4Mycv6hXFZPNN4W6W7L+VSOU0woMVHFsEjaAU2NbzKDDpbq4m8CXPPenQ1S0s+XnJGInLnT9BMmry83LDZ0ZBYj8+D4CLJIuTLDA5Kkd4X/G+f/E3yqTagsGbnW7jWHsOoyxa32mp6cFd2Fo1fQehqXhBKptyn16wUP7slleaQV7oUXFbCTrTeEgFYujzfP6A1dEPb9UeyUsZfCVq3G+eM3esbJM44l9VwbReqMofC/sqvS6qKSlBk+vzE7DFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rFtQZcf3ocvWMkwn4FmtohU3EiCaY5i2nrDP98D7cc0=; b=ShyzS807u9Hrh4aH/rc0GIZoWWdrcWhzIYAMYAH7T629f1dFz6X05W8Gcne185D2x6feFKfrEe0zOBOd1otAbAAS8Oog6hBGdaIlL7hufy4x37KIh38KAfWaK7azEChgAQWhHOYugQxfKgdCToUEWbDOYDMj4DWCMO333iUPUfZekYw8prVjUGWqqHHF6oBaJO2qqNLkSoc4rP07X9L/wiykuVrrrzq52g+fL91IsxBxAeSbRn7NPtDc/a0lYjOwDGzNOAmzKW7H5drioHTmEd1Mjbjrac8GesfohamuuASdfCWB26C51+5jz+ELJdaxAm+FFuNVjccC80Ta2atDJg== 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=rFtQZcf3ocvWMkwn4FmtohU3EiCaY5i2nrDP98D7cc0=; b=XRg3Fh4vlJfgriBwNXPP5W42gZNg0rpJf0VNwxtF2MP0Lh7Ew73vGTWjIrhPU0uzzNSgtdyhpbzpxO0P4HzciIoGGI/fNDb0LPQl1cCxdv5yY86DOOKL6nqF5Okf3obkiMSkK7Z21ZrJ7LwGUN1zBMFLGBIkUSFEbRm0gpxGV1TaQ+VWChwAA+bYk2sNJSEBNz+r7oUVcKWT84LpDUgD6oXiBYxs/OBGYGseDE6u8I8VAav9Eauoyr/uVERn91VpP4fWPWTQ2f96PfNpxUee3wMxIYsV6BSMXp9dP/+Mwe/oiwHadkXy7VPznw2syv6Qk5LKUVb4p8CZaCqtEVnZPw== Received: from CH5P223CA0004.NAMP223.PROD.OUTLOOK.COM (2603:10b6:610:1f3::24) by SA0PR12MB7076.namprd12.prod.outlook.com (2603:10b6:806:2d5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.15; Tue, 27 Jan 2026 05:04:21 +0000 Received: from DS3PEPF0000C37D.namprd04.prod.outlook.com (2603:10b6:610:1f3:cafe::e7) by CH5P223CA0004.outlook.office365.com (2603:10b6:610:1f3::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9564.7 via Frontend Transport; Tue, 27 Jan 2026 05:04:21 +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 DS3PEPF0000C37D.mail.protection.outlook.com (10.167.23.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Tue, 27 Jan 2026 05:04:20 +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.2562.20; Mon, 26 Jan 2026 21:04:11 -0800 Received: from localhost (10.126.231.35) 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.2562.20; Mon, 26 Jan 2026 21:04:11 -0800 From: Prathamesh Shete To: , , , , , , , , , , CC: Subject: [PATCH v4 2/3] gpio: tegra186: Add support for Tegra264 Date: Tue, 27 Jan 2026 05:03:57 +0000 Message-ID: <20260127050358.1136279-2-pshete@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260127050358.1136279-1-pshete@nvidia.com> References: <20260127050358.1136279-1-pshete@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF0000C37D:EE_|SA0PR12MB7076:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f8c0f2c-6d69-43f3-e146-08de5d618824 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|7416014|376014|82310400026|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ddjFbqboCr60DaXdklfFb5ScwqWXe9m?= =?utf-8?q?+XgBStHvyqZa2qRwkOT9uYiwTLg9UeeqLVLoE5raf906c0bpol4ABjEyVp/OZ0Cc4?= =?utf-8?q?a9IwGN2mVSh0iNVGV8krRFLqpLCvSYtTl9Ci/uCEd1dL4fT1KbvLyFH0obTAF6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f-8?q?dd2MkdHlDicsXI6HANN3giyzXrovoGgLNIivfhcu8aDjoFun6+yrV/HTAWkHo5yJ5?= =?utf-8?q?brI/JWMzHQe95gmNhNIXOvqzwPSwN93cNbkxUGDTFFG49CRHS1OMsYdtXh94/hM/i?= =?utf-8?q?05qvsz5xGEUsRIoQ4e4qlCzCCn2XjkxUGJ+KBoFtKMgvwabfNpCIeTTr2bNAZyypC?= =?utf-8?q?6VNf+M5dr7gR77re+ufhh9LbaBmO6XqS5GwbQWGSA17wIL3wM1ymE4F/W49E47X3+?= =?utf-8?q?jzcStLMNJaWXHGrkqicpTvg6GGfKL2P59hwmmwRztMXdZjkI4leecduvZxr4qV3Yp?= =?utf-8?q?Lt3i4XSdT3RiC9BojEebDuyyn3c8F1C8gQfxmBbu7ydkgWgXmIjsPf1N+efUUGOxI?= =?utf-8?q?yfU53PJRSGTKeK4X7cxCKykbmV4MR3hZhgYfK5/Skf26nMECt7TwvYl4P8AfCXZcH?= =?utf-8?q?IgF1G6k/0+ZWp6vM6TjJMMIyyd/7klKys3Kj0yl9g3zILpL4Ru57PcPWX/oXJJNt9?= =?utf-8?q?ZM69/xi9KFZd7F0A+Z4n95EFWUlWmVPhwWy/IPwERQpWe3iIyYLgIQl0H3a7qE5fD?= =?utf-8?q?tgYnZRGkYQyDKRw+8hVXlP/HnDlzbd7QtDfr45VCKVJC0jWp/ko=3D?= 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:(13230040)(36860700013)(1800799024)(7416014)(376014)(82310400026)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2026 05:04:20.9431 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f8c0f2c-6d69-43f3-e146-08de5d618824 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: DS3PEPF0000C37D.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7076 Extend the existing Tegra186 GPIO controller driver with support for the GPIO controller found on Tegra264. Use the "wakeup-parent" phandle from the GPIO device tree node to ensure the GPIO driver associates with the intended PMC device. Relying only on compatible-based lookup can select an unexpected PMC node, so fall back to compatible-based lookup when the phandle is not present. Signed-off-by: Prathamesh Shete Reviewed-by: Jon Hunter Acked-by: Thierry Reding --- Changes in v2: * Use “wakeup-parent” instead of "nvidia,pmc" and include the renamed header. --- drivers/gpio/gpio-tegra186.c | 90 +++++++++++++++++++++++++++++++++++- 1 file changed, 88 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c index b1498b59a921..9c874f07be75 100644 --- a/drivers/gpio/gpio-tegra186.c +++ b/drivers/gpio/gpio-tegra186.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2025 NVIDIA Corporation + * Copyright (c) 2016-2026 NVIDIA Corporation * * Author: Thierry Reding * Dipen Patel @@ -21,6 +21,7 @@ #include #include #include +#include /* security registers */ #define TEGRA186_GPIO_CTL_SCR 0x0c @@ -1001,7 +1002,9 @@ static int tegra186_gpio_probe(struct platform_device *pdev) if (gpio->soc->num_irqs_per_bank > 1) tegra186_gpio_init_route_mapping(gpio); - np = of_find_matching_node(NULL, tegra186_pmc_of_match); + np = of_parse_phandle(pdev->dev.of_node, "wakeup-parent", 0); + if (!np) + np = of_find_matching_node(NULL, tegra186_pmc_of_match); if (np) { if (of_device_is_available(np)) { irq->parent_domain = irq_find_host(np); @@ -1277,6 +1280,80 @@ static const struct tegra_gpio_soc tegra241_aon_soc = { .has_vm_support = false, }; +#define TEGRA264_MAIN_GPIO_PORT(_name, _bank, _port, _pins) \ + TEGRA_GPIO_PORT(TEGRA264_MAIN, _name, _bank, _port, _pins) + +static const struct tegra_gpio_port tegra264_main_ports[] = { + TEGRA264_MAIN_GPIO_PORT(F, 3, 0, 8), + TEGRA264_MAIN_GPIO_PORT(G, 3, 1, 5), + TEGRA264_MAIN_GPIO_PORT(H, 1, 0, 8), + TEGRA264_MAIN_GPIO_PORT(J, 1, 1, 8), + TEGRA264_MAIN_GPIO_PORT(K, 1, 2, 8), + TEGRA264_MAIN_GPIO_PORT(L, 1, 3, 8), + TEGRA264_MAIN_GPIO_PORT(M, 1, 4, 6), + TEGRA264_MAIN_GPIO_PORT(P, 2, 0, 8), + TEGRA264_MAIN_GPIO_PORT(Q, 2, 1, 8), + TEGRA264_MAIN_GPIO_PORT(R, 2, 2, 8), + TEGRA264_MAIN_GPIO_PORT(S, 2, 3, 2), + TEGRA264_MAIN_GPIO_PORT(T, 0, 0, 7), + TEGRA264_MAIN_GPIO_PORT(U, 0, 1, 8), + TEGRA264_MAIN_GPIO_PORT(V, 0, 2, 8), + TEGRA264_MAIN_GPIO_PORT(W, 0, 3, 8), + TEGRA264_MAIN_GPIO_PORT(X, 0, 7, 6), + TEGRA264_MAIN_GPIO_PORT(Y, 0, 5, 8), + TEGRA264_MAIN_GPIO_PORT(Z, 0, 6, 8), + TEGRA264_MAIN_GPIO_PORT(AL, 0, 4, 3), +}; + +static const struct tegra_gpio_soc tegra264_main_soc = { + .num_ports = ARRAY_SIZE(tegra264_main_ports), + .ports = tegra264_main_ports, + .name = "tegra264-gpio", + .instance = 0, + .num_irqs_per_bank = 8, + .has_vm_support = true, +}; + +#define TEGRA264_AON_GPIO_PORT(_name, _bank, _port, _pins) \ + TEGRA_GPIO_PORT(TEGRA264_AON, _name, _bank, _port, _pins) + +static const struct tegra_gpio_port tegra264_aon_ports[] = { + TEGRA264_AON_GPIO_PORT(AA, 0, 0, 8), + TEGRA264_AON_GPIO_PORT(BB, 0, 1, 2), + TEGRA264_AON_GPIO_PORT(CC, 0, 2, 8), + TEGRA264_AON_GPIO_PORT(DD, 0, 3, 8), + TEGRA264_AON_GPIO_PORT(EE, 0, 4, 4) +}; + +static const struct tegra_gpio_soc tegra264_aon_soc = { + .num_ports = ARRAY_SIZE(tegra264_aon_ports), + .ports = tegra264_aon_ports, + .name = "tegra264-gpio-aon", + .instance = 1, + .num_irqs_per_bank = 8, + .has_vm_support = true, +}; + +#define TEGRA264_UPHY_GPIO_PORT(_name, _bank, _port, _pins) \ + TEGRA_GPIO_PORT(TEGRA264_UPHY, _name, _bank, _port, _pins) + +static const struct tegra_gpio_port tegra264_uphy_ports[] = { + TEGRA264_UPHY_GPIO_PORT(A, 0, 0, 6), + TEGRA264_UPHY_GPIO_PORT(B, 0, 1, 8), + TEGRA264_UPHY_GPIO_PORT(C, 0, 2, 3), + TEGRA264_UPHY_GPIO_PORT(D, 1, 0, 8), + TEGRA264_UPHY_GPIO_PORT(E, 1, 1, 4), +}; + +static const struct tegra_gpio_soc tegra264_uphy_soc = { + .num_ports = ARRAY_SIZE(tegra264_uphy_ports), + .ports = tegra264_uphy_ports, + .name = "tegra264-gpio-uphy", + .instance = 2, + .num_irqs_per_bank = 8, + .has_vm_support = true, +}; + #define TEGRA256_MAIN_GPIO_PORT(_name, _bank, _port, _pins) \ TEGRA_GPIO_PORT(TEGRA256_MAIN, _name, _bank, _port, _pins) @@ -1368,6 +1445,15 @@ static const struct of_device_id tegra186_gpio_of_match[] = { }, { .compatible = "nvidia,tegra256-gpio", .data = &tegra256_main_soc + }, { + .compatible = "nvidia,tegra264-gpio", + .data = &tegra264_main_soc + }, { + .compatible = "nvidia,tegra264-gpio-aon", + .data = &tegra264_aon_soc + }, { + .compatible = "nvidia,tegra264-gpio-uphy", + .data = &tegra264_uphy_soc }, { /* sentinel */ } From patchwork Tue Jan 27 05:03:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Prathamesh Shete X-Patchwork-Id: 2189308 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=h6zE3QIl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=linux-tegra+bounces-11636-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [IPv6:2600:3c04:e001:36c::12fc:5321]) (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 4f0YHH597sz1xtP for ; Tue, 27 Jan 2026 16:04:43 +1100 (AEDT) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 702353013EF0 for ; Tue, 27 Jan 2026 05:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49DF232861B; Tue, 27 Jan 2026 05:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="h6zE3QIl" X-Original-To: linux-tegra@vger.kernel.org Received: from PH8PR06CU001.outbound.protection.outlook.com (mail-westus3azon11012012.outbound.protection.outlook.com [40.107.209.12]) (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 B714A328608; Tue, 27 Jan 2026 05:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.209.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769490280; cv=fail; b=VLrGzLjwo/A+5exope0sfUkkCciWrKZukIeByo0JnLg4mVZB+gVQlrmgtwFUNSwYT7tIEJuzvhorMyAfQQVzFmOms9V014OOQpIP4Gnh8ucXx5dL0kmNIZdc8rjmxH4tuVIaq/SmHbo+ztxlb8fV2R8yFMOg5U1fHv63rHtpfwQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769490280; c=relaxed/simple; bh=044D9XlTxrs02Sy1EaPlOhDtVXdZOBC3pjVTahmY3E4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iFUYVmebJGP90dgGUJxt1I/T9sr5vTisuP8cDFKvNPjQ/2bk18gEMdoj/oME7UJQunmjB7mM2gLaZ8TJh6OJNuDXnWod11mzxk2z7v7Z3EzvD+cXoZFJ7/yn0zf7dPUjJ1NeBgobZF+SgyPGNPxJmHXg03fSEJ+EcTL0FNyRKZM= 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=h6zE3QIl; arc=fail smtp.client-ip=40.107.209.12 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=arcselector10001; d=microsoft.com; cv=none; b=W2eiegZrIjLxCWWY2Bb5aDmxnuE+LjVVk9ORRrt1SS/lLQ1W4X/XlBLy5xyLoEDq6xTY5lBaHIfSnqNsyV2kR316mc3x0vvdy3Lyw5Sp8RrwScku9EIGnXXyA3Qh2Fzy4oB8FcHJEqggcJML/y6Bpz9EoyBGkXFrG8Tr3dV+BwXICbaoscOAzt8fF1kAmf2URR/71GzFhQaobiZMK2Lr4e+/fOnfQA1284B2Yiyg4hrgjh1XiLLYm4vZpo5ZDmCLTciV2BUvHz6N6gWFn+0ez4LVquvNHFnYhk8NYmCYkBlbshTb8TNSkidkZklmcblzMhLjCERChUx1hathz4eaCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=noqUG0bgzb0Mz26bny+vYut7xyNQTS0q20oZpC/B5Os=; b=Y5YXc2OIeUV9yLVdPPYTWmo7ble2jI5/7S1urjQqhQgKxIJl/r/XG9aVGvRPQtzregNln5a/PJnML8l1HllmNwSIBV2wTBEXK3JPI3woHgvirX5CF4DRwrQe5PkXrukKdlyJT7se0HqYNd+DPEDO5ccFgBg4fYN2dXLr6oCOGGXIMuOdz4QIbcVcsBVCY1V94CQquF+Sljvo3VOwxDY81v3JB8gVCOmnYQj3Q9xkmSUoFBxq5YM78SRSBOAJurKdKyLrVdBtJh13Et98ivSYdhIb2eL9VqIuuaVFyX8OBIF4UIo9Lk8cRvdIsXaKLETmUPdHBT4a3TwWoTExI7dJKQ== 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=noqUG0bgzb0Mz26bny+vYut7xyNQTS0q20oZpC/B5Os=; b=h6zE3QIlwhChXVcSp2oLhCfW4Bmj9OA3soMJBb+TK8lxLDfUgK0bPOh96o+MZgEiDNYB1FC1/8OMaO9DyqXNvIwh8gDsN34HYoqVcSQhqg8HMaAm3BtgWyJ/IIgSp2rNwBFOHYvtYFr2jP4mBYvOh57FJg0nvAXMOlA5w8PtU3gfv0cXEWqH5uAuGs7T68beHosmRZWZDE95YN7EOqeHRjer7I3NXyWHxEiF3aYgz/3Xqc1SMG9/FjPfVSp+B0WhbmEXyoBtTn34OmB91RTp4W+uZdB4EFPVzC++QAVsWZ1HSaJISG187oagX21tdlED7pnzyu612EWGCg8GdB7z3g== Received: from BLAPR03CA0068.namprd03.prod.outlook.com (2603:10b6:208:329::13) by SA0PR12MB4400.namprd12.prod.outlook.com (2603:10b6:806:95::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.7; Tue, 27 Jan 2026 05:04:34 +0000 Received: from BN2PEPF000044AA.namprd04.prod.outlook.com (2603:10b6:208:329:cafe::a1) by BLAPR03CA0068.outlook.office365.com (2603:10b6:208:329::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.14 via Frontend Transport; Tue, 27 Jan 2026 05:04:34 +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 BN2PEPF000044AA.mail.protection.outlook.com (10.167.243.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Tue, 27 Jan 2026 05:04:34 +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.2562.20; Mon, 26 Jan 2026 21:04:24 -0800 Received: from localhost (10.126.230.35) 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.2562.20; Mon, 26 Jan 2026 21:04:23 -0800 From: Prathamesh Shete To: , , , , , , , , , , CC: Subject: [PATCH v4 3/3] arm64: tegra: Add Tegra264 GPIO controllers Date: Tue, 27 Jan 2026 05:03:58 +0000 Message-ID: <20260127050358.1136279-3-pshete@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260127050358.1136279-1-pshete@nvidia.com> References: <20260127050358.1136279-1-pshete@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AA:EE_|SA0PR12MB4400:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ed4d0be-9bd0-4521-0c13-08de5d61900a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|376014|7416014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?41jj4Oz1OwbBs3S1qGAkoVLsWXINpH2?= =?utf-8?q?QHEvwoj+kX138NQOW16A1YXCHpeJU3bet+X1W7qqFuG1oWvLlvnxlql7nOQBBZPG9?= =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Yr9?= =?utf-8?q?eXelM7F+fW/nXYgaXhrulzL7zJl5tvCajqtdnQQaf/SXRU0lInO+rVbCk3rPq61W6?= =?utf-8?q?5LE5Ts36zEy57ODoWKLrJ/zeBT2Yp5G1rv+/l37dXhjEW7TKZJSnvx2yxuu5XRSxk?= =?utf-8?q?7taNvpqlZHyzgoHVaYf62Ki0mOm1C4wpHPcANYyr9Ps2EX5zZBCnMBHgWpkLUaRXz?= =?utf-8?q?vMBeMJ6mv2SpUc8aSDfhdmzFWe6yxmKEjmadyybR4fFEBDvvlGaMWu51cEZVTLdXx?= =?utf-8?q?CP4VMu2m+vNSC4g1gOZnlpvRVrOV58JpwRDOlbeeiL9rNydv1jrsC2u/DMtrWQsTL?= =?utf-8?q?/05qvbZzi20UCBYo7E1TejIF6f0ZSjpDjSKUGcXEFlxKXheTgSg+0OdvKACE4Hd4Z?= =?utf-8?q?LBn0xAvqGo8ct+mF88pq5x0liSqsPh5oGQzPLiRIEta8RF6OfdATw1OzO5LaztqSg?= =?utf-8?q?/wTUSkle4o3ggSE6CCfqW6O/WVHq3ShX1S3yydxuNMQQw/lam3scJrMq0E77Ggyqi?= =?utf-8?q?5szE5SdteO6Dn+dSCiLazAfGHu5FjtHijjbJLV2verjw4koN0RMbKmHrLmNDoj3Gs?= =?utf-8?q?HrvDTJPRJFXwg7JNNAN8yDaTfJoBLLkCtb0VTeHPZwFeN9/WebsPx0991kbL7XUo7?= =?utf-8?q?WDBigREOagH/ZLnAFfG4Reo+q/hB2DfEyDuvF7YuOfrTWzv8a64=3D?= 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:(13230040)(1800799024)(36860700013)(82310400026)(376014)(7416014)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2026 05:04:34.1103 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ed4d0be-9bd0-4521-0c13-08de5d61900a 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: BN2PEPF000044AA.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4400 Add device tree nodes for MAIN, AON and UPHY GPIO controller instances. Signed-off-by: Prathamesh Shete Reviewed-by: Jon Hunter --- Changes in v2: * Update Tegra264 GPIO nodes to use “wakeup-parent”. --- arch/arm64/boot/dts/nvidia/tegra264.dtsi | 88 ++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi index f137565da804..cf4de2c517fa 100644 --- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi @@ -3277,6 +3277,50 @@ status = "disabled"; }; + gpio_main: gpio@c300000 { + compatible = "nvidia,tegra264-gpio"; + reg = <0x00 0x0c300000 0x0 0x4000>, + <0x00 0x0c310000 0x0 0x4000>; + reg-names = "security", "gpio"; + wakeup-parent = <&pmc>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + serial@c4e0000 { compatible = "nvidia,tegra264-utc"; reg = <0x0 0x0c4e0000 0x0 0x8000>, @@ -3347,6 +3391,22 @@ #interrupt-cells = <2>; interrupt-controller; }; + + gpio_aon: gpio@cf00000 { + compatible = "nvidia,tegra264-gpio-aon"; + reg = <0x0 0x0cf00000 0x0 0x10000>, + <0x0 0x0cf10000 0x0 0x1000>; + reg-names = "security", "gpio"; + wakeup-parent = <&pmc>; + interrupts = , + , + , + ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; /* TOP_MMIO */ @@ -3726,6 +3786,34 @@ ranges = <0x00 0x00000000 0xa8 0x00000000 0x40 0x00000000>, /* MMIO, ECAM, prefetchable memory, I/O */ <0x80 0x00000000 0x00 0x20000000 0x00 0x40000000>; /* non-prefetchable memory (32-bit) */ + + gpio_uphy: gpio@8300000 { + compatible = "nvidia,tegra264-gpio-uphy"; + reg = <0x00 0x08300000 0x0 0x2000>, + <0x00 0x08310000 0x0 0x2000>; + reg-names = "security", "gpio"; + wakeup-parent = <&pmc>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; cpus {