Skip to contentSkip to conversation

Add pinctrl support for MSM8952

PATCH Superseded Muzaffer Kadir 4 participants 11 messages Sep 4 – Sep 7

Subsystems (6)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover Add pinctrl support for MSM8952

MSM8952 has pinctrl system that is similar to MSM8917 pinctrl, but it has some differences in some of the pins and their functions. This driver tested on General Mobile GM 5 Plus.

---
Changes in v4:
- Revert back accidentally changed dt-bindings gpio regex.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Added missing functions and removed unnecessary functions
with Konrad Dybcio's suggestions.
- Because of the changes on functions, I changed dt-bindings too.
Dropped Krzysztof's Reviewed-By attribute because of the changes.
- Rebased and Tested on linux-next, next-20260902 tag.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Reworded dt-bindings commit as Krzysztof suggested.
- Added depends and default to kconfig entry of pinctrl
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Muzaffer Kadir (2):
dt-bindings: pinctrl: qcom: Add MSM8952 pinctrl
pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

 .../bindings/pinctrl/qcom,msm8952-pinctrl.yaml     |  146 +++
 drivers/pinctrl/qcom/Kconfig.msm                   |    8 +
 drivers/pinctrl/qcom/Makefile                      |    1 +
 drivers/pinctrl/qcom/pinctrl-msm8952.c             | 1194 ++++++++++++++++++++
 4 files changed, 1349 insertions(+)

---
base-commit: 32b6ef9a5d0eca44f9cd91f52f4faa89f145a0de
change-id: 20260816-msm8952-pinctrl-bc2bd4849261

Best regards,

Signature · 1 line
Muzaffer Kadir <[email protected]>
#1 lore raw

PATCH v4 1/2 dt-bindings: pinctrl: qcom: Add MSM8952 pinctrl

Add device tree bindings for the TLMM pin controller found on the Qualcomm MSM8952 platform.

