* [PATCH] dt-bindings: power: Add power domain IDs for Tegra264
@ 2025-08-18 13:52 Thierry Reding
2025-08-18 17:00 ` Conor Dooley
0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2025-08-18 13:52 UTC (permalink / raw)
To: Thierry Reding
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jon Hunter,
Sheetal, devicetree, linux-tegra
From: Thierry Reding <treding@nvidia.com>
Add the set of power domain IDs available on the Tegra264 SoC so that
they can be used in device tree files.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
.../power/nvidia,tegra264-powergate.h | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 include/dt-bindings/power/nvidia,tegra264-powergate.h
diff --git a/include/dt-bindings/power/nvidia,tegra264-powergate.h b/include/dt-bindings/power/nvidia,tegra264-powergate.h
new file mode 100644
index 000000000000..344c669e4a52
--- /dev/null
+++ b/include/dt-bindings/power/nvidia,tegra264-powergate.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/* Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved. */
+
+#ifndef DT_BINDINGS_POWER_NVIDIA_TEGRA264_H
+#define DT_BINDINGS_POWER_NVIDIA_TEGRA264_H
+
+#define TEGRA264_POWER_DOMAIN_DISP 1
+#define TEGRA264_POWER_DOMAIN_AUD 2
+/* reserved 3:9 */
+#define TEGRA264_POWER_DOMAIN_XUSB_SS 10
+#define TEGRA264_POWER_DOMAIN_XUSB_DEV 11
+#define TEGRA264_POWER_DOMAIN_XUSB_HOST 12
+#define TEGRA264_POWER_DOMAIN_MGBE0 13
+#define TEGRA264_POWER_DOMAIN_MGBE1 14
+#define TEGRA264_POWER_DOMAIN_MGBE2 15
+#define TEGRA264_POWER_DOMAIN_MGBE3 16
+#define TEGRA264_POWER_DOMAIN_VI 17
+#define TEGRA264_POWER_DOMAIN_VIC 18
+#define TEGRA264_POWER_DOMAIN_ISP0 19
+#define TEGRA264_POWER_DOMAIN_ISP1 20
+#define TEGRA264_POWER_DOMAIN_PVA0 21
+#define TEGRA264_POWER_DOMAIN_GPU 22
+
+#define TEGRA264_POWER_DOMAIN_MAX 22
+
+#endif /* DT_BINDINGS_POWER_NVIDIA_TEGRA264_H */
--
2.50.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: power: Add power domain IDs for Tegra264
2025-08-18 13:52 [PATCH] dt-bindings: power: Add power domain IDs for Tegra264 Thierry Reding
@ 2025-08-18 17:00 ` Conor Dooley
0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2025-08-18 17:00 UTC (permalink / raw)
To: Thierry Reding
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jon Hunter,
Sheetal, devicetree, linux-tegra
[-- Attachment #1: Type: text/plain, Size: 1878 bytes --]
On Mon, Aug 18, 2025 at 03:52:41PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> Add the set of power domain IDs available on the Tegra264 SoC so that
> they can be used in device tree files.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> .../power/nvidia,tegra264-powergate.h | 26 +++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 include/dt-bindings/power/nvidia,tegra264-powergate.h
>
> diff --git a/include/dt-bindings/power/nvidia,tegra264-powergate.h b/include/dt-bindings/power/nvidia,tegra264-powergate.h
> new file mode 100644
> index 000000000000..344c669e4a52
> --- /dev/null
> +++ b/include/dt-bindings/power/nvidia,tegra264-powergate.h
> @@ -0,0 +1,26 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
> +/* Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved. */
> +
> +#ifndef DT_BINDINGS_POWER_NVIDIA_TEGRA264_H
> +#define DT_BINDINGS_POWER_NVIDIA_TEGRA264_H
> +
> +#define TEGRA264_POWER_DOMAIN_DISP 1
> +#define TEGRA264_POWER_DOMAIN_AUD 2
> +/* reserved 3:9 */
> +#define TEGRA264_POWER_DOMAIN_XUSB_SS 10
> +#define TEGRA264_POWER_DOMAIN_XUSB_DEV 11
> +#define TEGRA264_POWER_DOMAIN_XUSB_HOST 12
> +#define TEGRA264_POWER_DOMAIN_MGBE0 13
> +#define TEGRA264_POWER_DOMAIN_MGBE1 14
> +#define TEGRA264_POWER_DOMAIN_MGBE2 15
> +#define TEGRA264_POWER_DOMAIN_MGBE3 16
> +#define TEGRA264_POWER_DOMAIN_VI 17
> +#define TEGRA264_POWER_DOMAIN_VIC 18
> +#define TEGRA264_POWER_DOMAIN_ISP0 19
> +#define TEGRA264_POWER_DOMAIN_ISP1 20
> +#define TEGRA264_POWER_DOMAIN_PVA0 21
> +#define TEGRA264_POWER_DOMAIN_GPU 22
> +
> +#define TEGRA264_POWER_DOMAIN_MAX 22
This shouldn't be here, if you need it put it in the driver.
> +
> +#endif /* DT_BINDINGS_POWER_NVIDIA_TEGRA264_H */
> --
> 2.50.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-18 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 13:52 [PATCH] dt-bindings: power: Add power domain IDs for Tegra264 Thierry Reding
2025-08-18 17:00 ` Conor Dooley
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).