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=1796288472; b=ZU4Y2x81u95eTCaw+av5KuDbiMkVWHquZ6Dh4pfZ+wxdT+i92jpbTrfsgZzcYeP3im+Z jkJKidVlvTRpWlnaqTHL1P1wh9oiyBkNtR86hFTShBborSiHLMQsRoz6wwwMlSjD2V5LW /c8c4AHvX3HZbU8TIx6/VCMEUf0bWCiFon3sZisHIcZPZYeRMiJx7EcA0rE3Z2M40Z4Sc UBjKrw/5IHTm1GzEl91IB/D3wgIy298OgI0kElRI7PlANQFUuImitlyNSW/PtpzMGZaPo O819UatqzduIpvsFmHq+R1NOAr8aLPk2QQgn4593vMHR/JbrXndBu1tNF+jvJfdNqdQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796288472; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=89OxOCT97vKeghI35H1Yh6XXJztcTXtMQ5F8F2XbnGU=; b=PtZwg3Jv1sOs3ZPBcfTlDhoI749nO3lY5TClDC6DSgu8kl/2SLY3f3Qjd5Frs6b/Hgac ic/raQpoBj8Nsjji378ppQs5WsInV1r4Q70CMTAbugB0tQqxlDTVPRiBlFmswKOC0EXiS 7UZa8k6RkGB3ZfK7tVWU0Ue2Cuv4IjwcWsrax0bZBKA4T1UM1f2MP/nwhYNfBbNiR6vfW oIzRma6kr++/lgSx+mh+6lQf69pavrZqJOqXbbJccvFlJRmaJDVYZlW5E3jrPZRIB+4AI 3xm4uu8Y9aJGsUtL1rJOGklxdBkSDJyXfuV10D9uxTbSHZW1hLiXdzg6G58lHiECYaw== 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=cQ3FaxYt; 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 2BC2E606A322 for ; Thu, 3 Dec 2026 09:01:12 +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=cQ3FaxYt Received: by smtp.kernel.org (Postfix) with ESMTPSA id B46D11F000C1; Thu, 3 Dec 2026 09:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796288471; bh=89OxOCT97vKeghI35H1Yh6XXJztcTXtMQ5F8F2XbnGU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=cQ3FaxYtQ3ibLY4BLi5xqH4ykRR1SSbx7JvoD6W2U6vyx+dTBbcp6PUiJhfliHvPT 9QEMU0ymhZYWpKobaLjFqjo/7JGInnkqaAEKD8u0oC8LoBxBoktZ9ikZjYoo7g0Arj 6nw94OJ8foJu39igTvck02HLgmlE0Gr3Z+ghxx2iTDL2AUnOkvxPHtiY26xI9Oh2Vk c1ae8GCulYNnOdzqUCX75eB8/wbEqZbrdQ0N6CO5KHGGq1jwxh0cDXW85QiqVxxomg VjdGQ22JLVc59sAsmyCT/H6svi4n8nZILo6SRcilCKh2kpHncGLsmYCG//Aq3FfcQs XPrP9xmaEgAQw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] arm64: dts: freescale: Add PHYTEC phyFLEX-i.MX 93 support Reply-To: sashiko-reviews@lists.linux.dev To: "Christoph Stoidner" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203083529.22273-2-c.stoidner@phytec.de> References: <20261203083529.22273-1-c.stoidner@phytec.de> <20261203083529.22273-2-c.stoidner@phytec.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 09:01:11 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D &fec; > + ethernet2 =3D &eqos; > + /delete-property/ i2c0; > + i2c1 =3D &lpi2c3; > + i2c2 =3D &lpi2c1; > + i2c3 =3D &lpi2c2; > + pwm1 =3D &tpm3; > + pwm2 =3D &tpm4; > + /delete-property/ serial0; > + serial1 =3D &lpuart6; > + serial2 =3D &lpuart2; > + serial3 =3D &lpuart1; > + spi0 =3D &flexspi1; > + spi1 =3D &lpspi6; > + spi2 =3D &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 =3D "default"; > + pinctrl-0 =3D <&pinctrl_eqos>; > + phy-mode =3D "rgmii-id"; > + phy-handle =3D <ðphy1>; > +}; [Severity: Low] Can phy-handle =3D <ðphy1> move to the carrier board DTS? ethphy1 is on= ly 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 =3D "ethernet-phy-ieee802.3-c22"; > + reg =3D <0>; > + interrupt-parent =3D <&gpio4>; > + interrupts =3D <28 IRQ_TYPE_LEVEL_LOW>; > + ti,clk-output-sel =3D ; > + ti,fifo-depth =3D ; > + ti,rx-internal-delay =3D ; > + ti,tx-internal-delay =3D ; > + }; [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 =3D "", "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 =3D <&pinctrl_tpm3>; > + pinctrl-names =3D "default"; > +}; > + > +/* FPSC PWM2 */ > +&tpm4 { > + pinctrl-0 =3D <&pinctrl_tpm4>; > + pinctrl-names =3D "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 =3D "disabled" in imx91_93_common.dtsi and neither file sets status =3D "okay", so no PWM controller probes on this board. [ ... ] > + pinctrl_flexspi: flexspigrp { > + fsl,pins =3D < > + 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 =3D "usb-c-connector"; > + label =3D "USB-C"; > + data-role =3D "dual"; > + pd-disable; > + self-powered; > + vbus-supply =3D <®_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 =3D "regulator-fixed"; > + enable-active-high; > + gpio =3D <&gpio2 24 GPIO_ACTIVE_HIGH>; > + regulator-name =3D "VDD_VBUS_C"; > + regulator-min-microvolt =3D <5000000>; > + regulator-max-microvolt =3D <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 =3D "regulator-fixed"; > + regulator-name =3D "VDD_VBUS_C_DUMMY"; > + regulator-min-microvolt =3D <5000000>; > + regulator-max-microvolt =3D <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 =3D "voltage-divider"; > + #io-channel-cells =3D <0>; > + io-channels =3D <&adc1 1>; > + output-ohms =3D <100>; > + full-ohms =3D <346>; > + }; > + > + volt_sens_som_in_ext: voltage-sense-som-in-ext { > + compatible =3D "voltage-divider"; > + #io-channel-cells =3D <0>; > + io-channels =3D <&adc2 1>; > + output-ohms =3D <280>; > + full-ohms =3D <346>; > + }; > + > + volt_sens_vdd_5v0: voltage-sense-vdd-5v0 { > + compatible =3D "voltage-divider"; > + #io-channel-cells =3D <0>; > + io-channels =3D <&adc1 3>; > + output-ohms =3D <100>; > + full-ohms =3D <346>; > + }; > + > + volt_sens_vdd_5v0_ext: voltage-sense-vdd-5v0-ext { > + compatible =3D "voltage-divider"; > + #io-channel-cells =3D <0>; > + io-channels =3D <&adc2 3>; > + output-ohms =3D <280>; > + full-ohms =3D <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 =3D <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 =3D "I2C2_SCL", "I2C2_SDA", "I2C3_SCL", "I2C3_SDA"; > +}; > + > +&gpio2 { > + gpio-line-names =3D "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 =3D "microchip,mcp3208"; > + reg =3D <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 =3D "otg"; > + hnp-disable; > + srp-disable; > + usb-role-switch; > + status =3D "okay"; > + > + ports { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + reg =3D <0>; > + usb3_hs_ep: endpoint { > + remote-endpoint =3D <&hs_ep>; > + }; > + }; > + > + port@1 { > + reg =3D <1>; > + usb3_role_switch: endpoint { > + remote-endpoint =3D <&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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203083529.2227= 3-1-c.stoidner@phytec.de?part=3D2