From patchwork Fri Mar 2 19:21:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10255571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8DE56037D for ; Fri, 2 Mar 2018 19:24:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4A0E28389 for ; Fri, 2 Mar 2018 19:24:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B90E228399; Fri, 2 Mar 2018 19:24:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8784928389 for ; Fri, 2 Mar 2018 19:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=/fqfkzZaJwhsrr7Y1cxAVSzz/sPu/z2EvSivegOPx9E=; b=ZE/IxiUYzOJYFCSLFGZAHQNED2 tmsH1htZH50BDTvsBqtPhvxg0D9QaGBGWDvtKde0rDk1K3PJL6pgpEKi27r8k8DT4JMRy4cclem31 NH1dcGxgq3zmlaDm52DLOiQK74yPyGT8Pr7yWyaQvN+DFoTQCk0+oqOM45XsCO5Suk6C1x1nkhDVk BokJPRA6eCCfr55lO1cKZgVFe8VdyvmwYoLFEtqaXH09qmH7zW0Rf+ITuPOuuopDBxCgYrcbImQaz CgjFFZV+VFwoA98VNmcPahRSaprGh31cOKWQTab7BF+vwzJe4jjhXIz3jklvUjj1YnusPyoVg9lzK +ZwLi6dg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erqIP-0000rh-J9; Fri, 02 Mar 2018 19:24:45 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erqFc-0007O7-Gr for linux-arm-kernel@lists.infradead.org; Fri, 02 Mar 2018 19:22:03 +0000 Received: by mail-wm0-x241.google.com with SMTP id 139so4970960wmn.2 for ; Fri, 02 Mar 2018 11:21:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=qiSYtDzRw6AfhRn0b9Q8aieTWlXc2O5Hn7h/7ANJnB0=; b=Pj1P8AZiQ4m+cZ50bm5j946kKvw+8+M1sxpFFyFnlaDb5Qt57QQ1DnjEqB8V/ejlVA upcrANQ7VA5wh4llKp2CjVV0gNw7T+iWZi1HLTRblPPbM8wHhgo/3Ie9Sl3I1k4AIaj1 ebkdUldtC8xl/PP2xcXDeRSElgEvlK294AMR6fOI1IYBsG/aXiUbH/euhYj5heXBjYwN sQ1CJqD3vuOqQMXyxAsFO7L35lmTKavshE+p2z7ydMXk5OWC2q4jS5kFQBhLj4BgbSkM qHxMCH14aFaYI3fI+Zbq+nwPTu6YCVo8ptm3P2zOKE0JfEz/2+dimUNem06d1uUBthJl kjaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=qiSYtDzRw6AfhRn0b9Q8aieTWlXc2O5Hn7h/7ANJnB0=; b=SZDmM8Mvp7IywoFFfKTnGvwvQaeOIJP1hK8Db2KD5uiahsvYHiS29lxXoc9GicdhJF wKhryd8QdoBnf/fecaDQ87pYKjfeE1LtUySH1CO54pIziFF8eelMglAFRBylHvnRnGNJ 8snYuIdt0t1BNJWw47zNgv0UweAojeVrO2GPuERjAtJ05Uwprw/wlw5uUeEm7RG8R68R u7A+/hK26qTmDEFVYqtULl1Gsa8PGK9QIDzAAPiD03ZnDN3wNJBU+PXg1nNk8DH2CccY lNG3PH135waHsNbsLiOC55DmDErw10SizY8ucMSPMGkTtwvBceg1bcESWl5pUbuM/Oy2 gzOw== X-Gm-Message-State: AElRT7FDqAEE2bDniFPnkDbvpTExI8z68HrTqnO3LiX/ePRSYJw9SjlE DpB7s35ZHqV8fvClYpDMOynSBA== X-Google-Smtp-Source: AG47ELtoX6a8YBJrMEICpyPnDqV/pMaZm7RCFueTE6VE6Kp1u9Lkh+4CZ2GDLbIjqTWgCi26xDlsng== X-Received: by 10.28.17.77 with SMTP id 74mr2355510wmr.67.1520018502279; Fri, 02 Mar 2018 11:21:42 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id s21sm5965765wra.45.2018.03.02.11.21.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 02 Mar 2018 11:21:41 -0800 (PST) From: Michal Simek To: devicetree@vger.kernel.org Subject: [PATCH v3 2/5] arm: zynq: Add support for Xilinx zc770 xm010 dc1 board Date: Fri, 2 Mar 2018 20:21:34 +0100 Message-Id: <44eba6a11ccc653a07b8c44640cecb78e711a2be.1520018484.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180302_112153_385929_B46D864B X-CRM114-Status: GOOD ( 18.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Josh Cartwright , Peter Crosthwaite , monstr@monstr.eu, linux-kernel@vger.kernel.org, Rob Herring , Rob Herring , Russell King , Steffen Trumtrar , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP zc770 is based board which is extended by FMC/DC cards for SoC validation. FMCs/DCs are supposed to cover all SoC configurations. FMC/DC contains ethernet port, can, i2c, sd, qspi, spi, uart and usb. Signed-off-by: Michal Simek Reviewed-by: Rob Herring --- Changes in v3: - Fix partition for flash Changes in v2: - Record compatible string to xilinx.txt Documentation/devicetree/bindings/arm/xilinx.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/zynq-zc770-xm010.dts | 95 ++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 arch/arm/boot/dts/zynq-zc770-xm010.dts diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree/bindings/arm/xilinx.txt index 425c74fcc560..019e69037d42 100644 --- a/Documentation/devicetree/bindings/arm/xilinx.txt +++ b/Documentation/devicetree/bindings/arm/xilinx.txt @@ -11,6 +11,9 @@ Additional compatible strings: - Xilinx internal board cc108 "xlnx,zynq-cc108" +- Xilinx internal board zc770 with different FMC cards + "xlnx,zynq-zc770-xm010" + --------------------------------------------------------------- Xilinx Zynq UltraScale+ MPSoC Platforms Device Tree Bindings diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index c6810e84d4d7..be9ffae2a1ec 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1067,6 +1067,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \ zynq-parallella.dtb \ zynq-zc702.dtb \ zynq-zc706.dtb \ + zynq-zc770-xm010.dtb \ zynq-zed.dtb \ zynq-zybo.dtb dtb-$(CONFIG_MACH_ARMADA_370) += \ diff --git a/arch/arm/boot/dts/zynq-zc770-xm010.dts b/arch/arm/boot/dts/zynq-zc770-xm010.dts new file mode 100644 index 000000000000..6884f1ad66b7 --- /dev/null +++ b/arch/arm/boot/dts/zynq-zc770-xm010.dts @@ -0,0 +1,95 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Xilinx ZC770 XM010 board DTS + * + * Copyright (C) 2013-2018 Xilinx, Inc. + */ +/dts-v1/; +#include "zynq-7000.dtsi" + +/ { + compatible = "xlnx,zynq-zc770-xm010", "xlnx,zynq-7000"; + model = "Xilinx Zynq"; + + aliases { + ethernet0 = &gem0; + i2c0 = &i2c0; + serial0 = &uart1; + spi1 = &spi1; + }; + + chosen { + bootargs = ""; + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; + + usb_phy0: phy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; +}; + +&can0 { + status = "okay"; +}; + +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy@7 { + reg = <7>; + device_type = "ethernet-phy"; + }; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <400000>; + + eeprom: eeprom@52 { + compatible = "atmel,24c02"; + reg = <0x52>; + }; + +}; + +&sdhci0 { + status = "okay"; +}; + +&spi1 { + status = "okay"; + num-cs = <4>; + is-decoded-cs = <0>; + flash@0 { + compatible = "sst25wf080", "jedec,spi-nor"; + reg = <1>; + spi-max-frequency = <1000000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + partition@0 { + label = "data"; + reg = <0x0 0x100000>; + }; + }; + }; +}; + +&uart1 { + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy0>; +};