xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/mfd/qcom-rpm.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * This header provides constants for the Qualcomm RPM bindings.
4*c66ec88fSEmmanuel Vadot  */
5*c66ec88fSEmmanuel Vadot 
6*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_MFD_QCOM_RPM_H
7*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_MFD_QCOM_RPM_H
8*c66ec88fSEmmanuel Vadot 
9*c66ec88fSEmmanuel Vadot /*
10*c66ec88fSEmmanuel Vadot  * Constants use to identify individual resources in the RPM.
11*c66ec88fSEmmanuel Vadot  */
12*c66ec88fSEmmanuel Vadot #define QCOM_RPM_APPS_FABRIC_ARB		1
13*c66ec88fSEmmanuel Vadot #define QCOM_RPM_APPS_FABRIC_CLK		2
14*c66ec88fSEmmanuel Vadot #define QCOM_RPM_APPS_FABRIC_HALT		3
15*c66ec88fSEmmanuel Vadot #define QCOM_RPM_APPS_FABRIC_IOCTL		4
16*c66ec88fSEmmanuel Vadot #define QCOM_RPM_APPS_FABRIC_MODE		5
17*c66ec88fSEmmanuel Vadot #define QCOM_RPM_APPS_L2_CACHE_CTL		6
18*c66ec88fSEmmanuel Vadot #define QCOM_RPM_CFPB_CLK			7
19*c66ec88fSEmmanuel Vadot #define QCOM_RPM_CXO_BUFFERS			8
20*c66ec88fSEmmanuel Vadot #define QCOM_RPM_CXO_CLK			9
21*c66ec88fSEmmanuel Vadot #define QCOM_RPM_DAYTONA_FABRIC_CLK		10
22*c66ec88fSEmmanuel Vadot #define QCOM_RPM_DDR_DMM			11
23*c66ec88fSEmmanuel Vadot #define QCOM_RPM_EBI1_CLK			12
24*c66ec88fSEmmanuel Vadot #define QCOM_RPM_HDMI_SWITCH			13
25*c66ec88fSEmmanuel Vadot #define QCOM_RPM_MMFPB_CLK			14
26*c66ec88fSEmmanuel Vadot #define QCOM_RPM_MM_FABRIC_ARB			15
27*c66ec88fSEmmanuel Vadot #define QCOM_RPM_MM_FABRIC_CLK			16
28*c66ec88fSEmmanuel Vadot #define QCOM_RPM_MM_FABRIC_HALT			17
29*c66ec88fSEmmanuel Vadot #define QCOM_RPM_MM_FABRIC_IOCTL		18
30*c66ec88fSEmmanuel Vadot #define QCOM_RPM_MM_FABRIC_MODE			19
31*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PLL_4				20
32*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO0			21
33*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO1			22
34*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO2			23
35*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO3			24
36*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO4			25
37*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO5			26
38*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO6			27
39*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO7			28
40*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO8			29
41*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO9			30
42*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO10			31
43*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO11			32
44*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO12			33
45*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO13			34
46*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO14			35
47*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO15			36
48*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO16			37
49*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO17			38
50*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO18			39
51*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO19			40
52*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO20			41
53*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO21			42
54*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO22			43
55*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO23			44
56*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO24			45
57*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LDO25			46
58*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LVS0			47
59*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_LVS1			48
60*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_NCP			49
61*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_SMPS0			50
62*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_SMPS1			51
63*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_SMPS2			52
64*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_SMPS3			53
65*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8058_SMPS4			54
66*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8821_LDO1			55
67*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8821_SMPS1			56
68*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8821_SMPS2			57
69*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO0			58
70*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO1			59
71*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO2			60
72*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO3			61
73*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO4			62
74*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO5			63
75*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LDO6			64
76*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LVS0			65
77*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LVS1			66
78*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LVS2			67
79*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_LVS3			68
80*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_MVS			69
81*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_SMPS0			70
82*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_SMPS1			71
83*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_SMPS2			72
84*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_SMPS3			73
85*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8901_SMPS4			74
86*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_CLK1			75
87*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_CLK2			76
88*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO1			77
89*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO2			78
90*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO3			79
91*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO4			80
92*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO5			81
93*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO6			82
94*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO7			83
95*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO8			84
96*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO9			85
97*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO10			86
98*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO11			87
99*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO12			88
100*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO13			89
101*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO14			90
102*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO15			91
103*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO16			92
104*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO17			93
105*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO18			94
106*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO19			95
107*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO20			96
108*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO21			97
109*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO22			98
110*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO23			99
111*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO24			100
112*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO25			101
113*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO26			102
114*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO27			103
115*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO28			104
116*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LDO29			105
117*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS1			106
118*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS2			107
119*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS3			108
120*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS4			109
121*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS5			110
122*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS6			111
123*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_LVS7			112
124*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_MVS			113
125*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_NCP			114
126*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS1			115
127*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS2			116
128*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS3			117
129*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS4			118
130*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS5			119
131*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS6			120
132*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS7			121
133*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8921_SMPS8			122
134*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PXO_CLK			123
135*c66ec88fSEmmanuel Vadot #define QCOM_RPM_QDSS_CLK			124
136*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SFPB_CLK			125
137*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SMI_CLK			126
138*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SYS_FABRIC_ARB			127
139*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SYS_FABRIC_CLK			128
140*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SYS_FABRIC_HALT		129
141*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SYS_FABRIC_IOCTL		130
142*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SYS_FABRIC_MODE		131
143*c66ec88fSEmmanuel Vadot #define QCOM_RPM_USB_OTG_SWITCH			132
144*c66ec88fSEmmanuel Vadot #define QCOM_RPM_VDDMIN_GPIO			133
145*c66ec88fSEmmanuel Vadot #define QCOM_RPM_NSS_FABRIC_0_CLK		134
146*c66ec88fSEmmanuel Vadot #define QCOM_RPM_NSS_FABRIC_1_CLK		135
147*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SMB208_S1a			136
148*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SMB208_S1b			137
149*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SMB208_S2a			138
150*c66ec88fSEmmanuel Vadot #define QCOM_RPM_SMB208_S2b			139
151*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_SMPS1			140
152*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_SMPS2			141
153*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_SMPS3			142
154*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_SMPS4			143
155*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_SMPS5			144
156*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO1			145
157*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO2			146
158*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO3			147
159*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO4			148
160*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO5			149
161*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO6			150
162*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO7			151
163*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO8			152
164*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO9			153
165*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO10			154
166*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO11			155
167*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO12			156
168*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO13			157
169*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LDO14			158
170*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_LVS1			159
171*c66ec88fSEmmanuel Vadot #define QCOM_RPM_PM8018_NCP			160
172*c66ec88fSEmmanuel Vadot #define QCOM_RPM_VOLTAGE_CORNER			161
173*c66ec88fSEmmanuel Vadot 
174*c66ec88fSEmmanuel Vadot /*
175*c66ec88fSEmmanuel Vadot  * Constants used to select force mode for regulators.
176*c66ec88fSEmmanuel Vadot  */
177*c66ec88fSEmmanuel Vadot #define QCOM_RPM_FORCE_MODE_NONE		0
178*c66ec88fSEmmanuel Vadot #define QCOM_RPM_FORCE_MODE_LPM			1
179*c66ec88fSEmmanuel Vadot #define QCOM_RPM_FORCE_MODE_HPM			2
180*c66ec88fSEmmanuel Vadot #define QCOM_RPM_FORCE_MODE_AUTO		3
181*c66ec88fSEmmanuel Vadot #define QCOM_RPM_FORCE_MODE_BYPASS		4
182*c66ec88fSEmmanuel Vadot 
183*c66ec88fSEmmanuel Vadot #endif
184