From: Kartik Rajput <kkartik@nvidia.com>
To: Jon Hunter <jonathanh@nvidia.com>,
linus.walleij@linaro.org, brgl@bgdev.pl,
thierry.reding@gmail.com, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org,
devicetree@vger.kernel.org
Cc: Prathamesh Shete <pshete@nvidia.com>,
Nathan Hartman <nhartman@nvidia.com>
Subject: Re: [PATCH v3 2/2] gpio: tegra186: Add support for Tegra410
Date: Fri, 10 Oct 2025 15:39:29 +0530 [thread overview]
Message-ID: <cdfe50ee-4539-4826-a39a-2d9ead67a199@nvidia.com> (raw)
In-Reply-To: <a82f9e2d-0e12-45ed-ae6c-af781df05b5a@nvidia.com>
On 10/10/25 15:34, Jon Hunter wrote:
>
> On 10/10/2025 10:29, Kartik Rajput wrote:
>> From: Prathamesh Shete <pshete@nvidia.com>
>>
>> Extend the existing Tegra186 GPIO controller driver with support for
>> the GPIO controller found on Tegra410. Tegra410 supports two GPIO
>> controllers referred to as 'COMPUTE' and 'SYSTEM'.
>>
>> Co-developed-by: Nathan Hartman <nhartman@nvidia.com>
>> Signed-off-by: Nathan Hartman <nhartman@nvidia.com>
>> Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
>> Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
>> ---
>> v2 -> v3:
>> * Add a generic TEGRA_GPIO_PORT macro and use it to define
>> TEGRA410_COMPUTE_GPIO_PORT and TEGRA410_SYSTEM_GPIO_PORT.
>> v1 -> v2:
>> * Move Tegra410 GPIO Ports definition to gpio-tegra186.c
>> * Rename Tegra410 Main GPIO as System GPIO.
>> * Add Compute GPIOs.
>> * Update ACPI IDs.
>> * Set instance ID as 0 for SYSTEM and COMPUTE GPIOs.
>> * Added Nathan as co-author for adding compute GPIO support
>> and renaming MAIN GPIOs as SYSTEM GPIOs.
>> ---
>> drivers/gpio/gpio-tegra186.c | 82 +++++++++++++++++++++++++++++++++++-
>> 1 file changed, 81 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c
>> index 7ea541d6d537..c6ebe29f9cf1 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-2022 NVIDIA Corporation
>> + * Copyright (c) 2016-2025 NVIDIA Corporation
>> *
>> * Author: Thierry Reding <treding@nvidia.com>
>> * Dipen Patel <dpatel@nvidia.com>
>> @@ -69,6 +69,36 @@
>> #define TEGRA186_GPIO_INTERRUPT_STATUS(x) (0x100 + (x) * 4)
>> +/* Tegra410 GPIOs implemented by the COMPUTE GPIO controller */
>> +#define TEGRA410_COMPUTE_GPIO_PORT_A 0
>> +#define TEGRA410_COMPUTE_GPIO_PORT_B 1
>> +#define TEGRA410_COMPUTE_GPIO_PORT_C 2
>> +#define TEGRA410_COMPUTE_GPIO_PORT_D 3
>> +#define TEGRA410_COMPUTE_GPIO_PORT_E 4
>> +
>> +#define TEGRA410_COMPUTE_GPIO(port, offset) \
>> + ((TEGRA410_COMPUTE_GPIO_PORT_##port * 8) + (offset))
>
> This macro does not appear to be used anywhere.
>
>> +/* Tegra410 GPIOs implemented by the SYSTEM GPIO controller */
>> +#define TEGRA410_SYSTEM_GPIO_PORT_A 0
>> +#define TEGRA410_SYSTEM_GPIO_PORT_B 1
>> +#define TEGRA410_SYSTEM_GPIO_PORT_C 2
>> +#define TEGRA410_SYSTEM_GPIO_PORT_D 3
>> +#define TEGRA410_SYSTEM_GPIO_PORT_E 4
>> +#define TEGRA410_SYSTEM_GPIO_PORT_I 5
>> +#define TEGRA410_SYSTEM_GPIO_PORT_J 6
>> +#define TEGRA410_SYSTEM_GPIO_PORT_K 7
>> +#define TEGRA410_SYSTEM_GPIO_PORT_L 8
>> +#define TEGRA410_SYSTEM_GPIO_PORT_M 9
>> +#define TEGRA410_SYSTEM_GPIO_PORT_N 10
>> +#define TEGRA410_SYSTEM_GPIO_PORT_P 11
>> +#define TEGRA410_SYSTEM_GPIO_PORT_Q 12
>> +#define TEGRA410_SYSTEM_GPIO_PORT_R 13
>> +#define TEGRA410_SYSTEM_GPIO_PORT_V 14
>> +
>> +#define TEGRA410_SYSTEM_GPIO(port, offset) \
>> + ((TEGRA410_SYSTEM_GPIO_PORT_##port * 8) + (offset))
>
> Same here.
>
> Jon
>
Hi Jon,
You're right, TEGRA410_COMPUTE_GPIO() and TEGRA410_SYSTEM_GPIO() macros aren't
used. I will remove these two in v4.
Thanks,
Kartik
next prev parent reply other threads:[~2025-10-10 10:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-10 9:29 [PATCH v3 1/2] gpio: tegra186: Use generic macro for port definitions Kartik Rajput
2025-10-10 9:29 ` [PATCH v3 2/2] gpio: tegra186: Add support for Tegra410 Kartik Rajput
2025-10-10 10:04 ` Jon Hunter
2025-10-10 10:09 ` Kartik Rajput [this message]
2025-10-10 9:33 ` [PATCH v3 1/2] gpio: tegra186: Use generic macro for port definitions Jon Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cdfe50ee-4539-4826-a39a-2d9ead67a199@nvidia.com \
--to=kkartik@nvidia.com \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=nhartman@nvidia.com \
--cc=pshete@nvidia.com \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox