Skip to content

Commit b41efee

Browse files
anderssonLinus Walleij
authored andcommitted
pinctrl: qcom: sm8250: Specify PDC map
Specify the PDC mapping for SM8250, so that gpio interrupts are propertly mapped to the wakeup IRQs of the PDC. Fixes: 4e3ec9e ("pinctrl: qcom: Add sm8250 pinctrl driver.") Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20201028043642.1141723-1-bjorn.andersson@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 71266d9 commit b41efee

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎drivers/pinctrl/qcom/pinctrl-sm8250.c‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,22 @@ static const struct msm_pingroup sm8250_groups[] = {
13131313
[183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0),
13141314
};
13151315

1316+
static const struct msm_gpio_wakeirq_map sm8250_pdc_map[] = {
1317+
{ 0, 79 }, { 1, 84 }, { 2, 80 }, { 3, 82 }, { 4, 107 }, { 7, 43 },
1318+
{ 11, 42 }, { 14, 44 }, { 15, 52 }, { 19, 67 }, { 23, 68 }, { 24, 105 },
1319+
{ 27, 92 }, { 28, 106 }, { 31, 69 }, { 35, 70 }, { 39, 37 },
1320+
{ 40, 108 }, { 43, 71 }, { 45, 72 }, { 47, 83 }, { 51, 74 }, { 55, 77 },
1321+
{ 59, 78 }, { 63, 75 }, { 64, 81 }, { 65, 87 }, { 66, 88 }, { 67, 89 },
1322+
{ 68, 54 }, { 70, 85 }, { 77, 46 }, { 80, 90 }, { 81, 91 }, { 83, 97 },
1323+
{ 84, 98 }, { 86, 99 }, { 87, 100 }, { 88, 101 }, { 89, 102 },
1324+
{ 92, 103 }, { 93, 104 }, { 100, 53 }, { 103, 47 }, { 104, 48 },
1325+
{ 108, 49 }, { 109, 94 }, { 110, 95 }, { 111, 96 }, { 112, 55 },
1326+
{ 113, 56 }, { 118, 50 }, { 121, 51 }, { 122, 57 }, { 123, 58 },
1327+
{ 124, 45 }, { 126, 59 }, { 128, 76 }, { 129, 86 }, { 132, 93 },
1328+
{ 133, 65 }, { 134, 66 }, { 136, 62 }, { 137, 63 }, { 138, 64 },
1329+
{ 142, 60 }, { 143, 61 }
1330+
};
1331+
13161332
static const struct msm_pinctrl_soc_data sm8250_pinctrl = {
13171333
.pins = sm8250_pins,
13181334
.npins = ARRAY_SIZE(sm8250_pins),
@@ -1323,6 +1339,8 @@ static const struct msm_pinctrl_soc_data sm8250_pinctrl = {
13231339
.ngpios = 181,
13241340
.tiles = sm8250_tiles,
13251341
.ntiles = ARRAY_SIZE(sm8250_tiles),
1342+
.wakeirq_map = sm8250_pdc_map,
1343+
.nwakeirq_map = ARRAY_SIZE(sm8250_pdc_map),
13261344
};
13271345

13281346
static int sm8250_pinctrl_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)