linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Barnabás Czémán" <barnabas.czeman@mainlining.org>
To: "Bjorn Andersson" <andersson@kernel.org>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Stephan Gerhold" <stephan@gerhold.net>,
	"Otto Pflüger" <otto.pflueger@abscue.de>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Lee Jones" <lee@kernel.org>,
	"Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>,
	"Joerg Roedel" <joro@8bytes.org>, "Will Deacon" <will@kernel.org>,
	"Robin Murphy" <robin.murphy@arm.com>,
	"Konrad Dybcio" <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-gpio@vger.kernel.org, iommu@lists.linux.dev,
	"Barnabás Czémán" <barnabas.czeman@mainlining.org>,
	"Dang Huynh" <danct12@riseup.net>
Subject: [PATCH 04/10] pinctrl: qcom: msm8917: Add MSM8937 wsa_reset pin
Date: Tue, 11 Feb 2025 23:37:48 +0100	[thread overview]
Message-ID: <20250211-msm8937-v1-4-7d27ed67f708@mainlining.org> (raw)
In-Reply-To: <20250211-msm8937-v1-0-7d27ed67f708@mainlining.org>

From: Dang Huynh <danct12@riseup.net>

It looks like both 8917 and 8937 are the same except for one pin
"wsa_reset".

Signed-off-by: Dang Huynh <danct12@riseup.net>
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
 drivers/pinctrl/qcom/Kconfig.msm       | 4 ++--
 drivers/pinctrl/qcom/pinctrl-msm8917.c | 8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/qcom/Kconfig.msm b/drivers/pinctrl/qcom/Kconfig.msm
index 35f47660a56b1a730d7724fd5a4fb490da9c7880..a0d63a6725393496e034ca26d218265b7ba4b53f 100644
--- a/drivers/pinctrl/qcom/Kconfig.msm
+++ b/drivers/pinctrl/qcom/Kconfig.msm
@@ -138,10 +138,10 @@ config PINCTRL_MSM8916
 	  Qualcomm TLMM block found on the Qualcomm 8916 platform.
 
 config PINCTRL_MSM8917
-	tristate "Qualcomm 8917 pin controller driver"
+	tristate "Qualcomm 8917/8937 pin controller driver"
 	help
 	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
-	  Qualcomm TLMM block found on the Qualcomm MSM8917 platform.
+	  Qualcomm TLMM block found on the Qualcomm MSM8917, MSM8937 platform.
 
 config PINCTRL_MSM8953
 	tristate "Qualcomm 8953 pin controller driver"
diff --git a/drivers/pinctrl/qcom/pinctrl-msm8917.c b/drivers/pinctrl/qcom/pinctrl-msm8917.c
index cff137bb3b23fbbe2b2630a7cbbf9f46e39981e7..350636807b07d9ab0e207368de63837bc5fa5502 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm8917.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm8917.c
@@ -539,6 +539,7 @@ enum msm8917_functions {
 	msm_mux_webcam_standby,
 	msm_mux_wsa_io,
 	msm_mux_wsa_irq,
+	msm_mux_wsa_reset,
 	msm_mux__,
 };
 
@@ -1123,6 +1124,10 @@ static const char * const wsa_io_groups[] = {
 	"gpio94", "gpio95",
 };
 
+static const char * const wsa_reset_groups[] = {
+	"gpio96",
+};
+
 static const char * const blsp_spi8_groups[] = {
 	"gpio96", "gpio97", "gpio98", "gpio99",
 };
@@ -1378,6 +1383,7 @@ static const struct pinfunction msm8917_functions[] = {
 	MSM_PIN_FUNCTION(webcam_standby),
 	MSM_PIN_FUNCTION(wsa_io),
 	MSM_PIN_FUNCTION(wsa_irq),
+	MSM_PIN_FUNCTION(wsa_reset),
 };
 
 static const struct msm_pingroup msm8917_groups[] = {
@@ -1616,5 +1622,5 @@ static void __exit msm8917_pinctrl_exit(void)
 }
 module_exit(msm8917_pinctrl_exit);
 
-MODULE_DESCRIPTION("Qualcomm msm8917 pinctrl driver");
+MODULE_DESCRIPTION("Qualcomm msm8917/msm8937 pinctrl driver");
 MODULE_LICENSE("GPL");

-- 
2.48.1


  parent reply	other threads:[~2025-02-11 22:38 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-11 22:37 [PATCH 00/10] Initial support of MSM8937 and Xiaomi Redmi 3S Barnabás Czémán
2025-02-11 22:37 ` [PATCH 01/10] dt-bindings: clock: gcc-msm8917: Split to separate schema Barnabás Czémán
2025-02-12  6:34   ` Krzysztof Kozlowski
2025-02-11 22:37 ` [PATCH 02/10] dt-bindings: clock: Add MSM8937 Global Clock controller compatible Barnabás Czémán
2025-02-12  6:35   ` Krzysztof Kozlowski
2025-02-11 22:37 ` [PATCH 03/10] clk: qcom: gcc: Add support for Global Clock controller found on MSM8937 Barnabás Czémán
2025-02-11 22:37 ` Barnabás Czémán [this message]
2025-02-14 10:20   ` [PATCH 04/10] pinctrl: qcom: msm8917: Add MSM8937 wsa_reset pin Linus Walleij
2025-02-14 16:53     ` barnabas.czeman
2025-02-26 21:30   ` Linus Walleij
2025-02-11 22:37 ` [PATCH 05/10] dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8937 Barnabás Czémán
2025-02-12  6:36   ` Krzysztof Kozlowski
2025-02-20 15:18   ` (subset) " Lee Jones
2025-02-11 22:37 ` [PATCH 06/10] dt-bindings: nvmem: Add compatible for MS8937 Barnabás Czémán
2025-02-12  6:37   ` Krzysztof Kozlowski
2025-02-11 22:37 ` [PATCH 07/10] dt-bindings: iommu: qcom,iommu: Add MSM8937 IOMMU to SMMUv1 compatibles Barnabás Czémán
2025-02-12  6:37   ` Krzysztof Kozlowski
2025-02-11 22:37 ` [PATCH 08/10] arm64: dts: qcom: Add initial support for MSM8937 Barnabás Czémán
2025-02-12 13:07   ` Konrad Dybcio
2025-02-12 16:20     ` barnabas.czeman
2025-02-21 21:33       ` Konrad Dybcio
2025-02-11 22:37 ` [PATCH 09/10] dt-bindings: arm: qcom: Add Xiaomi Redmi 3S Barnabás Czémán
2025-02-12  6:36   ` Krzysztof Kozlowski
2025-02-11 22:37 ` [PATCH 10/10] arm64: dts: " Barnabás Czémán
2025-02-12 14:37 ` [PATCH 00/10] Initial support of MSM8937 and " Rob Herring (Arm)
2025-02-17 10:18 ` (subset) " Srinivas Kandagatla

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=20250211-msm8937-v1-4-7d27ed67f708@mainlining.org \
    --to=barnabas.czeman@mainlining.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=danct12@riseup.net \
    --cc=devicetree@vger.kernel.org \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=otto.pflueger@abscue.de \
    --cc=robh@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=sboyd@kernel.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=stephan@gerhold.net \
    --cc=will@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;
as well as URLs for NNTP newsgroup(s).