From: sashiko-bot@kernel.org
To: "Petr Vorel" <petr.vorel@gmail.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM7250 TLMM
Date: Fri, 04 Dec 2026 14:31:42 +0000 [thread overview]
Message-ID: <sashiko-outbox-249978@kernel.org> (raw)
In-Reply-To: <20261204141059.90918-2-petr.vorel@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: pinctrl: qcom: sm7250 example gpio-ranges omits
ufs_reset
--
commit e4ff98c33404d040d7de985573e451807463d54e
Author: Petr Vorel <petr.vorel@gmail.com>
dt-bindings: pinctrl: qcom: Add SM7250 TLMM
This patch adds the Device Tree binding schema for the Qualcomm SM7250
TLMM pin controller.
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm7250-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm7250-tlmm.yaml
> new file mode 100644
> index 0000000000000..2d7c3a8e11103
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm7250-tlmm.yaml
[ ... ]
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + tlmm: pinctrl@f100000 {
> + compatible = "qcom,sm7250-tlmm";
> + reg = <0x0f100000 0x300000>,
> + <0x0f500000 0x300000>,
> + <0x0f900000 0x300000>;
> + reg-names = "south", "west", "east";
> + interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
> + gpio-ranges = <&tlmm 0 0 146>;
[Severity: Low]
Should gpio-ranges cover 147 pins here instead of 146 to include
ufs_reset?
The pins schema defines 146 regular GPIOs (gpio0 through gpio145) plus
ufs_reset, and sibling Qualcomm TLMM bindings such as
qcom,sm8250-pinctrl.yaml count ufs_reset in gpio-ranges.
Because msm_gpio_init() in drivers/pinctrl/qcom/pinctrl-msm.c uses the
DT gpio-ranges length when present, copying 146 into a DTS omits
ufs_reset from the pinctrl-to-GPIO mapping and causes UFS reset GPIO
requests to fail.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204141059.90918-1-petr.vorel@gmail.com?part=1
next prev parent reply other threads:[~2026-12-04 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:10 [PATCH 0/2] SM7250 pinctrl driver Petr Vorel
2026-12-04 14:10 ` [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM7250 TLMM Petr Vorel
2026-12-04 14:31 ` sashiko-bot [this message]
2026-12-05 13:19 ` Krzysztof Kozlowski
2026-12-04 14:10 ` [PATCH 2/2] pinctrl: qcom: Add SM7250 pinctrl driver Petr Vorel
2026-12-04 14:43 ` 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-249978@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=petr.vorel@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.