All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
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 v2 02/11] soc: renesas: rcar-sysc: add R8A7745 support
Date: Sat, 05 Nov 2016 00:46:13 +0300	[thread overview]
Message-ID: <1834171.PEVAvqbuLx@wasted.cogentembedded.com> (raw)
In-Reply-To: <2368353.xfo5beGC5E@wasted.cogentembedded.com>

Add support for RZ/G1E (R8A7745) SoC power areas to the R-Car SYSC driver.

Based on the original (and large) patch by Dmitry Shifrin
<dmitry.shifrin@cogentembedded.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

---
Changes in version 2:
- added Geert's tag.

 Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt |    1 
 drivers/soc/renesas/Makefile                                  |    1 
 drivers/soc/renesas/r8a7745-sysc.c                            |   32 ++++++++++
 drivers/soc/renesas/rcar-sysc.c                               |    3 
 drivers/soc/renesas/rcar-sysc.h                               |    1 
 5 files changed, 38 insertions(+)

Index: renesas/Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt
===================================================================
--- renesas.orig/Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt
+++ renesas/Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt
@@ -8,6 +8,7 @@ and various coprocessors.
 Required properties:
   - compatible: Must contain exactly one of the following:
       - "renesas,r8a7743-sysc" (RZ/G1M)
+      - "renesas,r8a7745-sysc" (RZ/G1E)
       - "renesas,r8a7779-sysc" (R-Car H1)
       - "renesas,r8a7790-sysc" (R-Car H2)
       - "renesas,r8a7791-sysc" (R-Car M2-W)
Index: renesas/drivers/soc/renesas/Makefile
===================================================================
--- renesas.orig/drivers/soc/renesas/Makefile
+++ renesas/drivers/soc/renesas/Makefile
@@ -4,6 +4,7 @@ obj-$(CONFIG_ARCH_R8A7795)	+= rcar-rst.o
 obj-$(CONFIG_ARCH_R8A7796)	+= rcar-rst.o
 
 obj-$(CONFIG_ARCH_R8A7743)	+= rcar-sysc.o r8a7743-sysc.o
+obj-$(CONFIG_ARCH_R8A7745)	+= rcar-sysc.o r8a7745-sysc.o
 obj-$(CONFIG_ARCH_R8A7779)	+= rcar-sysc.o r8a7779-sysc.o
 obj-$(CONFIG_ARCH_R8A7790)	+= rcar-sysc.o r8a7790-sysc.o
 obj-$(CONFIG_ARCH_R8A7791)	+= rcar-sysc.o r8a7791-sysc.o
Index: renesas/drivers/soc/renesas/r8a7745-sysc.c
===================================================================
--- /dev/null
+++ renesas/drivers/soc/renesas/r8a7745-sysc.c
@@ -0,0 +1,32 @@
+/*
+ * Renesas RZ/G1E System Controller
+ *
+ * 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.
+ */
+
+#include <linux/bug.h>
+#include <linux/kernel.h>
+
+#include <dt-bindings/power/r8a7745-sysc.h>
+
+#include "rcar-sysc.h"
+
+static const struct rcar_sysc_area r8a7745_areas[] __initconst = {
+	{ "always-on",	    0, 0, R8A7745_PD_ALWAYS_ON,	-1, PD_ALWAYS_ON },
+	{ "ca7-scu",	0x100, 0, R8A7745_PD_CA7_SCU,	R8A7745_PD_ALWAYS_ON,
+	  PD_SCU },
+	{ "ca7-cpu0",	0x1c0, 0, R8A7745_PD_CA7_CPU0,	R8A7745_PD_CA7_SCU,
+	  PD_CPU_NOCR },
+	{ "ca7-cpu1",	0x1c0, 1, R8A7745_PD_CA7_CPU1,	R8A7745_PD_CA7_SCU,
+	  PD_CPU_NOCR },
+	{ "sgx",	 0xc0, 0, R8A7745_PD_SGX,	R8A7745_PD_ALWAYS_ON },
+};
+
+const struct rcar_sysc_info r8a7745_sysc_info __initconst = {
+	.areas = r8a7745_areas,
+	.num_areas = ARRAY_SIZE(r8a7745_areas),
+};
Index: renesas/drivers/soc/renesas/rcar-sysc.c
===================================================================
--- renesas.orig/drivers/soc/renesas/rcar-sysc.c
+++ renesas/drivers/soc/renesas/rcar-sysc.c
@@ -278,6 +278,9 @@ static const struct of_device_id rcar_sy
 #ifdef CONFIG_ARCH_R8A7743
 	{ .compatible = "renesas,r8a7743-sysc", .data = &r8a7743_sysc_info },
 #endif
