Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: qcom: sa8775p: add the wakeirq map

The SA8775P TLMM driver is missing the GPIO-to-wakeup-pin mapping. This
adds it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230515092515.180920-1-brgl@bgdev.pl
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Bartosz Golaszewski and committed by
Linus Walleij
a499a6b2 070a10d6

+19
+19
drivers/pinctrl/qcom/pinctrl-sa8775p.c
··· 1483 1483 [153] = SDC_QDSD_PINGROUP(sdc1_data, 0x199000, 9, 0), 1484 1484 }; 1485 1485 1486 + static const struct msm_gpio_wakeirq_map sa8775p_pdc_map[] = { 1487 + { 0, 169 }, { 1, 174 }, { 2, 170 }, { 3, 175 }, { 4, 171 }, { 5, 173 }, 1488 + { 6, 172 }, { 7, 182 }, { 10, 220 }, { 11, 213 }, { 12, 221 }, 1489 + { 16, 230 }, { 19, 231 }, { 20, 232 }, { 23, 233 }, { 24, 234 }, 1490 + { 26, 223 }, { 27, 235 }, { 28, 209 }, { 29, 176 }, { 30, 200 }, 1491 + { 31, 201 }, { 32, 212 }, { 35, 177 }, { 36, 178 }, { 39, 184 }, 1492 + { 40, 185 }, { 41, 227 }, { 42, 186 }, { 43, 228 }, { 45, 187 }, 1493 + { 47, 188 }, { 48, 194 }, { 51, 195 }, { 52, 196 }, { 55, 197 }, 1494 + { 56, 198 }, { 57, 236 }, { 58, 192 }, { 59, 193 }, { 72, 179 }, 1495 + { 73, 180 }, { 74, 181 }, { 75, 202 }, { 76, 183 }, { 77, 189 }, 1496 + { 78, 190 }, { 79, 191 }, { 80, 199 }, { 83, 204 }, { 84, 205 }, 1497 + { 85, 229 }, { 86, 206 }, { 89, 207 }, { 91, 208 }, { 94, 214 }, 1498 + { 95, 215 }, { 96, 237 }, { 97, 216 }, { 98, 238 }, { 99, 217 }, 1499 + { 100, 239 }, { 105, 219 }, { 106, 210 }, { 107, 211 }, { 108, 222 }, 1500 + { 109, 203 }, { 145, 225 }, { 146, 226 }, 1501 + }; 1502 + 1486 1503 static const struct msm_pinctrl_soc_data sa8775p_pinctrl = { 1487 1504 .pins = sa8775p_pins, 1488 1505 .npins = ARRAY_SIZE(sa8775p_pins), ··· 1508 1491 .groups = sa8775p_groups, 1509 1492 .ngroups = ARRAY_SIZE(sa8775p_groups), 1510 1493 .ngpios = 150, 1494 + .wakeirq_map = sa8775p_pdc_map, 1495 + .nwakeirq_map = ARRAY_SIZE(sa8775p_pdc_map), 1511 1496 }; 1512 1497 1513 1498 static int sa8775p_pinctrl_probe(struct platform_device *pdev)