Skip to contentSkip to conversation

dt-bindings: soc: xilinx: Document ifm ZynqMP VHIP6 EvalBoard

PATCH Superseded Marek Vasut 2 participants 4 messages Sep 9

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: soc: xilinx: Document ifm ZynqMP VHIP6 EvalBoard

Document ifm ZynqMP VHIP6 EvalBoard reference design binding. The board is populated with four ethernet ports, QSPI NOR, eMMC, UART and USB host interfaces.

---
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml +5 -0
index c9f99e0df2b35..49ef4e0c68501 100644
@@ -44,6 +44,11 @@ properties:
           - const: xlnx,zynq-zed
           - const: xlnx,zynq-7000
 
+      - items:
+          - const: ifm,zynqmp-vhip6-evalboard
+          - const: ifm,zynqmp-vhip6
+          - const: xlnx,zynqmp
+
       - items:
           - enum:
               - xlnx,zynqmp-zc1751
Signature · 1 line
2.53.0
#1 lore raw

PATCH 2/2 arm64: zynqmp: Add ifm ZynqMP VHIP6 EvalBoard

Add support for ifm ZynqMP VHIP6 EvalBoard reference design. The board is populated with four ethernet ports, QSPI NOR, eMMC, UART and USB host interfaces.

---
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
NOTE: Checkpatch complains about ethernet-phy-id2000.a240 being
undocumented, but the TI DP83822I is generic C45 PHY that is valided by Documentation/devicetree/bindings/net/ethernet-phy.yaml

---
 arch/arm64/boot/dts/xilinx/Makefile           |   1 +
 .../dts/xilinx/zynqmp-vhip6-evalboard.dts     | 321 ++++++++++++++++++
 2 files changed, 322 insertions(+)
 create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts
arch/arm64/boot/dts/xilinx/Makefile +1 -0
index 70fac0b276df0..936ddf6eb80a6 100644
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_ZYNQMP) += avnet-ultra96-rev1.dtb
+dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-vhip6-evalboard.dtb
 dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zc1232-revA.dtb
 dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zc1254-revA.dtb
 dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zc1751-xm015-dc1.dtb
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +321 -0

321 lines not on this page · raw message

Signature · 1 line
2.53.0
#2 lore raw

Re: [PATCH 2/2] arm64: zynqmp: Add ifm ZynqMP VHIP6 EvalBoard

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider: - [High] The TI DP83822I PHY is incorrectly declared as a Clause 45 PHY, which will cause MDIO probe…

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
- [High] The TI DP83822I PHY is incorrectly declared as a Clause 45 PHY, which will cause MDIO probe failures.
- [Medium] Contradictory RGMII internal delay configuration on gem1 forces TX delay on a mode that explicitly requests it disabled.
- [Medium] USB0 interface is not enabled despite commit message claiming 'USB host interfaces' (plural).
- [Low] Magic number '1' used instead of the standard 'GPIO_ACTIVE_LOW' macro.
- [Low] Non-generic node name for LM75 temperature sensor.
--

commit 9efb3b575525e794cefe9379fc0090ce8f78e409
Author: Marek Vasut <[email protected]>

arm64: zynqmp: Add ifm ZynqMP VHIP6 EvalBoard

This commit adds support for the ifm ZynqMP VHIP6 EvalBoard reference design. The board configuration includes four ethernet ports, QSPI NOR, eMMC, UART, and USB host interfaces.

Quoted 4 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +0 -0
new file mode 100644

[ ... ]

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts line 32

Quoted 12 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +12 -0
+	aliases {
+		ethernet0 = &gem0;
+		ethernet1 = &gem1;
+		ethernet2 = &gem2;
+		ethernet3 = &gem3;
+		gpio0 = &gpio;
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		rtc0 = &i2crtc;
+		serial0 = &uart0;
+		spi0 = &qspi;
+		usb0 = &usb0;

[Severity: Medium]
The commit message mentions USB host interfaces in the plural, and there is an alias for usb0 here, but is the usb0 node actually enabled in this file?

The zynqmp.dtsi base disables both usb0 and usb1 by default. While usb1 is enabled later in this file, there is no corresponding override for usb0 or dwc3_0. Does this inadvertently leave the first USB interface disabled?

Quoted 2 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +2 -0
+		usb1 = &usb1;
+	};

[ ... ]

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts line 64

Quoted 12 lines

