mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stanislav Aleksandrov <lightofmysoul@gmail.com>
To: Bartosz Golaszewski <brgl@kernel.org>,
	 Bjorn Andersson <andersson@kernel.org>,
	Linus Walleij <linusw@kernel.org>,  Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>
Cc: Konrad Dybcio <konradybcio@kernel.org>,
	linux-arm-msm@vger.kernel.org,  linux-gpio@vger.kernel.org,
	devicetree@vger.kernel.org,  linux-kernel@vger.kernel.org,
	 Stanislav Aleksandrov <lightofmysoul@gmail.com>,
	 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: [PATCH 2/2] pinctrl: qcom: halliday: Add gp_mn and gp_pdm mux functions
Date: Thu, 26 Nov 2026 15:22:33 +0000	[thread overview]
Message-ID: <20261126-halliday-tlmm-gp-functions-v1-2-b8543d6a83eb@gmail.com> (raw)
In-Reply-To: <20261126-halliday-tlmm-gp-functions-v1-0-b8543d6a83eb@gmail.com>

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@oss.qualcomm.com
Suggested-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Stanislav Aleksandrov <lightofmysoul@gmail.com>
---
 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


      parent reply	other threads:[~2026-11-26 15:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 15:22 [PATCH 0/2] pinctrl: qcom: halliday: Add the gp_mn and gp_pdm functions Stanislav Aleksandrov
2026-11-26 15:22 ` [PATCH 1/2] dt-bindings: pinctrl: qcom: halliday: add " Stanislav Aleksandrov
2026-11-26 15:22 ` Stanislav Aleksandrov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126-halliday-tlmm-gp-functions-v1-2-b8543d6a83eb@gmail.com \
    --to=lightofmysoul@gmail.com \
    --cc=andersson@kernel.org \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®