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 2/6] arm64: dts: imx95-phyflex-libra-rdk: Add phyFLEX-i.MX 95 Libra RDK
Date: Thu, 03 Dec 2026 18:50:36 +0000 [thread overview]
Message-ID: <sashiko-outbox-248427@kernel.org> (raw)
In-Reply-To: <20261203-wip-bhahn-imx95_upstreaming-v4-2-c5e940fb8e1a@phytec.de>
Thank you for your contribution! Sashiko AI review found 7 potential
issues to consider:
- [High] arm64: dts: freescale: missing M.2 OF graph ports leave radios
disabled
- [Medium] arm64: dts: imx95-phyflex-libra-rdk: descending
cooling-levels breaks pwm-fan
- [Low] arm64: dts: freescale: deprecated ti,fifo-depth on DP83867 PHY
nodes
- [Low] arm64: dts: imx95-phyflex-fpsc-g-som: asymmetric RGMII TX pad
drive in enetc1
- [Low] arm64: dts: imx95-phyflex-libra-rdk: dummy USB3 PHY regulator
and unused headers
- [Low] arm64: dts: imx95-phyflex-libra-rdk: duplicate usb3/usb3_dwc3
and inherited props
- [Low] arm64: dts: imx95-phyflex-libra-rdk: non-generic
mux-controller-uart1 node name
--
commit 0fb2aecd4fe545196de616a905b2a776eb06d64f
Author: Benjamin Hahn <B.Hahn@phytec.de>
arm64: dts: imx95-phyflex-libra-rdk: Add phyFLEX-i.MX 95 Libra RDK
This commit adds the devicetree source files for the PHYTEC phyFLEX-i.MX 95
FPSC Gamma SoM and phyFLEX Libra RDK baseboard, and adds the new DTB to the
freescale Makefile.
> 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..8f2ff470f4874
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som.dtsi
[ ... ]
> + ethphy1: ethernet-phy@0 {
> + compatible = "ethernet-phy-ieee802.3-c22";
> + reg = <0x0>;
> + interrupt-parent = <&gpio4>;
> + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
> + enet-phy-lane-no-swap;
> + ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
> + ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
> + ti,min-output-impedance;
> + ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
> + ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
> + };
[Severity: Low]
Should this use tx-fifo-depth and rx-fifo-depth instead of the deprecated
ti,fifo-depth property? Documentation/devicetree/bindings/net/ti,dp83867.yaml
deprecates ti,fifo-depth, and drivers/net/phy/dp83867.c only uses it for
tx_fifo_depth. ethphy0 in imx95-phyflex-libra-rdk.dts has the same property.
[ ... ]
> + pinctrl_enetc1: enetc1grp {
> + fsl,pins = <
> + IMX95_PAD_ENET1_MDC__GPIO4_IO_BIT0 0x31e
> + IMX95_PAD_ENET2_TD0__NETCMIX_TOP_ETH1_RGMII_TD0 0x57e
> + IMX95_PAD_ENET2_TD1__NETCMIX_TOP_ETH1_RGMII_TD1 0x57e
> + IMX95_PAD_ENET2_TD2__NETCMIX_TOP_ETH1_RGMII_TD2 0x51e
> + IMX95_PAD_ENET2_TD3__NETCMIX_TOP_ETH1_RGMII_TD3 0x51e
> + IMX95_PAD_ENET2_TX_CTL__NETCMIX_TOP_ETH1_RGMII_TX_CTL 0x57e
[Severity: Low]
Is the drive-strength mismatch across ENET2 TX pins intentional? TD0, TD1,
and TX_CTL use 0x57e while TD2 and TD3 use 0x51e, whereas pinctrl_enetc0 sets
all four TX data pins and TX_CTL uniformly to 0x51e. Mismatched drive
strength across the RGMII TX nibble can introduce bit-to-bit skew.
> 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..d3e38fecec4f5
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dts
[ ... ]
> + 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]
Does omitting OF graph ports on m2-key-e-connector leave the M.2 Key-E Wi-Fi
and Bluetooth radios permanently disabled?
When pwrseq_pcie_m2_probe() probes m2-key-e-connector, it requests
w-disable1-gpios and w-disable2-gpios with GPIOD_OUT_HIGH, asserting both
active-low disable lines. Because pwrseq_pcie_m2_match() and
slot_pwrctrl_probe() match consumers through OF graph endpoints, no consumer
ever acquires or enables the pwrseq target to deassert them.
Linking port@0 on m2-key-e-connector and m2-key-m-connector to port endpoints
on pcie0_port0 and pcie1_port0 (and dropping the duplicate vpcie3v3-supply on
both Root Ports) allows pci-pwrctrl to sequence the slots properly.
> +
> + 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>;
> + };
[Severity: Low]
Should this node use the generic name mux-controller instead of
mux-controller-uart1? It is the only mux-controller node in this file, and
devicetree conventions prefer generic node names without peripheral-specific
suffixes.
[ ... ]
> + 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]
As reported by Frank Li on v3 [1], should pwms use PWM_POLARITY_INVERTED with
ascending cooling-levels instead of descending <255 166 96 0>?
When pwm_fan_suspend() or pwm_fan_shutdown() disables TPM5_CH3, reg_vdd_5v0
remains on and the 0x51e pull-down on IMX95_PAD_GPIO_IO26__TPM5_CH3 in
pinctrl_tpm5 pulls the inverted fan input low, running the fan at 100% speed.
In addition, pwm_fan_probe() starts at cooling_levels[pwm_fan_max_state] (0),
skipping PWM and supply setup, and pwm_fan_update_state() assumes ascending
levels so hwmon writes corrupt thermal cooling state tracking.
pwm-imx-tpm supports PWM_POLARITY_INVERSED, so using pull-up (0x31e) in
pinctrl_tpm5, PWM_POLARITY_INVERTED in pwms, and ascending non-zero
cooling-levels keeps the fan off when disabled.
> +
> + reg_usb3_phy: regulator-usb-vbus {
> + compatible = "regulator-fixed";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-name = "usb3-phy-dummy";
> + };
[Severity: Low]
Can reg_usb3_phy and the vbus-supply property on &usb3_phy be dropped?
vbus-supply is optional in fsl,imx8mq-usb-phy.yaml and phy-fsl-imx8mq-usb.c
already falls back to a dummy regulator when omitted, so describing a
software-only dummy regulator in devicetree is unnecessary.
Also, the dt-bindings/mux/mux.h and dt-bindings/pwm/pwm.h includes at the top
of this file are currently unused (pwm.h is only needed if
PWM_POLARITY_INVERTED is used on the fan node).
[ ... ]
> +&usb3 {
> + status = "okay";
> +};
> +
> +&usb3_dwc3 {
> + adp-disable;
> + dr_mode = "otg";
> + hnp-disable;
> + srp-disable;
> + usb-role-switch;
> +
> + status = "okay";
[Severity: Low]
Can &usb3 be dropped here? In imx95.dtsi, usb3 and usb3_dwc3 are labels for
the same usb@4c100000 node, so this overrides and enables the same node twice.
Similarly, &flexspi1 repeats pinctrl-0 and pinctrl-names already set in
imx95-phyflex-fpsc-g-som.dtsi, and &lpspi3 and &lpspi7 repeat #address-cells
and #size-cells already defined in imx95.dtsi.
[1] https://lore.kernel.org/r/axGU7r5wwxJ8kTvR@SMW015318
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-wip-bhahn-imx95_upstreaming-v4-0-c5e940fb8e1a@phytec.de?part=2
next prev parent reply other threads:[~2026-12-03 18:50 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 [this message]
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
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-248427@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