From patchwork Thu Sep 29 22:23:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9357211 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 4170E6086A for ; Thu, 29 Sep 2016 22:25:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3142227F54 for ; Thu, 29 Sep 2016 22:25:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25B3728F3A; Thu, 29 Sep 2016 22:25:49 +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 C941227F54 for ; Thu, 29 Sep 2016 22:25:47 +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 1bpjkf-0000Po-Db; Thu, 29 Sep 2016 22:24:25 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bpjkX-0000Ht-5Q for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2016 22:24:18 +0000 Received: by mail-lf0-x22f.google.com with SMTP id y6so91700938lff.1 for ; Thu, 29 Sep 2016 15:23:56 -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=FShS5X2QarUzGXkyH4LRchrT3xbmX8ypuyy3zh7gAPk=; b=jGvH6b/NHEnMBUd5L0veHWFLXG8Er0ja22VHvtFtJe8W73v2kXUlvgtYaSuzb8HYqk YxYO/Nx11OqJGdD8SkfiPhs4cuXZSSIZR/1FSiB+qrm44ukbamqtY4N/jE3Z7GFPV5NT s2WbGIR3BTaj/ribyhar7vKQRcMBim79U1E7ZWgmlMbnLUnAWc+ZHuN+1eHXOx5E51hI ovSIFTJyJsJ2viwXT6F3hi9QruIOaYtbdLA0cOuojqNjq4O64bwRbLKt1UFngzlINz7G dFnHsI4eIg7emdJzLLdWgkmS/ATf2nf8LTLPVPaQniZeSXSQZFAoQtHJOtwGzNuJHKIR 73Vg== 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=FShS5X2QarUzGXkyH4LRchrT3xbmX8ypuyy3zh7gAPk=; b=Iq+ax1tr4BC+sscapoYSAq8i9YZ3pc+NORGviha8N4+ubgBht+l8QUz7zhP9WeFVh1 IHQQnK+Rp2qhZykZMEDfQ94ZECLd3vKXCXXNkt8DZt7vhFDe0Vw1zJ7H6hdgSXzmKc6J 2PkxxqKwteXxZeRblBJnUux5QfHea5ijJMMhi7EYlHn/RtiPBvrA+FM/Hn3nyDhaE2vJ xBdUwq7lebYPH7FKkNfBht3kYJ9G6zGoeYCHag8mRzJn8FaLv5G/mR/8tHPm5v/J8uoC BVGkV5nRZHyfjVw/i6AsrQyU/rzICBkXfkCKHpfyt8W+DhaEg3PiOTQ+IYpzIM44gGS9 OUzw== X-Gm-Message-State: AA6/9RnFL+j6pGZBJ6JEinjCIovbO0rqNRNT0O7PWEvmfSxt/eHEmXiwSswwq8PeQtuDBw== X-Received: by 10.46.33.217 with SMTP id h86mr1525188lji.54.1475187834945; Thu, 29 Sep 2016 15:23:54 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.95]) by smtp.gmail.com with ESMTPSA id 202sm2485471ljf.33.2016.09.29.15.23.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Sep 2016 15:23:54 -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 RFC v2 4/12] ARM: shmobile: r8a7743: basic SoC support Date: Fri, 30 Sep 2016 01:23:52 +0300 Message-ID: <3178356.WuR0emdY7D@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.4-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <1987532.PE2ex6PrJ5@wasted.cogentembedded.com> References: <1987532.PE2ex6PrJ5@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160929_152417_461017_10DCCF0F X-CRM114-Status: GOOD ( 13.70 ) 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 minimal support for the RZ/G1M (R8A7743) SoC. Based on the original (and large) patch by Dmitry Shifrin . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in version 2: - removed "select I2C" from the R8A7743 Kconfig entry; - documented the R8A7743 device tree binding; - added Geert's tag. Documentation/devicetree/bindings/arm/shmobile.txt | 2 + arch/arm/mach-shmobile/Kconfig | 4 ++ arch/arm/mach-shmobile/Makefile | 1 arch/arm/mach-shmobile/setup-r8a7743.c | 34 +++++++++++++++++++++ 4 files changed, 41 insertions(+) Index: renesas/Documentation/devicetree/bindings/arm/shmobile.txt =================================================================== --- renesas.orig/Documentation/devicetree/bindings/arm/shmobile.txt +++ renesas/Documentation/devicetree/bindings/arm/shmobile.txt @@ -13,6 +13,8 @@ SoCs: compatible = "renesas,r8a73a4" - R-Mobile A1 (R8A77400) compatible = "renesas,r8a7740" + - RZ/G1M (R8A77430) + compatible = "renesas,r8a7743" - R-Car M1A (R8A77781) compatible = "renesas,r8a7778" - R-Car H1 (R8A77790) Index: renesas/arch/arm/mach-shmobile/Kconfig =================================================================== --- renesas.orig/arch/arm/mach-shmobile/Kconfig +++ renesas/arch/arm/mach-shmobile/Kconfig @@ -68,6 +68,10 @@ config ARCH_R8A7740 select ARCH_RMOBILE select RENESAS_INTC_IRQPIN +config ARCH_R8A7743 + bool "RZ/G1M (R8A77430)" + select ARCH_RCAR_GEN2 + config ARCH_R8A7778 bool "R-Car M1A (R8A77781)" select ARCH_RCAR_GEN1 Index: renesas/arch/arm/mach-shmobile/Makefile =================================================================== --- renesas.orig/arch/arm/mach-shmobile/Makefile +++ renesas/arch/arm/mach-shmobile/Makefile @@ -9,6 +9,7 @@ obj-y := timer.o obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o +obj-$(CONFIG_ARCH_R8A7743) += setup-r8a7743.o obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o Index: renesas/arch/arm/mach-shmobile/setup-r8a7743.c =================================================================== --- /dev/null +++ renesas/arch/arm/mach-shmobile/setup-r8a7743.c @@ -0,0 +1,34 @@ +/* + * r8a7743 processor support + * + * Copyright (C) 2016 Cogent Embedded, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include + +#include + +#include "common.h" +#include "rcar-gen2.h" + +static const char * const r8a7743_boards_compat_dt[] __initconst = { + "renesas,r8a7743", + NULL, +}; + +DT_MACHINE_START(R8A7743_DT, "Generic R8A7743 (Flattened Device Tree)") + .init_early = shmobile_init_delay, + .init_time = rcar_gen2_timer_init, + .init_late = shmobile_init_late, + .reserve = rcar_gen2_reserve, + .dt_compat = r8a7743_boards_compat_dt, +MACHINE_END