From patchwork Fri Mar 2 19:21:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10255573 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 885E66037D for ; Fri, 2 Mar 2018 19:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78A8528389 for ; Fri, 2 Mar 2018 19:25:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CC0228399; Fri, 2 Mar 2018 19:25:32 +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 07EC528389 for ; Fri, 2 Mar 2018 19:25:32 +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=AJmoXHj+TUSdShoil8ZfpX9dGu0PXE6VjTGq8NDDems=; b=hKEApYITyjVH4I7jbDRP/8CuR5 y6bqqPMvbPMQAI73alMpJRbhJaW7Wg9wvNIP36W6LPJ1qoct43EsP4eBux+GQKOeEdbpFdq97Kx/e 6EenxceEfTeTy2Qrx/EzHSKJ93ckNk6EueF5WG57hx/mYQU27fi+N88TOB3NmwlzkBLkce3PBYwIh qyoeEOkBlCrAaKGFNVxWq/GOHUjnd5KtubcfT+Rtl67gD6ndiuyu5j+hZiYT0SzpgadRIOWyUOB77 swkWoWblZZEo5kwsT2VVy0Ha/lRoP9IZWrRS5HG1tF0v9GTrLl48rpH34UpJgsMvgZYvpCibCSDp7 M/YdvK1A==; 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 1erqJ1-0001hK-M7; Fri, 02 Mar 2018 19:25:23 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erqFi-0007R7-Bp for linux-arm-kernel@lists.infradead.org; Fri, 02 Mar 2018 19:22:09 +0000 Received: by mail-wm0-x244.google.com with SMTP id i3so4929038wmi.4 for ; Fri, 02 Mar 2018 11:21:48 -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=z3ZsP5zTdruTYDZO0a7F1gCk8zM1rqX1qgEOM6EGZpA=; b=ogngMYWbgNgc7xtB1cWpw6BuT/5z8o4JDUpKMdVaZkz2x5R7pvJrefBEBpqZznHZRR OS8AEZmztJjxFiscdL2/bKXwOf3/csS9MMWT0ZD9rFRFS8PGlVEhpmbybKEjqSn3zLeB xVuptZisOwXfuZpcd1hIvSewtE2+5qJuWlvjUSrqbDIZlauRUbwzSSrphMhhivfb+rx1 suhB9oo6xcEGCPQ6YEIotrKChCJeIyE9idy2pbk4KbzbvyKyP2OFHqL+HVAj9ir3sXBZ FkikvOvFeFa/9G428tPao1Gkcs1kegq0v2M0wsfsHI77k8PVNVPjC4qbP1oxBbDXdBHs FqZQ== 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=z3ZsP5zTdruTYDZO0a7F1gCk8zM1rqX1qgEOM6EGZpA=; b=ka+UXw1Roa/e0gKy2F5AOxvmDaHGpL0EzAF6mLbPk+uHk7PJqeDJwJzu7SUsd/LMhA CrEgc4tQW9Oq0qYz/0PHhDrVt4uCQ1Gm/DbzZM6yzhIxc2PAYS2Z+zF8gG4kLcmLil0b 2vw2UkBdkGXdTse/1umpviZ5iew6W+J5lYsLnYLQ+OPluIhBuSdqc7rwbm+6gAUiTX2/ PpanJwO1cXONzff4P7FE0XCgAJpDuqscl9j9Y9OqMViM0R7iCiwI2l00zz8SKIg9g3Ay qbDXMGNovm+sYdn+L1MrWZ6H5mOz+739GpejrcDefJgAtD/tgiATgIrfkLdhyDfFb1kb qQ0w== X-Gm-Message-State: AElRT7HKp8Lx5q8+0jI5NJhWS5w/XoW2augvI9p3pe8BbBoN2+hHHd4c toXDMDapnZH+2DqDSMmlANfVcw== X-Google-Smtp-Source: AG47ELusRDiAnYgkGrIQnC4quBAKCvSc7B7XMhP6AKCGiEcL+Ca1taNyX00oXwHHRaWX+WPLYoWGVA== X-Received: by 10.28.52.4 with SMTP id b4mr2591497wma.90.1520018506615; Fri, 02 Mar 2018 11:21:46 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id 47sm6615714wrb.48.2018.03.02.11.21.45 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 02 Mar 2018 11:21:46 -0800 (PST) From: Michal Simek To: devicetree@vger.kernel.org Subject: [PATCH v3 5/5] arm: zynq: Add support for Xilinx zc770 xm013 dc4 board Date: Fri, 2 Mar 2018 20:21:37 +0100 Message-Id: <4e4589659d3d8f77cc8917dfa7bfe201d1d631ab.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_112158_728689_AF96B4F1 X-CRM114-Status: GOOD ( 18.42 ) 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 , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King 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 can, ethernet, i2c, qspi, spi and uart. Signed-off-by: Michal Simek Reviewed-by: Rob Herring --- Changes in v3: None Changes in v2: - use eeprom as node name instead of at25 - Record compatible string to xilinx.txt Documentation/devicetree/bindings/arm/xilinx.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/zynq-zc770-xm013.dts | 78 ++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 arch/arm/boot/dts/zynq-zc770-xm013.dts diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree/bindings/arm/xilinx.txt index 745c898f2f7f..63705a451251 100644 --- a/Documentation/devicetree/bindings/arm/xilinx.txt +++ b/Documentation/devicetree/bindings/arm/xilinx.txt @@ -15,6 +15,7 @@ Additional compatible strings: "xlnx,zynq-zc770-xm010" "xlnx,zynq-zc770-xm011" "xlnx,zynq-zc770-xm012" + "xlnx,zynq-zc770-xm013" --------------------------------------------------------------- diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 2c74b935ad1c..d5de3748a80a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1070,6 +1070,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \ zynq-zc770-xm010.dtb \ zynq-zc770-xm011.dtb \ zynq-zc770-xm012.dtb \ + zynq-zc770-xm013.dtb \ zynq-zed.dtb \ zynq-zybo.dtb dtb-$(CONFIG_MACH_ARMADA_370) += \ diff --git a/arch/arm/boot/dts/zynq-zc770-xm013.dts b/arch/arm/boot/dts/zynq-zc770-xm013.dts new file mode 100644 index 000000000000..8bb66859d774 --- /dev/null +++ b/arch/arm/boot/dts/zynq-zc770-xm013.dts @@ -0,0 +1,78 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Xilinx ZC770 XM013 board DTS + * + * Copyright (C) 2013 Xilinx, Inc. + */ +/dts-v1/; +#include "zynq-7000.dtsi" + +/ { + compatible = "xlnx,zynq-zc770-xm013", "xlnx,zynq-7000"; + model = "Xilinx Zynq"; + + aliases { + ethernet0 = &gem1; + i2c0 = &i2c1; + serial0 = &uart0; + spi1 = &spi0; + }; + + chosen { + bootargs = ""; + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; +}; + +&can1 { + status = "okay"; +}; + +&gem1 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy@7 { + reg = <7>; + device_type = "ethernet-phy"; + }; +}; + +&i2c1 { + status = "okay"; + clock-frequency = <400000>; + + si570: clock-generator@55 { + #clock-cells = <0>; + compatible = "silabs,si570"; + temperature-stability = <50>; + reg = <0x55>; + factory-fout = <156250000>; + clock-frequency = <148500000>; + }; +}; + +&spi0 { + status = "okay"; + num-cs = <4>; + is-decoded-cs = <0>; + eeprom: eeprom@0 { + at25,byte-len = <8192>; + at25,addr-mode = <2>; + at25,page-size = <32>; + + compatible = "atmel,at25"; + reg = <2>; + spi-max-frequency = <1000000>; + }; +}; + +&uart0 { + status = "okay"; +};