From: Conor Dooley <conor@kernel.org>
To: Kartik Rajput <kkartik@nvidia.com>
Cc: linus.walleij@linaro.org, brgl@bgdev.pl,
thierry.reding@gmail.com, jonathanh@nvidia.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,
Prathamesh Shete <pshete@nvidia.com>
Subject: Re: [PATCH 1/2] dt-bindings: gpio: Add Tegra410 support
Date: Fri, 19 Sep 2025 18:14:09 +0100 [thread overview]
Message-ID: <20250919-undusted-distrust-ff5e2f25cdd5@spud> (raw)
In-Reply-To: <20250919093627.605059-1-kkartik@nvidia.com>
[-- Attachment #1: Type: text/plain, Size: 2168 bytes --]
On Fri, Sep 19, 2025 at 03:06:26PM +0530, Kartik Rajput wrote:
> From: Prathamesh Shete <pshete@nvidia.com>
>
> Add the port definitions for the main GPIO controller found on
> Tegra410.
>
> Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
> Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
> ---
Why are you modifying a binding header for devicetree when the driver
only appear to grow acpi support?
> include/dt-bindings/gpio/tegra410-gpio.h | 37 ++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
> create mode 100644 include/dt-bindings/gpio/tegra410-gpio.h
>
> diff --git a/include/dt-bindings/gpio/tegra410-gpio.h b/include/dt-bindings/gpio/tegra410-gpio.h
> new file mode 100644
> index 000000000000..e4d042fbacb2
> --- /dev/null
> +++ b/include/dt-bindings/gpio/tegra410-gpio.h
> @@ -0,0 +1,37 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +/* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. */
> +
> +/*
> + * This header provides constants for the nvidia,tegra410-gpio DT binding.
> + *
> + * 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_TEGRA410_GPIO_H
> +#define _DT_BINDINGS_GPIO_TEGRA410_GPIO_H
> +
> +#include <dt-bindings/gpio/gpio.h>
> +
> +/* GPIOs implemented by main GPIO controller */
> +#define TEGRA410_MAIN_GPIO_PORT_A 0
> +#define TEGRA410_MAIN_GPIO_PORT_B 1
> +#define TEGRA410_MAIN_GPIO_PORT_C 2
> +#define TEGRA410_MAIN_GPIO_PORT_D 3
> +#define TEGRA410_MAIN_GPIO_PORT_E 4
> +#define TEGRA410_MAIN_GPIO_PORT_I 5
> +#define TEGRA410_MAIN_GPIO_PORT_J 6
> +#define TEGRA410_MAIN_GPIO_PORT_K 7
> +#define TEGRA410_MAIN_GPIO_PORT_L 8
> +#define TEGRA410_MAIN_GPIO_PORT_M 9
> +#define TEGRA410_MAIN_GPIO_PORT_N 10
> +#define TEGRA410_MAIN_GPIO_PORT_P 11
> +#define TEGRA410_MAIN_GPIO_PORT_Q 12
> +#define TEGRA410_MAIN_GPIO_PORT_R 13
> +
> +#define TEGRA410_MAIN_GPIO(port, offset) \
> + ((TEGRA410_MAIN_GPIO_PORT_##port * 8) + (offset))
> +
> +#endif
> --
> 2.43.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-09-19 17:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 9:36 [PATCH 1/2] dt-bindings: gpio: Add Tegra410 support Kartik Rajput
2025-09-19 9:36 ` [PATCH 2/2] gpio: tegra186: Add support for Tegra410 Kartik Rajput
2025-09-19 17:14 ` Conor Dooley [this message]
2025-09-29 7:23 ` [PATCH 1/2] dt-bindings: gpio: Add Tegra410 support Kartik Rajput
2025-09-29 13:41 ` Bartosz Golaszewski
2025-10-08 6:53 ` Kartik Rajput
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=20250919-undusted-distrust-ff5e2f25cdd5@spud \
--to=conor@kernel.org \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=kkartik@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=pshete@nvidia.com \
--cc=robh@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).