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 v3 2/6] arm64: dts: imx95-phyflex-libra-rdk: Add phyFLEX-i.MX 95 Libra RDK
Date: Thu, 26 Nov 2026 15:33:12 +0000 [thread overview]
Message-ID: <sashiko-outbox-235805@kernel.org> (raw)
In-Reply-To: <20261126-wip-bhahn-imx95_upstreaming-v3-2-a2bda009bac8@phytec.de>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: freescale: missing OF graph ports on M.2 connectors
disable radios
- [Medium] arm64: dts: imx95-phyflex-libra-rdk: descending
cooling-levels breaks pwm-fan
- [Low] arm64: dts: freescale: custom aliases in
imx95-phyflex-fpsc-g-som.dtsi
- [Low] arm64: dts: imx95-phyflex-libra-rdk: deprecated clock name and
dummy regulator
--
commit 344d2e7761b7f7fe50aadecc9f7055eddf8720b0
Author: Benjamin Hahn <B.Hahn@phytec.de>
arm64: dts: imx95-phyflex-libra-rdk: Add phyFLEX-i.MX 95 Libra RDK
This commit adds devicetree support for the PHYTEC phyFLEX-i.MX 95 FPSC
Gamma SoM and the phyFLEX Libra RDK baseboard.
> diff --git a/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som.dtsi b/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som.dtsi
> new file mode 100644
> index 0000000000000..2611f6ee5a1b7
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som.dtsi
> @@ -0,0 +1,746 @@
[ ... ]
> + aliases {
> + /* FPSC alias definitions */
> + ethernet1 = &enetc_port1;
> + ethernet2 = &enetc_port0;
> + gpio0 = &gpio1;
> + gpio1 = &gpio2;
> + gpio2 = &gpio3;
> + gpio3 = &gpio4;
> + gpio4 = &gpio5;
> + i2c1 = &lpi2c2;
> + i2c2 = &lpi2c5;
> + i2c3 = &lpi2c3;
> + i2c4 = &lpi2c4;
> + i2c5 = &lpi2c1;
> + pcie1 = &pcie0;
> + pcie2 = &pcie1;
> + pwm1 = &tpm3;
> + pwm2 = &tpm5;
> + sai1 = &sai5;
> + serial1 = &lpuart8;
> + serial2 = &lpuart5;
> + serial3 = &lpuart7;
> + spi1 = &lpspi7;
> + spi2 = &lpspi3;
> + spi3 = &lpspi4;
> + usb1 = &usb3;
> + };
[Severity: Low]
Should custom non-standard aliases such as pcie1, pcie2, pwm1, pwm2,
sai1, and usb1 be dropped from /aliases?
Devicetree sources only allow established subsystem-generic aliases, and
pcie1 = &pcie0 / pcie2 = &pcie1 also conflict with the 0-based
linux,pci-domain values (<0> and <1>) defined on pcie0 and pcie1 in
imx95.dtsi.
> diff --git a/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dts b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dts
> new file mode 100644
> index 0000000000000..0f44d7f99707d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dts
> @@ -0,0 +1,576 @@
[ ... ]
> + m2-key-m-connector {
> + compatible = "pcie-m2-m-connector";
> + clocks = <&rv3028>;
> + i2c-parent = <&lpi2c5>;
> + vpcie3v3-supply = <®_vdd_3v3>;
> + };
> +
> + m2-key-e-connector {
> + compatible = "pcie-m2-e-connector";
> + clocks = <&rv3028>;
> + i2c-parent = <&lpi2c3>;
> + sdio-reset-gpios = <&gpio_expander2 6 GPIO_ACTIVE_LOW>;
> + sdio-wake-gpios = <&gpio_expander2 5 GPIO_ACTIVE_LOW>;
> + uart-wake-gpios = <&gpio_expander1 13 GPIO_ACTIVE_LOW>;
> + vpcie3v3-supply = <®_vdd_3v3>;
> + w-disable1-gpios = <&gpio_expander1 9 GPIO_ACTIVE_LOW>;
> + w-disable2-gpios = <&gpio_expander1 10 GPIO_ACTIVE_LOW>;
> + };
[Severity: High]
Without OF graph ports linking m2-key-e-connector and m2-key-m-connector
to their host interfaces, does pwrseq_pcie_m2_probe() leave the M.2 Key-E
radios permanently disabled?
When pwrseq_pcie_m2_probe() binds to m2-key-e-connector, it requests
w-disable1-gpios and w-disable2-gpios with GPIOD_OUT_HIGH, asserting both
active-low disable lines. Because neither the connectors nor pcie0_port0
and pcie1_port0 define OF graph endpoints, slot_pwrctrl_probe() sees
of_graph_is_present() as false and pwrseq_pcie_m2_match() never matches a
consumer to deassert w-disable1-gpios or w-disable2-gpios.
Connecting port@0 (PCIe) between the M.2 connectors and
pcie0_port0/pcie1_port0 in the base DTS does not claim lpuart8 as a
serdev (which only happens when port@3 is linked), while connecting
port@3 to lpuart8 in the Bluetooth overlay allows btnxpuart and the power
sequencer to deassert w-disable2-gpios when Bluetooth is enabled.
> +
> + uart1_bt_rs_mux: mux-controller-uart1 {
> + compatible = "gpio-mux";
> + #mux-control-cells = <0>;
> + mux-gpios = <&gpio_expander1 14 GPIO_ACTIVE_HIGH>;
> + idle-state = <0>;
> + };
> +
> + osc_mclk: oscillator-mclk {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <19200000>;
> +
> + status = "disabled";
> + };
> +
> + osc_mclk_gated: oscillator-mclk-gated {
> + compatible = "gpio-gate-clock";
> + #clock-cells = <0>;
> + clocks = <&osc_mclk>;
> + enable-gpios = <&gpio_expander1 8 GPIO_ACTIVE_HIGH>;
> +
> + status = "disabled";
> + };
> +
> + fan: pwm-fan {
> + compatible = "pwm-fan";
> + interrupt-parent = <&gpio1>;
> + interrupts = <4 IRQ_TYPE_EDGE_RISING>;
> + #cooling-cells = <2>;
> + /* startup 35%, duty cycle 30%-100%;
> + * polarity inversion does not appear to work
> + */
> + cooling-levels = <255 166 96 0>;
> + fan-supply = <®_vdd_5v0>;
> + pwms = <&tpm5 3 86958 0>;
> + pulses-per-revolution = <2>;
> + };
[Severity: Medium]
Does configuring pwm-fan with descending cooling-levels = <255 166 96 0>
and a pull-down (0x51e) on IMX95_PAD_GPIO_IO26__TPM5_CH3 cause the fan to
run at 100% speed during system suspend and after shutdown?
At cooling state 3 (level 0), set_pwm() calls pwm_fan_power_off(), which
disables the TPM5_CH3 output driver so the pad pull-down pulls the
inverted fan input low (full speed). Because reg_vdd_5v0 is always on,
pwm_fan_suspend() and pwm_fan_cleanup() enter that same disabled PWM
state on suspend, shutdown, or unbind and spin the fan at 100% speed.
In addition, pwm_fan_probe() starts at initial_pwm = 0 and skips enabling
the PWM and fan-supply, and pwm_fan_update_state() assumes cooling-levels
is in ascending order (`if (pwm < ctx->pwm_fan_cooling_levels[i + 1])
break;`), so writing to pwm1 or pwm1_enable corrupts ctx->pwm_fan_state
and causes pwm_fan_set_cur_state() to skip thermal state transitions.
Configuring IMX95_PAD_GPIO_IO26__TPM5_CH3 with a pull-up (0x31e),
PWM_POLARITY_INVERTED, and ascending cooling-levels with a non-zero
minimum (such as <1 89 159 255>, as on imx95-19x19-evk.dts) keeps the fan
off when disabled and preserves ascending state order.
> +
> + reg_usb3_phy: regulator-usb-vbus {
> + compatible = "regulator-fixed";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-name = "usb3-phy-dummy";
> + };
[Severity: Low]
This isn't a runtime bug, but there are a few devicetree binding and
cleanup issues in this file:
1. reg_usb3_phy defines a dummy regulator ("usb3-phy-dummy") only to
populate vbus-supply on &usb3_phy; vbus-supply is optional in
fsl,imx8mq-usb-phy.yaml and VBUS is already supplied by reg_vdd_vbus on
the usb-c-connector node, so reg_usb3_phy and vbus-supply on &usb3_phy
can be dropped.
2. fixed-clock.yaml deprecates node names not matching
^clock-([0-9]+|[a-z0-9-]+)$, so oscillator-mclk above should be named
clock-mclk.
3. &flexspi1 below repeats pinctrl-0 and pinctrl-names already defined in
imx95-phyflex-fpsc-g-som.dtsi, and the dt-bindings/mux/mux.h and
dt-bindings/pwm/pwm.h includes at the top of this file are unused
(unless PWM_POLARITY_INVERTED from pwm.h is used for the fan node).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-wip-bhahn-imx95_upstreaming-v3-0-a2bda009bac8@phytec.de?part=2
next prev parent reply other threads:[~2026-11-26 15:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:04 [PATCH v3 0/6] arm64: dts: update imx95 Libra for the newest hardware version Benjamin Hahn
2026-11-26 15:04 ` [PATCH v3 1/6] dt-bindings: arm: fsl: Add phyFLEX-i.MX 95 Libra RDK Benjamin Hahn
2026-11-26 15:04 ` [PATCH v3 2/6] arm64: dts: imx95-phyflex-libra-rdk: " Benjamin Hahn
2026-11-26 15:33 ` sashiko-bot [this message]
2026-11-30 19:53 ` Frank Li
2026-11-26 15:04 ` [PATCH v3 3/6] arm64: dts: imx95-phyflex-fpsc-g-som: Add temp sensor overlay Benjamin Hahn
2026-11-26 15:04 ` [PATCH v3 4/6] arm64: dts: imx95-phyflex-libra-rdk: Add M.2 Key-E 88w8987-bt overlay Benjamin Hahn
2026-11-26 15:23 ` sashiko-bot
2026-11-26 15:04 ` [PATCH v3 5/6] arm64: dts: imx95-libra-rdk-fpsc: remove devicetree for old Libra Benjamin Hahn
2026-11-26 15:04 ` [PATCH v3 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-235805@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 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.