| .. | .. |
|---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | if (ARCH_QCOM || COMPILE_TEST) |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | config PINCTRL_MSM |
|---|
| 4 | | - bool |
|---|
| 5 | + tristate |
|---|
| 5 | 6 | select PINMUX |
|---|
| 6 | 7 | select PINCONF |
|---|
| 7 | 8 | select GENERIC_PINCONF |
|---|
| 8 | 9 | select GPIOLIB_IRQCHIP |
|---|
| 10 | + select IRQ_DOMAIN_HIERARCHY |
|---|
| 11 | + select IRQ_FASTEOI_HIERARCHY_HANDLERS |
|---|
| 9 | 12 | |
|---|
| 10 | 13 | config PINCTRL_APQ8064 |
|---|
| 11 | 14 | tristate "Qualcomm APQ8064 pin controller driver" |
|---|
| 12 | 15 | depends on GPIOLIB && OF |
|---|
| 16 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 13 | 17 | select PINCTRL_MSM |
|---|
| 14 | 18 | help |
|---|
| 15 | 19 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 18 | 22 | config PINCTRL_APQ8084 |
|---|
| 19 | 23 | tristate "Qualcomm APQ8084 pin controller driver" |
|---|
| 20 | 24 | depends on GPIOLIB && OF |
|---|
| 25 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 21 | 26 | select PINCTRL_MSM |
|---|
| 22 | 27 | help |
|---|
| 23 | 28 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 26 | 31 | config PINCTRL_IPQ4019 |
|---|
| 27 | 32 | tristate "Qualcomm IPQ4019 pin controller driver" |
|---|
| 28 | 33 | depends on GPIOLIB && OF |
|---|
| 34 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 29 | 35 | select PINCTRL_MSM |
|---|
| 30 | 36 | help |
|---|
| 31 | 37 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 34 | 40 | config PINCTRL_IPQ8064 |
|---|
| 35 | 41 | tristate "Qualcomm IPQ8064 pin controller driver" |
|---|
| 36 | 42 | depends on GPIOLIB && OF |
|---|
| 43 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 37 | 44 | select PINCTRL_MSM |
|---|
| 38 | 45 | help |
|---|
| 39 | 46 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 42 | 49 | config PINCTRL_IPQ8074 |
|---|
| 43 | 50 | tristate "Qualcomm Technologies, Inc. IPQ8074 pin controller driver" |
|---|
| 44 | 51 | depends on GPIOLIB && OF |
|---|
| 52 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 45 | 53 | select PINCTRL_MSM |
|---|
| 46 | 54 | help |
|---|
| 47 | 55 | This is the pinctrl, pinmux, pinconf and gpiolib driver for |
|---|
| .. | .. |
|---|
| 49 | 57 | Qualcomm Technologies Inc. IPQ8074 platform. Select this for |
|---|
| 50 | 58 | IPQ8074. |
|---|
| 51 | 59 | |
|---|
| 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 | + |
|---|
| 52 | 80 | config PINCTRL_MSM8660 |
|---|
| 53 | 81 | tristate "Qualcomm 8660 pin controller driver" |
|---|
| 54 | 82 | depends on GPIOLIB && OF |
|---|
| 83 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 55 | 84 | select PINCTRL_MSM |
|---|
| 56 | 85 | help |
|---|
| 57 | 86 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 60 | 89 | config PINCTRL_MSM8960 |
|---|
| 61 | 90 | tristate "Qualcomm 8960 pin controller driver" |
|---|
| 62 | 91 | depends on GPIOLIB && OF |
|---|
| 92 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 63 | 93 | select PINCTRL_MSM |
|---|
| 64 | 94 | help |
|---|
| 65 | 95 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 68 | 98 | config PINCTRL_MDM9615 |
|---|
| 69 | 99 | tristate "Qualcomm 9615 pin controller driver" |
|---|
| 70 | 100 | depends on GPIOLIB && OF |
|---|
| 101 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 71 | 102 | select PINCTRL_MSM |
|---|
| 72 | 103 | help |
|---|
| 73 | 104 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 76 | 107 | config PINCTRL_MSM8X74 |
|---|
| 77 | 108 | tristate "Qualcomm 8x74 pin controller driver" |
|---|
| 78 | 109 | depends on GPIOLIB && OF |
|---|
| 110 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 79 | 111 | select PINCTRL_MSM |
|---|
| 80 | 112 | help |
|---|
| 81 | 113 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 84 | 116 | config PINCTRL_MSM8916 |
|---|
| 85 | 117 | tristate "Qualcomm 8916 pin controller driver" |
|---|
| 86 | 118 | depends on GPIOLIB && OF |
|---|
| 119 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 87 | 120 | select PINCTRL_MSM |
|---|
| 88 | 121 | help |
|---|
| 89 | 122 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| 90 | 123 | Qualcomm TLMM block found on the Qualcomm 8916 platform. |
|---|
| 91 | 124 | |
|---|
| 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 | + |
|---|
| 92 | 136 | config PINCTRL_MSM8994 |
|---|
| 93 | 137 | tristate "Qualcomm 8994 pin controller driver" |
|---|
| 94 | 138 | depends on GPIOLIB && OF |
|---|
| 139 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 95 | 140 | select PINCTRL_MSM |
|---|
| 96 | 141 | help |
|---|
| 97 | 142 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 101 | 146 | config PINCTRL_MSM8996 |
|---|
| 102 | 147 | tristate "Qualcomm MSM8996 pin controller driver" |
|---|
| 103 | 148 | depends on GPIOLIB && OF |
|---|
| 149 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 104 | 150 | select PINCTRL_MSM |
|---|
| 105 | 151 | help |
|---|
| 106 | 152 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| .. | .. |
|---|
| 109 | 155 | config PINCTRL_MSM8998 |
|---|
| 110 | 156 | tristate "Qualcomm MSM8998 pin controller driver" |
|---|
| 111 | 157 | depends on GPIOLIB && OF |
|---|
| 158 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 112 | 159 | select PINCTRL_MSM |
|---|
| 113 | 160 | help |
|---|
| 114 | 161 | This is the pinctrl, pinmux, pinconf and gpiolib driver for the |
|---|
| 115 | 162 | Qualcomm TLMM block found in the Qualcomm MSM8998 platform. |
|---|
| 116 | 163 | |
|---|
| 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 | + |
|---|
| 117 | 173 | config PINCTRL_QDF2XXX |
|---|
| 118 | 174 | tristate "Qualcomm Technologies QDF2xxx pin controller driver" |
|---|
| 119 | 175 | depends on GPIOLIB && ACPI |
|---|
| 176 | + depends on QCOM_SCM || !QCOM_SCM |
|---|
| 120 | 177 | select PINCTRL_MSM |
|---|
| 121 | 178 | help |
|---|
| 122 | 179 | This is the GPIO driver for the TLMM block found on the |
|---|
| 123 | 180 | Qualcomm Technologies QDF2xxx SOCs. |
|---|
| 124 | 181 | |
|---|
| 125 | 182 | 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. |
|---|
| 137 | 196 | |
|---|
| 138 | 197 | 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. |
|---|
| 149 | 230 | |
|---|
| 150 | 231 | 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. |
|---|
| 158 | 260 | |
|---|
| 159 | 261 | endif |
|---|