Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Taniya Das" <taniya.das@oss.qualcomm.com>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	linux-gpio@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 09/10] arm64: dts: qcom: sm8750: Add GP M/N clock controller
Date: Tue, 24 Nov 2026 19:53:15 +0000	[thread overview]
Message-ID: <sashiko-outbox-231918@kernel.org> (raw)
In-Reply-To: <20261124-b4-pdm_clk_gp_mnd_v2-v3-9-98db26a87500@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: sm8750: undefined gp_mn pinctrl function
  breaks gp_mn probe
--

commit 1a48f00d1e707622e8662f63536985b47631218d
Author: Taniya Das <taniya.das@oss.qualcomm.com>

arm64: dts: qcom: sm8750: Add GP M/N clock controller

This commit adds the GP M/N clock controller node and its gpio53 pin
configuration to the SM8750 Devicetree.

> diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
> index d8a853c31eeb1..fcc78bb3c8334 100644
> --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
> @@ -3067,6 +3067,20 @@ opp-202000000 {
>  			};
>  		};
>  
> +		gp_mn: clock-controller@88d3000 {
> +			compatible = "qcom,sm8750-gp-mnd", "qcom,sc7280-gp-mnd";
> +			reg = <0x0 0x088d3000 0x0 0x1000>;
> +			clocks = <&gcc GCC_PDM_XO4_CLK>,
> +				 <&gcc GCC_PDM_AHB_CLK>;
> +			clock-names = "pdm", "ahb";
> +			#clock-cells = <0>;
> +			pinctrl-0 = <&gp_mn_active>;
> +			pinctrl-names = "default";
> +			assigned-clocks = <&gcc GCC_PDM_XO4_CLK>;
> +			assigned-clock-rates = <4800000>;
> +			status = "disabled";
> +		};
> +
>  		usb_hsphy: phy@88e3000 {
>  			compatible = "qcom,sm8750-m31-eusb2-phy";
>  			reg = <0x0 0x88e3000 0x0 0x29c>;
> @@ -3921,6 +3935,13 @@ tlmm: pinctrl@f100000 {
>  			gpio-ranges = <&tlmm 0 0 216>;
>  			wakeup-parent = <&pdc>;
>  
> +			gp_mn_active: gp-mn-active-state {
> +				pins = "gpio53";
> +				function = "gp_mn";
> +				drive-strength = <2>;
> +				bias-disable;
> +			};

[Severity: High]
Is "gp_mn" supported by the SM8750 pinctrl driver and binding?

drivers/pinctrl/qcom/pinctrl-sm8750.c does not define a gp_mn function in
sm8750_functions[], and pin 53 leaves mux slot 3 unmapped:

drivers/pinctrl/qcom/pinctrl-sm8750.c:sm8750_groups[] {
	...
	[53] = PINGROUP(53, qup1_se5, qspi1, _, ddr_pxi3, _, _, _, _, _, _, _),
	...
}

When a board enables gp_mn, pinctrl_bind_pins() ->
pinmux_func_name_to_selector() fails with -EINVAL and prevents gp_mn from
probing.  Documentation/devicetree/bindings/pinctrl/qcom,sm8750-tlmm.yaml
also omits gp_mn from the function enum, so gp_mn_active under tlmm causes
dtbs_check validation errors.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-b4-pdm_clk_gp_mnd_v2-v3-0-98db26a87500@oss.qualcomm.com?part=9

  reply	other threads:[~2026-11-24 19:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 19:51 [PATCH v3 00/10] clk: qcom: Add PDM GP_MN fractional clock divider driver and DT support Taniya Das
2026-11-23 19:51 ` [PATCH v3 01/10] dt-bindings: clock: qcom: Add bindings for PDM GP_MN clock divider Taniya Das
2026-11-24 19:53   ` sashiko-bot
2026-11-23 19:51 ` [PATCH v3 02/10] dt-bindings: clock: qcom: Add PDM XO4 divider clock IDs Taniya Das
2026-11-23 19:51 ` [PATCH v3 03/10] clk: qcom: Add a driver for PDM GP_MN fractional clock divider Taniya Das
2026-11-24  5:54   ` Abel Vesa
2026-11-23 19:51 ` [PATCH v3 04/10] clk: qcom: gcc: Add configurable PDM XO4 div clocks across targets Taniya Das
2026-11-23 19:51 ` [PATCH v3 05/10] arm64: dts: qcom: qcs8300: Add GP M/N clock controller Taniya Das
2026-11-24 19:53   ` sashiko-bot
2026-11-23 19:51 ` [PATCH v3 06/10] arm64: dts: qcom: sa8775p: " Taniya Das
2026-11-24 19:53   ` sashiko-bot
2026-11-23 19:51 ` [PATCH v3 07/10] arm64: dts: qcom: sc7280: " Taniya Das
2026-11-24 19:53   ` sashiko-bot
2026-11-23 19:51 ` [PATCH v3 08/10] arm64: dts: qcom: qcs615: " Taniya Das
2026-11-24 19:53   ` sashiko-bot
2026-11-23 19:51 ` [PATCH v3 09/10] arm64: dts: qcom: sm8750: " Taniya Das
2026-11-24 19:53   ` sashiko-bot [this message]
2026-11-23 19:51 ` [PATCH v3 10/10] arm64: dts: qcom: shikra: " Taniya Das
2026-11-24 19:53   ` sashiko-bot

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=sashiko-outbox-231918@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=taniya.das@oss.qualcomm.com \
    /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