2019-01-10 04:02:03 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */
|
|
|
|
|
|
|
|
#ifndef _DT_BINDINGS_POWER_QCOM_RPMPD_H
|
|
|
|
#define _DT_BINDINGS_POWER_QCOM_RPMPD_H
|
|
|
|
|
|
|
|
/* SDM845 Power Domain Indexes */
|
|
|
|
#define SDM845_EBI 0
|
|
|
|
#define SDM845_MX 1
|
|
|
|
#define SDM845_MX_AO 2
|
|
|
|
#define SDM845_CX 3
|
|
|
|
#define SDM845_CX_AO 4
|
|
|
|
#define SDM845_LMX 5
|
|
|
|
#define SDM845_LCX 6
|
|
|
|
#define SDM845_GFX 7
|
|
|
|
#define SDM845_MSS 8
|
|
|
|
|
2020-11-26 09:27:10 +00:00
|
|
|
/* SDX55 Power Domain Indexes */
|
|
|
|
#define SDX55_MSS 0
|
|
|
|
#define SDX55_MX 1
|
|
|
|
#define SDX55_CX 2
|
|
|
|
|
2021-08-20 20:31:01 +00:00
|
|
|
/* SM6350 Power Domain Indexes */
|
|
|
|
#define SM6350_CX 0
|
|
|
|
#define SM6350_GFX 1
|
|
|
|
#define SM6350_LCX 2
|
|
|
|
#define SM6350_LMX 3
|
|
|
|
#define SM6350_MSS 4
|
|
|
|
#define SM6350_MX 5
|
|
|
|
|
2019-11-18 17:40:08 +00:00
|
|
|
/* SM8150 Power Domain Indexes */
|
|
|
|
#define SM8150_MSS 0
|
|
|
|
#define SM8150_EBI 1
|
|
|
|
#define SM8150_LMX 2
|
|
|
|
#define SM8150_LCX 3
|
|
|
|
#define SM8150_GFX 4
|
|
|
|
#define SM8150_MX 5
|
|
|
|
#define SM8150_MX_AO 6
|
|
|
|
#define SM8150_CX 7
|
|
|
|
#define SM8150_CX_AO 8
|
|
|
|
#define SM8150_MMCX 9
|
|
|
|
#define SM8150_MMCX_AO 10
|
|
|
|
|
2020-04-15 06:21:53 +00:00
|
|
|
/* SM8250 Power Domain Indexes */
|
|
|
|
#define SM8250_CX 0
|
|
|
|
#define SM8250_CX_AO 1
|
|
|
|
#define SM8250_EBI 2
|
|
|
|
#define SM8250_GFX 3
|
|
|
|
#define SM8250_LCX 4
|
|
|
|
#define SM8250_LMX 5
|
|
|
|
#define SM8250_MMCX 6
|
|
|
|
#define SM8250_MMCX_AO 7
|
|
|
|
#define SM8250_MX 8
|
|
|
|
#define SM8250_MX_AO 9
|
|
|
|
|
2021-02-10 10:42:56 +00:00
|
|
|
/* SM8350 Power Domain Indexes */
|
|
|
|
#define SM8350_CX 0
|
|
|
|
#define SM8350_CX_AO 1
|
|
|
|
#define SM8350_EBI 2
|
|
|
|
#define SM8350_GFX 3
|
|
|
|
#define SM8350_LCX 4
|
|
|
|
#define SM8350_LMX 5
|
|
|
|
#define SM8350_MMCX 6
|
|
|
|
#define SM8350_MMCX_AO 7
|
|
|
|
#define SM8350_MX 8
|
|
|
|
#define SM8350_MX_AO 9
|
|
|
|
#define SM8350_MXC 10
|
|
|
|
#define SM8350_MXC_AO 11
|
|
|
|
#define SM8350_MSS 12
|
|
|
|
|
2021-12-01 07:27:43 +00:00
|
|
|
/* SM8450 Power Domain Indexes */
|
|
|
|
#define SM8450_CX 0
|
|
|
|
#define SM8450_CX_AO 1
|
|
|
|
#define SM8450_EBI 2
|
|
|
|
#define SM8450_GFX 3
|
|
|
|
#define SM8450_LCX 4
|
|
|
|
#define SM8450_LMX 5
|
|
|
|
#define SM8450_MMCX 6
|
|
|
|
#define SM8450_MMCX_AO 7
|
|
|
|
#define SM8450_MX 8
|
|
|
|
#define SM8450_MX_AO 9
|
|
|
|
#define SM8450_MXC 10
|
|
|
|
#define SM8450_MXC_AO 11
|
|
|
|
#define SM8450_MSS 12
|
|
|
|
|
2019-11-18 17:40:15 +00:00
|
|
|
/* SC7180 Power Domain Indexes */
|
|
|
|
#define SC7180_CX 0
|
|
|
|
#define SC7180_CX_AO 1
|
|
|
|
#define SC7180_GFX 2
|
|
|
|
#define SC7180_MX 3
|
|
|
|
#define SC7180_MX_AO 4
|
|
|
|
#define SC7180_LMX 5
|
|
|
|
#define SC7180_LCX 6
|
|
|
|
#define SC7180_MSS 7
|
|
|
|
|
2021-03-02 05:48:11 +00:00
|
|
|
/* SC7280 Power Domain Indexes */
|
|
|
|
#define SC7280_CX 0
|
|
|
|
#define SC7280_CX_AO 1
|
|
|
|
#define SC7280_EBI 2
|
|
|
|
#define SC7280_GFX 3
|
|
|
|
#define SC7280_MX 4
|
|
|
|
#define SC7280_MX_AO 5
|
|
|
|
#define SC7280_LMX 6
|
|
|
|
#define SC7280_LCX 7
|
|
|
|
#define SC7280_MSS 8
|
|
|
|
|
2021-01-20 22:50:36 +00:00
|
|
|
/* SC8180X Power Domain Indexes */
|
|
|
|
#define SC8180X_CX 0
|
|
|
|
#define SC8180X_CX_AO 1
|
|
|
|
#define SC8180X_EBI 2
|
|
|
|
#define SC8180X_GFX 3
|
|
|
|
#define SC8180X_LCX 4
|
|
|
|
#define SC8180X_LMX 5
|
|
|
|
#define SC8180X_MMCX 6
|
|
|
|
#define SC8180X_MMCX_AO 7
|
|
|
|
#define SC8180X_MSS 8
|
|
|
|
#define SC8180X_MX 9
|
|
|
|
#define SC8180X_MX_AO 10
|
|
|
|
|
2019-01-10 04:02:03 +00:00
|
|
|
/* SDM845 Power Domain performance levels */
|
|
|
|
#define RPMH_REGULATOR_LEVEL_RETENTION 16
|
|
|
|
#define RPMH_REGULATOR_LEVEL_MIN_SVS 48
|
|
|
|
#define RPMH_REGULATOR_LEVEL_LOW_SVS 64
|
|
|
|
#define RPMH_REGULATOR_LEVEL_SVS 128
|
2020-07-09 13:52:43 +00:00
|
|
|
#define RPMH_REGULATOR_LEVEL_SVS_L0 144
|
2019-01-10 04:02:03 +00:00
|
|
|
#define RPMH_REGULATOR_LEVEL_SVS_L1 192
|
2019-11-18 17:40:08 +00:00
|
|
|
#define RPMH_REGULATOR_LEVEL_SVS_L2 224
|
2019-01-10 04:02:03 +00:00
|
|
|
#define RPMH_REGULATOR_LEVEL_NOM 256
|
|
|
|
#define RPMH_REGULATOR_LEVEL_NOM_L1 320
|
|
|
|
#define RPMH_REGULATOR_LEVEL_NOM_L2 336
|
|
|
|
#define RPMH_REGULATOR_LEVEL_TURBO 384
|
|
|
|
#define RPMH_REGULATOR_LEVEL_TURBO_L1 416
|
|
|
|
|
2021-01-31 01:32:32 +00:00
|
|
|
/* MDM9607 Power Domains */
|
|
|
|
#define MDM9607_VDDCX 0
|
|
|
|
#define MDM9607_VDDCX_AO 1
|
|
|
|
#define MDM9607_VDDCX_VFL 2
|
|
|
|
#define MDM9607_VDDMX 3
|
|
|
|
#define MDM9607_VDDMX_AO 4
|
|
|
|
#define MDM9607_VDDMX_VFL 5
|
|
|
|
|
2020-09-30 10:01:44 +00:00
|
|
|
/* MSM8939 Power Domains */
|
|
|
|
#define MSM8939_VDDMDCX 0
|
|
|
|
#define MSM8939_VDDMDCX_AO 1
|
|
|
|
#define MSM8939_VDDMDCX_VFC 2
|
|
|
|
#define MSM8939_VDDCX 3
|
|
|
|
#define MSM8939_VDDCX_AO 4
|
|
|
|
#define MSM8939_VDDCX_VFC 5
|
|
|
|
#define MSM8939_VDDMX 6
|
|
|
|
#define MSM8939_VDDMX_AO 7
|
|
|
|
|
2020-09-16 10:41:27 +00:00
|
|
|
/* MSM8916 Power Domain Indexes */
|
|
|
|
#define MSM8916_VDDCX 0
|
|
|
|
#define MSM8916_VDDCX_AO 1
|
|
|
|
#define MSM8916_VDDCX_VFC 2
|
|
|
|
#define MSM8916_VDDMX 3
|
|
|
|
#define MSM8916_VDDMX_AO 4
|
|
|
|
|
2021-08-25 17:02:32 +00:00
|
|
|
/* MSM8953 Power Domain Indexes */
|
|
|
|
#define MSM8953_VDDMD 0
|
|
|
|
#define MSM8953_VDDMD_AO 1
|
|
|
|
#define MSM8953_VDDCX 2
|
|
|
|
#define MSM8953_VDDCX_AO 3
|
|
|
|
#define MSM8953_VDDCX_VFL 4
|
|
|
|
#define MSM8953_VDDMX 5
|
|
|
|
#define MSM8953_VDDMX_AO 6
|
|
|
|
|
2019-10-05 11:07:58 +00:00
|
|
|
/* MSM8976 Power Domain Indexes */
|
|
|
|
#define MSM8976_VDDCX 0
|
|
|
|
#define MSM8976_VDDCX_AO 1
|
|
|
|
#define MSM8976_VDDCX_VFL 2
|
|
|
|
#define MSM8976_VDDMX 3
|
|
|
|
#define MSM8976_VDDMX_AO 4
|
|
|
|
#define MSM8976_VDDMX_VFL 5
|
|
|
|
|
2021-01-18 16:19:41 +00:00
|
|
|
/* MSM8994 Power Domain Indexes */
|
|
|
|
#define MSM8994_VDDCX 0
|
|
|
|
#define MSM8994_VDDCX_AO 1
|
|
|
|
#define MSM8994_VDDCX_VFC 2
|
|
|
|
#define MSM8994_VDDMX 3
|
|
|
|
#define MSM8994_VDDMX_AO 4
|
|
|
|
#define MSM8994_VDDGFX 5
|
|
|
|
#define MSM8994_VDDGFX_VFC 6
|
|
|
|
|
2019-01-10 04:02:03 +00:00
|
|
|
/* MSM8996 Power Domain Indexes */
|
|
|
|
#define MSM8996_VDDCX 0
|
|
|
|
#define MSM8996_VDDCX_AO 1
|
|
|
|
#define MSM8996_VDDCX_VFC 2
|
|
|
|
#define MSM8996_VDDMX 3
|
|
|
|
#define MSM8996_VDDMX_AO 4
|
|
|
|
#define MSM8996_VDDSSCX 5
|
|
|
|
#define MSM8996_VDDSSCX_VFC 6
|
|
|
|
|
2019-05-13 10:20:13 +00:00
|
|
|
/* MSM8998 Power Domain Indexes */
|
|
|
|
#define MSM8998_VDDCX 0
|
|
|
|
#define MSM8998_VDDCX_AO 1
|
|
|
|
#define MSM8998_VDDCX_VFL 2
|
|
|
|
#define MSM8998_VDDMX 3
|
|
|
|
#define MSM8998_VDDMX_AO 4
|
|
|
|
#define MSM8998_VDDMX_VFL 5
|
|
|
|
#define MSM8998_SSCCX 6
|
|
|
|
#define MSM8998_SSCCX_VFL 7
|
|
|
|
#define MSM8998_SSCMX 8
|
|
|
|
#define MSM8998_SSCMX_VFL 9
|
|
|
|
|
2019-05-13 10:20:10 +00:00
|
|
|
/* QCS404 Power Domains */
|
|
|
|
#define QCS404_VDDMX 0
|
|
|
|
#define QCS404_VDDMX_AO 1
|
|
|
|
#define QCS404_VDDMX_VFL 2
|
|
|
|
#define QCS404_LPICX 3
|
|
|
|
#define QCS404_LPICX_VFL 4
|
|
|
|
#define QCS404_LPIMX 5
|
|
|
|
#define QCS404_LPIMX_VFL 6
|
|
|
|
|
2020-10-18 12:26:20 +00:00
|
|
|
/* SDM660 Power Domains */
|
|
|
|
#define SDM660_VDDCX 0
|
|
|
|
#define SDM660_VDDCX_AO 1
|
|
|
|
#define SDM660_VDDCX_VFL 2
|
|
|
|
#define SDM660_VDDMX 3
|
|
|
|
#define SDM660_VDDMX_AO 4
|
|
|
|
#define SDM660_VDDMX_VFL 5
|
|
|
|
#define SDM660_SSCCX 6
|
|
|
|
#define SDM660_SSCCX_VFL 7
|
|
|
|
#define SDM660_SSCMX 8
|
|
|
|
#define SDM660_SSCMX_VFL 9
|
|
|
|
|
2021-06-27 18:59:26 +00:00
|
|
|
/* SM6115 Power Domains */
|
|
|
|
#define SM6115_VDDCX 0
|
|
|
|
#define SM6115_VDDCX_AO 1
|
|
|
|
#define SM6115_VDDCX_VFL 2
|
|
|
|
#define SM6115_VDDMX 3
|
|
|
|
#define SM6115_VDDMX_AO 4
|
|
|
|
#define SM6115_VDDMX_VFL 5
|
|
|
|
#define SM6115_VDD_LPI_CX 6
|
|
|
|
#define SM6115_VDD_LPI_MX 7
|
|
|
|
|
2021-11-30 21:23:29 +00:00
|
|
|
/* SM6125 Power Domains */
|
|
|
|
#define SM6125_VDDCX 0
|
|
|
|
#define SM6125_VDDCX_AO 1
|
|
|
|
#define SM6125_VDDCX_VFL 2
|
|
|
|
#define SM6125_VDDMX 3
|
|
|
|
#define SM6125_VDDMX_AO 4
|
|
|
|
#define SM6125_VDDMX_VFL 5
|
|
|
|
|
2021-11-08 13:44:41 +00:00
|
|
|
/* QCM2290 Power Domains */
|
|
|
|
#define QCM2290_VDDCX 0
|
|
|
|
#define QCM2290_VDDCX_AO 1
|
|
|
|
#define QCM2290_VDDCX_VFL 2
|
|
|
|
#define QCM2290_VDDMX 3
|
|
|
|
#define QCM2290_VDDMX_AO 4
|
|
|
|
#define QCM2290_VDDMX_VFL 5
|
|
|
|
#define QCM2290_VDD_LPI_CX 6
|
|
|
|
#define QCM2290_VDD_LPI_MX 7
|
|
|
|
|
2019-05-13 10:20:10 +00:00
|
|
|
/* RPM SMD Power Domain performance levels */
|
|
|
|
#define RPM_SMD_LEVEL_RETENTION 16
|
|
|
|
#define RPM_SMD_LEVEL_RETENTION_PLUS 32
|
|
|
|
#define RPM_SMD_LEVEL_MIN_SVS 48
|
|
|
|
#define RPM_SMD_LEVEL_LOW_SVS 64
|
|
|
|
#define RPM_SMD_LEVEL_SVS 128
|
|
|
|
#define RPM_SMD_LEVEL_SVS_PLUS 192
|
|
|
|
#define RPM_SMD_LEVEL_NOM 256
|
|
|
|
#define RPM_SMD_LEVEL_NOM_PLUS 320
|
|
|
|
#define RPM_SMD_LEVEL_TURBO 384
|
|
|
|
#define RPM_SMD_LEVEL_TURBO_NO_CPR 416
|
2019-09-21 10:12:06 +00:00
|
|
|
#define RPM_SMD_LEVEL_TURBO_HIGH 448
|
2019-05-13 10:20:10 +00:00
|
|
|
#define RPM_SMD_LEVEL_BINNING 512
|
|
|
|
|
2019-01-10 04:02:03 +00:00
|
|
|
#endif
|