From patchwork Fri Mar 2 19:21:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10255565 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 73DF76037D for ; Fri, 2 Mar 2018 19:23:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6209C28389 for ; Fri, 2 Mar 2018 19:23:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 563F328399; Fri, 2 Mar 2018 19:23:45 +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 965DE28389 for ; Fri, 2 Mar 2018 19:23:44 +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=HyoIlRhlULw7dWoTeRmO7HowbT/2YNjJ8mQnV3sU+mE=; b=Yhzmk0jZ5a2+nSjUtALUuAdC/3 PCVCMA6kC3pj9iZ7ySzD05btHkKpr3l0lE92c6eb3Wa3bppcN1GOfuJfZMd1wWMoRneWv+U8SzaBZ H5T7D9yOjQtp4kYJN65wSSvOQ74rSiuX5TpXtg2rGqAVGt2yK6j3CkiEDp4/QIq59VCINmiQaGPC4 MS2ahyNziKtk1REjmoB58m+FRyNhptRiXt1AsDe8C7NO79jQ5XAz7w3tRMhuO+xVOG1HhhHG6G1Jc KeFbTKWYS1tI9puFI7K89BCkCdRpzhe+hQ5PvmN2Y6hx9rzKcKz+bndv7doIlvhKsPoDXJRBMLhQu IovlLX8A==; 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 1erqHE-0008RU-AY; Fri, 02 Mar 2018 19:23:32 +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-0007Mz-Hi for linux-arm-kernel@lists.infradead.org; Fri, 02 Mar 2018 19:22:02 +0000 Received: by mail-wm0-x241.google.com with SMTP id t3so5090747wmc.2 for ; Fri, 02 Mar 2018 11:21:42 -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=irsbNReWVUsQogcKbsBZ+bTfUX89lJLEdK3AscHrdHY=; b=joPD4/RKzO2qxgAfEJEc3dScXPcdTvr2GEIt2uIHCA1Gv2sA4vGQZKwYhXkN7yfKQE RajxD6Ju788sylrysB9XFe9MHTFBgEUDBRM0218SczxTnHFGcBFoEp2KnfzCM78JyVTa uVDkbUDe0tcKVEfgQHeC4oiEq3HBW22qOIGBoNPDE/IZxwxDkFPv6iB0qusXqHYHyMnT 3DAyKvHelU8D4qEfxVJ/XKm0PpUdzlAtyoVnZ9mBhM05+sWV8vil3SUp1far1i1NHgxM dMbSMP0AzbTfUOLZqWPKFapRKNaC9Z3h+QdSxO2BsJUg8DctuS5lX7JAOhs+w8yvBa+u IrfQ== 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=irsbNReWVUsQogcKbsBZ+bTfUX89lJLEdK3AscHrdHY=; b=kEAuMssu8bg/g73qHWPp8DtUYkjRC5wnPG1VkpJudw2R7t7rNwMpIB3XdwX33U+CMO b2xXwf+w8vScQTYu5dl6qNfYU3ZBBMkqI90x63CySgSd1orDw8NvZG1Wca/eRC9+CK0G cS0GOdf/YdK44yC7AYJn6yzTsM0fdGqh9N4/4jihQ09HtYPFKBhR6XkrtpMa1WGPyUXe GSi4CWrSGdg5A5owZYEyxLsPA00JfHE8N7BLBaOYmIrckd2xbg1/0t1BItf7sFx8KtAZ xMowubheridZVOkjqoC9/ScGDWwlleJ+sSORqGZzwHB+PM3CGIi/EX+wPDXd/VqG+GPN p9Dg== X-Gm-Message-State: AElRT7F0vrEs6GZhD5/HZTpyQiTgjO4juYTPRkqV3EmQ7EZAXxW2L7iB SMxam9CGTP2rWy2pJeJYtY3Www== X-Google-Smtp-Source: AG47ELtileVNRvPunuAONbb0RSl/diMbokII7wYsylSKRARbm7fuVEmVdNJjmddBv3YbMlwC8NTGow== X-Received: by 10.28.97.7 with SMTP id v7mr2241964wmb.154.1520018500706; Fri, 02 Mar 2018 11:21:40 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id c78sm2107835wmd.45.2018.03.02.11.21.39 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 02 Mar 2018 11:21:40 -0800 (PST) From: Michal Simek To: devicetree@vger.kernel.org Subject: [PATCH v3 1/5] arm: zynq: Add Xilinx cc108 board Date: Fri, 2 Mar 2018 20:21:33 +0100 Message-Id: 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_552528_A2A6EB59 X-CRM114-Status: GOOD ( 17.34 ) 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 The board contains 7z010 with 512MB memory, ethernet, qspi, uart, usbs and sd. But board is not supporting booting from sd card. 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 | 5 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/zynq-cc108.dts | 75 ++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 arch/arm/boot/dts/zynq-cc108.dts diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree/bindings/arm/xilinx.txt index 549e70a022cb..425c74fcc560 100644 --- a/Documentation/devicetree/bindings/arm/xilinx.txt +++ b/Documentation/devicetree/bindings/arm/xilinx.txt @@ -6,6 +6,11 @@ shall have the following properties. Required root node properties: - compatible = "xlnx,zynq-7000"; +Additional compatible strings: + +- Xilinx internal board cc108 + "xlnx,zynq-cc108" + --------------------------------------------------------------- Xilinx Zynq UltraScale+ MPSoC Platforms Device Tree Bindings diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index ade7a38543dc..c6810e84d4d7 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1062,6 +1062,7 @@ dtb-$(CONFIG_ARCH_VT8500) += \ wm8750-apc8750.dtb \ wm8850-w70v2.dtb dtb-$(CONFIG_ARCH_ZYNQ) += \ + zynq-cc108.dtb \ zynq-microzed.dtb \ zynq-parallella.dtb \ zynq-zc702.dtb \ diff --git a/arch/arm/boot/dts/zynq-cc108.dts b/arch/arm/boot/dts/zynq-cc108.dts new file mode 100644 index 000000000000..1a0f631c1d8d --- /dev/null +++ b/arch/arm/boot/dts/zynq-cc108.dts @@ -0,0 +1,75 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Xilinx CC108 board DTS + * + * (C) Copyright 2007-2018 Xilinx, Inc. + * (C) Copyright 2007-2013 Michal Simek + * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd + * + * Michal SIMEK + */ +/dts-v1/; +/include/ "zynq-7000.dtsi" + +/ { + compatible = "xlnx,zynq-cc108", "xlnx,zynq-7000"; + model = "Xilinx Zynq"; + + aliases { + ethernet0 = &gem0; + serial0 = &uart0; + }; + + chosen { + bootargs = ""; + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x20000000>; + }; + + usb_phy0: phy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; + + usb_phy1: phy1 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; +}; + +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy@1 { + reg = <1>; + device_type = "ethernet-phy"; + }; +}; + +&sdhci1 { + status = "okay"; + broken-cd ; + wp-inverted ; +}; + +&uart0 { + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy0>; +}; + +&usb1 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy1>; +};