From: sashiko-bot@kernel.org
To: "Judith Mendez" <jm@ti.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 2/3] arm64: dts: ti: Add k3-am62l3-beaglebadge
Date: Wed, 03 Jun 2026 19:39:53 +0000 [thread overview]
Message-ID: <20260603193953.DD9771F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260603192305.1347908-3-jm@ti.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Driver-Binding Mismatch: The `mcp23s18` GPIO expander probe will fail due to property size mismatch.
--
commit dda0de04ef0f2160008191753ea45cc6c9880fa6
Author: Judith Mendez <jm@ti.com>
arm64: dts: ti: Add k3-am62l3-beaglebadge
This commit adds the device tree for the BeagleBoard.org BeagleBadge, based on
the Texas Instruments AM62L3 SoC. It includes configurations for memory, GPIO
keys, LEDs, regulators, MMC, USB, PWM, I2C, SPI, and other peripherals.
> diff --git a/arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts b/arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts
> new file mode 100644
> index 0000000000000..ee2d562baf51a
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts
[ ... ]
> +&spi1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&spi1_pins_default>;
> + status = "okay";
> +
> + mcp23s18: gpio@0 {
> + compatible = "microchip,mcp23s18";
> + reg = <0>;
> + spi-max-frequency = <10000000>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + reset-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&mcp23s18_reset_pins_default>;
> + microchip,spi-present-mask = /bits/ 8 <0x01>;
[Severity: High]
Does this 8-bit property cause the driver probe to fail?
Looking at drivers/pinctrl/pinctrl-mcp23s08_spi.c, the driver attempts to read
this property using device_property_read_u32(). Because it expects at least
4 bytes of data, of_find_property_value_of_size() will evaluate the length
as insufficient and return -EOVERFLOW.
This would cause the driver probe to fail, leaving the MCP23S18 GPIO expander
and connected devices non-functional. Should this property be defined as a
standard 32-bit value to match the driver's expectations?
> + };
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260603192305.1347908-1-jm@ti.com?part=2
next prev parent reply other threads:[~2026-06-03 19:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 19:23 [PATCH v6 0/3] arm64: dts/bindings: Add support for BeagleBadge Judith Mendez
2026-06-03 19:23 ` [PATCH v6 1/3] dt-bindings: arm: ti: Add am62l3-beaglebadge Judith Mendez
2026-06-03 19:23 ` [PATCH v6 2/3] arm64: dts: ti: Add k3-am62l3-beaglebadge Judith Mendez
2026-06-03 19:39 ` sashiko-bot [this message]
2026-06-03 19:23 ` [PATCH v6 3/3] arm64: defconfig: Enable drivers for BeagleBadge Judith Mendez
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=20260603193953.DD9771F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jm@ti.com \
--cc=robh@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox