From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.229.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794174633; b=115OBFfrun6DCIKfPjUumgIpwaCz5OsYl2VNuQ3CpiyOQDPGVRwpTpAMXbrYF+uFflzI 2vSTcG/I/v6doJrSQn3u/3x0MGrFcBG2H9dlXvNSSBwGoZcTH0iL841eyHzU9675QaCdn 0KeXh8T3/TTQ077S5KdXUpyTBl6ewaKcUiXPdXTNMaRZU4PiDu1nqtgf3yDQB5Xj+Xz97 Gbp9Fg48iu03qXFp1qLo35lJzZqLeAg2sr3crZPeCc0IhkD+X1usJPkS5K/qSRcMLMYnw aP+k1cSrUDqMhQpbryyOv2hCDnSDBn447eQ10hatZLb7uwcO5pg3xEIcRRdTpIC+RCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794174633; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=nwKFqp+H5YggATRuxpPQ2JLO3+LdBN2PnTSM+VuGKKc=; b=tqlxoTKTgpBQDpOy1prHriKlaebP8nt74K5HzxZ1wnl3dMrc02fED+QCLc0feOY3czVc NcBOmmXungy+cxb16LA8HTBfihAANC9fPvjni3qqrMH6XoGfP3DxLQ4c1p+ATD+CuMy7S 6YPCUmHOpAAvoQ3IL8W4SQ5gPWgCL07BgrKWlVUa4q9sWRg40x/V1ZYG4lKaqwGUAh9Nv kOne8ui4yVbdt9A5Mj9DyjgPHZ3S63Tln5P3t5jl5bVtClMa9vSXrkSwgB0PjbZGw1tHO YnQUyE2K6EuRhLas1i2hRY/ILVcphPT99NEdzdLAAjTzlv9mhjYUFz9S2bfLvP7fbQw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=alhWQP4H; arc=none smtp.remote-ip=74.125.229.133 Received: from mail-dl2-f5.google.com (mail-dl2-f5.google.com [74.125.229.133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A4F9606A33A for ; Sun, 8 Nov 2026 21:50:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9A4F9606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=alhWQP4H Received: by mail-dl2-f5.google.com with SMTP id a92af1059eb24-1ac216daf7dso221510c88.1 for ; Sun, 08 Nov 2026 13:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794174632; x=1794779432; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nwKFqp+H5YggATRuxpPQ2JLO3+LdBN2PnTSM+VuGKKc=; b=alhWQP4HwCjG/iNXhjcZUJdA812nM0k3xZYU4BysNd8W/C7oasnfvCmLldAT4ldYWk NiUdxU4KNl3e+Sk7BPTJT01etwMHMPBcfIayWnZrAC/pBMxalV8XL7FsirMmIIKAyy/+ P8L1Jtrn5HOOkJqk0Sggrmu4O//z0jjU/x0ZQq2lwW0Pvt8qSL6X/O6mdNj464C+26X6 p8JpQ/qFWRJCS9wRvviHPy35EBmLaD9CKEcHKX/B0OS0ze34wcQfyS54sdbytTSvOZ22 /9RKBcfRcxIsMvd6rch7bdbO9VOLzAjmn3XfZmyuc+0BlDHr41FpP8N0zm5w8PoPTK1V A0vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794174632; x=1794779432; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=nwKFqp+H5YggATRuxpPQ2JLO3+LdBN2PnTSM+VuGKKc=; b=WNdso2WYgqhV8qZocISeSN4IG2RpADS1I1EJ3sfjQNycjXVYYhc75ZbvCJfWqbulOv TZxhW+NvLPykGb8QhmCXt+zCBLZX1fFSqC1y7hQ20Qx+ZqqfnEpfDsVJ7wxbrmtMuU/U KqdvcGEydoLRhOmOo3fmRZTYkxCjOq6lyNHFrsQdiXCM0zCEOj2VDcjE95QnWWgANGJj pD+0kREVurdy0zxnA8GMSzxdWSYqVwr0Bsi4QjldiRcjD7pCLalU2yLM+zfPKZE+zj41 xfQ4kvwPsB1FPGjehbExmNBbE38I/zZwgE8jHa9rBKcBgozFmTAy38EPkvMYLWTZckx6 XDOQ== X-Forwarded-Encrypted: i=1; AL+hErGKiep9sE1VCjz/gNQF8cngqEcXSd5UnZz7QiHzoH7DxLg4EhDSzkVnb0TYKYcWl4NDMIt+VhqN9JgQwCE=@vger.kernel.org X-Gm-Message-State: APuU4Z8SWozKVcS8tY18R8Mslt7NNRB6x0P6FlDbIvR0OmRsqAyDAajM iFwmtIBcKHW8XVR+H1ljwQu/70oVfp/Cx2Jcx+j1IVWWaD/gaSx+NiB8 X-Gm-Gg: AYBFou164CvrAgq+yOhjuGBrUo2J6t9x8CMRybaswbhEGnG40fcsc2h4BGNWryENrc9 K1F3B7nVJFX8c41dEhheRXcNbyrUqdNOUJEoMcv5Qe68wbpWkhoRWIl8t1KhNpoduiDnJMy7lqA +h0O2qS5yr5LGyw5FgGNugqioPkU++8VEk6bfZ7C8JtQoMOCGulxoBi0YXC258lFSFexX8JK8Jr LkbKE5zP0hCWcTwRTFczxccT7OHeSWkRyP9GU8Lbb/mklEMLiRKDOM4RjFrJqeDaxN+j1rbLxot +uIqiWvS1PTvdcfiyjpqNH65Myi7Q8/OXJkreOIs8JR9gcGTHMJVE4SwbpaWKhiQsdl8x2wFKyo jT2j+VVCpREaUmw9UnTZkd4t45EBZzTLJC/WfhqB4NizXFnLqMXIYFwvGw2JcDoROVbWPRE0vGC JRX3ND9HB/xYBC1z69ERRO1o0YZ5EQES2b84wy20JnYR4nyRFF5wCV9PHt7J4q80jm9MT297EPT DaDYc7e58bAb1Lo+WnHUyCS2L2mYO54XnC4vFb5m6b1GB5ff3mE1K7N65jSo+3vfXqokCVBTIQP g6dg8hjCj/RElduB/DIWzfpBQAIQOiHzk3sH0rZGreglKflqEA== X-Received: by 2002:a05:7301:da07:b0:369:fdae:c9fd with SMTP id 5a478bee46e88-37256038e90mr5078656eec.13.1794174631525; Sun, 08 Nov 2026 13:50:31 -0800 (PST) Received: from AERO17.taila7786d.ts.net ([45.95.212.224]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-37265efd2dcsm7587575eec.17.2026.11.08.13.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Nov 2026 13:50:31 -0800 (PST) From: Pufan Jin To: Conor Dooley , Krzysztof Kozlowski , Michal Simek , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: zynq: Add ALINX AX7Z020B development board Date: Mon, 9 Nov 2026 05:50:10 +0800 Message-ID: <20261108215010.351256-3-cyan2254650260@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261108215010.351256-1-cyan2254650260@gmail.com> References: <20261108215010.351256-1-cyan2254650260@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Link: https://www.alinx.com/ Signed-off-by: Pufan Jin --- arch/arm/boot/dts/xilinx/Makefile | 1 + .../boot/dts/xilinx/zynq-alinx-ac7z020.dtsi | 72 +++++++++ .../boot/dts/xilinx/zynq-alinx-ax7z020b.dts | 137 ++++++++++++++++++ 3 files changed, 210 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 diff --git a/arch/arm/boot/dts/xilinx/Makefile b/arch/arm/boot/dts/xilinx/Makefile index 9233e539b1..5c4bcd9492 100644 --- a/arch/arm/boot/dts/xilinx/Makefile +++ b/arch/arm/boot/dts/xilinx/Makefile @@ -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 \ diff --git a/arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi b/arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi new file mode 100644 index 0000000000..2da08424f1 --- /dev/null +++ b/arch/arm/boot/dts/xilinx/zynq-alinx-ac7z020.dtsi @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * DTS for ALINX AC7Z020 System on Module + * + * Copyright (C) 2026 Pufan Jin + */ + +#include "zynq-7000.dtsi" + +/ { + compatible = "alinx,ac7z020", "xlnx,zynq-7000"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; +}; + +&clkc { + ps-clk-frequency = <33333333>; +}; + +&devcfg { + status = "okay"; +}; + +/ { + pmu@f8891000 { + interrupt-affinity = <&cpu0>, <&cpu1>; + }; +}; + +&qspi { + bootph-all; + status = "okay"; + num-cs = <1>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <4>; + spi-max-frequency = <50000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x00000000 0x00500000>; + }; + + partition@500000 { + label = "bootenv"; + reg = <0x00500000 0x00020000>; + }; + + partition@520000 { + label = "image"; + reg = <0x00520000 0x00a80000>; + }; + + partition@fa0000 { + label = "spare"; + reg = <0x00fa0000 0x01060000>; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts b/arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts new file mode 100644 index 0000000000..4dfef96ad3 --- /dev/null +++ b/arch/arm/boot/dts/xilinx/zynq-alinx-ax7z020b.dts @@ -0,0 +1,137 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * DTS for ALINX AX7Z020B Development Board + * + * Copyright (C) 2026 Pufan Jin + */ + +/dts-v1/; +#include "zynq-alinx-ac7z020.dtsi" +#include +#include + +/ { + model = "ALINX AX7Z020B Development Board"; + compatible = "alinx,ax7z020b", "alinx,ac7z020", "xlnx,zynq-7000"; + + aliases { + ethernet0 = &gem0; + serial0 = &uart1; + serial1 = &uart0; + mmc0 = &sdhci0; + spi0 = &qspi; + i2c0 = &i2c0; + }; + + chosen { + bootargs = ""; + stdout-path = "serial0:115200n8"; + }; + + usb_phy0: phy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>; + }; +}; + +&adc { + xlnx,channels { + #address-cells = <1>; + #size-cells = <0>; + + /* AD1: XADC_AD1P/N, E17/D18 */ + channel@2 { + reg = <2>; + }; + + /* AD9: XADC_AD9P/N, E18/E19 */ + channel@10 { + reg = <10>; + }; + + /* Spare pair: XADC_AD12P/N, F19/F20 */ + channel@13 { + reg = <13>; + }; + }; +}; + +&can0 { + status = "okay"; +}; + +&can1 { + status = "okay"; +}; + +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy@1 { + reg = <1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_ACTIVITY; + default-state = "keep"; + }; + }; + }; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <100000>; + + eeprom@50 { + compatible = "atmel,24c04"; + reg = <0x50>; + pagesize = <16>; + }; + + rtc@68 { + compatible = "dallas,ds1338"; + reg = <0x68>; + }; + + temperature-sensor@48 { + compatible = "national,lm75"; + reg = <0x48>; + }; +}; + +&sdhci0 { + bootph-all; + status = "okay"; + disable-wp; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + bootph-all; + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy0>; +}; -- 2.56.0