From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796323837; b=DO83zT4INTc6mgMxqu0lJwllXyDX0XgSY9yYNwCNf+0boeZIdvWWmJFUJELXm9qUoGlz EScBW+hUZLTGS0Dsdw6v7SriOdpAv1dPFz3bxtHPV0tLYuGzZpF3KUUd98ytiEOu9+tv3 rj2mwK9x/TvZyio6HlnaWL1kz0EXTyavUBUBGJBhfj1n6/0t34bY8vNbw4BM6D4Dx7gml BeFC9jo1+S/8F6bnAGr0HlzvI9JxHoFG/aa2yJAsVVTnvduBqIpQVQjpPCJaGh+m2Tshk 2GQz5Iar0U8LfaoODIiMwnTwO5XdHQxZ+amVySIW1SJzOzXDyMV0R/9ioh1WoegPbpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796323837; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=h3Ia/QcbcnvY1fdOPufbW+JW3m1KRC0wVd/i3Lbn30c=; b=0zvR3IJj74lcrwWuQ06+h770ayG+luPch4LSJqWVknNGXor4jEwT6hNtXGOkKA1+TKo5 wxXfM3piuCLtjBlk0TuPR0ClH53tS8qxnfYmCmZUpRMaR9fAxBJ/neg8t05dIolv2OETi AEiE7lq052lC/D2nqYDvfra4VOOqNFeamv+bppz0JUN2ysB3uoMBz/HjEHyrcibIOnWyk 4uoNeknRZRcSkj3yThLrCirAe8OZI5RRX9OVP2/AXOR2vY+XkbQQH+a1anvUx7J4UBfrR APE98HKU4SBsGLdI2bPeoxbkWejCL3sxqqRkKxuNcbF3WF2kPhypGcISjCMq0dHOuhA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JXF3bEwd; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4ABAD606A332; Thu, 3 Dec 2026 18:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JXF3bEwd Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7E631F00893; Thu, 3 Dec 2026 18:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796323836; bh=h3Ia/QcbcnvY1fdOPufbW+JW3m1KRC0wVd/i3Lbn30c=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JXF3bEwd5zf6076mpzVfk1ZVem+DbkUGYWshZtDL8HeGa1itC68PAykX4OQh4VuVP HGiflIEBiIsEeXwoLg0lnE/fX5HAZo2/O3GVB3s/TO3Uo4qBt/MIlt1GHJIQlUqAaK U3w8nE7tEx1DZnJTMroG30CkxrhXSSkaEhUAP9SKqoDT73WA2QptIQM57LEJHqKuaJ DPxTNpwh4cgQ5vMPv/LvDNBUe86UXaZ+Gjht+u27l5ctocZaI2OZT2fPb4Kb49oboZ nJLsQc6SNusK1ZwPcRGrJs81vcs80MX7MYTAPJz1rEFxjTBs92nE/jsViv7vQiaxt8 wZjrR/uWC3qtg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 2/6] arm64: dts: imx95-phyflex-libra-rdk: Add phyFLEX-i.MX 95 Libra RDK Reply-To: sashiko-reviews@lists.linux.dev To: "Benjamin Hahn" Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org, Frank.Li@kernel.org In-Reply-To: <20261203-wip-bhahn-imx95_upstreaming-v4-2-c5e940fb8e1a@phytec.de> References: <20261203-wip-bhahn-imx95_upstreaming-v4-0-c5e940fb8e1a@phytec.de> <20261203-wip-bhahn-imx95_upstreaming-v4-2-c5e940fb8e1a@phytec.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:50:36 +0000 X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D "ethernet-phy-ieee802.3-c22"; > + reg =3D <0x0>; > + interrupt-parent =3D <&gpio4>; > + interrupts =3D <0 IRQ_TYPE_LEVEL_LOW>; > + enet-phy-lane-no-swap; > + ti,clk-output-sel =3D ; > + ti,fifo-depth =3D ; > + ti,min-output-impedance; > + ti,rx-internal-delay =3D ; > + ti,tx-internal-delay =3D ; > + }; [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.y= aml 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 propert= y. [ ... ] > + pinctrl_enetc1: enetc1grp { > + fsl,pins =3D < > + 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 se= ts 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 =3D "pcie-m2-m-connector"; > + clocks =3D <&rv3028>; > + i2c-parent =3D <&lpi2c5>; > + vpcie3v3-supply =3D <®_vdd_3v3>; > + }; > + > + m2-key-e-connector { > + compatible =3D "pcie-m2-e-connector"; > + clocks =3D <&rv3028>; > + i2c-parent =3D <&lpi2c3>; > + sdio-reset-gpios =3D <&gpio_expander2 6 GPIO_ACTIVE_LOW>; > + sdio-wake-gpios =3D <&gpio_expander2 5 GPIO_ACTIVE_LOW>; > + uart-wake-gpios =3D <&gpio_expander1 13 GPIO_ACTIVE_LOW>; > + vpcie3v3-supply =3D <®_vdd_3v3>; > + w-disable1-gpios =3D <&gpio_expander1 9 GPIO_ACTIVE_LOW>; > + w-disable2-gpios =3D <&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 endpoin= ts 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 =3D "gpio-mux"; > + #mux-control-cells =3D <0>; > + mux-gpios =3D <&gpio_expander1 14 GPIO_ACTIVE_HIGH>; > + idle-state =3D <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 =3D "pwm-fan"; > + interrupt-parent =3D <&gpio1>; > + interrupts =3D <4 IRQ_TYPE_EDGE_RISING>; > + #cooling-cells =3D <2>; > + /* startup 35%, duty cycle 30%-100%; > + * polarity inversion does not appear to work > + */ > + cooling-levels =3D <255 166 96 0>; > + fan-supply =3D <®_vdd_5v0>; > + pwms =3D <&tpm5 3 86958 0>; > + pulses-per-revolution =3D <2>; > + }; [Severity: Medium] As reported by Frank Li on v3 [1], should pwms use PWM_POLARITY_INVERTED wi= th 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% spee= d. 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 =3D "regulator-fixed"; > + regulator-min-microvolt =3D <5000000>; > + regulator-max-microvolt =3D <5000000>; > + regulator-name =3D "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 t= op of this file are currently unused (pwm.h is only needed if PWM_POLARITY_INVERTED is used on the fan node). [ ... ] > +&usb3 { > + status =3D "okay"; > +}; > + > +&usb3_dwc3 { > + adp-disable; > + dr_mode =3D "otg"; > + hnp-disable; > + srp-disable; > + usb-role-switch; > + > + status =3D "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 twi= ce. 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 --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-wip-bhahn-= imx95_upstreaming-v4-0-c5e940fb8e1a@phytec.de?part=3D2