dt-bindings: power: Add power domain IDs for Tegra264
Subsystems (2)
PATCH 1/1 dt-bindings: power: Add power domain IDs for Tegra264
From: Thierry Reding <[email protected]>
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 <[email protected]>
--- .../power/nvidia,tegra264-powergate.h | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/dt-bindings/power/nvidia,tegra264-powergate.h
include/dt-bindings/power/nvidia,tegra264-powergate.h new file +26 -0
@@ -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 */
Signature · 1 line
2.50.0
Quoted 32 lines · Thierry Reding
From: Thierry Reding <[email protected]>
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 <[email protected]>--- .../power/nvidia,tegra264-powergate.h | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/dt-bindings/power/nvidia,tegra264-powergate.hinclude/dt-bindings/power/nvidia,tegra264-powergate.h new file +15
-0@@ -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
include/dt-bindings/power/nvidia,tegra264-powergate.h line 24
Quoted 10 lines
include/dt-bindings/power/nvidia,tegra264-powergate.h new file +9
-0+#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.
Quoted 5 lines
include/dt-bindings/power/nvidia,tegra264-powergate.h new file +2
-0+ +#endif /* DT_BINDINGS_POWER_NVIDIA_TEGRA264_H */ Signature · 1 line
2.50.0