From patchwork Fri Feb 23 15:00:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10238001 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 F339A602DC for ; Fri, 23 Feb 2018 15:04:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E08EE29485 for ; Fri, 23 Feb 2018 15:04:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3C4629686; Fri, 23 Feb 2018 15:04:52 +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 3CD8C29485 for ; Fri, 23 Feb 2018 15:04:51 +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=BduLw4j3dziu6gaf9CJq12PBLTBDnmjORoQwvzy0uak=; b=GZRy4wi+nnyi4ksVVWE6Zk85Wn sRL/L87rXpQpWwSH+vMcDuV+a75M1ElCYP+P3S9+QsGyMQX6Uedj+ppLvD49Ksei4xq+ooB1rvvzl zdBPC+wyJIBP5IrH1Ebwaq2I1OmisC4207+5CcQOZD9vrwhm9TJh7pE7TeytWAHBhc00ltXffbTp1 pW3YFzsTiCDrlqbilrvGonG6kRLfpcHYmor8Qqm8hBwJ9evJIUpe+Z6xsn0+toBO1JBRWXLpasxx3 U2vUwojSm9/rhcEZ6cQAfN76k1vL/w2EFYofKNS/NLqarSKSk/h6x5gbOtDPczuTS2MbjyBqDJSHP aIchoYOQ==; 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 1epEtt-0003V3-9j; Fri, 23 Feb 2018 15:04:41 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1epEpz-0001QL-Du for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2018 15:01:00 +0000 Received: by mail-wm0-x242.google.com with SMTP id t3so5187110wmc.2 for ; Fri, 23 Feb 2018 07:00:28 -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=XTBmTo3ZtnNhAx9ldUB0WuEamZioC+uMNMg7cIF/LUs=; b=W0OoXgRnqxuo9J2SIdifFdL7/O+1dCffC/8//C6AFDn9/Wl3CdQIkosW+dnaCiXlHw 7yIiS2Okv6URvG29w8WQBNPsAnUJ5pLMEhI7KyCreYzyOp+6weXEjspgXUeA7LRt3bwC e3m3yiP8A4SnYGJA4wZOB4uAXsKrUiT5QmDPSs04QIYptiuJN2XuEmygBKzz2J0HuaYY oAxhzCMHgsLnE9T1pxLSAXy6LZHZdtbcuyO1aYsRypu0CFIFjrgqhkUsx7J9CrOoqGJ5 Xra8HqJeotSDhX3CTsIFyHa/FF/IhVvCl4rB46w9STVqV3gNX21Wwvp8+dh+aehhr9Ew Eysw== 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=XTBmTo3ZtnNhAx9ldUB0WuEamZioC+uMNMg7cIF/LUs=; b=lL2XNbEIaRH70brQ4Yi/gKVLU3a/DcZ2uzqvQDJEWTTOQzEGj4f36Qn2v2uu+iMoiH M20bMoutS2OB4PGaGStDyRwcknyk4tBp29SkIFU+bqjS61RzZmuRWrjsEmXjZwOzXLYN oieVjgSpVZenmffKhkZ+U77/W7A8po1kpzEai7njMbj3ANnslEIyoyF073XZWo/J6vLJ puRWEOoU2x48tumzd6BOKWQD7VADzQvCrg45A0APUS20h6xg28FxB7YD4DnQ3mCmgzxM jxiT40iFJ/rBipja/rbc+JfhKTj5ZchjcKRNcvlCTWuctaHp/OlABdpbMxrmzTuhtqtB 2fNQ== X-Gm-Message-State: APf1xPDRmJmppkE7p+m34H3DP2/EQ9QXJTY6Mi2Qc6SzwaFBW7zqoGvF 6DmXpUd/xF2CX7hVDriGqsMCoQ== X-Google-Smtp-Source: AG47ELuDuyasboGJo1FWnmDDE2wFXH2gg0tvyRoX0ApjY1LAZQaRvqzydqPn0PaGp2/qLz1Dqmx6MQ== X-Received: by 10.28.91.17 with SMTP id p17mr1940261wmb.151.1519398026874; Fri, 23 Feb 2018 07:00:26 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id k13sm2436845wrd.61.2018.02.23.07.00.26 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 23 Feb 2018 07:00:26 -0800 (PST) From: Michal Simek To: devicetree@vger.kernel.org Subject: [PATCH v2 1/5] arm: zynq: Add Xilinx cc108 board Date: Fri, 23 Feb 2018 16:00:19 +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-20180223_070039_551824_05F36BB5 X-CRM114-Status: GOOD ( 17.08 ) 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 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>; +};