From: sashiko-bot@kernel.org
To: "Alexander Stein" <alexander.stein@ew.tq-group.com>
Cc: conor+dt@kernel.org, Frank.Li@kernel.org, robh@kernel.org,
devicetree@vger.kernel.org, imx@lists.linux.dev,
wsa+renesas@sang-engineering.com
Subject: Re: [PATCH v3 2/2] arm64: dts: freescale: add initial device tree for TQMa8MPQS with i.MX8MP
Date: Fri, 22 May 2026 08:24:38 +0000 [thread overview]
Message-ID: <20260522082439.011DF1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260522075656.841745-2-alexander.stein@ew.tq-group.com>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Off-by-4 error in `gpio4` line names array assigns GPIO names to actively driven Ethernet pins
- [Medium] Redundant `gpio-hog` nodes for pins concurrently used as interrupts by drivers
- [Medium] Missing `status = "okay";` for `pwm2` and `pwm3` will cause backlight overlays to fail
--
commit 33a28c1f4850f44b57edd7bcc9794f6b7f5401a7
Author: Paul Gerber <paul.gerber@tq-group.com>
arm64: dts: freescale: add initial device tree for TQMa8MPQS with i.MX8MP
This adds support for TQMa8MPQS module on MB-SMARC-2 board.
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi
> new file mode 100644
> index 0000000000000..570dfca3aa024
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi
[ ... ]
> +&gpio1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpio1>;
> +
> + gpio-line-names = "SLEEP", "BATLOW#", "", "LID",
> + "", "GPIO10", "CHARGING#", "CHG_PRSNT#",
> + "PMIC_IRQ#", "ESPI_CS1_ALERT#", "USB1_OTG_ID", "USB2_OTG_ID",
> + "", "", "", "",
> + "", "", "", "",
> + "", "", "", "",
> + "", "", "", "",
> + "", "", "", "";
> +
> + pmic_irq_hog: pmic-irq-hog {
> + gpio-hog;
> + gpios = <8 0>;
> + input;
> + line-name = "PMIC_IRQ#";
> + };
> +};
[Severity: Medium]
Is it necessary to define gpio-hog nodes for pins that are already requested
as interrupts by their respective drivers (like the PCA9450C PMIC)?
Since gpio-line-names already correctly names the pin, doesn't hogging an
interrupt line redundantly tie up gpiolib resources and potentially conflict
with driver ownership?
(This question also applies to the enet0-int-hog, enet1-int-hog,
temp-event-hog, and rtc-int-hog nodes defined further below).
[ ... ]
> +&gpio4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpio4>, <&pinctrl_sdp>, <&pinctrl_espi_rst>;
> +
> + gpio-line-names = "RTC_INT#", "GPIO8", "", "",
> + "GPIO9", "ESPI_RST#", "", "",
> + "", "", "", "",
> + "", "", "GBE0_SDP_DIR", "",
> + "GPIO7", "", "", "",
> + "", "", "", "",
> + "", "GPIO0", "GPIO1", "",
> + "GPIO2", "GPIO6", "", "";
[Severity: High]
Are GBE0_SDP_DIR and GPIO7 placed at the correct indices in this array?
They are currently at indices 14 and 16, which correspond to GPIO4_IO14 and
GPIO4_IO16. However, these are actively driven Ethernet lines (ENET1_RGMII_TD2
and ENET1_RGMII_TX_CTL) as multiplexed in pinctrl_fec.
Could this be an off-by-4 error, and should they instead be at indices 18 and
20, which are explicitly multiplexed as GPIOs? If exposed to userspace as
GPIOs, could manipulating these active Ethernet TX lines cause hardware
conflicts or disrupt network connectivity?
[ ... ]
> +&pwm2 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pwm2>;
> +};
> +
> +&pwm3 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pwm3>;
> +};
[Severity: Medium]
Since the backlight_lvds0 and backlight_lvds1 nodes on the baseboard rely on
&pwm3 and &pwm2, should these controllers have status = "okay"; added here?
If left disabled (as they are in the SoC dtsi), won't any overlays that enable
the panels silently fail when the backlight driver cannot acquire the disabled
PWM channels?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260522075656.841745-1-alexander.stein@ew.tq-group.com?part=2
next prev parent reply other threads:[~2026-05-22 8:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 7:56 [PATCH v3 1/2] dt-bindings: arm: fsl: add TQMa8MPxS board Alexander Stein
2026-05-22 7:56 ` [PATCH v3 2/2] arm64: dts: freescale: add initial device tree for TQMa8MPQS with i.MX8MP Alexander Stein
2026-05-22 8:24 ` sashiko-bot [this message]
2026-06-01 19:52 ` Frank Li
2026-06-03 7:27 ` Alexander Stein
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=20260522082439.011DF1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=alexander.stein@ew.tq-group.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.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