+&gem0 {

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +11 -0
+	phy-handle = <&phy0>;
+	phy-mode = "mii";
+	status = "okay";
+
+	mdio0: mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		phy0: phy@1 {	/* TI DP83822I */
+			compatible = "ethernet-phy-id2000.a240",
+				     "ethernet-phy-ieee802.3-c45";

[Severity: High]
Will this compatible string cause the MDIO probe to fail?

The TI DP83822I is a Clause 22 PHY, but the ethernet-phy-ieee802.3-c45 string sets the is_c45 flag in the kernel MDIO core. This forces macb_mdio to emit C45 frames, which the DP83822I will ignore, causing the read to return 0xffff and the probe to fail with -ENODEV.

Should this just be ethernet-phy-ieee802.3-c22 or rely solely on the ID? This same C45 compatibility declaration appears to be applied to gem1, gem2, and gem3 below as well.

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts line 75

Quoted 11 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +11 -0
+			reg = <1>;
+			reset-gpios = <&gpio 78 GPIO_ACTIVE_LOW>;
+			reset-assert-us = <10>;
+			reset-deassert-us = <10>;
+		};
+	};
+};
+
+&gem1 {
+	phy-handle = <&phy1>;
+	phy-mode = "rgmii-rxid";

[Severity: Medium]
Does this PHY mode contradict the internal delay property defined below? The rgmii-rxid mode specifies that only RX delay should be added by the PHY.

Quoted 5 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +5 -0
+	status = "okay";
+
+	mdio1: mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts line 90

Quoted 10 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +10 -0
+
+		phy1: phy@1 {	/* TI DP83822I */
+			compatible = "ethernet-phy-id2000.a240",
+				     "ethernet-phy-ieee802.3-c45";
+			reg = <1>;
+			max-speed = <100>;
+			reset-gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
+			reset-assert-us = <10>;
+			reset-deassert-us = <10>;
+			tx-internal-delay-ps = <1>;

[Severity: Medium]
The DP83822 driver interprets tx-internal-delay-ps as a request to enable the PHY internal TX delay, overriding the rgmii-rxid contract.

If the MAC or PCB also applies a delay, this double-delay on the TX clock could cause connection instability. Should this property be removed, or should the mode be changed to rgmii-id?

Quoted 3 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +3 -0
+		};
+	};
+};

[ ... ]

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts line 160

Quoted 6 lines

+&i2c0 {

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +5 -0
+	clock-frequency = <400000>;
+	status = "okay";
+
+	lm75@48 {
+		compatible = "national,lm75";

[Severity: Low]
Does this node name align with the Devicetree specification?

The guidelines require node names to be generic and describe the function of the device rather than the specific model. Would a name like temperature-sensor@48 or sensor@48 be more appropriate here?

Quoted 2 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +2 -0
+		reg = <0x48>;
+	};

[ ... ]

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts line 319

Quoted 2 lines

+&usb1 {

arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +1 -0
+	reset-gpios = <&gpio 77 1>;

[Severity: Low]
Is there a reason to use the magic number 1 here instead of the standard GPIO_ACTIVE_LOW macro?

The dt-bindings header is included at the top of the file, and GPIO_ACTIVE_LOW is used correctly for all other reset-gpios definitions in this board setup.

Quoted 2 lines
arch/arm64/boot/dts/xilinx/zynqmp-vhip6-evalboard.dts new file +2 -0
+	status = "okay";
+};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#3 lore raw

Re: [PATCH 2/2] arm64: zynqmp: Add ifm ZynqMP VHIP6 EvalBoard

Quoted 1 line · On 9/9/26 6:55 PM, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:

I really do not understand why the bot drops linux-arm-kernel@ and the maintainer from CC, grumb.

Quoted 1 line

- [High] The TI DP83822I PHY is incorrectly declared as a Clause 45 PHY

Datasheet says C45.

Quoted 1 line

- [Medium] Contradictory RGMII internal delay configuration on gem1 forces TX delay on a mode that explicitly requests it disabled.

Delay is needed.

Quoted 1 line

- [Medium] USB0 interface is not enabled despite commit message claiming 'USB host interfaces' (plural).

Yes, "UART and USB" are interfaces, plural.

Quoted 2 lines

- [Low] Magic number '1' used instead of the standard 'GPIO_ACTIVE_LOW' macro.
- [Low] Non-generic node name for LM75 temperature sensor.

These two are addressed in V2.