---
 .../bindings/pinctrl/qcom,msm8952-pinctrl.yaml     | 146 +++++++++++++++++++++
 1 file changed, 146 insertions(+)
Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml new file +146 -0
new file mode 100644
index 000000000000..d367bb078aff
@@ -0,0 +1,146 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/qcom,msm8952-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm MSM8952 TLMM pin controller
+
+maintainers:
+  - Muzaffer Kadir <[email protected]>
+
+description:
+  Top Level Mode Multiplexer pin controller in Qualcomm MSM8952 SoC.
+
+properties:
+  compatible:
+    const: qcom,msm8952-pinctrl
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  gpio-reserved-ranges:
+    minItems: 1
+    maxItems: 66
+
+  gpio-line-names:
+    maxItems: 134
+
+patternProperties:
+  "-state$":
+    oneOf:
+      - $ref: "#/$defs/qcom-msm8952-tlmm-state"
+      - patternProperties:
+          "-pins$":
+            $ref: "#/$defs/qcom-msm8952-tlmm-state"
+        additionalProperties: false
+
+$defs:
+  qcom-msm8952-tlmm-state:
+    type: object
+    description:
+      Pinctrl node's client devices use subnodes for desired pin configuration.
+      Client device subnodes use below standard properties.
+    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
+    unevaluatedProperties: false
+
+    properties:
+      pins:
+        description:
+          List of gpio pins affected by the properties specified in this
+          subnode.
+        items:
+          oneOf:
+            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-3])$"
+            - enum: [ qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
+                      qdsd_data3, sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk,
+                      sdc2_clk, sdc2_cmd, sdc2_data ]
+        minItems: 1
+        maxItems: 36
+
+      function:
+        description:
+          Specify the alternative function to be configured for the specified
+          pins.
+
+        enum: [ gpio, blsp_uart1, blsp_spi1, adsp_ext, blsp_i2c1, prng_rosc, qdss_cti_trig_out_b0,
+                qdss_cti_trig_out_a1, blsp_spi2, blsp_uart2, ldo_update, qdss_tracedata_b,
+                pbs1, pwr_modem_enabled_b, blsp_i2c3, gcc_gp2_clk_b, atest_combodac_to_gpio_native,
+                ldo_en, blsp_i2c2, gcc_gp1_clk_b, atest_gpsadc_dtest0_native, blsp_spi3,
+                blsp_uart3, sec_mi2s, pbs0, gcc_gp3_clk_b, blsp_spi4, blsp_uart4, pbs2,
+                pwr_nav_enabled_b, pwr_crypto_enabled_b, blsp_i2c4, blsp_spi5, blsp_uart5,
+                qdss_traceclk_a, atest_bbrx1, qdss_tracectl_b, qdss_cti_trig_in_b0, blsp_i2c6,
+                qdss_traceclk_b, atest_wlan0, m_voc, qdss_cti_trig_in_a0, atest_bbrx0, blsp_i2c5,
+                qdss_tracectl_a, atest_gpsadc_dtest1_native, qdss_tracedata_a, blsp_spi6,
+                blsp_uart6, atest_wlan1, mdp_vsync, pri_mi2s_mclk_a, sec_mi2s_mclk_a,
+                cam_mclk, cci_i2c, pwr_modem_enabled_a, cci_timer0, cci_timer1, pwr_nav_enabled_a,
+                pwr_crypto_enabled_a, cci_async, sd_write, qdss_cti_trig_out_a0, gcc_gp1_clk_a,
+                gcc_gp2_clk_a, gcc_gp3_clk_a, blsp6_spi, qdss_cti_trig_in_b1, uim_batt,
+                qdss_cti_trig_out_b1, uim1_data, uim1_clk, uim1_reset, uim1_present, uim2_data,
+                uim2_clk, uim2_reset, uim2_present, uim3_data, usb_fs, uim3_clk, uim3_reset,
+                uim3_present, atest_char3, dbg_out, bimc_dte0, sec_mi2s_mclk_b, pri_mi2s,
+                atest_char1, ebi_cdc, atest_char0, cdc_pdm0, pri_mi2s_mclk_b, lpass_slimbus,
+                lpass_slimbus0, lpass_slimbus1, wcss_bt, atest_char2, ebi_ch0, wcss_wlan2,
+                wcss_wlan1, wcss_wlan0, wcss_wlan, wcss_fm, ext_lpass, gcc_tlmm, dmic0_clk,
+                dmic0_data, qdss_cti_trig_in_a1, blsp_spi7, blsp_uart7, pri_mi2s_ws, wsa_io,
+                blsp_i2c7, blsp_spi8, blsp_uart8, blsp_i2c8, gcc_plltest, nav_pps_in_a,
+                pa_indicator, nav_pps_in_b, nav_pps, modem_tsync, nav_tsync, ssbi_wtr1,
+                gsm1_tx, gsm0_tx, atest_char, atest_tsens, bimc_dte1,
+                gp_mn, gp_pdm_0a, gp_pdm_0b, gp_pdm_1a, gp_pdm_1b,
+                gp_pdm_2a, gp_pdm_2b, gp0_clk, gp1_clk]
+
+    required:
+      - pins
+
+allOf:
+  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    msmgpio: pinctrl@1000000 {
+        compatible = "qcom,msm8952-pinctrl";
+        reg = <0x01000000 0x300000>;
+        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
+        gpio-controller;
+        gpio-ranges = <&msmgpio 0 0 134>;
+        #gpio-cells = <2>;
+        interrupt-controller;
+        #interrupt-cells = <2>;
+
+        blsp1-uart2-sleep-state {
+            pins = "gpio4", "gpio5";
+            function = "gpio";
+
+            drive-strength = <2>;
+            bias-pull-down;
+        };
+
+        spi1-default-state {
+            spi-pins {
+                pins = "gpio0", "gpio1", "gpio3";
+                function = "blsp_spi1";
+
+                drive-strength = <12>;
+                bias-disable;
+            };
+
+            cs-pins {
+                pins = "gpio2";
+                function = "blsp_spi1";
+
+                drive-strength = <2>;
+                bias-disable;
+            };
+        };
+    };
Signature · 1 line
2.54.0
#2 lore raw

Re: [PATCH v4 1/2] dt-bindings: pinctrl: qcom: Add MSM8952 pinctrl

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The `maxItems` limit for `gpio-reserved-ranges` is mathematically off-by-one, artificially…

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The maxItems limit for gpio-reserved-ranges is mathematically off-by-one, artificially preventing the maximum possible fragmentation of reserved ranges. --

commit c09a958e0a0865ed0afbe7d8e7ad728062dcbdf7
Author: Muzaffer Kadir <[email protected]>

dt-bindings: pinctrl: qcom: Add MSM8952 pinctrl

