From: sashiko-bot@kernel.org
To: "Christoph Stoidner" <c.stoidner@phytec.de>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: freescale: Add PHYTEC phyFLEX-i.MX 93 support
Date: Thu, 03 Dec 2026 09:01:11 +0000 [thread overview]
Message-ID: <sashiko-outbox-247410@kernel.org> (raw)
In-Reply-To: <20261203083529.22273-2-c.stoidner@phytec.de>
Thank you for your contribution! Sashiko AI review found 14 potential
issues to consider:
- [Medium] arm64: dts: usbotg1 ports child node violates
chipidea,usb2-imx schema
- [Medium] arm64: dts: usb-c-connector sets pd-disable without
typec-power-opmode
- [Medium] arm64: dts: voltage-divider nodes use invalid
#io-channel-cells 0
- [Medium] arm64: dts: gpio1 and gpio2 line-name overrides erase SOM
line names
- [Medium] arm64: dts: phyflex-som gpio4 mislabels GPIO4_IO27 as USB1_OC
- [Medium] arm64: dts: PWM controllers tpm3 and tpm4 disabled despite
commit claim
- [Medium] arm64: dts: freescale: reg_vdd_vbus GPIO2_IO24 pinctrl
attached to usbotg1
- [Low] arm64: dts: freescale: disallowed pwm aliases and dead
delete-property in SOM
- [Low] arm64: dts: freescale: non-generic adc2@0 node name in Libra RDK
dts
- [Low] arm64: dts: freescale: SOM dtsi depends on carrier ethphy1 and
ti-dp83867.h
- [Low] arm64: dts: SPI ADC node uses non-generic name adc2@0 instead of
adc@0
- [Low] arm64: dts: DP83867 PHY nodes use deprecated ti,fifo-depth
property
- [Low] arm64: dts: pinctrl_flexspi inline signal comments are shifted
by one
- [Low] arm64: dts: freescale: dummy regulator reg_vdd_vbus_dummy for
usbphynop1
--
commit 6a395eedb476037cab53801b3d961df2e38687d7
Author: Christoph Stoidner <c.stoidner@phytec.de>
arm64: dts: freescale: Add PHYTEC phyFLEX-i.MX 93 support
This commit adds initial devicetree support for the PHYTEC phyFLEX-i.MX 93
SOM and the phyFLEX-i.MX 93 Libra RDK carrier board.
> diff --git a/arch/arm64/boot/dts/freescale/imx93-phyflex-fpsc-g-som.dtsi b/arch/arm64/boot/dts/freescale/imx93-phyflex-fpsc-g-som.dtsi
> new file mode 100644
> index 0000000000000..61e675aaebdd0
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx93-phyflex-fpsc-g-som.dtsi
[ ... ]
> + aliases {
> + /* FPSC alias definitions */
> + /delete-property/ ethernet0;
> + ethernet1 = &fec;
> + ethernet2 = &eqos;
> + /delete-property/ i2c0;
> + i2c1 = &lpi2c3;
> + i2c2 = &lpi2c1;
> + i2c3 = &lpi2c2;
> + pwm1 = &tpm3;
> + pwm2 = &tpm4;
> + /delete-property/ serial0;
> + serial1 = &lpuart6;
> + serial2 = &lpuart2;
> + serial3 = &lpuart1;
> + spi0 = &flexspi1;
> + spi1 = &lpspi6;
> + spi2 = &lpspi3;
> + };
[Severity: Low]
Should pwm1 and pwm2 be dropped from aliases? Devicetree policy disallows
custom aliases not consumed by subsystem code, and drivers/pwm has no
of_alias_get_id() callers.
Also, neither imx93.dtsi nor imx91_93_common.dtsi defines an aliases node,
so the /delete-property/ directives for ethernet0, i2c0, and serial0 are
no-ops and can be removed.
[ ... ]
> +/* FPSC ENET2 */
> +&eqos {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_eqos>;
> + phy-mode = "rgmii-id";
> + phy-handle = <ðphy1>;
> +};
[Severity: Low]
Can phy-handle = <ðphy1> move to the carrier board DTS? ethphy1 is only
defined in imx93-phyflex-libra-rdk.dts, and dtc resolves phandle references
even in disabled nodes, so any other board DTS including this SOM dtsi
without defining ethphy1 will fail to compile.
Similarly, ethphy0 below uses DP83867_* macros without including
dt-bindings/net/ti-dp83867.h in this file, so it only builds when the
including board DTS pulls that header in first.
[ ... ]
> + ethphy0: ethernet-phy@0 {
> + compatible = "ethernet-phy-ieee802.3-c22";
> + reg = <0>;
> + interrupt-parent = <&gpio4>;
> + interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
> + ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
> + ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
> + ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>;
> + ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
> + };
[Severity: Low]
Should ethphy0 (and ethphy1 in imx93-phyflex-libra-rdk.dts) use
tx-fifo-depth and rx-fifo-depth instead of ti,fifo-depth?
Documentation/devicetree/bindings/net/ti,dp83867.yaml marks ti,fifo-depth
as deprecated, and the driver only applies it to tx_fifo_depth.
[ ... ]
> +/* FPSC GPIO */
> +&gpio4 {
> + gpio-line-names = "", "RGMII2_nINT", "", "", "",
> + "", "", "", "", "",
> + "", "", "", "", "",
> + "", "", "", "", "",
> + "", "", "", "", "",
> + "", "", "USB1_OC", "ENET2_nINT", "SD1_RST_B";
> +};
[Severity: Medium]
Is "USB1_OC" on gpio4 line 27 a mistake? GPIO4_IO27 is pad
MX93_PAD_ENET2_RD3, which pinctrl_fec muxes as ENET1_RGMII_RD3, while
pinctrl_usbc routes USB1_OC to GPIO3_IO27 (already named "USB1_nOC" on
gpio3). Userspace lookups for USB1_OC would therefore resolve to the wrong
pin.
[ ... ]
> +/* FPSC PWM1 */
> +&tpm3 {
> + pinctrl-0 = <&pinctrl_tpm3>;
> + pinctrl-names = "default";
> +};
> +
> +/* FPSC PWM2 */
> +&tpm4 {
> + pinctrl-0 = <&pinctrl_tpm4>;
> + pinctrl-names = "default";
> +};
[Severity: Medium]
Should tpm3 and tpm4 be enabled in imx93-phyflex-libra-rdk.dts, or should
PWM be removed from the commit message's supported features list? Both
nodes default to status = "disabled" in imx91_93_common.dtsi and neither
file sets status = "okay", so no PWM controller probes on this board.
[ ... ]
> + pinctrl_flexspi: flexspigrp {
> + fsl,pins = <
> + MX93_PAD_SD3_CLK__FLEXSPI1_A_SCLK 0x186 /* QSPI_CLK */
> + MX93_PAD_SD3_CMD__FLEXSPI1_A_SS0_B 0x38e /* QSPI_DATA_0 */
> + MX93_PAD_SD3_DATA0__FLEXSPI1_A_DATA00 0x38e /* QSPI_DATA_1 */
> + MX93_PAD_SD3_DATA1__FLEXSPI1_A_DATA01 0x38e /* QSPI_DATA_2 */
> + MX93_PAD_SD3_DATA2__FLEXSPI1_A_DATA02 0x38e /* QSPI_DATA_3 */
> + MX93_PAD_SD3_DATA3__FLEXSPI1_A_DATA03 0x38e /* QSPI_DQS */
> + >;
> + };
[Severity: Low]
This isn't a bug, but the inline comments after QSPI_CLK are shifted by one
entry: FLEXSPI1_A_SS0_B is commented QSPI_DATA_0, DATA00..DATA02 are
commented QSPI_DATA_1..3, and DATA03 is commented QSPI_DQS.
> diff --git a/arch/arm64/boot/dts/freescale/imx93-phyflex-libra-rdk.dts b/arch/arm64/boot/dts/freescale/imx93-phyflex-libra-rdk.dts
> new file mode 100644
> index 0000000000000..4f59093b42d90
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx93-phyflex-libra-rdk.dts
[ ... ]
> + connector {
> + compatible = "usb-c-connector";
> + label = "USB-C";
> + data-role = "dual";
> + pd-disable;
> + self-powered;
> + vbus-supply = <®_vdd_vbus>;
[Severity: Medium]
Is typec-power-opmode missing here?
Documentation/devicetree/bindings/connector/usb-connector.yaml requires
typec-power-opmode whenever pd-disable is set, so this fails dtbs_check and
leaves hd3ss3220_configure_power_opmode() without a configured Type-C
current advertisement mode.
[ ... ]
> + reg_vdd_vbus: regulator-vdd-vbus {
> + compatible = "regulator-fixed";
> + enable-active-high;
> + gpio = <&gpio2 24 GPIO_ACTIVE_HIGH>;
> + regulator-name = "VDD_VBUS_C";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + };
[Severity: Medium]
Should reg_vdd_vbus have its own pinctrl-0 for GPIO2_IO24 instead of
relying on usbotg1's pinctrl_usbc?
imx_pmx_ops does not implement gpio_request_enable, so requesting the GPIO
does not mux the pad. Since regulator_fixed_voltage_driver probes at
subsys_initcall ahead of usbotg1, GPIO2_IO24 is driven before its pad mux
is applied, and stays unmuxed if usbotg1 is disabled or modular.
> +
> + reg_vdd_vbus_dummy: regulator-vdd-vbus-dummy {
> + compatible = "regulator-fixed";
> + regulator-name = "VDD_VBUS_C_DUMMY";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-always-on;
> + };
[Severity: Low]
Can reg_vdd_vbus_dummy and the vbus-supply reference on usbphynop1 be
dropped? usb_phy_gen_create_phy() treats vbus-supply as optional and
succeeds cleanly when it is omitted, so a synthetic dummy regulator in DT
is unnecessary.
> +
> + volt_sens_som_in: voltage-sense-som-in {
> + compatible = "voltage-divider";
> + #io-channel-cells = <0>;
> + io-channels = <&adc1 1>;
> + output-ohms = <100>;
> + full-ohms = <346>;
> + };
> +
> + volt_sens_som_in_ext: voltage-sense-som-in-ext {
> + compatible = "voltage-divider";
> + #io-channel-cells = <0>;
> + io-channels = <&adc2 1>;
> + output-ohms = <280>;
> + full-ohms = <346>;
> + };
> +
> + volt_sens_vdd_5v0: voltage-sense-vdd-5v0 {
> + compatible = "voltage-divider";
> + #io-channel-cells = <0>;
> + io-channels = <&adc1 3>;
> + output-ohms = <100>;
> + full-ohms = <346>;
> + };
> +
> + volt_sens_vdd_5v0_ext: voltage-sense-vdd-5v0-ext {
> + compatible = "voltage-divider";
> + #io-channel-cells = <0>;
> + io-channels = <&adc2 3>;
> + output-ohms = <280>;
> + full-ohms = <346>;
> + };
[Severity: Medium]
Should #io-channel-cells be <1> on these four voltage-divider nodes?
Documentation/devicetree/bindings/iio/afe/voltage-divider.yaml requires
#io-channel-cells = <1>, so <0> fails dtbs_check. The four consumer
entries in iio-hwmon's io-channels would then pass channel 0 (for example,
<&volt_sens_som_in 0>).
[ ... ]
> +&gpio1 {
> + gpio-line-names = "I2C2_SCL", "I2C2_SDA", "I2C3_SCL", "I2C3_SDA";
> +};
> +
> +&gpio2 {
> + gpio-line-names = "SPI6_CS", "", "", "", "",
> + "", "", "", "SPI3_CS", "",
> + "", "", "", "", "CSI1_CTRL2",
> + "FAN_FB", "", "", "", "",
> + "", "", "nINT_EXP1", "nINT_EXP2", "USB1_PWR_EN";
> +};
[Severity: Medium]
Do these gpio-line-names properties unintentionally erase the SOM-level
line names? Overriding a stringlist in the board DTS replaces the entire
array from imx93-phyflex-fpsc-g-som.dtsi rather than merging it, dropping
USB2_PWR_EN, USB2_nOC, and PMIC_IRQ_B from gpio1 and I2C3_SDA and I2C3_SCL
from gpio2.
[ ... ]
> + /* ADC */
> + adc2: adc2@0 {
> + compatible = "microchip,mcp3208";
> + reg = <0>;
[Severity: Low]
Should adc2@0 use the generic node name adc@0 (keeping the adc2 label)?
Devicetree convention and
Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml expect
generic node names without an instance number.
[ ... ]
> +&usbotg1 {
> + adp-disable;
> + disable-over-current;
> + dr_mode = "otg";
> + hnp-disable;
> + srp-disable;
> + usb-role-switch;
> + status = "okay";
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + usb3_hs_ep: endpoint {
> + remote-endpoint = <&hs_ep>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + usb3_role_switch: endpoint {
> + remote-endpoint = <&hd3ss3220_out_ep>;
> + };
> + };
> + };
> +};
[Severity: Medium]
Does this ports child node fail dtbs_check against chipidea,usb2-imx.yaml?
That schema sets unevaluatedProperties: false, and
chipidea,usb2-common.yaml only allows a single port node for this USB
2.0-only controller rather than a multi-port container.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203083529.22273-1-c.stoidner@phytec.de?part=2
next prev parent reply other threads:[~2026-12-03 9:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 8:35 [PATCH 1/2] bindings: arm: fsl: Add PHYTEC phyFLEX-i.MX 93 devicetree bindings Christoph Stoidner
2026-12-03 8:35 ` [PATCH 2/2] arm64: dts: freescale: Add PHYTEC phyFLEX-i.MX 93 support Christoph Stoidner
2026-12-03 9:01 ` sashiko-bot [this message]
2026-12-03 8:40 ` [PATCH 1/2] bindings: arm: fsl: Add PHYTEC phyFLEX-i.MX 93 devicetree bindings sashiko-bot
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-247410@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=c.stoidner@phytec.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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.