{"id":813077,"url":"http://patchwork.ozlabs.org/api/patches/813077/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170912210518.203740259@cogentembedded.com/","project":{"id":37,"url":"http://patchwork.ozlabs.org/api/projects/37/?format=json","name":"Devicetree Bindings","link_name":"devicetree-bindings","list_id":"devicetree.vger.kernel.org","list_email":"devicetree@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170912210518.203740259@cogentembedded.com>","list_archive_url":null,"date":"2017-09-12T20:37:20","name":"[04/11] soc: renesas: rcar-sysc: add R8A77970 support","commit_ref":null,"pull_url":null,"state":"superseded","archived":true,"hash":"1c296a1eab79d048e315c44da3d7446d229f3a88","submitter":{"id":22564,"url":"http://patchwork.ozlabs.org/api/people/22564/?format=json","name":"Sergei Shtylyov","email":"sergei.shtylyov@cogentembedded.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170912210518.203740259@cogentembedded.com/mbox/","series":[{"id":2777,"url":"http://patchwork.ozlabs.org/api/series/2777/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/list/?series=2777","date":"2017-09-12T20:37:16","name":"Add R8A77970/Eagle board support","version":1,"mbox":"http://patchwork.ozlabs.org/series/2777/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813077/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813077/checks/","tags":{},"related":[],"headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=cogentembedded-com.20150623.gappssmtp.com\n\theader.i=@cogentembedded-com.20150623.gappssmtp.com\n\theader.b=\"KN2VI1R5\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsHPf2ZyQz9t2Z\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 07:05:26 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751430AbdILVFZ (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 12 Sep 2017 17:05:25 -0400","from mail-lf0-f51.google.com ([209.85.215.51]:38588 \"EHLO\n\tmail-lf0-f51.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751351AbdILVFY (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 12 Sep 2017 17:05:24 -0400","by mail-lf0-f51.google.com with SMTP id q132so29470940lfe.5\n\tfor <devicetree@vger.kernel.org>;\n\tTue, 12 Sep 2017 14:05:23 -0700 (PDT)","from wasted.cogentembedded.com ([31.173.85.236])\n\tby smtp.gmail.com with ESMTPSA id\n\tc23sm773673lfg.81.2017.09.12.14.05.18\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 14:05:20 -0700 (PDT)","by wasted.cogentembedded.com (sSMTP sendmail emulation);\n\tWed, 13 Sep 2017 00:05:18 +0300"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=cogentembedded-com.20150623.gappssmtp.com; s=20150623;\n\th=from:message-id:user-agent:date:to:cc:to:to:cc:subject:mime-version\n\t:content-disposition;\n\tbh=oxg2e5qklclyWW8IbAJZb7N6kzePEBC3e8lQ/JzNSQ4=;\n\tb=KN2VI1R5yyhMhwHYGAHxOK7OzR6YwB2Q52G9ccbh/AJq/y574FoseyFXKSSSb6hGH9\n\tJHKptGTvc2djzLMOzv4bGogz6t3Ox4FkTO9HJXLacTEoOIoCvBRI81fS5AGHiW4lIJf1\n\tVtsdjA4ZA/X+ERGZDsCIW+tLco8kxr+BkreB5Dy3S4mKpNXoy1fsLewwiIVpmBUU2687\n\tCbOkAIQPXjw/kevTpalVjphwbPUlj6GAhWQp2ezUbvk4+etzMMuEGkLYt87CfJ3nVxUm\n\tnzzRshJ2wu90nA2hRukZa/wQOIkL8tb9P2GINsHy87fFFiE2LOYQLe2SAkitmaNbtngC\n\tIEgA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:message-id:user-agent:date:to:cc:to:to:cc\n\t:subject:mime-version:content-disposition;\n\tbh=oxg2e5qklclyWW8IbAJZb7N6kzePEBC3e8lQ/JzNSQ4=;\n\tb=eB/4MSSJ89/7x7Ln+zu38o93XqNfDX3N+n7wfiMrJBIwFYrDQ0Tey7zX9IbRN6u7bd\n\tH4ZrFO149YN8/KvqKcMoNOGNne9SrOQz7rFQPTlrhlMDFHJUszxnHNanp/i38e9Ct/rR\n\twaiUsHI3jgpI70EM1rLZ5hiTPkvZvAmRR43GLMUOLb/JVbo7zwwOtrAS0fihmv5ZZs3c\n\t8+dh0CanfTgEbXxLtdibhHXa3ihJs6rZMceU1N9t3voNy7R6NzG2qXruDD+W5Fm+nRWS\n\ty0vnvi1e7zcX1Pqcj6FMbbyqGqoNFYD7wqyOdLrHTdASiQ6QGUO3CNz/9yEw3dUoH4NR\n\tmQcA==","X-Gm-Message-State":"AHPjjUgrRy786Wwanz+c3i5whYLw3cHyl1Xj7pHGwk3Ld/JhYYj0GdPj\n\taBNomYSan91bwnfx","X-Google-Smtp-Source":"ADKCNb7wwlW10r52EjHWoLQrta2WetAmcihk2UKHtbctFwmSyGsjBL/qFj4+zGkcusHj4+heBoUYAQ==","X-Received":"by 10.46.16.71 with SMTP id j68mr3273231lje.110.1505250323315;\n\tTue, 12 Sep 2017 14:05:23 -0700 (PDT)","From":"Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>","X-Google-Original-From":"\"Sergei Shtylyov\"\n\t<headless@wasted.cogentembedded.com>","Message-Id":"<20170912210518.203740259@cogentembedded.com>","User-Agent":"quilt/0.64","Date":"Tue, 12 Sep 2017 23:37:20 +0300","To":["Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>,\n\tSimon Horman <horms@verge.net.au>, devicetree@vger.kernel.org,\n\tlinux-renesas-soc@vger.kernel.org","Catalin Marinas <catalin.marinas@arm.com>","Will Deacon <will.deacon@arm.com>"],"Cc":["Magnus Damm <magnus.damm@gmail.com>,\n\tVladimir Barinov <vladimir.barinov@cogentembedded.com>,\n\tSergei Shtylyov <sergei.shtylyov@cogentembedded.com>","linux-arm-kernel@lists.infradead.org"],"Subject":"[PATCH 04/11] soc: renesas: rcar-sysc: add R8A77970 support","MIME-Version":"1.0","Content-Type":"text/plain; charset=ISO-8859-15","Content-Disposition":"inline;\n\tfilename=soc-renesas-rcar-sysc-add-R8A77970-support.patch","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"},"content":"Add support for R-Car V3M (R8A77970) SoC power areas to the R-Car SYSC\ndriver.\n\nBased on the original (and large) patch by Daisuke Matsushita\n<daisuke.matsushita.ns@hitachi.com>.\n\nSigned-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>\nSigned-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>\n\n---\n Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt |    1 \n drivers/soc/renesas/Kconfig                                   |    5 +\n drivers/soc/renesas/Makefile                                  |    1 \n drivers/soc/renesas/r8a77970-sysc.c                           |   39 ++++++++++\n drivers/soc/renesas/rcar-sysc.c                               |    3 \n drivers/soc/renesas/rcar-sysc.h                               |    1 \n 6 files changed, 50 insertions(+)\n\n\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","diff":"Index: renesas/Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt\n===================================================================\n--- renesas.orig/Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt\n+++ renesas/Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt\n@@ -17,6 +17,7 @@ Required properties:\n       - \"renesas,r8a7794-sysc\" (R-Car E2)\n       - \"renesas,r8a7795-sysc\" (R-Car H3)\n       - \"renesas,r8a7796-sysc\" (R-Car M3-W)\n+      - \"renesas,r8a77970-sysc\" (R-Car V3M)\n       - \"renesas,r8a77995-sysc\" (R-Car D3)\n   - reg: Address start and address range for the device.\n   - #power-domain-cells: Must be 1.\nIndex: renesas/drivers/soc/renesas/Kconfig\n===================================================================\n--- renesas.orig/drivers/soc/renesas/Kconfig\n+++ renesas/drivers/soc/renesas/Kconfig\n@@ -14,6 +14,7 @@ config SOC_RENESAS\n \tselect SYSC_R8A7794 if ARCH_R8A7794\n \tselect SYSC_R8A7795 if ARCH_R8A7795\n \tselect SYSC_R8A7796 if ARCH_R8A7796\n+\tselect SYSC_R8A77970 if ARCH_R8A77970\n \tselect SYSC_R8A77995 if ARCH_R8A77995\n \n if SOC_RENESAS\n@@ -55,6 +56,10 @@ config SYSC_R8A7796\n \tbool \"R-Car M3-W System Controller support\" if COMPILE_TEST\n \tselect SYSC_RCAR\n \n+config SYSC_R8A77970\n+\tbool \"R-Car V3M System Controller support\" if COMPILE_TEST\n+\tselect SYSC_RCAR\n+\n config SYSC_R8A77995\n \tbool \"R-Car D3 System Controller support\" if COMPILE_TEST\n \tselect SYSC_RCAR\nIndex: renesas/drivers/soc/renesas/Makefile\n===================================================================\n--- renesas.orig/drivers/soc/renesas/Makefile\n+++ renesas/drivers/soc/renesas/Makefile\n@@ -11,6 +11,7 @@ obj-$(CONFIG_SYSC_R8A7792)\t+= r8a7792-sy\n obj-$(CONFIG_SYSC_R8A7794)\t+= r8a7794-sysc.o\n obj-$(CONFIG_SYSC_R8A7795)\t+= r8a7795-sysc.o\n obj-$(CONFIG_SYSC_R8A7796)\t+= r8a7796-sysc.o\n+obj-$(CONFIG_SYSC_R8A77970)\t+= r8a77970-sysc.o\n obj-$(CONFIG_SYSC_R8A77995)\t+= r8a77995-sysc.o\n \n # Family\nIndex: renesas/drivers/soc/renesas/r8a77970-sysc.c\n===================================================================\n--- /dev/null\n+++ renesas/drivers/soc/renesas/r8a77970-sysc.c\n@@ -0,0 +1,39 @@\n+/*\n+ * Renesas R-Car V3M System Controller\n+ *\n+ * Copyright (C) 2017 Cogent Embedded Inc.\n+ *\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License version 2 as\n+ * published by the Free Software Foundation.\n+ */\n+\n+#include <linux/bug.h>\n+#include <linux/kernel.h>\n+\n+#include <dt-bindings/power/r8a77970-sysc.h>\n+\n+#include \"rcar-sysc.h\"\n+\n+static const struct rcar_sysc_area r8a77970_areas[] __initconst = {\n+\t{ \"always-on\",\t    0, 0, R8A77970_PD_ALWAYS_ON, -1, PD_ALWAYS_ON },\n+\t{ \"ca53-scu\",\t0x140, 0, R8A77970_PD_CA53_SCU,\tR8A77970_PD_ALWAYS_ON,\n+\t  PD_SCU },\n+\t{ \"ca53-cpu0\",\t0x200, 0, R8A77970_PD_CA53_CPU0, R8A77970_PD_CA53_SCU,\n+\t  PD_CPU_NOCR },\n+\t{ \"ca53-cpu1\",\t0x200, 1, R8A77970_PD_CA53_CPU1, R8A77970_PD_CA53_SCU,\n+\t  PD_CPU_NOCR },\n+\t{ \"cr7\",\t0x240, 0, R8A77970_PD_CR7,\tR8A77970_PD_ALWAYS_ON },\n+\t{ \"a3ir\",\t0x180, 0, R8A77970_PD_A3IR,\tR8A77970_PD_ALWAYS_ON },\n+\t{ \"a2ir0\",\t0x400, 0, R8A77970_PD_A2IR0,\tR8A77970_PD_ALWAYS_ON },\n+\t{ \"a2ir1\",\t0x400, 1, R8A77970_PD_A2IR1,\tR8A77970_PD_A2IR0 },\n+\t{ \"a2ir2\",\t0x400, 2, R8A77970_PD_A2IR2,\tR8A77970_PD_A2IR0 },\n+\t{ \"a2ir3\",\t0x400, 3, R8A77970_PD_A2IR3,\tR8A77970_PD_A2IR0 },\n+\t{ \"a2sc0\",\t0x400, 4, R8A77970_PD_A2SC0,\tR8A77970_PD_ALWAYS_ON },\n+\t{ \"a2sc1\",\t0x400, 5, R8A77970_PD_A2SC1,\tR8A77970_PD_A2SC0 },\n+};\n+\n+const struct rcar_sysc_info r8a77970_sysc_info __initconst = {\n+\t.areas = r8a77970_areas,\n+\t.num_areas = ARRAY_SIZE(r8a77970_areas),\n+};\nIndex: renesas/drivers/soc/renesas/rcar-sysc.c\n===================================================================\n--- renesas.orig/drivers/soc/renesas/rcar-sysc.c\n+++ renesas/drivers/soc/renesas/rcar-sysc.c\n@@ -284,6 +284,9 @@ static const struct of_device_id rcar_sy\n #ifdef CONFIG_SYSC_R8A7796\n \t{ .compatible = \"renesas,r8a7796-sysc\", .data = &r8a7796_sysc_info },\n #endif\n+#ifdef CONFIG_SYSC_R8A77970\n+\t{ .compatible = \"renesas,r8a77970-sysc\", .data = &r8a77970_sysc_info },\n+#endif\n #ifdef CONFIG_SYSC_R8A77995\n \t{ .compatible = \"renesas,r8a77995-sysc\", .data = &r8a77995_sysc_info },\n #endif\nIndex: renesas/drivers/soc/renesas/rcar-sysc.h\n===================================================================\n--- renesas.orig/drivers/soc/renesas/rcar-sysc.h\n+++ renesas/drivers/soc/renesas/rcar-sysc.h\n@@ -58,6 +58,7 @@ extern const struct rcar_sysc_info r8a77\n extern const struct rcar_sysc_info r8a7794_sysc_info;\n extern const struct rcar_sysc_info r8a7795_sysc_info;\n extern const struct rcar_sysc_info r8a7796_sysc_info;\n+extern const struct rcar_sysc_info r8a77970_sysc_info;\n extern const struct rcar_sysc_info r8a77995_sysc_info;\n \n \n","prefixes":["04/11"]}