From patchwork Fri Aug 26 20:21:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9302049 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 2E3DB601C0 for ; Fri, 26 Aug 2016 20:30:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2099D29390 for ; Fri, 26 Aug 2016 20:30:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1415929653; Fri, 26 Aug 2016 20:30:08 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CA0C229390 for ; Fri, 26 Aug 2016 20:30:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdNjs-0001Lq-4E; Fri, 26 Aug 2016 20:28:32 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bdNde-0003Cw-Kp for linux-arm-kernel@lists.infradead.org; Fri, 26 Aug 2016 20:22:12 +0000 Received: by mail-lf0-x22c.google.com with SMTP id l89so64264868lfi.1 for ; Fri, 26 Aug 2016 13:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=QNPOKIp+noSp1X4VycvLm/b9PQrXvRZtzFelIx2uT0U=; b=Scj/3ZVhWTK4N55Y7YNzmEGEd375R65qIKnTNNiWZPiPf3M7JYDNY4dlv0ygYsNTY2 dd+pbe/lsTUwLYGNKY+xn2KQ6oDZjDjMEzrVF2YUpUQb2B83WeIqirf4PnOnkcifIehY Jpv1sr8xrrD2RqjVYUwj+EibhXA02A1KgguPld5oI+Hny3dZFmk0Dl2rFlp+KvI3CKL+ ZomQwo2hcE29VP8yiI+EvJ4+M+4o+L5mlUnj71tt4iYaHFLV1+alpvfRPvMxMnzxUzl5 ULsvDuUN8TQzO/a8CdvhmLajRanf0e98tD//pIRIY3QMUMu+qCwoBWedIgPxb1X3hxk1 lUuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=QNPOKIp+noSp1X4VycvLm/b9PQrXvRZtzFelIx2uT0U=; b=JcIqNYIrAEZ3z74L5ykIhxgs3cpVLCBG5f6ed14oplLdoIzkmpzgypZN3TNKzeoW2u CsQuwAFKPy5zVMFXFpfVg9rkZN8RqbrnAwZR61oAChXje462AhwtPfE3jdph+Cb0FlKG pyyn6Zo88PGI1NEzNMsSBOezUeSMxj6oH2IQwinUijUkjjgLB6147XxJxhFtRHNj1J4X l6TSuhi/82jy9pfU8VVrcM1GScw/wk6R2icJGyDacoIuppu3HdlSfewC0+GL4XyMIUas xxPIJbtA+JgGOGD+0Nc3MrbjekkvT0SKiD0aN8152Bk1h71UcAzI0rlyxAL1TPc4ORDZ Wr1w== X-Gm-Message-State: AE9vXwOsDqBfveXPTkugdZdGKwaRqYKzB4A4hHpl7Q8fuI1oC3wUpk3pOq75/0zRuIq6pA== X-Received: by 10.46.1.26 with SMTP id 26mr2153103ljb.26.1472242904051; Fri, 26 Aug 2016 13:21:44 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.21]) by smtp.gmail.com with ESMTPSA id 83sm4282372ljj.14.2016.08.26.13.21.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Aug 2016 13:21:43 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: wheat: initial device tree Date: Fri, 26 Aug 2016 23:21:42 +0300 Message-ID: <4464163.ssfn2FILGm@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.6.6-200.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <3665116.9BjHTnhfR3@wasted.cogentembedded.com> References: <3665116.9BjHTnhfR3@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160826_132207_270529_367473C7 X-CRM114-Status: GOOD ( 12.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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 Add the initial device tree for the R8A7792 SoC based Wheat board. The Wheat board itself has no serial ports wired up, the USB serial chips are situated on a separate debug board and one of them is connected to SCFI0 -- include unconditional support for it, so that the serial console can work. Based on the original (and large) patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/Makefile | 1 arch/arm/boot/dts/r8a7792-wheat.dts | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) Index: renesas/arch/arm/boot/dts/Makefile =================================================================== --- renesas.orig/arch/arm/boot/dts/Makefile +++ renesas/arch/arm/boot/dts/Makefile @@ -659,6 +659,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \ r8a7791-koelsch.dtb \ r8a7791-porter.dtb \ r8a7792-blanche.dtb \ + r8a7792-wheat.dtb \ r8a7793-gose.dtb \ r8a7794-alt.dtb \ r8a7794-silk.dtb \ Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts =================================================================== --- /dev/null +++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts @@ -0,0 +1,50 @@ +/* + * Device Tree Source for the Wheat board + * + * Copyright (C) 2016 Renesas Electronics Corporation + * Copyright (C) 2016 Cogent Embedded, Inc. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +/dts-v1/; +#include "r8a7792.dtsi" + +/ { + model = "Wheat"; + compatible = "renesas,wheat", "renesas,r8a7792"; + + aliases { + serial0 = &scif0; + }; + + chosen { + bootargs = "ignore_loglevel"; + stdout-path = "serial0:115200n8"; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x40000000>; + }; +}; + +&extal_clk { + clock-frequency = <20000000>; +}; + +&pfc { + scif0_pins: scif0 { + groups = "scif0_data"; + function = "scif0"; + }; +}; + +&scif0 { + pinctrl-0 = <&scif0_pins>; + pinctrl-names = "default"; + + status = "okay"; +};