Add device tree bindings for the TLMM pin controller found on the Qualcomm MSM8952 platform.

Quoted 5 lines
Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml new file +0 -0
new file mode 100644
@@ -0,0 +1,146 @@

[ ... ]

Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml line 27

Quoted 6 lines
Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml new file +6 -0
+  interrupts:
+    maxItems: 1
+
+  gpio-reserved-ranges:
+    minItems: 1
+    maxItems: 66

[Severity: Low]
Does this maxItems limit artificially prevent the maximum possible fragmentation of reserved ranges?

The SoC defines 134 GPIO pins (0 through 133). In the worst-case fragmentation scenario where every alternating pin is reserved (e.g., 0, 2, 4, ..., 132), wouldn't this result in exactly 67 disjoint reserved ranges rather than 66?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Reviewed-by on v4 1/2
#3 lore raw

Re: [PATCH v4 1/2] dt-bindings: pinctrl: qcom: Add MSM8952 pinctrl

In reply to Muzaffer Kadir
Quoted 15 lines · Muzaffer Kadir
Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml new file +15 -0
+        enum: [ gpio, blsp_uart1, blsp_spi1, adsp_ext, blsp_i2c1, prng_rosc, qdss_cti_trig_out_b0,
+                qdss_cti_trig_out_a1, blsp_spi2, blsp_uart2, ldo_update, qdss_tracedata_b,
+                pbs1, pwr_modem_enabled_b, blsp_i2c3, gcc_gp2_clk_b, atest_combodac_to_gpio_native,
+                ldo_en, blsp_i2c2, gcc_gp1_clk_b, atest_gpsadc_dtest0_native, blsp_spi3,
+                blsp_uart3, sec_mi2s, pbs0, gcc_gp3_clk_b, blsp_spi4, blsp_uart4, pbs2,
+                pwr_nav_enabled_b, pwr_crypto_enabled_b, blsp_i2c4, blsp_spi5, blsp_uart5,
+                qdss_traceclk_a, atest_bbrx1, qdss_tracectl_b, qdss_cti_trig_in_b0, blsp_i2c6,
+                qdss_traceclk_b, atest_wlan0, m_voc, qdss_cti_trig_in_a0, atest_bbrx0, blsp_i2c5,
+                qdss_tracectl_a, atest_gpsadc_dtest1_native, qdss_tracedata_a, blsp_spi6,
+                blsp_uart6, atest_wlan1, mdp_vsync, pri_mi2s_mclk_a, sec_mi2s_mclk_a,
+                cam_mclk, cci_i2c, pwr_modem_enabled_a, cci_timer0, cci_timer1, pwr_nav_enabled_a,
+                pwr_crypto_enabled_a, cci_async, sd_write, qdss_cti_trig_out_a0, gcc_gp1_clk_a,
+                gcc_gp2_clk_a, gcc_gp3_clk_a, blsp6_spi, qdss_cti_trig_in_b1, uim_batt,
+                qdss_cti_trig_out_b1, uim1_data, uim1_clk, uim1_reset, uim1_present, uim2_data,
+                uim2_clk, uim2_reset, uim2_present, uim3_data, usb_fs, uim3_clk, uim3_reset,

Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml line 93

Quoted 10 lines
Documentation/devicetree/bindings/pinctrl/qcom,msm8952-pinctrl.yaml new file +10 -0
+                uim3_present, atest_char3, dbg_out, bimc_dte0, sec_mi2s_mclk_b, pri_mi2s,
+                atest_char1, ebi_cdc, atest_char0, cdc_pdm0, pri_mi2s_mclk_b, lpass_slimbus,
+                lpass_slimbus0, lpass_slimbus1, wcss_bt, atest_char2, ebi_ch0, wcss_wlan2,
+                wcss_wlan1, wcss_wlan0, wcss_wlan, wcss_fm, ext_lpass, gcc_tlmm, dmic0_clk,
+                dmic0_data, qdss_cti_trig_in_a1, blsp_spi7, blsp_uart7, pri_mi2s_ws, wsa_io,
+                blsp_i2c7, blsp_spi8, blsp_uart8, blsp_i2c8, gcc_plltest, nav_pps_in_a,
+                pa_indicator, nav_pps_in_b, nav_pps, modem_tsync, nav_tsync, ssbi_wtr1,
+                gsm1_tx, gsm0_tx, atest_char, atest_tsens, bimc_dte1,
+                gp_mn, gp_pdm_0a, gp_pdm_0b, gp_pdm_1a, gp_pdm_1b,
+                gp_pdm_2a, gp_pdm_2b, gp0_clk, gp1_clk]

