From patchwork Fri Mar 2 19:21:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10255567 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 1127E6037D for ; Fri, 2 Mar 2018 19:24:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 014D928389 for ; Fri, 2 Mar 2018 19:24:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7F7F28399; Fri, 2 Mar 2018 19:24:22 +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 63EB028389 for ; Fri, 2 Mar 2018 19:24:22 +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=iNkYnLwmoABcUibCq4G3omB8Czw5zqHdu3p56vZ7i0w=; b=LhvBBTlSKsKOro7ZaCA+hTxP9C z2qo3DHEDYIzIJPUo2Um6XvqL3Yz2YzEx+vmexzxxzx+kgL3nFrbLm+zC5XW4yakOc5XUae4uhlnd 48jCLjxdDMdvswxxA4gk4tDrELte/lOSxKGQXJvsogliy28+GekIYWXuuYCz8y2/yxeOjpeYbUrbU NBI0yJg8WkY5NqD9bqB4QJn6NCgFCzqdNpOUmRFFBgqrzm67vD+sm44sNUbP9HLNfOXXh3tewtyOS FZmbyekiHdMK2O6e4sI44f2o/ONyoDjMboGV+veglRWn+xfG76pUn/FUO34lg1xu51UDCZTuSgVUd dX562Yfw==; 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 1erqHr-0000RA-Ls; Fri, 02 Mar 2018 19:24:11 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erqFg-0007Q4-OB for linux-arm-kernel@lists.infradead.org; Fri, 02 Mar 2018 19:22:02 +0000 Received: by mail-wr0-x243.google.com with SMTP id u49so11153441wrc.10 for ; Fri, 02 Mar 2018 11:21:46 -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=hPGyy/VxQojhQSPEXjD0+JGV+jdz0rij7JKJ7/soM5E=; b=rQ4lMBSjIW9Yp9oTWllR+qTnxPQoMB1uBjUKw8nh06vjEBCso5Ony8IaCF+owj/0fS ikPLcYCbRmxJUMB/Nhv7GkDazFB70+6VmMYzDkJ7EmrunpjP3giNkXV30wFlw5pZC/Ql Fz7dEaKhsj4W6+WxnfhtAAprX0Ow8r+FTgKvOybFB+5e3WTP4eQnS3j05kPwOaweAW7Q 8qIjDC1hHkGChnXh/JJb4wDdyD4KGj1SoqdzbDwztaIP0DSrt4vCFlaDjxcU6mYnaLKQ I+aaQHlbjlwPlben6Jc/Ijdqi0jlnXj1sRCTLkD0/ztHh4gu1RwYsVk+mfJSK00UPTQ1 ywew== 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=hPGyy/VxQojhQSPEXjD0+JGV+jdz0rij7JKJ7/soM5E=; b=aTUEhQrlPock10BeFh9SoQwJH7w00A1I4fbWvKbhvsNZ/aVNvvTxoL2/fWG5Fpzzwi hk4olLie+1IUMewDD88UUlfzvmrHV5I/7TJfptEYzhtGgAilqbMLoPF7xVFOeobIISqw lKZYp9kFWRI7goMvC/bBDytCBlJGMpXtora0MMG3UubwQXyt9DenzyrKQQ7heHMhUFUa dyfHYA4QxaWZe2mj8mj/jsgrm8m4bxjonrNLzpe4ojEp+IoZxODpChYAiF/AQErkNEaR ccNXknoeP8BuDBKaUgJ9BRh+K/V2I07ELk93m1RmueSOjyVKus6T87x8ZGJDEulsc45S qMTA== X-Gm-Message-State: APf1xPCUQ85oSrL9bOnaQGU0yJddkv9K0WNNUlD7fN1RhedqSxOH4rKV KJAvOI/43w1W1yylT6i6OI4kiQ== X-Google-Smtp-Source: AG47ELsY2DMGnWnY7Sih+aZAdIZj7LRMqMbdJnWP92Ud6v2u2LIJiblcNfJhM8eqJxriabUct/8Yrg== X-Received: by 10.223.150.194 with SMTP id u60mr5708886wrb.47.1520018505143; Fri, 02 Mar 2018 11:21:45 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id q11sm7970915wrb.74.2018.03.02.11.21.44 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 02 Mar 2018 11:21:44 -0800 (PST) From: Michal Simek To: devicetree@vger.kernel.org Subject: [PATCH v3 4/5] arm: zynq: Add support for Xilinx zc770 xm012 dc3 board Date: Fri, 2 Mar 2018 20:21:36 +0100 Message-Id: <5f7541dd383dea947a5d74230c58b52cedab4075.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_112157_118518_4B2C7BBF X-CRM114-Status: GOOD ( 17.22 ) 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 can, 2x i2c, nor flash, spi and uart. Signed-off-by: Michal Simek Reviewed-by: Rob Herring --- Changes in v3: None Changes in v2: - 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-xm012.dts | 64 ++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/zynq-zc770-xm012.dts diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree/bindings/arm/xilinx.txt index 80139a7cfcdc..745c898f2f7f 100644 --- a/Documentation/devicetree/bindings/arm/xilinx.txt +++ b/Documentation/devicetree/bindings/arm/xilinx.txt @@ -14,6 +14,7 @@ Additional compatible strings: - Xilinx internal board zc770 with different FMC cards "xlnx,zynq-zc770-xm010" "xlnx,zynq-zc770-xm011" + "xlnx,zynq-zc770-xm012" --------------------------------------------------------------- diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 801a46a88e93..2c74b935ad1c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1069,6 +1069,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \ zynq-zc706.dtb \ zynq-zc770-xm010.dtb \ zynq-zc770-xm011.dtb \ + zynq-zc770-xm012.dtb \ zynq-zed.dtb \ zynq-zybo.dtb dtb-$(CONFIG_MACH_ARMADA_370) += \ diff --git a/arch/arm/boot/dts/zynq-zc770-xm012.dts b/arch/arm/boot/dts/zynq-zc770-xm012.dts new file mode 100644 index 000000000000..c3169d63600d --- /dev/null +++ b/arch/arm/boot/dts/zynq-zc770-xm012.dts @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Xilinx ZC770 XM012 board DTS + * + * Copyright (C) 2013-2018 Xilinx, Inc. + */ +/dts-v1/; +#include "zynq-7000.dtsi" + +/ { + compatible = "xlnx,zynq-zc770-xm012", "xlnx,zynq-7000"; + model = "Xilinx Zynq"; + + aliases { + i2c0 = &i2c0; + i2c1 = &i2c1; + serial0 = &uart1; + spi0 = &spi1; + }; + + chosen { + bootargs = ""; + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; +}; + +&can1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <400000>; + + eeprom0: eeprom@52 { + compatible = "atmel,24c02"; + reg = <0x52>; + }; +}; + +&i2c1 { + status = "okay"; + clock-frequency = <400000>; + + eeprom1: eeprom@52 { + compatible = "atmel,24c02"; + reg = <0x52>; + }; +}; + +&spi1 { + status = "okay"; + num-cs = <4>; + is-decoded-cs = <0>; +}; + +&uart1 { + status = "okay"; +};