MPM pin mappings
Subsystems (5)
v2 cover MPM pin mappings
This series adds the MPM wakeirq mappings for some SoCs and fixes my "big oops" within the 8998 driver.
---
Changes in v2:
- Remove the improper 8998 fix
- In the same spirit, amend the 8996 and 6125 additions which were
wrong in v1
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Konrad Dybcio (4):
pinctrl: qcom: msm8996: Add MPM pin mappings
pinctrl: qcom: sm6115: Add MPM pin mappings
pinctrl: qcom: sm6125: Add MPM pin mappings
pinctrl: qcom: sdm660: Add MPM pin mappings
drivers/pinctrl/qcom/pinctrl-msm8996.c | 14 ++++++++++++++ drivers/pinctrl/qcom/pinctrl-sdm660.c | 14 ++++++++++++++ drivers/pinctrl/qcom/pinctrl-sm6115.c | 12 ++++++++++++ drivers/pinctrl/qcom/pinctrl-sm6125.c | 17 +++++++++++++++++ 4 files changed, 57 insertions(+)
---
base-commit: a47fc304d2b678db1a5d760a7d644dac9b067752
change-id: 20230809-topic-mpm_mappings-31ff2856244a
Best regards,
Signature · 1 line
Konrad Dybcio <[email protected]>
PATCH v2 1/4 pinctrl: qcom: msm8996: Add MPM pin mappings
Add pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins.
--- drivers/pinctrl/qcom/pinctrl-msm8996.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/pinctrl/qcom/pinctrl-msm8996.c +14 -0
@@ -1880,6 +1880,18 @@ static const struct msm_pingroup msm8996_groups[] = { SDC_QDSD_PINGROUP(sdc1_rclk, 0x12c000, 15, 0), }; +static const struct msm_gpio_wakeirq_map msm8996_mpm_map[] = { + {1 ,3 }, {5 ,4 }, {9 ,5 }, {11 ,6 }, {66 ,7 }, {22 ,8 }, {24 ,9 }, {26 ,10 }, + {34 ,11 }, {36 ,12 }, {37 ,13 }, {38 ,14 }, {40 ,15 }, {42 ,16 }, {46 ,17 }, + {50 ,18 }, {53 ,19 }, {54 ,20 }, {56 ,21 }, {57 ,22 }, {58 ,23 }, {59 ,24 }, + {60 ,25 }, {61 ,26 }, {62 ,27 }, {63 ,28 }, {64 ,29 }, {71 ,30 }, {73 ,31 }, + {77 ,32 }, {78 ,33 }, {79 ,34 }, {80 ,35 }, {82 ,36 }, {86 ,37 }, {91 ,38 }, + {92 ,39 }, {95 ,40 }, {97 ,41 }, {101 ,42 }, {104 ,43 }, {106 ,44 }, {108 ,45 }, + {112 ,46 }, {113 ,47 }, {110 ,48 }, {127 ,50 }, {115 ,51 }, {116 ,54 }, {117 ,55 }, + {118 ,56 }, {119 ,57 }, {120 ,58 }, {121 ,59 }, {122 ,60 }, {123 ,61 }, {124 ,62 }, + {125 ,63 }, {126 ,64 }, {129 ,65 }, {131 ,66 }, {132 ,67 }, {133 ,68 }, {145 ,69 }, +}; +static const struct msm_pinctrl_soc_data msm8996_pinctrl = { .pins = msm8996_pins, .npins =ARRAY_SIZE (msm8996_pins),
@@ -1888,6 +1900,8 @@ static const struct msm_pinctrl_soc_data msm8996_pinctrl = { .groups = msm8996_groups, .ngroups = ARRAY_SIZE(msm8996_groups), .ngpios = 150, + .wakeirq_map = msm8996_mpm_map, + .nwakeirq_map = ARRAY_SIZE(msm8996_mpm_map), };static int msm8996_pinctrl_probe (struct platform_device *pdev)
Signature · 1 line
2.42.0
PATCH v2 2/4 pinctrl: qcom: sm6115: Add MPM pin mappings
In reply to Konrad DybcioAdd pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins.
--- drivers/pinctrl/qcom/pinctrl-sm6115.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/pinctrl/qcom/pinctrl-sm6115.c +12 -0
@@ -867,6 +867,16 @@ static const struct msm_pingroup sm6115_groups[] = { [120] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x73000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm6115_mpm_map[] = { + {0 ,84 }, {3 ,75 }, {4 ,16 }, {6 ,59 }, {8 ,63 }, {11 ,17 }, {13 ,18 }, + {14 ,51 }, {17 ,20 }, {18 ,52 }, {19 ,53 }, {24 ,6 }, {25 ,71 }, {27 ,73 }, + {28 ,41 }, {31 ,27 }, {32 ,54 }, {33 ,55 }, {34 ,56 }, {35 ,57 }, {36 ,58 }, + {39 ,28 }, {46 ,29 }, {62 ,60 }, {63 ,61 }, {64 ,62 }, {65 ,30 }, {66 ,31 }, + {67 ,32 }, {69 ,33 }, {70 ,34 }, {72 ,72 }, {75 ,35 }, {79 ,36 }, {80 ,21 }, + {81 ,38 }, {83 ,9 }, {84 ,39 }, {85 ,40 }, {86 ,19 }, {87 ,42 }, {88 ,43 }, + {89 ,45 }, {91 ,74 }, {93 ,46 }, {94 ,47 }, {95 ,48 }, {96 ,49 }, {97 ,50 }, +}; +static const struct msm_pinctrl_soc_data sm6115_tlmm = { .pins = sm6115_pins, .npins =ARRAY_SIZE (sm6115_pins),
@@ -877,6 +887,8 @@ static const struct msm_pinctrl_soc_data sm6115_tlmm = { .ngpios = 114, .tiles = sm6115_tiles, .ntiles = ARRAY_SIZE(sm6115_tiles), + .wakeirq_map = sm6115_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sm6115_mpm_map), };static int sm6115_tlmm_probe (struct platform_device *pdev)
Signature · 1 line
2.42.0
PATCH v2 3/4 pinctrl: qcom: sm6125: Add MPM pin mappings
In reply to Konrad DybcioAdd pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins.
--- drivers/pinctrl/qcom/pinctrl-sm6125.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
drivers/pinctrl/qcom/pinctrl-sm6125.c +17 -0
@@ -1221,6 +1221,21 @@ static const struct msm_pingroup sm6125_groups[] = { [140] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x58b000, 9, 0), }; +static const struct msm_gpio_wakeirq_map sm6125_mpm_map[] = { + {1 ,14 }, {3 ,15 }, {4 ,16 }, {9 ,17 }, {13 ,18 }, {14 ,23 }, + {15 ,19 }, {17 ,20 }, {19 ,21 }, {21 ,22 }, {22 ,84 }, {25 ,24 }, + {26 ,25 }, {27 ,26 }, {29 ,27 }, {33 ,28 }, {36 ,29 }, {42 ,30 }, + {43 ,5 }, {44 ,31 }, {45 ,6 }, {47 ,32 }, {50 ,33 }, {59 ,7 }, + {70 ,34 }, {72 ,8 }, {75 ,35 }, {79 ,36 }, {80 ,37 }, {81 ,38 }, + {82 ,39 }, {83 ,9 }, {85 ,40 }, {86 ,41 }, {88 ,42 }, {89 ,43 }, + {91 ,44 }, {92 ,45 }, {93 ,46 }, {94 ,47 }, {95 ,48 }, {96 ,49 }, + {97 ,70 }, {98 ,50 }, {99 ,51 }, {100 ,64 }, {101 ,52 }, + {102 ,53 }, {105 ,54 }, {107 ,55 }, {110 ,56 }, {111 ,57 }, + {112 ,58 }, {118 ,59 }, {120 ,71 }, {122 ,60 }, {123 ,61 }, + {124 ,13 }, {126 ,62 }, {128 ,63 }, {130 ,65 }, {131 ,66 }, + {132 ,67 }, +}; +static const struct msm_pinctrl_soc_data sm6125_tlmm = { .pins = sm6125_pins, .npins =ARRAY_SIZE (sm6125_pins),
@@ -1231,6 +1246,8 @@ static const struct msm_pinctrl_soc_data sm6125_tlmm = { .ngpios = 134, .tiles = sm6125_tiles, .ntiles = ARRAY_SIZE(sm6125_tiles), + .wakeirq_map = sm6125_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sm6125_mpm_map), };static int sm6125_tlmm_probe (struct platform_device *pdev)
Signature · 1 line
2.42.0
PATCH v2 4/4 pinctrl: qcom: sdm660: Add MPM pin mappings
In reply to Konrad DybcioAdd pin <-> wakeirq mappings to allow for waking up the AP from sleep through MPM-connected pins.
--- drivers/pinctrl/qcom/pinctrl-sdm660.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/pinctrl/qcom/pinctrl-sdm660.c +14 -0
@@ -1399,6 +1399,18 @@ static const struct msm_pingroup sdm660_groups[] = { SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0), }; +static const struct msm_gpio_wakeirq_map sdm660_mpm_map[] = { + {1 ,3 }, {5 ,4 }, {9 ,5 }, {10 ,6 }, {66 ,7 }, {22 ,8 }, {25 ,9 }, {28 ,10 }, + {58 ,11 }, {41 ,13 }, {43 ,14 }, {40 ,15 }, {42 ,16 }, {46 ,17 }, {50 ,18 }, + {44 ,19 }, {56 ,21 }, {45 ,22 }, {68 ,23 }, {69 ,24 }, {70 ,25 }, {71 ,26 }, + {72 ,27 }, {73 ,28 }, {64 ,29 }, {2 ,30 }, {13 ,31 }, {111 ,32 }, {74 ,33 }, + {75 ,34 }, {76 ,35 }, {82 ,36 }, {17 ,37 }, {77 ,38 }, {47 ,39 }, {54 ,40 }, + {48 ,41 }, {101 ,42 }, {49 ,43 }, {51 ,44 }, {86 ,45 }, {90 ,46 }, {91 ,47 }, + {52 ,48 }, {55 ,50 }, {6 ,51 }, {65 ,53 }, {67 ,55 }, {83 ,56 }, {84 ,57 }, + {85 ,58 }, {87 ,59 }, {21 ,63 }, {78 ,64 }, {113 ,65 }, {60 ,66 }, {98 ,67 }, + {30 ,68 }, {31 ,70 }, {29 ,71 }, {107 ,76 }, {109 ,83 }, {103 ,84 }, {105 ,85 }, +}; +static const struct msm_pinctrl_soc_data sdm660_pinctrl = { .pins = sdm660_pins, .npins =ARRAY_SIZE (sdm660_pins),
@@ -1409,6 +1421,8 @@ static const struct msm_pinctrl_soc_data sdm660_pinctrl = { .ngpios = 114, .tiles = sdm660_tiles, .ntiles = ARRAY_SIZE(sdm660_tiles), + .wakeirq_map = sdm660_mpm_map, + .nwakeirq_map = ARRAY_SIZE(sdm660_mpm_map), };static int sdm660_pinctrl_probe (struct platform_device *pdev)
Signature · 1 line
2.42.0
Quoted 4 lines · Konrad Dybcio
This series adds the MPM wakeirq mappings for some SoCs and fixes my "big oops" within the 8998 driver.
Signed-off-by Konrad Dybcio <[email protected]>
I simply applied this v2 version since there has been over a week and no comments. Any remaining issues can certainly be fixed in-tree.
Yours,
Linus Walleij