18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_POWER_QCOM_RPMPD_H 58c2ecf20Sopenharmony_ci#define _DT_BINDINGS_POWER_QCOM_RPMPD_H 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* SDM845 Power Domain Indexes */ 88c2ecf20Sopenharmony_ci#define SDM845_EBI 0 98c2ecf20Sopenharmony_ci#define SDM845_MX 1 108c2ecf20Sopenharmony_ci#define SDM845_MX_AO 2 118c2ecf20Sopenharmony_ci#define SDM845_CX 3 128c2ecf20Sopenharmony_ci#define SDM845_CX_AO 4 138c2ecf20Sopenharmony_ci#define SDM845_LMX 5 148c2ecf20Sopenharmony_ci#define SDM845_LCX 6 158c2ecf20Sopenharmony_ci#define SDM845_GFX 7 168c2ecf20Sopenharmony_ci#define SDM845_MSS 8 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* SM8150 Power Domain Indexes */ 198c2ecf20Sopenharmony_ci#define SM8150_MSS 0 208c2ecf20Sopenharmony_ci#define SM8150_EBI 1 218c2ecf20Sopenharmony_ci#define SM8150_LMX 2 228c2ecf20Sopenharmony_ci#define SM8150_LCX 3 238c2ecf20Sopenharmony_ci#define SM8150_GFX 4 248c2ecf20Sopenharmony_ci#define SM8150_MX 5 258c2ecf20Sopenharmony_ci#define SM8150_MX_AO 6 268c2ecf20Sopenharmony_ci#define SM8150_CX 7 278c2ecf20Sopenharmony_ci#define SM8150_CX_AO 8 288c2ecf20Sopenharmony_ci#define SM8150_MMCX 9 298c2ecf20Sopenharmony_ci#define SM8150_MMCX_AO 10 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* SM8250 Power Domain Indexes */ 328c2ecf20Sopenharmony_ci#define SM8250_CX 0 338c2ecf20Sopenharmony_ci#define SM8250_CX_AO 1 348c2ecf20Sopenharmony_ci#define SM8250_EBI 2 358c2ecf20Sopenharmony_ci#define SM8250_GFX 3 368c2ecf20Sopenharmony_ci#define SM8250_LCX 4 378c2ecf20Sopenharmony_ci#define SM8250_LMX 5 388c2ecf20Sopenharmony_ci#define SM8250_MMCX 6 398c2ecf20Sopenharmony_ci#define SM8250_MMCX_AO 7 408c2ecf20Sopenharmony_ci#define SM8250_MX 8 418c2ecf20Sopenharmony_ci#define SM8250_MX_AO 9 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci/* SC7180 Power Domain Indexes */ 448c2ecf20Sopenharmony_ci#define SC7180_CX 0 458c2ecf20Sopenharmony_ci#define SC7180_CX_AO 1 468c2ecf20Sopenharmony_ci#define SC7180_GFX 2 478c2ecf20Sopenharmony_ci#define SC7180_MX 3 488c2ecf20Sopenharmony_ci#define SC7180_MX_AO 4 498c2ecf20Sopenharmony_ci#define SC7180_LMX 5 508c2ecf20Sopenharmony_ci#define SC7180_LCX 6 518c2ecf20Sopenharmony_ci#define SC7180_MSS 7 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci/* SDM845 Power Domain performance levels */ 548c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_RETENTION 16 558c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_MIN_SVS 48 568c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_LOW_SVS 64 578c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_SVS 128 588c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_SVS_L0 144 598c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_SVS_L1 192 608c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_SVS_L2 224 618c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_NOM 256 628c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_NOM_L1 320 638c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_NOM_L2 336 648c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_TURBO 384 658c2ecf20Sopenharmony_ci#define RPMH_REGULATOR_LEVEL_TURBO_L1 416 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci/* MSM8976 Power Domain Indexes */ 688c2ecf20Sopenharmony_ci#define MSM8976_VDDCX 0 698c2ecf20Sopenharmony_ci#define MSM8976_VDDCX_AO 1 708c2ecf20Sopenharmony_ci#define MSM8976_VDDCX_VFL 2 718c2ecf20Sopenharmony_ci#define MSM8976_VDDMX 3 728c2ecf20Sopenharmony_ci#define MSM8976_VDDMX_AO 4 738c2ecf20Sopenharmony_ci#define MSM8976_VDDMX_VFL 5 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci/* MSM8996 Power Domain Indexes */ 768c2ecf20Sopenharmony_ci#define MSM8996_VDDCX 0 778c2ecf20Sopenharmony_ci#define MSM8996_VDDCX_AO 1 788c2ecf20Sopenharmony_ci#define MSM8996_VDDCX_VFC 2 798c2ecf20Sopenharmony_ci#define MSM8996_VDDMX 3 808c2ecf20Sopenharmony_ci#define MSM8996_VDDMX_AO 4 818c2ecf20Sopenharmony_ci#define MSM8996_VDDSSCX 5 828c2ecf20Sopenharmony_ci#define MSM8996_VDDSSCX_VFC 6 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci/* MSM8998 Power Domain Indexes */ 858c2ecf20Sopenharmony_ci#define MSM8998_VDDCX 0 868c2ecf20Sopenharmony_ci#define MSM8998_VDDCX_AO 1 878c2ecf20Sopenharmony_ci#define MSM8998_VDDCX_VFL 2 888c2ecf20Sopenharmony_ci#define MSM8998_VDDMX 3 898c2ecf20Sopenharmony_ci#define MSM8998_VDDMX_AO 4 908c2ecf20Sopenharmony_ci#define MSM8998_VDDMX_VFL 5 918c2ecf20Sopenharmony_ci#define MSM8998_SSCCX 6 928c2ecf20Sopenharmony_ci#define MSM8998_SSCCX_VFL 7 938c2ecf20Sopenharmony_ci#define MSM8998_SSCMX 8 948c2ecf20Sopenharmony_ci#define MSM8998_SSCMX_VFL 9 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci/* QCS404 Power Domains */ 978c2ecf20Sopenharmony_ci#define QCS404_VDDMX 0 988c2ecf20Sopenharmony_ci#define QCS404_VDDMX_AO 1 998c2ecf20Sopenharmony_ci#define QCS404_VDDMX_VFL 2 1008c2ecf20Sopenharmony_ci#define QCS404_LPICX 3 1018c2ecf20Sopenharmony_ci#define QCS404_LPICX_VFL 4 1028c2ecf20Sopenharmony_ci#define QCS404_LPIMX 5 1038c2ecf20Sopenharmony_ci#define QCS404_LPIMX_VFL 6 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci/* RPM SMD Power Domain performance levels */ 1068c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_RETENTION 16 1078c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_RETENTION_PLUS 32 1088c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_MIN_SVS 48 1098c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_LOW_SVS 64 1108c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_SVS 128 1118c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_SVS_PLUS 192 1128c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_NOM 256 1138c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_NOM_PLUS 320 1148c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_TURBO 384 1158c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_TURBO_NO_CPR 416 1168c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_TURBO_HIGH 448 1178c2ecf20Sopenharmony_ci#define RPM_SMD_LEVEL_BINNING 512 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ci#endif 120