From 23858268fd8952fb320a94291aacef131b65c1d8 Mon Sep 17 00:00:00 2001 From: Yi-Wei Wang Date: Thu, 23 Feb 2023 01:29:02 +0800 Subject: [PATCH] dt-bindings: thermal: Add Tegra234 soctherm header This change adds the dt-bindings header file, which includes definitions for Tegra234 soctherm's throttle identifier, EDP/OC identifier, and throttle mode. Bug 3571683 Signed-off-by: Yi-Wei Wang Change-Id: I6bb1b577e564b05dfe3ef18bf908eb3752daee3a Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2862055 Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- .../dt-bindings/thermal/tegra234-soctherm.h | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 include/dt-bindings/thermal/tegra234-soctherm.h diff --git a/include/dt-bindings/thermal/tegra234-soctherm.h b/include/dt-bindings/thermal/tegra234-soctherm.h new file mode 100644 index 00000000..b4e0739e --- /dev/null +++ b/include/dt-bindings/thermal/tegra234-soctherm.h @@ -0,0 +1,47 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + */ + +#ifndef BPMP_ABI_MACH_T234_SOCTHERM_H +#define BPMP_ABI_MACH_T234_SOCTHERM_H + +/** + * @file + * @defgroup bpmp_soctherm_ids Soctherm ID's + * @{ + * @defgroup bpmp_soctherm_throt_ids Throttle Identifiers + * @defgroup bpmp_soctherm_edp_oc_ids EDP/OC Identifiers + * @defgroup bpmp_soctherm_throt_modes Throttle Modes + * @} + */ + +/** + * @addtogroup bpmp_soctherm_throt_ids + * @{ + */ +#define TEGRA234_SOCTHERM_THROT_NONE 0U +#define TEGRA234_SOCTHERM_THROT_LITE 1U +#define TEGRA234_SOCTHERM_THROT_MED 2U +#define TEGRA234_SOCTHERM_THROT_HEAVY 4U +/** @} */ + +/** + * @addtogroup bpmp_soctherm_edp_oc_ids + * @{ + */ +#define TEGRA234_SOCTHERM_EDP_OC1 0U +#define TEGRA234_SOCTHERM_EDP_OC2 1U +#define TEGRA234_SOCTHERM_EDP_OC3 2U +#define TEGRA234_SOCTHERM_EDP_OC_CNT 3U +/** @} */ + +/** + * @addtogroup bpmp_soctherm_throt_modes + * @{ + */ +#define TEGRA234_SOCTHERM_EDP_OC_MODE_BRIEF 2U +/** @} */ + +#endif +