162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * This header provides constants for the Qualcomm RPM bindings.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_MFD_QCOM_RPM_H
762306a36Sopenharmony_ci#define _DT_BINDINGS_MFD_QCOM_RPM_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/*
1062306a36Sopenharmony_ci * Constants use to identify individual resources in the RPM.
1162306a36Sopenharmony_ci */
1262306a36Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_ARB		1
1362306a36Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_CLK		2
1462306a36Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_HALT		3
1562306a36Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_IOCTL		4
1662306a36Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_MODE		5
1762306a36Sopenharmony_ci#define QCOM_RPM_APPS_L2_CACHE_CTL		6
1862306a36Sopenharmony_ci#define QCOM_RPM_CFPB_CLK			7
1962306a36Sopenharmony_ci#define QCOM_RPM_CXO_BUFFERS			8
2062306a36Sopenharmony_ci#define QCOM_RPM_CXO_CLK			9
2162306a36Sopenharmony_ci#define QCOM_RPM_DAYTONA_FABRIC_CLK		10
2262306a36Sopenharmony_ci#define QCOM_RPM_DDR_DMM			11
2362306a36Sopenharmony_ci#define QCOM_RPM_EBI1_CLK			12
2462306a36Sopenharmony_ci#define QCOM_RPM_HDMI_SWITCH			13
2562306a36Sopenharmony_ci#define QCOM_RPM_MMFPB_CLK			14
2662306a36Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_ARB			15
2762306a36Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_CLK			16
2862306a36Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_HALT			17
2962306a36Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_IOCTL		18
3062306a36Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_MODE			19
3162306a36Sopenharmony_ci#define QCOM_RPM_PLL_4				20
3262306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO0			21
3362306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO1			22
3462306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO2			23
3562306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO3			24
3662306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO4			25
3762306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO5			26
3862306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO6			27
3962306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO7			28
4062306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO8			29
4162306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO9			30
4262306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO10			31
4362306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO11			32
4462306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO12			33
4562306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO13			34
4662306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO14			35
4762306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO15			36
4862306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO16			37
4962306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO17			38
5062306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO18			39
5162306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO19			40
5262306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO20			41
5362306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO21			42
5462306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO22			43
5562306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO23			44
5662306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO24			45
5762306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LDO25			46
5862306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LVS0			47
5962306a36Sopenharmony_ci#define QCOM_RPM_PM8058_LVS1			48
6062306a36Sopenharmony_ci#define QCOM_RPM_PM8058_NCP			49
6162306a36Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS0			50
6262306a36Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS1			51
6362306a36Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS2			52
6462306a36Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS3			53
6562306a36Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS4			54
6662306a36Sopenharmony_ci#define QCOM_RPM_PM8821_LDO1			55
6762306a36Sopenharmony_ci#define QCOM_RPM_PM8821_SMPS1			56
6862306a36Sopenharmony_ci#define QCOM_RPM_PM8821_SMPS2			57
6962306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO0			58
7062306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO1			59
7162306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO2			60
7262306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO3			61
7362306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO4			62
7462306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO5			63
7562306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LDO6			64
7662306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LVS0			65
7762306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LVS1			66
7862306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LVS2			67
7962306a36Sopenharmony_ci#define QCOM_RPM_PM8901_LVS3			68
8062306a36Sopenharmony_ci#define QCOM_RPM_PM8901_MVS			69
8162306a36Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS0			70
8262306a36Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS1			71
8362306a36Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS2			72
8462306a36Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS3			73
8562306a36Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS4			74
8662306a36Sopenharmony_ci#define QCOM_RPM_PM8921_CLK1			75
8762306a36Sopenharmony_ci#define QCOM_RPM_PM8921_CLK2			76
8862306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO1			77
8962306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO2			78
9062306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO3			79
9162306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO4			80
9262306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO5			81
9362306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO6			82
9462306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO7			83
9562306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO8			84
9662306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO9			85
9762306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO10			86
9862306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO11			87
9962306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO12			88
10062306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO13			89
10162306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO14			90
10262306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO15			91
10362306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO16			92
10462306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO17			93
10562306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO18			94
10662306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO19			95
10762306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO20			96
10862306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO21			97
10962306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO22			98
11062306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO23			99
11162306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO24			100
11262306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO25			101
11362306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO26			102
11462306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO27			103
11562306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO28			104
11662306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LDO29			105
11762306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS1			106
11862306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS2			107
11962306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS3			108
12062306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS4			109
12162306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS5			110
12262306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS6			111
12362306a36Sopenharmony_ci#define QCOM_RPM_PM8921_LVS7			112
12462306a36Sopenharmony_ci#define QCOM_RPM_PM8921_MVS			113
12562306a36Sopenharmony_ci#define QCOM_RPM_PM8921_NCP			114
12662306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS1			115
12762306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS2			116
12862306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS3			117
12962306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS4			118
13062306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS5			119
13162306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS6			120
13262306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS7			121
13362306a36Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS8			122
13462306a36Sopenharmony_ci#define QCOM_RPM_PXO_CLK			123
13562306a36Sopenharmony_ci#define QCOM_RPM_QDSS_CLK			124
13662306a36Sopenharmony_ci#define QCOM_RPM_SFPB_CLK			125
13762306a36Sopenharmony_ci#define QCOM_RPM_SMI_CLK			126
13862306a36Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_ARB			127
13962306a36Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_CLK			128
14062306a36Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_HALT		129
14162306a36Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_IOCTL		130
14262306a36Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_MODE		131
14362306a36Sopenharmony_ci#define QCOM_RPM_USB_OTG_SWITCH			132
14462306a36Sopenharmony_ci#define QCOM_RPM_VDDMIN_GPIO			133
14562306a36Sopenharmony_ci#define QCOM_RPM_NSS_FABRIC_0_CLK		134
14662306a36Sopenharmony_ci#define QCOM_RPM_NSS_FABRIC_1_CLK		135
14762306a36Sopenharmony_ci#define QCOM_RPM_SMB208_S1a			136
14862306a36Sopenharmony_ci#define QCOM_RPM_SMB208_S1b			137
14962306a36Sopenharmony_ci#define QCOM_RPM_SMB208_S2a			138
15062306a36Sopenharmony_ci#define QCOM_RPM_SMB208_S2b			139
15162306a36Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS1			140
15262306a36Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS2			141
15362306a36Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS3			142
15462306a36Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS4			143
15562306a36Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS5			144
15662306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO1			145
15762306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO2			146
15862306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO3			147
15962306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO4			148
16062306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO5			149
16162306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO6			150
16262306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO7			151
16362306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO8			152
16462306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO9			153
16562306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO10			154
16662306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO11			155
16762306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO12			156
16862306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO13			157
16962306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LDO14			158
17062306a36Sopenharmony_ci#define QCOM_RPM_PM8018_LVS1			159
17162306a36Sopenharmony_ci#define QCOM_RPM_PM8018_NCP			160
17262306a36Sopenharmony_ci#define QCOM_RPM_VOLTAGE_CORNER			161
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci/*
17562306a36Sopenharmony_ci * Constants used to select force mode for regulators.
17662306a36Sopenharmony_ci */
17762306a36Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_NONE		0
17862306a36Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_LPM			1
17962306a36Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_HPM			2
18062306a36Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_AUTO		3
18162306a36Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_BYPASS		4
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_ci#endif
184