+#ifdef CONFIG_ARCH_R8A7745
+	{ .compatible = "renesas,r8a7745-sysc", .data = &r8a7745_sysc_info },
+#endif
 #ifdef CONFIG_ARCH_R8A7779
 	{ .compatible = "renesas,r8a7779-sysc", .data = &r8a7779_sysc_info },
 #endif
Index: renesas/drivers/soc/renesas/rcar-sysc.h
===================================================================
--- renesas.orig/drivers/soc/renesas/rcar-sysc.h
+++ renesas/drivers/soc/renesas/rcar-sysc.h
@@ -51,6 +51,7 @@ struct rcar_sysc_info {
 };
 
 extern const struct rcar_sysc_info r8a7743_sysc_info;
+extern const struct rcar_sysc_info r8a7745_sysc_info;
 extern const struct rcar_sysc_info r8a7779_sysc_info;
 extern const struct rcar_sysc_info r8a7790_sysc_info;
 extern const struct rcar_sysc_info r8a7791_sysc_info;

  reply	other threads:[~2016-11-04 21:46 UTC|newest]

Thread overview: 103+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04 21:42 [PATCH v2 0/11] Add R8A7745/SK-RZG1E board support Sergei Shtylyov
2016-11-04 21:42 ` Sergei Shtylyov
2016-11-04 21:46 ` Sergei Shtylyov [this message]
2016-11-14 15:54   ` [PATCH v2 02/11] soc: renesas: rcar-sysc: add R8A7745 support Rob Herring
2016-11-04 21:53 ` [PATCH v2 04/11] ARM: dts: r8a7745: initial SoC device tree Sergei Shtylyov
2016-11-04 21:53   ` Sergei Shtylyov
2016-11-04 21:54 ` [PATCH v2 05/11] ARM: dts: r8a7745: add SYS-DMAC support Sergei Shtylyov
2016-11-04 21:54   ` Sergei Shtylyov
2016-11-04 21:55 ` [PATCH v2 06/11] ARM: dts: r8a7745: add [H]SCIF{|A|B} support Sergei Shtylyov
2016-11-04 21:55   ` Sergei Shtylyov
2016-11-04 21:57 ` [PATCH v2 07/11] ARM: dts: r8a7745: add Ether support Sergei Shtylyov
2016-11-04 21:57   ` Sergei Shtylyov
     [not found] ` <2368353.xfo5beGC5E-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-11-04 21:44   ` [PATCH v2 01/11] ARM: shmobile: r8a7745: add power domain index macros Sergei Shtylyov
2016-11-04 21:44     ` Sergei Shtylyov
2016-11-04 21:49   ` [PATCH v2 03/11] ARM: shmobile: r8a7745: basic SoC support Sergei Shtylyov
2016-11-04 21:49     ` Sergei Shtylyov
2016-11-04 21:49     ` Sergei Shtylyov
     [not found]     ` <1611958.qRQu5pdJd3-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-11-14 15:55       ` Rob Herring
2016-11-14 15:55         ` Rob Herring
2016-11-14 15:55         ` Rob Herring
2016-11-04 21:59   ` [PATCH v2 08/11] ARM: dts: r8a7745: add IRQC support Sergei Shtylyov
2016-11-04 21:59     ` Sergei Shtylyov
2016-11-04 21:59     ` Sergei Shtylyov
2016-11-04 22:02 ` [PATCH v2 09/11] ARM: shmobile: document SK-RZG1E board Sergei Shtylyov
2016-11-14 15:56   ` Rob Herring
2016-11-04 22:04 ` [PATCH v2 10/11] ARM: dts: sk-rzg1e: initial device tree Sergei Shtylyov
2016-11-04 22:04   ` Sergei Shtylyov
2016-11-04 22:05 ` [PATCH v2 11/11] ARM: dts: sk-rzg1e: add Ether support Sergei Shtylyov
2016-11-04 22:05   ` Sergei Shtylyov
2016-11-15 17:55 ` [PATCH v2 0/11] Add R8A7745/SK-RZG1E board support Simon Horman
2016-11-15 17:55   ` Simon Horman
2018-07-17 20:08 ` [PATCH] arm64: dts: renesas: r8a77980: add INTC-EX support Sergei Shtylyov
2018-07-17 20:08   ` Sergei Shtylyov
2018-07-17 20:08   ` Sergei Shtylyov
2018-07-18  8:55   ` Geert Uytterhoeven
2018-07-18  8:55     ` Geert Uytterhoeven
2018-07-18  8:55     ` Geert Uytterhoeven
2018-07-18  9:51   ` Simon Horman
2018-07-18  9:51     ` Simon Horman
2018-07-18  9:51     ` Simon Horman
2018-07-20 19:21 ` [PATCH] arm64: dts: renesas: r8a77980: add RWDT support Sergei Shtylyov
2018-07-20 19:21   ` Sergei Shtylyov
2018-07-20 19:21   ` Sergei Shtylyov
2018-07-23 16:08   ` Simon Horman
2018-07-23 16:08     ` Simon Horman
2018-07-23 16:08     ` Simon Horman
2018-07-23 16:14     ` Sergei Shtylyov
2018-07-23 16:14       ` Sergei Shtylyov
2018-07-23 16:14       ` Sergei Shtylyov
2018-07-24 11:45       ` Simon Horman
2018-07-24 11:45         ` Simon Horman
2018-07-24 11:45         ` Simon Horman
2018-07-25 15:08         ` Sergei Shtylyov
2018-07-25 15:08           ` Sergei Shtylyov
2018-07-25 15:08           ` Sergei Shtylyov
2018-07-25 16:08           ` Simon Horman
2018-07-25 16:08             ` Simon Horman
2018-07-25 16:08             ` Simon Horman
2018-07-24  7:01   ` Geert Uytterhoeven
2018-07-24  7:01     ` Geert Uytterhoeven
2018-07-24  7:01     ` Geert Uytterhoeven
2018-07-25 16:43 ` [PATCH] arm64: dts: renesas: r8a77980: add Cortex-A53 PMU support Sergei Shtylyov
2018-07-25 16:43   ` Sergei Shtylyov
2018-07-25 17:34   ` Geert Uytterhoeven
2018-07-25 17:34     ` Geert Uytterhoeven
2018-07-25 17:34     ` Geert Uytterhoeven
2018-07-26 12:33     ` Geert Uytterhoeven
2018-07-26 12:33       ` Geert Uytterhoeven
2018-07-26 12:33       ` Geert Uytterhoeven
2018-07-26 13:53       ` Simon Horman
2018-07-26 13:53         ` Simon Horman
2018-07-26 13:53         ` Simon Horman
2018-07-26 18:51 ` [PATCH] arm64: dts: renesas: r8a77980: move IPMMU nodes Sergei Shtylyov
2018-07-26 18:51   ` Sergei Shtylyov
2018-07-31 10:24   ` Simon Horman
2018-07-31 10:24     ` Simon Horman
2018-07-31 10:24     ` Simon Horman
2018-07-30 18:22 ` [PATCH] arm64: dts: renesas: r8a779{7|8}0: move CAN clock node Sergei Shtylyov
2018-07-30 18:22   ` Sergei Shtylyov
2018-07-31  6:45   ` Geert Uytterhoeven
2018-07-31  6:45     ` Geert Uytterhoeven
2018-07-31  6:45     ` Geert Uytterhoeven
2018-07-31 10:25     ` Simon Horman
2018-07-31 10:25       ` Simon Horman
2018-07-31 10:25       ` Simon Horman
2018-08-06 19:55 ` [PATCH] arm64: dts: renesas: r8a77980: add CSI2/VIN support Sergei Shtylyov
2018-08-06 19:55   ` Sergei Shtylyov
2018-08-06 19:55   ` Sergei Shtylyov
2018-08-09 13:08   ` Simon Horman
2018-08-09 13:08     ` Simon Horman
2018-08-09 13:08     ` Simon Horman
2018-08-10 15:53     ` Sergei Shtylyov
2018-08-10 15:53       ` Sergei Shtylyov
2018-08-10 15:53       ` Sergei Shtylyov
2018-08-17  8:51       ` Simon Horman
2018-08-17  8:51         ` Simon Horman
2018-08-17  8:51         ` Simon Horman
2018-08-17 11:13         ` Sergei Shtylyov
2018-08-17 11:13           ` Sergei Shtylyov
2018-08-17 11:13           ` Sergei Shtylyov
2018-08-22 10:00           ` Simon Horman
2018-08-22 10:00             ` Simon Horman
2018-08-22 10:00             ` Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1834171.PEVAvqbuLx@wasted.cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=devicetree@vger.kernel.org \
    --cc=horms@verge.net.au \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.