Skip to contentSkip to conversation

ARM: dts: zynq: Add ALINX AX7Z020B development board

PATCH Applied Pufan Jin 3 participants 5 messages Nov 12 – Nov 13

Subsystems (2)
lore
Share & tools
lore

Pufan Jin

author
#0 lore raw

v3 cover ARM: dts: zynq: Add ALINX AX7Z020B development board

Add devicetree support for the ALINX AX7Z020B board, built around the ALINX AC7Z020 system on module with a Zynq-7000 (XC7Z020-2CLG400I) SoC.

Changes in v3:
- Drop the vendor website Link: tags (Krzysztof Kozlowski).
- Drop the empty bootargs property (Krzysztof Kozlowski).
- Rename the USB PHY node from phy0 to phy, as there is only one USB PHY on the board (Krzysztof Kozlowski).
- Keep the explicit mdio node under gem0, as requested during the v1 review and reviewed by Andrew Lunn in v2. dtc W=1 flags the parent node's inherited #address-cells/#size-cells. DT schema validation reports the same Zynq-7000 diagnostics as zynq-zybo-z7. The MDIO layout was also verified on hardware.
- Sort I2C child nodes by address and reorder status/reg properties.
- Add Krzysztof's Acked-by to patch 1.

The "alinx" vendor prefix is already queued in linux-next as commit 1f06cd374a60 ("dt-bindings: vendor-prefixes: Add ALINX vendor prefix"), so it is not part of this series.

Tested on hardware before the DTS style reordering: SD boot, UART console, SD card, GbE (900+ Mbps and LED hardware offload), dual CAN, I2C, QSPI and XADC.

Pufan Jin (2):
dt-bindings: soc: xilinx: Add ALINX AX7Z020B board
ARM: dts: zynq: Add ALINX AX7Z020B development board

 .../bindings/soc/xilinx/xilinx.yaml           |   5 +
 arch/arm/boot/dts/xilinx/Makefile             |   1 +
 .../boot/dts/xilinx/zynq-alinx-ac7z020.dtsi   |  71 +++++++++
 .../boot/dts/xilinx/zynq-alinx-ax7z020b.dts   | 146 ++++++++++++++++++
 4 files changed, 223 insertions(+)
 create mode 100644 arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi
 create mode 100644 arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts

Range-diff against v2:
1: f44b8dc6e6 ! 1: ca50a01108 dt-bindings: soc: xilinx: Add ALINX AX7Z020B board
@@ Commit message
Document the ALINX AX7Z020B development board, built around the ALINX AC7Z020 system on module.

- Link: https://www.alinx.com/

+ Acked-by: Krzysztof Kozlowski <[email protected]>

## Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml ##
@@ Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml: properties:
2: a985ee80d4 ! 2: 477061f136 ARM: dts: zynq: Add ALINX AX7Z020B development board

    @@ Commit message
         always accessible from the PS, so expose these channels via the
         driver's xlnx,channels property.
     
    -    Link: https://www.alinx.com/
         Signed-off-by: Pufan Jin <[email protected]>
     
      ## arch/arm/boot/dts/xilinx/Makefile ##
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi (new)
     +
     +&qspi {
     +	bootph-all;
    -+	status = "okay";
     +	num-cs = <1>;
     +
    ++	status = "okay";
    ++
     +	flash@0 {
     +		compatible = "jedec,spi-nor";
     +		reg = <0>;
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi (new)
     +			#size-cells = <1>;
     +
     +			partition@0 {
    -+				label = "boot";
     +				reg = <0x00000000 0x00500000>;
    ++				label = "boot";
     +			};
     +
     +			partition@500000 {
    -+				label = "bootenv";
     +				reg = <0x00500000 0x00020000>;
    ++				label = "bootenv";
     +			};
     +
     +			partition@520000 {
    -+				label = "image";
     +				reg = <0x00520000 0x00a80000>;
    ++				label = "image";
     +			};
     +
     +			partition@fa0000 {
    -+				label = "spare";
     +				reg = <0x00fa0000 0x01060000>;
    ++				label = "spare";
     +			};
     +		};
     +	};
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts (new)
     +	};
     +
     +	chosen {
    -+		bootargs = "";
     +		stdout-path = "serial0:115200n8";
     +	};
     +
    -+	usb_phy0: phy0 {
    ++	usb_phy0: phy {
     +		compatible = "usb-nop-xceiv";
     +		#phy-cells = <0>;
     +		reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts (new)
     +};
     +
     +&gem0 {
    -+	status = "okay";
     +	phy-mode = "rgmii-id";
     +	phy-handle = <&ethernet_phy>;
     +
    ++	status = "okay";
    ++
     +	mdio {
     +		#address-cells = <1>;
     +		#size-cells = <0>;
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts (new)
     +};
     +
     +&i2c0 {
    -+	status = "okay";
     +	clock-frequency = <100000>;
     +
    ++	status = "okay";
    ++
    ++	temperature-sensor@48 {
    ++		compatible = "national,lm75";
    ++		reg = <0x48>;
    ++	};
    ++
     +	eeprom@50 {
     +		compatible = "atmel,24c04";
     +		reg = <0x50>;
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts (new)
     +		compatible = "dallas,ds1338";
     +		reg = <0x68>;
     +	};
    -+
    -+	temperature-sensor@48 {
    -+		compatible = "national,lm75";
    -+		reg = <0x48>;
    -+	};
     +};
     +
     +&sdhci0 {
     +	bootph-all;
    -+	status = "okay";
     +	disable-wp;
    ++
    ++	status = "okay";
     +};
     +
     +&uart0 {
    @@ arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts (new)
     +
     +&uart1 {
     +	bootph-all;
    ++
     +	status = "okay";
     +};
     +
     +&usb0 {
    -+	status = "okay";
     +	dr_mode = "host";
     +	usb-phy = <&usb_phy0>;
    ++
    ++	status = "okay";
     +};
Signature · 1 line
2.56.0
author
#1 lore raw

PATCH v3 1/2 dt-bindings: soc: xilinx: Add ALINX AX7Z020B board

Document the ALINX AX7Z020B development board, built around the ALINX AC7Z020 system on module.

---
 Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/xilinx/xilinx.yaml +5 -0
index c9f99e0df2..e3bd3d7660 100644
@@ -34,6 +34,11 @@ properties:
               - xlnx,zynq-zc770-xm013
           - const: xlnx,zynq-7000
 
+      - items:
+          - const: alinx,ax7z020b
+          - const: alinx,ac7z020
+          - const: xlnx,zynq-7000
+
       - items:
           - const: avnet,zynq-microzed
           - const: xlnx,zynq-microzed
Signature · 1 line
2.56.0
author
#2 lore raw

PATCH v3 2/2 ARM: dts: zynq: Add ALINX AX7Z020B development board

In reply to Pufan Jin

Add devicetree support for the ALINX AX7Z020B development board. The board is built around the ALINX AC7Z020 system on module with a Zynq-7000 (XC7Z020-2CLG400I) SoC, 1 GB DDR3 SDRAM and 32 MB QSPI flash, and provides Gigabit Ethernet (JLSemi JL2121 PHY), USB 2.0 host, MicroSD slot, dual CAN buses (SN65HVD232 transceivers on MIO 10-13), I2C RTC/EEPROM/LM75 and the serial console on UART1. DevCFG FPGA manager is also enabled.

The two SMA AD inputs and the spare differential pair are wired to XADC aux channels VAUX1, VAUX9 and VAUX12. The XADC hard macro is always accessible from the PS, so expose these channels via the driver's xlnx,channels property.

---
 arch/arm/boot/dts/xilinx/Makefile             |   1 +
 .../boot/dts/xilinx/zynq-alinx-ac7z020.dtsi   |  71 +++++++++
 .../boot/dts/xilinx/zynq-alinx-ax7z020b.dts   | 146 ++++++++++++++++++
 3 files changed, 218 insertions(+)
 create mode 100644 arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi
 create mode 100644 arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts
arch/arm/boot/dts/xilinx/Makefile +1 -0
index 9233e539b1..5c4bcd9492 100644
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_ZYNQ) += \
+	zynq-alinx-ax7z020b.dtb \
 	zynq-cc108.dtb \
 	zynq-ebaz4205.dtb \
 	zynq-microzed.dtb \
arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi new file +71 -0

71 lines not on this page · raw message

arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts new file +146 -0

146 lines not on this page · raw message

Signature · 1 line
2.56.0
#3 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ARM: dts: zynq: undocumented alinx vendor prefix in compatible strings --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] ARM: dts: zynq: undocumented alinx vendor prefix in compatible strings
--

commit 1804279139c8a09d5adf9d31bc9b1cefc4e9cf27
Author: Pufan Jin <[email protected]>

ARM: dts: zynq: Add ALINX AX7Z020B development board

This commit adds devicetree support for the ALINX AC7Z020 system on module and the ALINX AX7Z020B development board.

Quoted 7 lines
arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi new file +1 -0
new file mode 100644
index 0000000000000..d60e58657b7c0
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: GPL-2.0

arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi line 11

Quoted 10 lines
arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi new file +10 -0
+/*
+ * DTS for ALINX AC7Z020 System on Module
+ *
+ * Copyright (C) 2026 Pufan Jin <[email protected]>
+ */
+
+#include "zynq-7000.dtsi"
+
+/ {
+	compatible = "alinx,ac7z020", "xlnx,zynq-7000";

[Severity: Low]
Should the "alinx" vendor prefix be documented in Documentation/devicetree/bindings/vendor-prefixes.yaml?

Both this file and arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts ("alinx,ax7z020b") use the "alinx" prefix, which is not yet registered in vendor-prefixes.yaml, causing scripts/checkpatch.pl to warn about an undocumented DT string.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer Applied
#4 lore raw
In reply to Pufan Jin
Quoted 28 lines · Pufan Jin

Add devicetree support for the ALINX AX7Z020B board, built around the ALINX AC7Z020 system on module with a Zynq-7000 (XC7Z020-2CLG400I) SoC.

Changes in v3:
- Drop the vendor website Link: tags (Krzysztof Kozlowski).
- Drop the empty bootargs property (Krzysztof Kozlowski).
- Rename the USB PHY node from phy0 to phy, as there is only one USB PHY on the board (Krzysztof Kozlowski).
- Keep the explicit mdio node under gem0, as requested during the v1 review and reviewed by Andrew Lunn in v2. dtc W=1 flags the parent node's inherited #address-cells/#size-cells. DT schema validation reports the same Zynq-7000 diagnostics as zynq-zybo-z7. The MDIO layout was also verified on hardware.
- Sort I2C child nodes by address and reorder status/reg properties.
- Add Krzysztof's Acked-by to patch 1.

The "alinx" vendor prefix is already queued in linux-next as commit 1f06cd374a60 ("dt-bindings: vendor-prefixes: Add ALINX vendor prefix"), so it is not part of this series.

Tested on hardware before the DTS style reordering: SD boot, UART console, SD card, GbE (900+ Mbps and LED hardware offload), dual CAN, I2C, QSPI and XADC.

Pufan Jin (2):
dt-bindings: soc: xilinx: Add ALINX AX7Z020B board
ARM: dts: zynq: Add ALINX AX7Z020B development board

Quoted 7 lines
  .../bindings/soc/xilinx/xilinx.yaml           |   5 +
  arch/arm/boot/dts/xilinx/Makefile             |   1 +
  .../boot/dts/xilinx/zynq-alinx-ac7z020.dtsi   |  71 +++++++++
  .../boot/dts/xilinx/zynq-alinx-ax7z020b.dts   | 146 ++++++++++++++++++
  4 files changed, 223 insertions(+)

create mode 100644 arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi create mode 100644 arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts

Applied.
M