18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This header provides constants for the Qualcomm RPM bindings.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_MFD_QCOM_RPM_H
78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_MFD_QCOM_RPM_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/*
108c2ecf20Sopenharmony_ci * Constants use to identify individual resources in the RPM.
118c2ecf20Sopenharmony_ci */
128c2ecf20Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_ARB		1
138c2ecf20Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_CLK		2
148c2ecf20Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_HALT		3
158c2ecf20Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_IOCTL		4
168c2ecf20Sopenharmony_ci#define QCOM_RPM_APPS_FABRIC_MODE		5
178c2ecf20Sopenharmony_ci#define QCOM_RPM_APPS_L2_CACHE_CTL		6
188c2ecf20Sopenharmony_ci#define QCOM_RPM_CFPB_CLK			7
198c2ecf20Sopenharmony_ci#define QCOM_RPM_CXO_BUFFERS			8
208c2ecf20Sopenharmony_ci#define QCOM_RPM_CXO_CLK			9
218c2ecf20Sopenharmony_ci#define QCOM_RPM_DAYTONA_FABRIC_CLK		10
228c2ecf20Sopenharmony_ci#define QCOM_RPM_DDR_DMM			11
238c2ecf20Sopenharmony_ci#define QCOM_RPM_EBI1_CLK			12
248c2ecf20Sopenharmony_ci#define QCOM_RPM_HDMI_SWITCH			13
258c2ecf20Sopenharmony_ci#define QCOM_RPM_MMFPB_CLK			14
268c2ecf20Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_ARB			15
278c2ecf20Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_CLK			16
288c2ecf20Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_HALT			17
298c2ecf20Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_IOCTL		18
308c2ecf20Sopenharmony_ci#define QCOM_RPM_MM_FABRIC_MODE			19
318c2ecf20Sopenharmony_ci#define QCOM_RPM_PLL_4				20
328c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO0			21
338c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO1			22
348c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO2			23
358c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO3			24
368c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO4			25
378c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO5			26
388c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO6			27
398c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO7			28
408c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO8			29
418c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO9			30
428c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO10			31
438c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO11			32
448c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO12			33
458c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO13			34
468c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO14			35
478c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO15			36
488c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO16			37
498c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO17			38
508c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO18			39
518c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO19			40
528c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO20			41
538c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO21			42
548c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO22			43
558c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO23			44
568c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO24			45
578c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LDO25			46
588c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LVS0			47
598c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_LVS1			48
608c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_NCP			49
618c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS0			50
628c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS1			51
638c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS2			52
648c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS3			53
658c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8058_SMPS4			54
668c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8821_LDO1			55
678c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8821_SMPS1			56
688c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8821_SMPS2			57
698c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO0			58
708c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO1			59
718c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO2			60
728c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO3			61
738c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO4			62
748c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO5			63
758c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LDO6			64
768c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LVS0			65
778c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LVS1			66
788c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LVS2			67
798c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_LVS3			68
808c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_MVS			69
818c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS0			70
828c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS1			71
838c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS2			72
848c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS3			73
858c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8901_SMPS4			74
868c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_CLK1			75
878c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_CLK2			76
888c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO1			77
898c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO2			78
908c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO3			79
918c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO4			80
928c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO5			81
938c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO6			82
948c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO7			83
958c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO8			84
968c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO9			85
978c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO10			86
988c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO11			87
998c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO12			88
1008c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO13			89
1018c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO14			90
1028c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO15			91
1038c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO16			92
1048c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO17			93
1058c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO18			94
1068c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO19			95
1078c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO20			96
1088c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO21			97
1098c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO22			98
1108c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO23			99
1118c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO24			100
1128c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO25			101
1138c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO26			102
1148c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO27			103
1158c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO28			104
1168c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LDO29			105
1178c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS1			106
1188c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS2			107
1198c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS3			108
1208c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS4			109
1218c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS5			110
1228c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS6			111
1238c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_LVS7			112
1248c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_MVS			113
1258c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_NCP			114
1268c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS1			115
1278c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS2			116
1288c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS3			117
1298c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS4			118
1308c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS5			119
1318c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS6			120
1328c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS7			121
1338c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8921_SMPS8			122
1348c2ecf20Sopenharmony_ci#define QCOM_RPM_PXO_CLK			123
1358c2ecf20Sopenharmony_ci#define QCOM_RPM_QDSS_CLK			124
1368c2ecf20Sopenharmony_ci#define QCOM_RPM_SFPB_CLK			125
1378c2ecf20Sopenharmony_ci#define QCOM_RPM_SMI_CLK			126
1388c2ecf20Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_ARB			127
1398c2ecf20Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_CLK			128
1408c2ecf20Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_HALT		129
1418c2ecf20Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_IOCTL		130
1428c2ecf20Sopenharmony_ci#define QCOM_RPM_SYS_FABRIC_MODE		131
1438c2ecf20Sopenharmony_ci#define QCOM_RPM_USB_OTG_SWITCH			132
1448c2ecf20Sopenharmony_ci#define QCOM_RPM_VDDMIN_GPIO			133
1458c2ecf20Sopenharmony_ci#define QCOM_RPM_NSS_FABRIC_0_CLK		134
1468c2ecf20Sopenharmony_ci#define QCOM_RPM_NSS_FABRIC_1_CLK		135
1478c2ecf20Sopenharmony_ci#define QCOM_RPM_SMB208_S1a			136
1488c2ecf20Sopenharmony_ci#define QCOM_RPM_SMB208_S1b			137
1498c2ecf20Sopenharmony_ci#define QCOM_RPM_SMB208_S2a			138
1508c2ecf20Sopenharmony_ci#define QCOM_RPM_SMB208_S2b			139
1518c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS1			140
1528c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS2			141
1538c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS3			142
1548c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS4			143
1558c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_SMPS5			144
1568c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO1			145
1578c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO2			146
1588c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO3			147
1598c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO4			148
1608c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO5			149
1618c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO6			150
1628c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO7			151
1638c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO8			152
1648c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO9			153
1658c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO10			154
1668c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO11			155
1678c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO12			156
1688c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO13			157
1698c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LDO14			158
1708c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_LVS1			159
1718c2ecf20Sopenharmony_ci#define QCOM_RPM_PM8018_NCP			160
1728c2ecf20Sopenharmony_ci#define QCOM_RPM_VOLTAGE_CORNER			161
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci/*
1758c2ecf20Sopenharmony_ci * Constants used to select force mode for regulators.
1768c2ecf20Sopenharmony_ci */
1778c2ecf20Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_NONE		0
1788c2ecf20Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_LPM			1
1798c2ecf20Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_HPM			2
1808c2ecf20Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_AUTO		3
1818c2ecf20Sopenharmony_ci#define QCOM_RPM_FORCE_MODE_BYPASS		4
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci#endif
184