hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/pinctrl/qcom/Kconfig
....@@ -1,15 +1,19 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 if (ARCH_QCOM || COMPILE_TEST)
23
34 config PINCTRL_MSM
4
- bool
5
+ tristate
56 select PINMUX
67 select PINCONF
78 select GENERIC_PINCONF
89 select GPIOLIB_IRQCHIP
10
+ select IRQ_DOMAIN_HIERARCHY
11
+ select IRQ_FASTEOI_HIERARCHY_HANDLERS
912
1013 config PINCTRL_APQ8064
1114 tristate "Qualcomm APQ8064 pin controller driver"
1215 depends on GPIOLIB && OF
16
+ depends on QCOM_SCM || !QCOM_SCM
1317 select PINCTRL_MSM
1418 help
1519 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -18,6 +22,7 @@
1822 config PINCTRL_APQ8084
1923 tristate "Qualcomm APQ8084 pin controller driver"
2024 depends on GPIOLIB && OF
25
+ depends on QCOM_SCM || !QCOM_SCM
2126 select PINCTRL_MSM
2227 help
2328 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -26,6 +31,7 @@
2631 config PINCTRL_IPQ4019
2732 tristate "Qualcomm IPQ4019 pin controller driver"
2833 depends on GPIOLIB && OF
34
+ depends on QCOM_SCM || !QCOM_SCM
2935 select PINCTRL_MSM
3036 help
3137 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -34,6 +40,7 @@
3440 config PINCTRL_IPQ8064
3541 tristate "Qualcomm IPQ8064 pin controller driver"
3642 depends on GPIOLIB && OF
43
+ depends on QCOM_SCM || !QCOM_SCM
3744 select PINCTRL_MSM
3845 help
3946 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -42,6 +49,7 @@
4249 config PINCTRL_IPQ8074
4350 tristate "Qualcomm Technologies, Inc. IPQ8074 pin controller driver"
4451 depends on GPIOLIB && OF
52
+ depends on QCOM_SCM || !QCOM_SCM
4553 select PINCTRL_MSM
4654 help
4755 This is the pinctrl, pinmux, pinconf and gpiolib driver for
....@@ -49,9 +57,30 @@
4957 Qualcomm Technologies Inc. IPQ8074 platform. Select this for
5058 IPQ8074.
5159
60
+config PINCTRL_IPQ6018
61
+ tristate "Qualcomm Technologies, Inc. IPQ6018 pin controller driver"
62
+ depends on GPIOLIB && OF
63
+ depends on QCOM_SCM || !QCOM_SCM
64
+ select PINCTRL_MSM
65
+ help
66
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for
67
+ the Qualcomm Technologies Inc. TLMM block found on the
68
+ Qualcomm Technologies Inc. IPQ6018 platform. Select this for
69
+ IPQ6018.
70
+
71
+config PINCTRL_MSM8226
72
+ tristate "Qualcomm 8226 pin controller driver"
73
+ depends on GPIOLIB && OF
74
+ select PINCTRL_MSM
75
+ help
76
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
77
+ Qualcomm Technologies Inc TLMM block found on the Qualcomm
78
+ Technologies Inc MSM8226 platform.
79
+
5280 config PINCTRL_MSM8660
5381 tristate "Qualcomm 8660 pin controller driver"
5482 depends on GPIOLIB && OF
83
+ depends on QCOM_SCM || !QCOM_SCM
5584 select PINCTRL_MSM
5685 help
5786 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -60,6 +89,7 @@
6089 config PINCTRL_MSM8960
6190 tristate "Qualcomm 8960 pin controller driver"
6291 depends on GPIOLIB && OF
92
+ depends on QCOM_SCM || !QCOM_SCM
6393 select PINCTRL_MSM
6494 help
6595 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -68,6 +98,7 @@
6898 config PINCTRL_MDM9615
6999 tristate "Qualcomm 9615 pin controller driver"
70100 depends on GPIOLIB && OF
101
+ depends on QCOM_SCM || !QCOM_SCM
71102 select PINCTRL_MSM
72103 help
73104 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -76,6 +107,7 @@
76107 config PINCTRL_MSM8X74
77108 tristate "Qualcomm 8x74 pin controller driver"
78109 depends on GPIOLIB && OF
110
+ depends on QCOM_SCM || !QCOM_SCM
79111 select PINCTRL_MSM
80112 help
81113 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -84,14 +116,27 @@
84116 config PINCTRL_MSM8916
85117 tristate "Qualcomm 8916 pin controller driver"
86118 depends on GPIOLIB && OF
119
+ depends on QCOM_SCM || !QCOM_SCM
87120 select PINCTRL_MSM
88121 help
89122 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
90123 Qualcomm TLMM block found on the Qualcomm 8916 platform.
91124
125
+config PINCTRL_MSM8976
126
+ tristate "Qualcomm 8976 pin controller driver"
127
+ depends on GPIOLIB && OF
128
+ depends on QCOM_SCM || !QCOM_SCM
129
+ select PINCTRL_MSM
130
+ help
131
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
132
+ Qualcomm TLMM block found on the Qualcomm MSM8976 platform.
133
+ The Qualcomm MSM8956, APQ8056, APQ8076 platforms are also
134
+ supported by this driver.
135
+
92136 config PINCTRL_MSM8994
93137 tristate "Qualcomm 8994 pin controller driver"
94138 depends on GPIOLIB && OF
139
+ depends on QCOM_SCM || !QCOM_SCM
95140 select PINCTRL_MSM
96141 help
97142 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -101,6 +146,7 @@
101146 config PINCTRL_MSM8996
102147 tristate "Qualcomm MSM8996 pin controller driver"
103148 depends on GPIOLIB && OF
149
+ depends on QCOM_SCM || !QCOM_SCM
104150 select PINCTRL_MSM
105151 help
106152 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
....@@ -109,51 +155,107 @@
109155 config PINCTRL_MSM8998
110156 tristate "Qualcomm MSM8998 pin controller driver"
111157 depends on GPIOLIB && OF
158
+ depends on QCOM_SCM || !QCOM_SCM
112159 select PINCTRL_MSM
113160 help
114161 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
115162 Qualcomm TLMM block found in the Qualcomm MSM8998 platform.
116163
164
+config PINCTRL_QCS404
165
+ tristate "Qualcomm QCS404 pin controller driver"
166
+ depends on GPIOLIB && OF
167
+ depends on QCOM_SCM || !QCOM_SCM
168
+ select PINCTRL_MSM
169
+ help
170
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
171
+ TLMM block found in the Qualcomm QCS404 platform.
172
+
117173 config PINCTRL_QDF2XXX
118174 tristate "Qualcomm Technologies QDF2xxx pin controller driver"
119175 depends on GPIOLIB && ACPI
176
+ depends on QCOM_SCM || !QCOM_SCM
120177 select PINCTRL_MSM
121178 help
122179 This is the GPIO driver for the TLMM block found on the
123180 Qualcomm Technologies QDF2xxx SOCs.
124181
125182 config PINCTRL_QCOM_SPMI_PMIC
126
- tristate "Qualcomm SPMI PMIC pin controller driver"
127
- depends on GPIOLIB && OF && SPMI
128
- select REGMAP_SPMI
129
- select PINMUX
130
- select PINCONF
131
- select GENERIC_PINCONF
132
- help
133
- This is the pinctrl, pinmux, pinconf and gpiolib driver for the
134
- Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
135
- which are using SPMI for communication with SoC. Example PMIC's
136
- devices are pm8841, pm8941 and pma8084.
183
+ tristate "Qualcomm SPMI PMIC pin controller driver"
184
+ depends on GPIOLIB && OF && SPMI
185
+ select REGMAP_SPMI
186
+ select PINMUX
187
+ select PINCONF
188
+ select GENERIC_PINCONF
189
+ select GPIOLIB_IRQCHIP
190
+ select IRQ_DOMAIN_HIERARCHY
191
+ help
192
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
193
+ Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
194
+ which are using SPMI for communication with SoC. Example PMIC's
195
+ devices are pm8841, pm8941 and pma8084.
137196
138197 config PINCTRL_QCOM_SSBI_PMIC
139
- tristate "Qualcomm SSBI PMIC pin controller driver"
140
- depends on GPIOLIB && OF
141
- select PINMUX
142
- select PINCONF
143
- select GENERIC_PINCONF
144
- help
145
- This is the pinctrl, pinmux, pinconf and gpiolib driver for the
146
- Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
147
- which are using SSBI for communication with SoC. Example PMIC's
148
- devices are pm8058 and pm8921.
198
+ tristate "Qualcomm SSBI PMIC pin controller driver"
199
+ depends on GPIOLIB && OF
200
+ select PINMUX
201
+ select PINCONF
202
+ select GENERIC_PINCONF
203
+ select GPIOLIB_IRQCHIP
204
+ select IRQ_DOMAIN_HIERARCHY
205
+ help
206
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
207
+ Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
208
+ which are using SSBI for communication with SoC. Example PMIC's
209
+ devices are pm8058 and pm8921.
210
+
211
+config PINCTRL_SC7180
212
+ tristate "Qualcomm Technologies Inc SC7180 pin controller driver"
213
+ depends on GPIOLIB && OF
214
+ depends on QCOM_SCM || !QCOM_SCM
215
+ select PINCTRL_MSM
216
+ help
217
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
218
+ Qualcomm Technologies Inc TLMM block found on the Qualcomm
219
+ Technologies Inc SC7180 platform.
220
+
221
+config PINCTRL_SDM660
222
+ tristate "Qualcomm Technologies Inc SDM660 pin controller driver"
223
+ depends on GPIOLIB && OF
224
+ depends on QCOM_SCM || !QCOM_SCM
225
+ select PINCTRL_MSM
226
+ help
227
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
228
+ Qualcomm Technologies Inc TLMM block found on the Qualcomm
229
+ Technologies Inc SDM660 platform.
149230
150231 config PINCTRL_SDM845
151
- tristate "Qualcomm Technologies Inc SDM845 pin controller driver"
152
- depends on GPIOLIB && OF
153
- select PINCTRL_MSM
154
- help
155
- This is the pinctrl, pinmux, pinconf and gpiolib driver for the
156
- Qualcomm Technologies Inc TLMM block found on the Qualcomm
157
- Technologies Inc SDM845 platform.
232
+ tristate "Qualcomm Technologies Inc SDM845 pin controller driver"
233
+ depends on GPIOLIB && (OF || ACPI)
234
+ depends on QCOM_SCM || !QCOM_SCM
235
+ select PINCTRL_MSM
236
+ help
237
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
238
+ Qualcomm Technologies Inc TLMM block found on the Qualcomm
239
+ Technologies Inc SDM845 platform.
240
+
241
+config PINCTRL_SM8150
242
+ tristate "Qualcomm Technologies Inc SM8150 pin controller driver"
243
+ depends on GPIOLIB && OF
244
+ depends on QCOM_SCM || !QCOM_SCM
245
+ select PINCTRL_MSM
246
+ help
247
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
248
+ Qualcomm Technologies Inc TLMM block found on the Qualcomm
249
+ Technologies Inc SM8150 platform.
250
+
251
+config PINCTRL_SM8250
252
+ tristate "Qualcomm Technologies Inc SM8250 pin controller driver"
253
+ depends on GPIOLIB && OF
254
+ depends on QCOM_SCM || !QCOM_SCM
255
+ select PINCTRL_MSM
256
+ help
257
+ This is the pinctrl, pinmux, pinconf and gpiolib driver for the
258
+ Qualcomm Technologies Inc TLMM block found on the Qualcomm
259
+ Technologies Inc SM8250 platform.
158260
159261 endif