From: sashiko-bot@kernel.org
To: "Benjamin Hahn" <B.Hahn@phytec.de>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, robh@kernel.org,
conor+dt@kernel.org, Frank.Li@kernel.org
Subject: Re: [PATCH v4 4/6] arm64: dts: imx95-phyflex-libra-rdk: Add M.2 Key-E 88w8987-bt overlay
Date: Thu, 03 Dec 2026 19:17:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-248479@kernel.org> (raw)
In-Reply-To: <20261203-wip-bhahn-imx95_upstreaming-v4-4-c5e940fb8e1a@phytec.de>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: imx95-phyflex-libra-rdk: missing OF graph link in
BT overlay
- [Medium] arm64: dts: freescale: missing mux dependency between lpuart8
and gpio-mux
--
commit e5c59ade69e00b88ba4211660f166c8f981e08db
Author: Benjamin Hahn <B.Hahn@phytec.de>
arm64: dts: imx95-phyflex-libra-rdk: Add M.2 Key-E 88w8987-bt overlay
This commit adds a devicetree overlay for the phyFLEX-i.MX 95 Libra RDK
to enable M.2 Key-E Bluetooth cards using the nxp,88w8987-bt compatible on
lpuart8 and switches uart1_bt_rs_mux to idle-state 1.
> diff --git a/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso
> new file mode 100644
> index 0000000000000..74d13b45b3709
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso
> @@ -0,0 +1,17 @@
> +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
> +/*
> + * Copyright (C) 2026 PHYTEC Messtechnik GmbH
> + */
> +/dts-v1/;
> +/plugin/;
> +
> +&lpuart8 {
> + bluetooth {
> + compatible = "nxp,88w8987-bt";
> + fw-init-baudrate = <115200>;
> + };
> +};
[Severity: Medium]
Does leaving out an OF graph link between lpuart8 and m2-key-e-connector
keep W_DISABLE2# permanently asserted when pwrseq-pcie-m2 probes?
In imx95-phyflex-libra-rdk.dts, m2-key-e-connector is enabled with
active-low w-disable1-gpios and w-disable2-gpios and no OF graph ports.
When pwrseq_pcie_m2_probe() runs, it requests both GPIOs with
GPIOD_OUT_HIGH, holding the M.2 Bluetooth radio disabled.
Because lpuart8 has no endpoint linked to m2-key-e-connector,
nxp_serdev_probe() sees nxp_m2_connector_is_available() return false and
never calls pwrseq_get() for the "uart" target to deassert W_DISABLE2#.
Adding OF graph endpoints linking lpuart8 to m2-key-e-connector port@3 in
this overlay (or disabling m2-key-e-connector as imx943-evk-sdwifi.dtso
does) would allow Bluetooth to be enabled without affecting /dev/ttyLP1
when the overlay is not applied.
> +
> +&uart1_bt_rs_mux {
> + idle-state = <1>;
> +};
[Severity: Medium]
Can btnxpuart probe before mux-gpio sets uart1_bt_rs_mux to idle-state 1,
leaving the Bluetooth adapter uninitialized?
Neither lpuart8 nor its bluetooth child references uart1_bt_rs_mux, so
fw_devlink creates no probe-ordering dependency between them. In arm64
defconfig, lpuart8 is built in while btnxpuart and mux-gpio are separate
modules, and uart1_bt_rs_mux also depends on gpio_expander1 on I2C5.
If btnxpuart probes first, hci_power_on() -> nxp_setup() ->
nxp_check_boot_sign() times out and skips firmware download while lpuart8
is routed to RS232/RS485. The HCI_OP_RESET timeout then aborts
hci_power_on() with HCI_SETUP still set, hiding the adapter from BlueZ.
In addition, mux_gpio_probe() requests the mux GPIO with GPIOD_OUT_LOW
before devm_mux_chip_register() applies idle-state 1, which briefly
glitches UART1_BT_RS_SEL low if mux-gpio probes after btnxpuart.
Wrapping uart1_bt_rs_mux in a pinctrl-multiplexer referenced from lpuart8
pinctrl-0 (as on imx95-15x15-evk.dts) would enforce the probe dependency.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-wip-bhahn-imx95_upstreaming-v4-0-c5e940fb8e1a@phytec.de?part=4
next prev parent reply other threads:[~2026-12-03 19:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 17:51 [PATCH v4 0/6] arm64: dts: update imx95 Libra for the newest hardware version Benjamin Hahn
2026-12-03 17:51 ` [PATCH v4 1/6] dt-bindings: arm: fsl: Add phyFLEX-i.MX 95 Libra RDK Benjamin Hahn
2026-12-03 17:51 ` [PATCH v4 2/6] arm64: dts: imx95-phyflex-libra-rdk: " Benjamin Hahn
2026-12-03 18:50 ` sashiko-bot
2026-12-03 17:51 ` [PATCH v4 3/6] arm64: dts: imx95-phyflex-fpsc-g-som: Add temp sensor overlay Benjamin Hahn
2026-12-03 17:51 ` [PATCH v4 4/6] arm64: dts: imx95-phyflex-libra-rdk: Add M.2 Key-E 88w8987-bt overlay Benjamin Hahn
2026-12-03 19:17 ` sashiko-bot [this message]
2026-12-03 17:51 ` [PATCH v4 5/6] arm64: dts: imx95-libra-rdk-fpsc: remove devicetree for old Libra Benjamin Hahn
2026-12-03 17:51 ` [PATCH v4 6/6] dt-bindings: arm: fsl: remove outdated PHYTEC i.MX95 FPSC Benjamin Hahn
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-248479@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=B.Hahn@phytec.de \
--cc=Frank.Li@kernel.org \
--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 \
/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