Honestly, change of a string in some big blob of text which has no practical impact on the binding is not a reason to drop a tag.

Changing compatibles, changing types of properties, adding new properties would be. But how does it matter "adsp_ext" function was addded...

Best regards,
Krzysztof

#4 lore raw

PATCH v4 2/2 pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

In reply to Muzaffer Kadir

MSM8952 has same pin count and similar pinctrl
functions mostly with msm8917, but some functions use different pins.

---
 drivers/pinctrl/qcom/Kconfig.msm       |    8 +
 drivers/pinctrl/qcom/Makefile          |    1 +
 drivers/pinctrl/qcom/pinctrl-msm8952.c | 1194 ++++++++++++++++++++++++++++++++
 3 files changed, 1203 insertions(+)
drivers/pinctrl/qcom/Kconfig.msm +8 -0
index 42875457b5fc..04673b4a0db6 100644
@@ -232,6 +232,14 @@ config PINCTRL_MSM8917
 	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
 	  Qualcomm TLMM block found on the Qualcomm MSM8917, MSM8937 platform.
 
+config PINCTRL_MSM8952
+	tristate "Qualcomm 8952 pin controller driver"
+	depends on ARM64 || COMPILE_TEST
+	default ARCH_QCOM
+	help
+	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
+	  Qualcomm TLMM block found on the Qualcomm MSM8952 platform.
+
 config PINCTRL_MSM8953
 	tristate "Qualcomm 8953 pin controller driver"
 	depends on ARM64 || COMPILE_TEST
drivers/pinctrl/qcom/Makefile +1 -0
index 987a79f9d4c4..50d32456e429 100644
@@ -26,6 +26,7 @@ obj-$(CONFIG_PINCTRL_MSM8X74)	+= pinctrl-msm8x74.o
 obj-$(CONFIG_PINCTRL_MSM8909)	+= pinctrl-msm8909.o
 obj-$(CONFIG_PINCTRL_MSM8916)	+= pinctrl-msm8916.o
 obj-$(CONFIG_PINCTRL_MSM8917)	+= pinctrl-msm8917.o
+obj-$(CONFIG_PINCTRL_MSM8952)	+= pinctrl-msm8952.o
 obj-$(CONFIG_PINCTRL_MSM8953)	+= pinctrl-msm8953.o
 obj-$(CONFIG_PINCTRL_MSM8976)	+= pinctrl-msm8976.o
 obj-$(CONFIG_PINCTRL_MSM8994)   += pinctrl-msm8994.o
drivers/pinctrl/qcom/pinctrl-msm8952.c new file +1194 -0

1,194 lines not on this page · raw message

Signature · 1 line
2.54.0
#5 lore raw

Re: [PATCH v4 2/2] pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Mismatch between function group definitions and hardware PINGROUP mux configurations, causing a…

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Mismatch between function group definitions and hardware PINGROUP mux configurations, causing a WARN_ON and failure in msm_pinmux_set_mux(). --

commit bc142a6010c2c544a89b4c8ddff3446518100a52
Author: Muzaffer Kadir <[email protected]>

pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

This commit introduces the new MSM8952 pinctrl driver to support the Qualcomm TLMM block found on the MSM8952 platform.

Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-msm8952.c new file +0 -0
new file mode 100644
index 0000000000000..c24f75641719d

[ ... ]

drivers/pinctrl/qcom/pinctrl-msm8952.c line 499

Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-msm8952.c new file +5 -0
+static const char *const qdss_tracedata_b_groups[] = {
+	"gpio8",  "gpio9",  "gpio12", "gpio13", "gpio23", "gpio42",
+	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio66",
+	"gpio86", "gpio87", "gpio88", "gpio92",
+};

[Severity: Medium]
Does the hardware configuration actually support qdss_tracedata_b on gpio8, gpio9, gpio12, and gpio13? I noticed this array advertises support on these pins, but their corresponding PINGROUP definitions below do not appear to include this function.

[ ... ]

