[PATCH 2/2] pinctrl: qcom: halliday: Add gp_mn and gp_pdm mux functions

From: Stanislav Aleksandrov

Date: Thu Nov 26 2026 - 10:22:58 EST


Add the gp_mn function on gpio63 and the gp_pdm_mira and gp_pdm_mirb
functions on gpio35-37 and gpio88-90.

Qualcomm's downstream pinctrl-anorak driver does not have them. The pins
and the mux values were provided by Konrad Dybcio.

Link: https://lore.kernel.org/r/84fbc195-8e93-4d25-ab0e-14c3510edf40@xxxxxxxxxxxxxxxx
Suggested-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Signed-off-by: Stanislav Aleksandrov <lightofmysoul@xxxxxxxxx>
---
drivers/pinctrl/qcom/pinctrl-halliday.c | 32 +++++++++++++++++++++++++-------
1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-halliday.c b/drivers/pinctrl/qcom/pinctrl-halliday.c
index 05e7f22bb417..9d386bdec24c 100644
--- a/drivers/pinctrl/qcom/pinctrl-halliday.c
+++ b/drivers/pinctrl/qcom/pinctrl-halliday.c
@@ -603,6 +603,9 @@ enum halliday_functions {
msm_mux_gcc_gp7,
msm_mux_gcc_gp8,
msm_mux_gcc_gp9,
+ msm_mux_gp_mn,
+ msm_mux_gp_pdm_mira,
+ msm_mux_gp_pdm_mirb,
msm_mux_i2s0_data0,
msm_mux_i2s0_data1,
msm_mux_i2s0_sck,
@@ -920,6 +923,18 @@ static const char *const gcc_gp9_groups[] = {
"gpio107",
};

+static const char *const gp_mn_groups[] = {
+ "gpio63",
+};
+
+static const char *const gp_pdm_mira_groups[] = {
+ "gpio35", "gpio36", "gpio37",
+};
+
+static const char *const gp_pdm_mirb_groups[] = {
+ "gpio88", "gpio89", "gpio90",
+};
+
static const char *const i2s0_data0_groups[] = {
"gpio163",
};
@@ -1419,6 +1434,9 @@ static const struct pinfunction halliday_functions[] = {
MSM_PIN_FUNCTION(gcc_gp7),
MSM_PIN_FUNCTION(gcc_gp8),
MSM_PIN_FUNCTION(gcc_gp9),
+ MSM_PIN_FUNCTION(gp_mn),
+ MSM_PIN_FUNCTION(gp_pdm_mira),
+ MSM_PIN_FUNCTION(gp_pdm_mirb),
MSM_PIN_FUNCTION(i2s0_data0),
MSM_PIN_FUNCTION(i2s0_data1),
MSM_PIN_FUNCTION(i2s0_sck),
@@ -1575,9 +1593,9 @@ static const struct msm_pingroup halliday_groups[] = {
[32] = PINGROUP(32, cci_timer, _, phase_flag, _, _, _, _, _, _),
[33] = PINGROUP(33, cci_timer, _, phase_flag, _, _, _, _, _, _),
[34] = PINGROUP(34, cci_timer, _, phase_flag, _, _, _, _, _, _),
- [35] = PINGROUP(35, cci_timer, _, _, phase_flag, _, _, _, _, _),
- [36] = PINGROUP(36, cci_timer, _, _, phase_flag, _, _, _, _, _),
- [37] = PINGROUP(37, cci_timer, _, _, phase_flag, _, _, _, _, _),
+ [35] = PINGROUP(35, cci_timer, gp_pdm_mira, _, phase_flag, _, _, _, _, _),
+ [36] = PINGROUP(36, cci_timer, gp_pdm_mira, _, phase_flag, _, _, _, _, _),
+ [37] = PINGROUP(37, cci_timer, gp_pdm_mira, _, phase_flag, _, _, _, _, _),
[38] = PINGROUP(38, cci_timer, _, phase_flag, _, _, _, _, _, _),
[39] = PINGROUP(39, cci_timer, _, phase_flag, _, _, _, _, _, _),
[40] = PINGROUP(40, cci_async_in, _, phase_flag, _, _, _, _, _, _),
@@ -1603,7 +1621,7 @@ static const struct msm_pingroup halliday_groups[] = {
[60] = PINGROUP(60, qup1_se0_l3_mira, pwm_2, mdp1_vsync0_out, _, _, _, _, _, _),
[61] = PINGROUP(61, pwm_3, mdp1_vsync1_out, _, _, _, _, _, _, _),
[62] = PINGROUP(62, gcc_gp4, qup1_se0_l3_mirb, mdp1_vsync2_out, _, _, _, _, _, _),
- [63] = PINGROUP(63, qup1_se1, ibi_i3c, mdp1_vsync3_out, _, _, _, _, _, _),
+ [63] = PINGROUP(63, qup1_se1, ibi_i3c, mdp1_vsync3_out, gp_mn, _, _, _, _, _),
[64] = PINGROUP(64, qup1_se1, ibi_i3c, mdp1_vsync4_out, _, _, _, _, _, _),
[65] = PINGROUP(65, qup1_se1, mdp1_vsync5_out, _, _, _, _, _, _, _),
[66] = PINGROUP(66, qup1_se1_l3_mira, pwm_4, mdp1_vsync6_out, _, _, _, _, _, _),
@@ -1628,9 +1646,9 @@ static const struct msm_pingroup halliday_groups[] = {
[85] = PINGROUP(85, qup1_se4, _, _, _, _, _, _, _, _),
[86] = PINGROUP(86, qup1_se4, _, _, _, _, _, _, _, _),
[87] = PINGROUP(87, gcc_gp8, qup1_se4, _, _, _, _, _, _, _),
- [88] = PINGROUP(88, qup1_se5, _, _, _, _, _, _, _, _),
- [89] = PINGROUP(89, qup1_se5, _, _, _, _, _, _, _, _),
- [90] = PINGROUP(90, qup1_se5, _, _, _, _, _, _, _, _),
+ [88] = PINGROUP(88, qup1_se5, gp_pdm_mirb, _, _, _, _, _, _, _),
+ [89] = PINGROUP(89, qup1_se5, gp_pdm_mirb, _, _, _, _, _, _, _),
+ [90] = PINGROUP(90, qup1_se5, gp_pdm_mirb, _, _, _, _, _, _, _),
[91] = PINGROUP(91, qup1_se5, _, _, _, _, _, _, _, _),
[92] = PINGROUP(92, qup1_se6_l0_mira, _, _, _, _, _, _, _, _),
[93] = PINGROUP(93, qup1_se6_l1_mira, _, _, _, _, _, _, _, _),

--
2.55.0