drivers/pinctrl/qcom/pinctrl-msm8952.c line 518

Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-msm8952.c new file +5 -0
+static const char *const atest_combodac_to_gpio_native_groups[] = {
+	"gpio4",  "gpio12", "gpio13", "gpio20", "gpio21", "gpio28",  "gpio29",
+	"gpio30", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43",  "gpio44",
+	"gpio45", "gpio46", "gpio47", "gpio48", "gpio67", "gpio115",
+};

[Severity: Medium]
Similarly, does atest_combodac_to_gpio_native support routing to gpio12, gpio13, gpio20, gpio21, gpio29, gpio30, and gpio41? This array lists them as valid groups, but their PINGROUP declarations omit the function.

[ ... ]

Quoted 1 line

+static const struct msm_pingroup msm8952_groups[] = {

[ ... ]

drivers/pinctrl/qcom/pinctrl-msm8952.c

Quoted 2 lines
drivers/pinctrl/qcom/pinctrl-msm8952.c new file +2 -0
+	PINGROUP(8, blsp_spi3, blsp_uart3, sec_mi2s, pbs0, NA, NA, NA, NA, NA,
+		 NA, NA, NA),

[Severity: Medium]
If the device tree or a built-in driver requests a function like qdss_tracedata_b on gpio8 (which is advertised in the groups array but missing from these PINGROUP macros), will this mismatch cause msm_pinmux_set_mux() to exhaust its function list?

It looks like this would unconditionally trigger a WARN_ON during mux setup, returning -EINVAL and aborting the device probe for the requesting device.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#6 lore raw

Re: [PATCH v4 2/2] pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

In reply to Muzaffer Kadir
Quoted 7 lines · On 04-Sep-26 14:55, Muzaffer Kadir via B4 Relay wrote:

From: Muzaffer Kadir <[email protected]>

MSM8952 has same pin count and similar pinctrl
functions mostly with msm8917, but some functions use different pins.

---

I told the robot to take a look again (and again and again a couple more times until it stopped complaining)..

The following feedback is meaningful:

Hi Muzaffer,

qdss_tracedata_b_groups advertises GPIOs that cannot actually select the function. Please populate the corresponding PINGROUP slots:

    GPIO8:  mux 11
    GPIO9:  mux 12
    GPIO12: mux 12
    GPIO13: mux 12

Minor nit: use MODULE_LICENSE("GPL") to match the nearby Qualcomm pinctrl drivers. // and checkpatch will ask you to do the same

Konrad

#7 lore raw

Re: [PATCH v4 2/2] pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

Hi Konrad,

Quoted 8 lines · Konrad Dybcio

On 04-Sep-26 14:55, Muzaffer Kadir via B4 Relay wrote:
I told the robot to take a look again (and again and again a couple more times until it stopped complaining)..

The following feedback is meaningful:

Hi Muzaffer,

Quoted 7 lines

qdss_tracedata_b_groups advertises GPIOs that cannot actually select the function. Please populate the corresponding PINGROUP slots:

    GPIO8:  mux 11
    GPIO9:  mux 12
    GPIO12: mux 12
    GPIO13: mux 12

I will add these to their pins by sending v5.

But also I want to ask,
does atest_combodac_to_gpio_native
have any mux on gpio12/13/20/21/29/30 ?Or are they wrongly set ?

Quoted 3 lines

Minor nit: use MODULE_LICENSE("GPL") to match the nearby Qualcomm pinctrl drivers. // and checkpatch will ask you to do the same

Some of the upstream pinctrl drivers were using "GPL v2", so I wasn't sure about that. I will change this to GPL in v5. Thanks a lot for review.

Best regards,
Muzaffer Kadir

#8 lore raw

Re: [PATCH v4 2/2] pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

Quoted 19 lines · Muzaffer Kadir

Hi Konrad,

Quoted 8 lines · Konrad Dybcio

On 04-Sep-26 14:55, Muzaffer Kadir via B4 Relay wrote:
I told the robot to take a look again (and again and again a couple more times until it stopped complaining)..

The following feedback is meaningful:

Hi Muzaffer,

Quoted 7 lines

qdss_tracedata_b_groups advertises GPIOs that cannot actually select the function. Please populate the corresponding PINGROUP slots:

    GPIO8:  mux 11
    GPIO9:  mux 12
    GPIO12: mux 12
    GPIO13: mux 12
Quoted 5 lines

I will add these to their pins by sending v5.

But also I want to ask,
does atest_combodac_to_gpio_native
have any mux on gpio12/13/20/21/29/30 ?Or are they wrongly set ?

Yes they do, the robot pointed that out too but I figured it pulled it from the internal data and not from the existing driver. They don't really have much of a use outside validation testing I believe, but since they're there already:

pin func_idx
12 14
13 14
20 11
21 11
29 10
30 11

Konrad

#9 lore raw

Re: [PATCH v4 2/2] pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

Quoted 31 lines · Konrad Dybcio
Quoted 19 lines · Muzaffer Kadir

Hi Konrad,

Quoted 8 lines · Konrad Dybcio

On 04-Sep-26 14:55, Muzaffer Kadir via B4 Relay wrote:
I told the robot to take a look again (and again and again a couple more times until it stopped complaining)..

The following feedback is meaningful:

Hi Muzaffer,

Quoted 7 lines

qdss_tracedata_b_groups advertises GPIOs that cannot actually select the function. Please populate the corresponding PINGROUP slots:

    GPIO8:  mux 11
    GPIO9:  mux 12
    GPIO12: mux 12
    GPIO13: mux 12
Quoted 5 lines

I will add these to their pins by sending v5.

But also I want to ask,
does atest_combodac_to_gpio_native
have any mux on gpio12/13/20/21/29/30 ?Or are they wrongly set ?

Yes they do, the robot pointed that out too but I figured it pulled it from the internal data and not from the existing driver. They don't really have much of a use outside validation testing I believe, but since they're there already:

Quoted 7 lines

pin func_idx
12 14
13 14
20 11
21 11
29 10
30 11

Hi Konrad,
I noticed that I forgot to say pin 41 (Sorry about that). Could you provide it too?

Also can I add mpm pins as a seperate commit in v5? Or should I wait until adding mpm to msm8952 device tree?

Thanks again.

Best regards,
Muzaffer Kadir

#10 lore raw

Re: [PATCH v4 2/2] pinctrl: qcom: Add MSM8952 tlmm pinctrl driver

Quoted 40 lines · Muzaffer Kadir
Quoted 31 lines · Konrad Dybcio
Quoted 19 lines · Muzaffer Kadir

Hi Konrad,

Quoted 8 lines · Konrad Dybcio

On 04-Sep-26 14:55, Muzaffer Kadir via B4 Relay wrote:
I told the robot to take a look again (and again and again a couple more times until it stopped complaining)..

The following feedback is meaningful:

Hi Muzaffer,

Quoted 7 lines

qdss_tracedata_b_groups advertises GPIOs that cannot actually select the function. Please populate the corresponding PINGROUP slots:

    GPIO8:  mux 11
    GPIO9:  mux 12
    GPIO12: mux 12
    GPIO13: mux 12
Quoted 5 lines

I will add these to their pins by sending v5.

But also I want to ask,
does atest_combodac_to_gpio_native
have any mux on gpio12/13/20/21/29/30 ?Or are they wrongly set ?

Yes they do, the robot pointed that out too but I figured it pulled it from the internal data and not from the existing driver. They don't really have much of a use outside validation testing I believe, but since they're there already:

Quoted 7 lines

pin func_idx
12 14
13 14
20 11
21 11
29 10
30 11

Quoted 2 lines

Hi Konrad,
I noticed that I forgot to say pin 41 (Sorry about that).

pin 41 func 10

Quoted 3 lines

Could you provide it too?

Also can I add mpm pins as a seperate commit in v5?

It would be best to keep it in the same commit since it's part of the driver

The robot suggests the following:

  static const struct msm_gpio_wakeirq_map msm8952_mpm_map[] = {
        { 1, 4 }, { 5, 5 }, { 9, 6 }, { 12, 21 }, { 13, 10 }, { 17, 12 },
        { 21, 13 }, { 25, 20 }, { 28, 18 }, { 31, 16 }, { 34, 15 }, { 35, 11 },
        { 36, 9 }, { 37, 8 }, { 38, 3 }, { 42, 19 }, { 43, 22 }, { 44, 23 },
        { 45, 24 }, { 46, 25 }, { 48, 26 }, { 54, 14 }, { 58, 17 }, { 62, 53 },
        { 63, 30 }, { 65, 27 }, { 67, 50 }, { 70, 31 }, { 71, 32 }, { 72, 33 },
        { 73, 51 }, { 74, 52 }, { 81, 34 }, { 85, 35 }, { 90, 36 }, { 93, 28 },
        { 97, 29 },

};

Konrad