linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12
@ 2013-08-07  4:28 Simon Horman
  2013-08-07  4:28 ` [GIT PULL 01/19] ARM: shmobile: ape6evm: add DT reference Simon Horman
                   ` (19 more replies)
  0 siblings, 20 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Olof, Hi Arnd,

please consider this second round of Renesas ARM-based SoC DT updates for
v3.12.

This pull-request is based on renesas-soc-for-v3.12 which I have
previously sent a pull request-for. That is in turn based on
renesas-dt-for-v3.12. So there is a semi-circular dependency,
but it is not at all clear to me how this could be nicely avoided.

This pull-request has minor conflicts.

* There is a conflict with renesas-cleanup2-for-v3.12,
  which I have previously sent a pull-request for,
  in arch/arm/mach-shmobile/Makefile.boot.

* There is a conflict with renesas-pinmux-for-v3.12,
  which I have previously sent a pull-request for,
  in arch/arm/boot/dts/r8a7740.dtsi.

I have provided an example of how to merge these as part of
the renesas-devel-20180807 tag in the renesas tree.


The following changes since commit 81b9d5351fa96caad4accc6711bc1b9342927d4a:

  ARM: shmobile: Setup r8a7790 arch timer based on MD pins (2013-07-17 14:26:56 +0900)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.12

for you to fetch changes up to 8b3e32c1fe5dce55e28e76b20361841dc863ec17:

  ARM: shmobile: r8a7740: Add TPU node to the device tree (2013-08-06 18:06:23 +0900)

----------------------------------------------------------------
Second round of Renesas ARM-based SoC DT updates for v3.12

* Add TPU node to the device tree of r8a7740 SoC

* Enable nfsroot in the device tree of the lager baord

* Use device tree to initialise GIC on armadillo800eva and marzen boards

* Mount root file systems in r/w mode for all Renesas boards

* Add PMU information to .dtsi for the emev2, sh73a0 and r8a7740 SoCs

* Rely on DT for SMP CPU info on the sh73a0 and r8a7779 SoCs

* Switch marzen board to use DT_MACHINE_START
  - This is was the last the last board in the tree

* Add DT reference for ape6evm, lager and bockw boards
  - This is intended as method to develop DT coverage for these
    boards and their associated SoCs while leaving the existing mostly-C
    version of the code in place. This allows a clear distinction to be
    made between DT work and hardware support. And once the DT coverage is
    complete the mostly-C code can be removed.
  - This pattern is already used for a number of Renesas boards including
    the kzm9g and marzen.

----------------------------------------------------------------
Guennadi Liakhovetski (3):
      ARM: shmobile: ape6evm: add DT reference
      ARM: shmobile: ape6evm-reference: add CPUFreq support
      ARM: shmobile: ape6evm-reference: switch PFC to DT

Kuninori Morimoto (3):
      ARM: shmobile: bockw: add DT reference
      ARM: shmobile: armadillo800eva: Use DT for GIC
      ARM: shmobile: marzen: Use DT for GIC

Laurent Pinchart (3):
      ARM: shmobile: lager-reference: Add LED6-LED8 to the device tree
      ARM: shmobile: Mount root file systems in r/w mode for all DT platforms
      ARM: shmobile: r8a7740: Add TPU node to the device tree

Magnus Damm (6):
      ARM: shmobile: Minor update for the Lager DT reference code
      ARM: shmobile: sh73a0: Rely on DT for SMP CPU info
      ARM: shmobile: marzen: Switch to DT_MACHINE_START
      ARM: shmobile: r8a7740: add PMU information to r8a7740.dtsi
      ARM: shmobile: sh73a0: add PMU information to sh73a0.dtsi
      ARM: shmobile: emev2: add PMU information to emev2.dtsi

Simon Horman (4):
      ARM: shmobile: lager: Add DT reference
      ARM: shmobile: marzen: Add  r8a7779-marzen.dtb
      ARM: shmobile: r8a7779: Rely on DT for SMP CPU info
      ARM: shmobile: lager: enable nfsroot in DTS

 arch/arm/boot/dts/Makefile                       |  4 ++
 arch/arm/boot/dts/emev2.dtsi                     |  6 +++
 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts  | 65 ++++++++++++++++++++++++
 arch/arm/boot/dts/r8a73a4-ape6evm.dts            |  2 +-
 arch/arm/boot/dts/r8a7740.dtsi                   | 12 +++++
 arch/arm/boot/dts/r8a7778-bockw-reference.dts    | 32 ++++++++++++
 arch/arm/boot/dts/r8a7778-bockw.dts              |  2 +-
 arch/arm/boot/dts/r8a7779-marzen-reference.dts   |  2 +-
 arch/arm/boot/dts/r8a7779-marzen.dts             | 27 ++++++++++
 arch/arm/boot/dts/r8a7790-lager-reference.dts    | 45 ++++++++++++++++
 arch/arm/boot/dts/r8a7790-lager.dts              |  2 +-
 arch/arm/boot/dts/sh73a0-kzm9g-reference.dts     |  2 +-
 arch/arm/boot/dts/sh73a0-kzm9g.dts               |  2 +-
 arch/arm/boot/dts/sh73a0.dtsi                    |  6 +++
 arch/arm/mach-shmobile/Kconfig                   | 37 ++++++++++++++
 arch/arm/mach-shmobile/Makefile                  |  3 ++
 arch/arm/mach-shmobile/Makefile.boot             |  3 ++
 arch/arm/mach-shmobile/board-ape6evm-reference.c | 64 +++++++++++++++++++++++
 arch/arm/mach-shmobile/board-armadillo800eva.c   |  2 +-
 arch/arm/mach-shmobile/board-bockw-reference.c   | 62 ++++++++++++++++++++++
 arch/arm/mach-shmobile/board-lager-reference.c   | 45 ++++++++++++++++
 arch/arm/mach-shmobile/board-marzen.c            | 11 ++--
 arch/arm/mach-shmobile/include/mach/r8a73a4.h    |  1 +
 arch/arm/mach-shmobile/include/mach/r8a7740.h    |  1 -
 arch/arm/mach-shmobile/include/mach/r8a7778.h    |  1 +
 arch/arm/mach-shmobile/include/mach/r8a7779.h    |  1 -
 arch/arm/mach-shmobile/include/mach/r8a7790.h    |  1 +
 arch/arm/mach-shmobile/intc-r8a7740.c            | 20 ++------
 arch/arm/mach-shmobile/intc-r8a7779.c            | 22 ++------
 arch/arm/mach-shmobile/setup-r8a73a4.c           |  9 +++-
 arch/arm/mach-shmobile/setup-r8a7778.c           |  7 ++-
 arch/arm/mach-shmobile/setup-r8a7790.c           |  9 +++-
 arch/arm/mach-shmobile/smp-r8a7779.c             | 12 ++---
 arch/arm/mach-shmobile/smp-sh73a0.c              | 11 +---
 34 files changed, 461 insertions(+), 70 deletions(-)
 create mode 100644 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
 create mode 100644 arch/arm/boot/dts/r8a7778-bockw-reference.dts
 create mode 100644 arch/arm/boot/dts/r8a7779-marzen.dts
 create mode 100644 arch/arm/boot/dts/r8a7790-lager-reference.dts
 create mode 100644 arch/arm/mach-shmobile/board-ape6evm-reference.c
 create mode 100644 arch/arm/mach-shmobile/board-bockw-reference.c
 create mode 100644 arch/arm/mach-shmobile/board-lager-reference.c

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [GIT PULL 01/19] ARM: shmobile: ape6evm: add DT reference
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 02/19] ARM: shmobile: ape6evm-reference: add CPUFreq support Simon Horman
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

This patch adds a sample DT-based APE6EVM "reference" implementation. The
use of platform-specific C-code should be avoided with this configuration
as much as possible.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/Makefile                       |  1 +
 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts  | 33 +++++++++++
 arch/arm/mach-shmobile/Kconfig                   | 11 ++++
 arch/arm/mach-shmobile/Makefile                  |  1 +
 arch/arm/mach-shmobile/Makefile.boot             |  1 +
 arch/arm/mach-shmobile/board-ape6evm-reference.c | 71 ++++++++++++++++++++++++
 arch/arm/mach-shmobile/include/mach/r8a73a4.h    |  1 +
 arch/arm/mach-shmobile/setup-r8a73a4.c           |  9 ++-
 8 files changed, 126 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
 create mode 100644 arch/arm/mach-shmobile/board-ape6evm-reference.c

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index af19e38..6d79bde 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -192,6 +192,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
 	sh73a0-kzm9g.dtb \
 	sh73a0-kzm9g-reference.dtb \
 	r8a73a4-ape6evm.dtb \
+	r8a73a4-ape6evm-reference.dtb \
 	sh7372-mackerel.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \
 	socfpga_vt.dtb
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
new file mode 100644
index 0000000..3251f05
--- /dev/null
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
@@ -0,0 +1,33 @@
+/*
+ * Device Tree Source for the APE6EVM board
+ *
+ * Copyright (C) 2013 Renesas Solutions Corp.
+ *
+ * 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/ "r8a73a4.dtsi"
+
+/ {
+	model = "APE6EVM";
+	compatible = "renesas,ape6evm-reference", "renesas,r8a73a4";
+
+	chosen {
+		bootargs = "console=ttySC0,115200 ignore_loglevel";
+	};
+
+	memory@40000000 {
+		device_type = "memory";
+		reg = <0 0x40000000 0 0x40000000>;
+	};
+
+	lbsc {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0 0 0 0x80000000>;
+	};
+};
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index dd80f21..ad28f91 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -83,6 +83,17 @@ config MACH_APE6EVM
 	depends on ARCH_R8A73A4
 	select USE_OF
 
+config MACH_APE6EVM_REFERENCE
+	bool "APE6EVM board - Reference Device Tree Implementation"
+	depends on ARCH_R8A73A4
+	select USE_OF
+	---help---
+	   Use reference implementation of APE6EVM board support
+	   which makes a greater use of device tree at the expense
+	   of not supporting a number of devices.
+
+	   This is intended to aid developers
+
 config MACH_MACKEREL
 	bool "mackerel board"
 	depends on ARCH_SH7372
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index e8d0a2c..26a5784 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -37,6 +37,7 @@ obj-$(CONFIG_ARCH_SH73A0)	+= pm-sh73a0.o
 # Board objects
 obj-$(CONFIG_MACH_AG5EVM)	+= board-ag5evm.o
 obj-$(CONFIG_MACH_APE6EVM)	+= board-ape6evm.o
+obj-$(CONFIG_MACH_APE6EVM_REFERENCE)	+= board-ape6evm-reference.o
 obj-$(CONFIG_MACH_MACKEREL)	+= board-mackerel.o
 obj-$(CONFIG_MACH_KOTA2)	+= board-kota2.o
 obj-$(CONFIG_MACH_BOCKW)	+= board-bockw.o
diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot
index 7785c52..c938b58 100644
--- a/arch/arm/mach-shmobile/Makefile.boot
+++ b/arch/arm/mach-shmobile/Makefile.boot
@@ -2,6 +2,7 @@
 loadaddr-y	: loadaddr-$(CONFIG_MACH_AG5EVM) += 0x40008000
 loadaddr-$(CONFIG_MACH_APE6EVM) += 0x40008000
+loadaddr-$(CONFIG_MACH_APE6EVM_REFERENCE) += 0x40008000
 loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000
 loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000
 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000
diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c
new file mode 100644
index 0000000..c828874
--- /dev/null
+++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c
@@ -0,0 +1,71 @@
+/*
+ * APE6EVM board support
+ *
+ * Copyright (C) 2013  Renesas Solutions Corp.
+ * Copyright (C) 2013  Magnus Damm
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include <linux/gpio.h>
+#include <linux/kernel.h>
+#include <linux/of_platform.h>
+#include <linux/pinctrl/machine.h>
+#include <linux/sh_clk.h>
+#include <mach/common.h>
+#include <mach/r8a73a4.h>
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+
+static const struct pinctrl_map ape6evm_pinctrl_map[] = {
+	/* SCIFA0 console */
+	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a73a4",
+				  "scifa0_data", "scifa0"),
+};
+
+static void __init ape6evm_add_standard_devices(void)
+{
+
+	struct clk *parent;
+	struct clk *mp;
+
+	r8a73a4_clock_init();
+
+	/* MP clock parent = extal2 */
+	parent      = clk_get(NULL, "extal2");
+	mp          = clk_get(NULL, "mp");
+	BUG_ON(IS_ERR(parent) || IS_ERR(mp));
+
+	clk_set_parent(mp, parent);
+	clk_put(parent);
+	clk_put(mp);
+
+	pinctrl_register_mappings(ape6evm_pinctrl_map,
+				  ARRAY_SIZE(ape6evm_pinctrl_map));
+	r8a73a4_pinmux_init();
+	r8a73a4_add_dt_devices();
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+}
+
+static const char *ape6evm_boards_compat_dt[] __initdata = {
+	"renesas,ape6evm-reference",
+	NULL,
+};
+
+DT_MACHINE_START(APE6EVM_DT, "ape6evm")
+	.init_early	= r8a73a4_init_delay,
+	.init_time	= shmobile_timer_init,
+	.init_machine	= ape6evm_add_standard_devices,
+	.dt_compat	= ape6evm_boards_compat_dt,
+MACHINE_END
diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h
index 144a85e..f3a9b70 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a73a4.h
@@ -2,6 +2,7 @@
 #define __ASM_R8A73A4_H__
 
 void r8a73a4_add_standard_devices(void);
+void r8a73a4_add_dt_devices(void);
 void r8a73a4_clock_init(void);
 void r8a73a4_pinmux_init(void);
 void r8a73a4_init_delay(void);
diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c
index d533bd2..630ea4e 100644
--- a/arch/arm/mach-shmobile/setup-r8a73a4.c
+++ b/arch/arm/mach-shmobile/setup-r8a73a4.c
@@ -188,7 +188,7 @@ static struct resource cmt10_resources[] = {
 					  &cmt##idx##_platform_data,	\
 					  sizeof(struct sh_timer_config))
 
-void __init r8a73a4_add_standard_devices(void)
+void __init r8a73a4_add_dt_devices(void)
 {
 	r8a73a4_register_scif(SCIFA0);
 	r8a73a4_register_scif(SCIFA1);
@@ -196,10 +196,15 @@ void __init r8a73a4_add_standard_devices(void)
 	r8a73a4_register_scif(SCIFB1);
 	r8a73a4_register_scif(SCIFB2);
 	r8a73a4_register_scif(SCIFB3);
+	r8a7790_register_cmt(10);
+}
+
+void __init r8a73a4_add_standard_devices(void)
+{
+	r8a73a4_add_dt_devices();
 	r8a73a4_register_irqc(0);
 	r8a73a4_register_irqc(1);
 	r8a73a4_register_thermal();
-	r8a7790_register_cmt(10);
 }
 
 void __init r8a73a4_init_delay(void)
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 02/19] ARM: shmobile: ape6evm-reference: add CPUFreq support
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
  2013-08-07  4:28 ` [GIT PULL 01/19] ARM: shmobile: ape6evm: add DT reference Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 03/19] ARM: shmobile: lager: Add DT reference Simon Horman
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

Add CPUFreq support to ape6evm-reference, using a max8973 regulator, that
is supplying V_DVFS for the 4 CA15 cores on r8a73a4.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts  | 22 ++++++++++++++++++++++
 arch/arm/mach-shmobile/board-ape6evm-reference.c |  2 ++
 2 files changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
index 3251f05..6f4506e 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
@@ -31,3 +31,25 @@
 		ranges = <0 0 0 0x80000000>;
 	};
 };
+
+&i2c5 {
+	vdd_dvfs: max8973@1b {
+		compatible = "maxim,max8973";
+		reg = <0x1b>;
+
+		regulator-min-microvolt = <935000>;
+		regulator-max-microvolt = <1200000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
+
+&cpu0 {
+	cpu0-supply = <&vdd_dvfs>;
+	operating-points = <
+		/* kHz  uV */
+		1950000 1115000
+		1462500  995000
+	>;
+	voltage-tolerance = <1>; /* 1% */
+};
diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c
index c828874..46b41de 100644
--- a/arch/arm/mach-shmobile/board-ape6evm-reference.c
+++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c
@@ -22,6 +22,7 @@
 #include <linux/kernel.h>
 #include <linux/of_platform.h>
 #include <linux/pinctrl/machine.h>
+#include <linux/platform_device.h>
 #include <linux/sh_clk.h>
 #include <mach/common.h>
 #include <mach/r8a73a4.h>
@@ -56,6 +57,7 @@ static void __init ape6evm_add_standard_devices(void)
 	r8a73a4_pinmux_init();
 	r8a73a4_add_dt_devices();
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+	platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
 }
 
 static const char *ape6evm_boards_compat_dt[] __initdata = {
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 03/19] ARM: shmobile: lager: Add DT reference
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
  2013-08-07  4:28 ` [GIT PULL 01/19] ARM: shmobile: ape6evm: add DT reference Simon Horman
  2013-08-07  4:28 ` [GIT PULL 02/19] ARM: shmobile: ape6evm-reference: add CPUFreq support Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 04/19] ARM: shmobile: Minor update for the Lager DT reference code Simon Horman
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

This is sufficient to allow boot of the Lager board with
a console without boards-lager.c compiled into the kernel.
This is an example of a minimal but still useful initialisation
of the board using DT as much as possible.

As such it is the same as the boot of Lager that can be achieved
without a board file. The intention of adding this file
is to facilitate further work to allow board specific devices to be
initialised via DT.

Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/Makefile                     |  1 +
 arch/arm/boot/dts/r8a7790-lager-reference.dts  | 31 +++++++++++++++++
 arch/arm/mach-shmobile/Kconfig                 | 11 ++++++
 arch/arm/mach-shmobile/Makefile                |  1 +
 arch/arm/mach-shmobile/Makefile.boot           |  1 +
 arch/arm/mach-shmobile/board-lager-reference.c | 46 ++++++++++++++++++++++++++
 arch/arm/mach-shmobile/include/mach/r8a7790.h  |  1 +
 arch/arm/mach-shmobile/setup-r8a7790.c         |  9 +++--
 8 files changed, 99 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/boot/dts/r8a7790-lager-reference.dts
 create mode 100644 arch/arm/mach-shmobile/board-lager-reference.c

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 6d79bde..492a807 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -189,6 +189,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
 	r8a7740-armadillo800eva-reference.dtb \
 	r8a7779-marzen-reference.dtb \
 	r8a7790-lager.dtb \
+	r8a7790-lager-reference.dtb \
 	sh73a0-kzm9g.dtb \
 	sh73a0-kzm9g-reference.dtb \
 	r8a73a4-ape6evm.dtb \
diff --git a/arch/arm/boot/dts/r8a7790-lager-reference.dts b/arch/arm/boot/dts/r8a7790-lager-reference.dts
new file mode 100644
index 0000000..fa5b81b
--- /dev/null
+++ b/arch/arm/boot/dts/r8a7790-lager-reference.dts
@@ -0,0 +1,31 @@
+/*
+ * Device Tree Source for the Lager board
+ *
+ * Copyright (C) 2013 Renesas Solutions Corp.
+ *
+ * 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/ "r8a7790.dtsi"
+
+/ {
+	model = "Lager";
+	compatible = "renesas,lager-reference", "renesas,r8a7790";
+
+	chosen {
+		bootargs = "console=ttySC6,115200 ignore_loglevel";
+	};
+
+	memory@40000000 {
+		device_type = "memory";
+		reg = <0 0x40000000 0 0x80000000>;
+	};
+
+	lbsc {
+		#address-cells = <1>;
+		#size-cells = <1>;
+	};
+};
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index ad28f91..05ea103 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -161,6 +161,17 @@ config MACH_LAGER
 	depends on ARCH_R8A7790
 	select USE_OF
 
+config MACH_LAGER_REFERENCE
+	bool "Lager board - Reference Device Tree Implementation"
+	depends on ARCH_R8A7790
+	select USE_OF
+	---help---
+	   Use reference implementation of Lager board support
+	   which makes use of device tree at the expense
+	   of not supporting a number of devices.
+
+	   This is intended to aid developers
+
 config MACH_KZM9D
 	bool "KZM9D board"
 	depends on ARCH_EMEV2
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index 26a5784..397bb36 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -44,6 +44,7 @@ obj-$(CONFIG_MACH_BOCKW)	+= board-bockw.o
 obj-$(CONFIG_MACH_MARZEN)	+= board-marzen.o
 obj-$(CONFIG_MACH_MARZEN_REFERENCE)	+= board-marzen-reference.o
 obj-$(CONFIG_MACH_LAGER)	+= board-lager.o
+obj-$(CONFIG_MACH_LAGER_REFERENCE)	+= board-lager-reference.o
 obj-$(CONFIG_MACH_ARMADILLO800EVA)	+= board-armadillo800eva.o
 obj-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE)	+= board-armadillo800eva-reference.o
 obj-$(CONFIG_MACH_KZM9D)	+= board-kzm9d.o
diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot
index c938b58..761d7b1 100644
--- a/arch/arm/mach-shmobile/Makefile.boot
+++ b/arch/arm/mach-shmobile/Makefile.boot
@@ -12,6 +12,7 @@ loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000
 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000
 loadaddr-$(CONFIG_MACH_KZM9G_REFERENCE) += 0x41008000
 loadaddr-$(CONFIG_MACH_LAGER) += 0x40008000
+loadaddr-$(CONFIG_MACH_LAGER_REFERENCE) += 0x40008000
 loadaddr-$(CONFIG_MACH_MACKEREL) += 0x40008000
 loadaddr-$(CONFIG_MACH_MARZEN) += 0x60008000
 loadaddr-$(CONFIG_MACH_MARZEN_REFERENCE) += 0x60008000
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c
new file mode 100644
index 0000000..eb6c55e
--- /dev/null
+++ b/arch/arm/mach-shmobile/board-lager-reference.c
@@ -0,0 +1,46 @@
+/*
+ * Lager board support - Reference DT implementation
+ *
+ * Copyright (C) 2013  Renesas Solutions Corp.
+ * Copyright (C) 2013  Simon Horman
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include <linux/init.h>
+#include <linux/irqchip.h>
+#include <linux/of_platform.h>
+#include <mach/r8a7790.h>
+#include <asm/mach/arch.h>
+
+void __init lager_add_standard_devices(void)
+{
+	/* clocks are setup late during boot in the case of DT */
+	r8a7790_clock_init();
+
+	r8a7790_add_dt_devices();
+        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+}
+
+static const char *lager_boards_compat_dt[] __initdata = {
+	"renesas,lager-reference",
+	NULL,
+};
+
+DT_MACHINE_START(LAGER_DT, "lager")
+	.init_early	= r8a7790_init_delay,
+	.init_machine	= lager_add_standard_devices,
+	.init_time	= r8a7790_timer_init,
+	.dt_compat	= lager_boards_compat_dt,
+MACHINE_END
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h
index 7aaef40..788d559 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7790.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h
@@ -2,6 +2,7 @@
 #define __ASM_R8A7790_H__
 
 void r8a7790_add_standard_devices(void);
+void r8a7790_add_dt_devices(void);
 void r8a7790_clock_init(void);
 void r8a7790_pinmux_init(void);
 void r8a7790_init_delay(void);
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index 4c96dad..86cf507 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -179,7 +179,7 @@ static struct resource cmt00_resources[] = {
 					  &cmt##idx##_platform_data,	\
 					  sizeof(struct sh_timer_config))
 
-void __init r8a7790_add_standard_devices(void)
+void __init r8a7790_add_dt_devices(void)
 {
 	r8a7790_register_scif(SCIFA0);
 	r8a7790_register_scif(SCIFA1);
@@ -191,9 +191,14 @@ void __init r8a7790_add_standard_devices(void)
 	r8a7790_register_scif(SCIF1);
 	r8a7790_register_scif(HSCIF0);
 	r8a7790_register_scif(HSCIF1);
+	r8a7790_register_cmt(00);
+}
+
+void __init r8a7790_add_standard_devices(void)
+{
+	r8a7790_add_dt_devices();
 	r8a7790_register_irqc(0);
 	r8a7790_register_thermal();
-	r8a7790_register_cmt(00);
 }
 
 #define MODEMR 0xe6160060
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 04/19] ARM: shmobile: Minor update for the Lager DT reference code
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (2 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 03/19] ARM: shmobile: lager: Add DT reference Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 05/19] ARM: shmobile: lager-reference: Add LED6-LED8 to the device tree Simon Horman
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Update the Lager DT reference code to get rid of the redundant
irqchip header and also make lager_add_standard_devices() static.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/board-lager-reference.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c
index eb6c55e..9c316a1 100644
--- a/arch/arm/mach-shmobile/board-lager-reference.c
+++ b/arch/arm/mach-shmobile/board-lager-reference.c
@@ -19,12 +19,11 @@
  */
 
 #include <linux/init.h>
-#include <linux/irqchip.h>
 #include <linux/of_platform.h>
 #include <mach/r8a7790.h>
 #include <asm/mach/arch.h>
 
-void __init lager_add_standard_devices(void)
+static void __init lager_add_standard_devices(void)
 {
 	/* clocks are setup late during boot in the case of DT */
 	r8a7790_clock_init();
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 05/19] ARM: shmobile: lager-reference: Add LED6-LED8 to the device tree
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (3 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 04/19] ARM: shmobile: Minor update for the Lager DT reference code Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 06/19] ARM: shmobile: bockw: add DT reference Simon Horman
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

LED6 to LED8 are GPIO LEDs. Add corresponding DT nodes.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7790-lager-reference.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7790-lager-reference.dts b/arch/arm/boot/dts/r8a7790-lager-reference.dts
index fa5b81b..5ee71cf5 100644
--- a/arch/arm/boot/dts/r8a7790-lager-reference.dts
+++ b/arch/arm/boot/dts/r8a7790-lager-reference.dts
@@ -10,6 +10,7 @@
 
 /dts-v1/;
 /include/ "r8a7790.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Lager";
@@ -28,4 +29,17 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		led6 {
+			gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
+		};
+		led7 {
+			gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
+		};
+		led8 {
+			gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
+		};
+	};
 };
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 06/19] ARM: shmobile: bockw: add DT reference
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (4 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 05/19] ARM: shmobile: lager-reference: Add LED6-LED8 to the device tree Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 10/19] ARM: shmobile: marzen: Switch to DT_MACHINE_START Simon Horman
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

This patch adds a sample DT-based Bock-W "reference" implementation.
The use of platform-specific C-code should be avoided
with this configuration as much as possible.

This patch adds new r8a7778_add_dt_devices() which was same stance
of r8a7790_add_dt_devices()

Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/Makefile                     |  1 +
 arch/arm/boot/dts/r8a7778-bockw-reference.dts  | 32 +++++++++++++
 arch/arm/mach-shmobile/Kconfig                 | 14 ++++++
 arch/arm/mach-shmobile/Makefile                |  1 +
 arch/arm/mach-shmobile/Makefile.boot           |  1 +
 arch/arm/mach-shmobile/board-bockw-reference.c | 62 ++++++++++++++++++++++++++
 arch/arm/mach-shmobile/include/mach/r8a7778.h  |  1 +
 arch/arm/mach-shmobile/setup-r8a7778.c         |  7 ++-
 8 files changed, 118 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/r8a7778-bockw-reference.dts
 create mode 100644 arch/arm/mach-shmobile/board-bockw-reference.c

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 492a807..e01d63f 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -186,6 +186,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
 	emev2-kzm9d-reference.dtb \
 	r8a7740-armadillo800eva.dtb \
 	r8a7778-bockw.dtb \
+	r8a7778-bockw-reference.dtb \
 	r8a7740-armadillo800eva-reference.dtb \
 	r8a7779-marzen-reference.dtb \
 	r8a7790-lager.dtb \
diff --git a/arch/arm/boot/dts/r8a7778-bockw-reference.dts b/arch/arm/boot/dts/r8a7778-bockw-reference.dts
new file mode 100644
index 0000000..f5b8d77
--- /dev/null
+++ b/arch/arm/boot/dts/r8a7778-bockw-reference.dts
@@ -0,0 +1,32 @@
+/*
+ * Reference Device Tree Source for the Bock-W board
+ *
+ * Copyright (C) 2013  Renesas Solutions Corp.
+ * Copyright (C) 2013  Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
+ *
+ * based on r8a7779
+ *
+ * Copyright (C) 2013 Renesas Solutions Corp.
+ * Copyright (C) 2013 Simon Horman
+ *
+ * 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/ "r8a7778.dtsi"
+
+/ {
+	model = "bockw";
+	compatible = "renesas,bockw-reference", "renesas,r8a7778";
+
+	chosen {
+		bootargs = "console=ttySC0,115200 ignore_loglevel";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x60000000 0x10000000>;
+	};
+};
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 05ea103..9e07985 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -137,6 +137,20 @@ config MACH_BOCKW
 	select RENESAS_INTC_IRQPIN
 	select USE_OF
 
+config MACH_BOCKW_REFERENCE
+	bool "BOCK-W  - Reference Device Tree Implementation"
+	depends on ARCH_R8A7778
+	select ARCH_REQUIRE_GPIOLIB
+	select RENESAS_INTC_IRQPIN
+	select REGULATOR_FIXED_VOLTAGE if REGULATOR
+	select USE_OF
+	---help---
+	   Use reference implementation of BockW board support
+	   which makes use of device tree at the expense
+	   of not supporting a number of devices.
+
+	   This is intended to aid developers
+
 config MACH_MARZEN
 	bool "MARZEN board"
 	depends on ARCH_R8A7779
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile
index 397bb36..e401c73 100644
--- a/arch/arm/mach-shmobile/Makefile
+++ b/arch/arm/mach-shmobile/Makefile
@@ -41,6 +41,7 @@ obj-$(CONFIG_MACH_APE6EVM_REFERENCE)	+= board-ape6evm-reference.o
 obj-$(CONFIG_MACH_MACKEREL)	+= board-mackerel.o
 obj-$(CONFIG_MACH_KOTA2)	+= board-kota2.o
 obj-$(CONFIG_MACH_BOCKW)	+= board-bockw.o
+obj-$(CONFIG_MACH_BOCKW_REFERENCE)	+= board-bockw-reference.o
 obj-$(CONFIG_MACH_MARZEN)	+= board-marzen.o
 obj-$(CONFIG_MACH_MARZEN_REFERENCE)	+= board-marzen-reference.o
 obj-$(CONFIG_MACH_LAGER)	+= board-lager.o
diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot
index 761d7b1..9c9b441 100644
--- a/arch/arm/mach-shmobile/Makefile.boot
+++ b/arch/arm/mach-shmobile/Makefile.boot
@@ -6,6 +6,7 @@ loadaddr-$(CONFIG_MACH_APE6EVM_REFERENCE) += 0x40008000
 loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000
 loadaddr-$(CONFIG_MACH_ARMADILLO800EVA_REFERENCE) += 0x40008000
 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000
+loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000
 loadaddr-$(CONFIG_MACH_KOTA2) += 0x41008000
 loadaddr-$(CONFIG_MACH_KZM9D) += 0x40008000
 loadaddr-$(CONFIG_MACH_KZM9D_REFERENCE) += 0x40008000
diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c
new file mode 100644
index 0000000..24db8de
--- /dev/null
+++ b/arch/arm/mach-shmobile/board-bockw-reference.c
@@ -0,0 +1,62 @@
+/*
+ * Bock-W board support
+ *
+ * Copyright (C) 2013  Renesas Solutions Corp.
+ * Copyright (C) 2013  Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include <linux/of_platform.h>
+#include <linux/pinctrl/machine.h>
+#include <mach/common.h>
+#include <mach/r8a7778.h>
+#include <asm/mach/arch.h>
+
+/*
+ *	see board-bock.c for checking detail of dip-switch
+ */
+
+static const struct pinctrl_map bockw_pinctrl_map[] = {
+	/* SCIF0 */
+	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
+				  "scif0_data_a", "scif0"),
+	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
+				  "scif0_ctrl", "scif0"),
+};
+
+static void __init bockw_init(void)
+{
+	r8a7778_clock_init();
+
+	pinctrl_register_mappings(bockw_pinctrl_map,
+				  ARRAY_SIZE(bockw_pinctrl_map));
+	r8a7778_pinmux_init();
+	r8a7778_add_dt_devices();
+
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+}
+
+static const char *bockw_boards_compat_dt[] __initdata = {
+	"renesas,bockw-reference",
+	NULL,
+};
+
+DT_MACHINE_START(BOCKW_DT, "bockw")
+	.init_early	= r8a7778_init_delay,
+	.init_irq	= r8a7778_init_irq_dt,
+	.init_machine	= bockw_init,
+	.init_time	= shmobile_timer_init,
+	.dt_compat	= bockw_boards_compat_dt,
+MACHINE_END
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h
index 9b561bf..8d24f73 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7778.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h
@@ -30,6 +30,7 @@ extern void r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata);
 extern void r8a7778_add_i2c_device(int id);
 extern void r8a7778_add_hspi_device(int id);
 extern void r8a7778_add_mmc_device(struct sh_mmcif_plat_data *info);
+extern void r8a7778_add_dt_devices(void);
 
 extern void r8a7778_init_late(void);
 extern void r8a7778_init_delay(void);
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index a3a2e37..9d4b6bf 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -333,7 +333,7 @@ void __init r8a7778_add_mmc_device(struct sh_mmcif_plat_data *info)
 		info, sizeof(*info));
 }
 
-void __init r8a7778_add_standard_devices(void)
+void __init r8a7778_add_dt_devices(void)
 {
 	int i;
 
@@ -357,6 +357,11 @@ void __init r8a7778_add_standard_devices(void)
 	r8a7778_register_tmu(1);
 }
 
+void __init r8a7778_add_standard_devices(void)
+{
+	r8a7778_add_dt_devices();
+}
+
 void __init r8a7778_init_late(void)
 {
 	phy = usb_get_phy(USB_PHY_TYPE_USB2);
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 10/19] ARM: shmobile: marzen: Switch to DT_MACHINE_START
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (5 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 06/19] ARM: shmobile: bockw: add DT reference Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 07/19] ARM: shmobile: sh73a0: Rely on DT for SMP CPU info Simon Horman
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Convert the marzen board to use DT_MACHINE_START. With this in
place all mach-shmobile boards use DT_MACHINE_START. Also, this
makes it possible for the r8a7779 SMP code to use DT for CPUs.

Signed-off-by: Magnus Damm <damm@opensource.se>
[horms+renesas@verge.net.au: Select USE_OF in Kconfig]
[horms+renesas@verge.net.au: Provide dt_compat in DT_MACHINE_START]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/Kconfig        | 1 +
 arch/arm/mach-shmobile/board-marzen.c | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 9e07985..16c3072 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -156,6 +156,7 @@ config MACH_MARZEN
 	depends on ARCH_R8A7779
 	select ARCH_REQUIRE_GPIOLIB
 	select REGULATOR_FIXED_VOLTAGE if REGULATOR
+	select USE_OF
 
 config MACH_MARZEN_REFERENCE
 	bool "MARZEN board - Reference Device Tree Implementation"
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c
index a7d1010..bcd07c0 100644
--- a/arch/arm/mach-shmobile/board-marzen.c
+++ b/arch/arm/mach-shmobile/board-marzen.c
@@ -238,7 +238,12 @@ static void __init marzen_init(void)
 	platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices));
 }
 
-MACHINE_START(MARZEN, "marzen")
+static const char *marzen_boards_compat_dt[] __initdata = {
+        "renesas,marzen",
+        NULL,
+};
+
+DT_MACHINE_START(MARZEN, "marzen")
 	.smp		= smp_ops(r8a7779_smp_ops),
 	.map_io		= r8a7779_map_io,
 	.init_early	= r8a7779_add_early_devices,
@@ -246,5 +251,6 @@ MACHINE_START(MARZEN, "marzen")
 	.init_irq	= r8a7779_init_irq,
 	.init_machine	= marzen_init,
 	.init_late	= r8a7779_init_late,
+	.dt_compat	= marzen_boards_compat_dt,
 	.init_time	= r8a7779_earlytimer_init,
 MACHINE_END
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 07/19] ARM: shmobile: sh73a0: Rely on DT for SMP CPU info
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (6 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 10/19] ARM: shmobile: marzen: Switch to DT_MACHINE_START Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 11/19] ARM: shmobile: r8a7779: " Simon Horman
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Remove sh73a0 specific ->smp_init_cpus() callback and
instead of relying on shmobile_smp_init_cpus() simply
use DT for CPU core information.

This assumes that DT_MACHINE_START is used which is
the case when AG5EVM and Kota2 are removed.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/smp-sh73a0.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/arch/arm/mach-shmobile/smp-sh73a0.c b/arch/arm/mach-shmobile/smp-sh73a0.c
index d613113..1b3dc7c 100644
--- a/arch/arm/mach-shmobile/smp-sh73a0.c
+++ b/arch/arm/mach-shmobile/smp-sh73a0.c
@@ -62,6 +62,8 @@ static int __cpuinit sh73a0_boot_secondary(unsigned int cpu, struct task_struct
 
 static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus)
 {
+	/* setup sh73a0 specific SCU base */
+	shmobile_scu_base = IOMEM(SH73A0_SCU_BASE);
 	scu_enable(shmobile_scu_base);
 
 	/* Map the reset vector (in headsmp-scu.S, headsmp.S) */
@@ -74,14 +76,6 @@ static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus)
 	scu_power_mode(shmobile_scu_base, SCU_PM_NORMAL);
 }
 
-static void __init sh73a0_smp_init_cpus(void)
-{
-	/* setup sh73a0 specific SCU base */
-	shmobile_scu_base = IOMEM(SH73A0_SCU_BASE);
-
-	shmobile_smp_init_cpus(scu_get_core_count(shmobile_scu_base));
-}
-
 #ifdef CONFIG_HOTPLUG_CPU
 static int sh73a0_cpu_kill(unsigned int cpu)
 {
@@ -120,7 +114,6 @@ static int sh73a0_cpu_disable(unsigned int cpu)
 #endif /* CONFIG_HOTPLUG_CPU */
 
 struct smp_operations sh73a0_smp_ops __initdata = {
-	.smp_init_cpus		= sh73a0_smp_init_cpus,
 	.smp_prepare_cpus	= sh73a0_smp_prepare_cpus,
 	.smp_boot_secondary	= sh73a0_boot_secondary,
 #ifdef CONFIG_HOTPLUG_CPU
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 08/19] ARM: shmobile: ape6evm-reference: switch PFC to DT
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (8 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 11/19] ARM: shmobile: r8a7779: " Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 12/19] ARM: shmobile: r8a7740: add PMU information to r8a7740.dtsi Simon Horman
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

PFC pinctrl configuration can now be performed via DT. Update
ape6evm-reference to use this.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts  | 10 ++++++++++
 arch/arm/mach-shmobile/board-ape6evm-reference.c |  9 ---------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
index 6f4506e..bbd09d8 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
@@ -53,3 +53,13 @@
 	>;
 	voltage-tolerance = <1>; /* 1% */
 };
+
+&pfc {
+	pinctrl-0 = <&scifa0_pins>;
+	pinctrl-names = "default";
+
+	scifa0_pins: scifa0 {
+		renesas,groups = "scifa0_data";
+		renesas,function = "scifa0";
+	};
+};
diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c
index 46b41de..52cc5fa 100644
--- a/arch/arm/mach-shmobile/board-ape6evm-reference.c
+++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c
@@ -29,12 +29,6 @@
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 
-static const struct pinctrl_map ape6evm_pinctrl_map[] = {
-	/* SCIFA0 console */
-	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a73a4",
-				  "scifa0_data", "scifa0"),
-};
-
 static void __init ape6evm_add_standard_devices(void)
 {
 
@@ -52,9 +46,6 @@ static void __init ape6evm_add_standard_devices(void)
 	clk_put(parent);
 	clk_put(mp);
 
-	pinctrl_register_mappings(ape6evm_pinctrl_map,
-				  ARRAY_SIZE(ape6evm_pinctrl_map));
-	r8a73a4_pinmux_init();
 	r8a73a4_add_dt_devices();
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 	platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 11/19] ARM: shmobile: r8a7779: Rely on DT for SMP CPU info
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (7 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 07/19] ARM: shmobile: sh73a0: Rely on DT for SMP CPU info Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 08/19] ARM: shmobile: ape6evm-reference: switch PFC to DT Simon Horman
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

Remove r8a7779 specific ->smp_init_cpus() callback and
instead of relying on shmobile_smp_init_cpus() simply
use DT for CPU core information.

Based on work for the sh73a0 by Magnus Damm.

Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/smp-r8a7779.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/arch/arm/mach-shmobile/smp-r8a7779.c b/arch/arm/mach-shmobile/smp-r8a7779.c
index 526cfaa..bb3adae 100644
--- a/arch/arm/mach-shmobile/smp-r8a7779.c
+++ b/arch/arm/mach-shmobile/smp-r8a7779.c
@@ -99,6 +99,9 @@ static int __cpuinit r8a7779_boot_secondary(unsigned int cpu, struct task_struct
 
 static void __init r8a7779_smp_prepare_cpus(unsigned int max_cpus)
 {
+
+	/* setup r8a7779 specific SCU base */
+	shmobile_scu_base = IOMEM(R8A7779_SCU_BASE);
 	scu_enable(shmobile_scu_base);
 
 	/* Map the reset vector (in headsmp-scu.S, headsmp.S) */
@@ -117,14 +120,6 @@ static void __init r8a7779_smp_prepare_cpus(unsigned int max_cpus)
 	r8a7779_platform_cpu_kill(3);
 }
 
-static void __init r8a7779_smp_init_cpus(void)
-{
-	/* setup r8a7779 specific SCU base */
-	shmobile_scu_base = IOMEM(R8A7779_SCU_BASE);
-
-	shmobile_smp_init_cpus(scu_get_core_count(shmobile_scu_base));
-}
-
 #ifdef CONFIG_HOTPLUG_CPU
 static int r8a7779_scu_psr_core_disabled(int cpu)
 {
@@ -175,7 +170,6 @@ static int r8a7779_cpu_disable(unsigned int cpu)
 #endif /* CONFIG_HOTPLUG_CPU */
 
 struct smp_operations r8a7779_smp_ops  __initdata = {
-	.smp_init_cpus		= r8a7779_smp_init_cpus,
 	.smp_prepare_cpus	= r8a7779_smp_prepare_cpus,
 	.smp_boot_secondary	= r8a7779_boot_secondary,
 #ifdef CONFIG_HOTPLUG_CPU
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 09/19] ARM: shmobile: marzen: Add  r8a7779-marzen.dtb
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (10 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 12/19] ARM: shmobile: r8a7740: add PMU information to r8a7740.dtsi Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 13/19] ARM: shmobile: sh73a0: add PMU information to sh73a0.dtsi Simon Horman
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

This is in preparation for converting the marzen board to
use DT_MACHINE_START.

Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/Makefile           |  1 +
 arch/arm/boot/dts/r8a7779-marzen.dts | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 arch/arm/boot/dts/r8a7779-marzen.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index e01d63f..07204ca 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -188,6 +188,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
 	r8a7778-bockw.dtb \
 	r8a7778-bockw-reference.dtb \
 	r8a7740-armadillo800eva-reference.dtb \
+	r8a7779-marzen.dtb \
 	r8a7779-marzen-reference.dtb \
 	r8a7790-lager.dtb \
 	r8a7790-lager-reference.dtb \
diff --git a/arch/arm/boot/dts/r8a7779-marzen.dts b/arch/arm/boot/dts/r8a7779-marzen.dts
new file mode 100644
index 0000000..f3f7f79
--- /dev/null
+++ b/arch/arm/boot/dts/r8a7779-marzen.dts
@@ -0,0 +1,27 @@
+/*
+ * Device Tree Source for the Marzen board
+ *
+ * Copyright (C) 2013 Renesas Solutions Corp.
+ * Copyright (C) 2013 Simon Horman
+ *
+ * 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/ "r8a7779.dtsi"
+
+/ {
+	model = "marzen";
+	compatible = "renesas,marzen", "renesas,r8a7779";
+
+	chosen {
+		bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x60000000 0x40000000>;
+	};
+};
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 12/19] ARM: shmobile: r8a7740: add PMU information to r8a7740.dtsi
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (9 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 08/19] ARM: shmobile: ape6evm-reference: switch PFC to DT Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 09/19] ARM: shmobile: marzen: Add r8a7779-marzen.dtb Simon Horman
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Add PMU information to r8a7740.dtsi. With this
included Armadillo800eva DT reference may use the PMU.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7740.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 24e9306..4b0728f 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -32,6 +32,11 @@
 		      <0xc2000000 0x1000>;
 	};
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupts = <0 83 4>;
+	};
+
 	/* irqpin0: IRQ0 - IRQ7 */
 	irqpin0: irqpin@e6900000 {
 		compatible = "renesas,intc-irqpin";
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 13/19] ARM: shmobile: sh73a0: add PMU information to sh73a0.dtsi
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (11 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 09/19] ARM: shmobile: marzen: Add r8a7779-marzen.dtb Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 14/19] ARM: shmobile: emev2: add PMU information to emev2.dtsi Simon Horman
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Add PMU information to sh73a0.dtsi. With this
included KZM9G DT reference may use the PMU.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/sh73a0.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index b977502..7137c0f 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -38,6 +38,12 @@
 		      <0xf0000100 0x100>;
 	};
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupts = <0 55 4>,
+			     <0 56 4>;
+	};
+
 	irqpin0: irqpin@e6900000 {
 		compatible = "renesas,intc-irqpin";
 		#interrupt-cells = <2>;
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 14/19] ARM: shmobile: emev2: add PMU information to emev2.dtsi
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (12 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 13/19] ARM: shmobile: sh73a0: add PMU information to sh73a0.dtsi Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 15/19] ARM: shmobile: Mount root file systems in r/w mode for all DT platforms Simon Horman
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Add PMU information to emev2.dtsi. With this
included KZM9D DT reference may use the PMU.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/emev2.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/emev2.dtsi b/arch/arm/boot/dts/emev2.dtsi
index 99ad2b2..9063a44 100644
--- a/arch/arm/boot/dts/emev2.dtsi
+++ b/arch/arm/boot/dts/emev2.dtsi
@@ -46,6 +46,12 @@
 		      <0xe0020000 0x0100>;
 	};
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupts = <0 120 4>,
+			     <0 121 4>;
+	};
+
 	sti@e0180000 {
 		compatible = "renesas,em-sti";
 		reg = <0xe0180000 0x54>;
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 15/19] ARM: shmobile: Mount root file systems in r/w mode for all DT platforms
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (13 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 14/19] ARM: shmobile: emev2: add PMU information to emev2.dtsi Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 16/19] ARM: shmobile: armadillo800eva: Use DT for GIC Simon Horman
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

The shmobile DT files available in the kernel are reference
implementations intended to be used as sample code, as well as for
development. As such, it makes sense to mount the root file system in
read/write mode by default.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts | 2 +-
 arch/arm/boot/dts/r8a73a4-ape6evm.dts           | 2 +-
 arch/arm/boot/dts/r8a7778-bockw-reference.dts   | 2 +-
 arch/arm/boot/dts/r8a7778-bockw.dts             | 2 +-
 arch/arm/boot/dts/r8a7779-marzen-reference.dts  | 2 +-
 arch/arm/boot/dts/r8a7790-lager-reference.dts   | 2 +-
 arch/arm/boot/dts/r8a7790-lager.dts             | 2 +-
 arch/arm/boot/dts/sh73a0-kzm9g-reference.dts    | 2 +-
 arch/arm/boot/dts/sh73a0-kzm9g.dts              | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
index bbd09d8..f444624 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
@@ -16,7 +16,7 @@
 	compatible = "renesas,ape6evm-reference", "renesas,r8a73a4";
 
 	chosen {
-		bootargs = "console=ttySC0,115200 ignore_loglevel";
+		bootargs = "console=ttySC0,115200 ignore_loglevel rw";
 	};
 
 	memory@40000000 {
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
index e657a9d..72f867e 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
@@ -16,7 +16,7 @@
 	compatible = "renesas,ape6evm", "renesas,r8a73a4";
 
 	chosen {
-		bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp";
+		bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
 	};
 
 	memory@40000000 {
diff --git a/arch/arm/boot/dts/r8a7778-bockw-reference.dts b/arch/arm/boot/dts/r8a7778-bockw-reference.dts
index f5b8d77..9bb903a 100644
--- a/arch/arm/boot/dts/r8a7778-bockw-reference.dts
+++ b/arch/arm/boot/dts/r8a7778-bockw-reference.dts
@@ -22,7 +22,7 @@
 	compatible = "renesas,bockw-reference", "renesas,r8a7778";
 
 	chosen {
-		bootargs = "console=ttySC0,115200 ignore_loglevel";
+		bootargs = "console=ttySC0,115200 ignore_loglevel rw";
 	};
 
 	memory {
diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts
index 0076b1e..12bbebc 100644
--- a/arch/arm/boot/dts/r8a7778-bockw.dts
+++ b/arch/arm/boot/dts/r8a7778-bockw.dts
@@ -22,7 +22,7 @@
 	compatible = "renesas,bockw", "renesas,r8a7778";
 
 	chosen {
-		bootargs = "console=ttySC0,115200 ignore_loglevel ip=dhcp root=/dev/nfs";
+		bootargs = "console=ttySC0,115200 ignore_loglevel ip=dhcp root=/dev/nfs rw";
 	};
 
 	memory {
diff --git a/arch/arm/boot/dts/r8a7779-marzen-reference.dts b/arch/arm/boot/dts/r8a7779-marzen-reference.dts
index 72be4c8..5c22fee 100644
--- a/arch/arm/boot/dts/r8a7779-marzen-reference.dts
+++ b/arch/arm/boot/dts/r8a7779-marzen-reference.dts
@@ -17,7 +17,7 @@
 	compatible = "renesas,marzen-reference", "renesas,r8a7779";
 
 	chosen {
-		bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on";
+		bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on rw";
 	};
 
 	memory {
diff --git a/arch/arm/boot/dts/r8a7790-lager-reference.dts b/arch/arm/boot/dts/r8a7790-lager-reference.dts
index 5ee71cf5..c462ef1 100644
--- a/arch/arm/boot/dts/r8a7790-lager-reference.dts
+++ b/arch/arm/boot/dts/r8a7790-lager-reference.dts
@@ -17,7 +17,7 @@
 	compatible = "renesas,lager-reference", "renesas,r8a7790";
 
 	chosen {
-		bootargs = "console=ttySC6,115200 ignore_loglevel";
+		bootargs = "console=ttySC6,115200 ignore_loglevel rw";
 	};
 
 	memory@40000000 {
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 09a84fc..631b93b 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -16,7 +16,7 @@
 	compatible = "renesas,lager", "renesas,r8a7790";
 
 	chosen {
-		bootargs = "console=ttySC6,115200 ignore_loglevel";
+		bootargs = "console=ttySC6,115200 ignore_loglevel rw";
 	};
 
 	memory@40000000 {
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index b6f759e..6d9ece2 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -32,7 +32,7 @@
 	};
 
 	chosen {
-		bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200";
+		bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
 	};
 
 	memory {
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g.dts b/arch/arm/boot/dts/sh73a0-kzm9g.dts
index 7c4071e..0f1ca77 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g.dts
@@ -16,7 +16,7 @@
 	compatible = "renesas,kzm9g", "renesas,sh73a0";
 
 	chosen {
-		bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200";
+		bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
 	};
 
 	memory {
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 16/19] ARM: shmobile: armadillo800eva: Use DT for GIC
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (14 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 15/19] ARM: shmobile: Mount root file systems in r/w mode for all DT platforms Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 17/19] ARM: shmobile: marzen: " Simon Horman
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Current Armadillo800eva is using DT booting,
and r8a7740.dtsi already has GIC settings.

So, we can remove the C version of the GIC setup code,
instead rely on GIC information provided by DT.

This patch removes r8a7740_init_irq() which has
no user any more

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/board-armadillo800eva.c |  2 +-
 arch/arm/mach-shmobile/include/mach/r8a7740.h  |  1 -
 arch/arm/mach-shmobile/intc-r8a7740.c          | 20 +++-----------------
 3 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 66cfd56..6864195 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -1265,7 +1265,7 @@ static const char *eva_boards_compat_dt[] __initdata = {
 DT_MACHINE_START(ARMADILLO800EVA_DT, "armadillo800eva")
 	.map_io		= r8a7740_map_io,
 	.init_early	= eva_add_early_devices,
-	.init_irq	= r8a7740_init_irq,
+	.init_irq	= r8a7740_init_irq_of,
 	.init_machine	= eva_init,
 	.init_late	= shmobile_init_late,
 	.init_time	= eva_earlytimer_init,
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7740.h b/arch/arm/mach-shmobile/include/mach/r8a7740.h
index 56f3750..d07932f 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7740.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7740.h
@@ -48,7 +48,6 @@ enum {
 
 extern void r8a7740_meram_workaround(void);
 extern void r8a7740_init_delay(void);
-extern void r8a7740_init_irq(void);
 extern void r8a7740_init_irq_of(void);
 extern void r8a7740_map_io(void);
 extern void r8a7740_add_early_devices(void);
diff --git a/arch/arm/mach-shmobile/intc-r8a7740.c b/arch/arm/mach-shmobile/intc-r8a7740.c
index 8871f77..7519353 100644
--- a/arch/arm/mach-shmobile/intc-r8a7740.c
+++ b/arch/arm/mach-shmobile/intc-r8a7740.c
@@ -23,12 +23,14 @@
 #include <linux/irqchip.h>
 #include <linux/irqchip/arm-gic.h>
 
-static void __init r8a7740_init_irq_common(void)
+void __init r8a7740_init_irq_of(void)
 {
 	void __iomem *intc_prio_base = ioremap_nocache(0xe6900010, 0x10);
 	void __iomem *intc_msk_base = ioremap_nocache(0xe6900040, 0x10);
 	void __iomem *pfc_inta_ctrl = ioremap_nocache(0xe605807c, 0x4);
 
+	irqchip_init();
+
 	/* route signals to GIC */
 	iowrite32(0x0, pfc_inta_ctrl);
 
@@ -50,19 +52,3 @@ static void __init r8a7740_init_irq_common(void)
 	iounmap(intc_msk_base);
 	iounmap(pfc_inta_ctrl);
 }
-
-void __init r8a7740_init_irq_of(void)
-{
-	irqchip_init();
-	r8a7740_init_irq_common();
-}
-
-void __init r8a7740_init_irq(void)
-{
-	void __iomem *gic_dist_base = ioremap_nocache(0xc2800000, 0x1000);
-	void __iomem *gic_cpu_base = ioremap_nocache(0xc2000000, 0x1000);
-
-	/* initialize the Generic Interrupt Controller PL390 r0p0 */
-	gic_init(0, 29, gic_dist_base, gic_cpu_base);
-	r8a7740_init_irq_common();
-}
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 17/19] ARM: shmobile: marzen: Use DT for GIC
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (15 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 16/19] ARM: shmobile: armadillo800eva: Use DT for GIC Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 18/19] ARM: shmobile: lager: enable nfsroot in DTS Simon Horman
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Current Marzen is using DT booting,
and r8a7779.dtsi already has GIC settings.

So, we can remove the C version of the GIC setup code,
instead rely on GIC information provided by DT.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/mach-shmobile/board-marzen.c         |  3 +--
 arch/arm/mach-shmobile/include/mach/r8a7779.h |  1 -
 arch/arm/mach-shmobile/intc-r8a7779.c         | 22 ++++------------------
 3 files changed, 5 insertions(+), 21 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c
index bcd07c0..f302729 100644
--- a/arch/arm/mach-shmobile/board-marzen.c
+++ b/arch/arm/mach-shmobile/board-marzen.c
@@ -247,8 +247,7 @@ DT_MACHINE_START(MARZEN, "marzen")
 	.smp		= smp_ops(r8a7779_smp_ops),
 	.map_io		= r8a7779_map_io,
 	.init_early	= r8a7779_add_early_devices,
-	.nr_irqs	= NR_IRQS_LEGACY,
-	.init_irq	= r8a7779_init_irq,
+	.init_irq	= r8a7779_init_irq_dt,
 	.init_machine	= marzen_init,
 	.init_late	= r8a7779_init_late,
 	.dt_compat	= marzen_boards_compat_dt,
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h
index fc47073..c62252f 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7779.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h
@@ -25,7 +25,6 @@ static inline struct r8a7779_pm_ch *to_r8a7779_ch(struct generic_pm_domain *d)
 }
 
 extern void r8a7779_init_delay(void);
-extern void r8a7779_init_irq(void);
 extern void r8a7779_init_irq_extpin(int irlm);
 extern void r8a7779_init_irq_dt(void);
 extern void r8a7779_map_io(void);
diff --git a/arch/arm/mach-shmobile/intc-r8a7779.c b/arch/arm/mach-shmobile/intc-r8a7779.c
index b86dc89..8a082f0 100644
--- a/arch/arm/mach-shmobile/intc-r8a7779.c
+++ b/arch/arm/mach-shmobile/intc-r8a7779.c
@@ -90,15 +90,18 @@ void __init r8a7779_init_irq_extpin(int irlm)
 		pr_warn("r8a7779: unable to setup external irq pin mode\n");
 }
 
+#ifdef CONFIG_OF
 static int r8a7779_set_wake(struct irq_data *data, unsigned int on)
 {
 	return 0; /* always allow wakeup */
 }
 
-static void __init r8a7779_init_irq_common(void)
+void __init r8a7779_init_irq_dt(void)
 {
 	gic_arch_extn.irq_set_wake = r8a7779_set_wake;
 
+	irqchip_init();
+
 	/* route all interrupts to ARM */
 	__raw_writel(0xffffffff, INT2NTSR0);
 	__raw_writel(0x3fffffff, INT2NTSR1);
@@ -109,23 +112,6 @@ static void __init r8a7779_init_irq_common(void)
 	__raw_writel(0xfffbffdf, INT2SMSKCR2);
 	__raw_writel(0xbffffffc, INT2SMSKCR3);
 	__raw_writel(0x003fee3f, INT2SMSKCR4);
-}
-
-void __init r8a7779_init_irq(void)
-{
-	void __iomem *gic_dist_base = IOMEM(0xf0001000);
-	void __iomem *gic_cpu_base = IOMEM(0xf0000100);
 
-	/* use GIC to handle interrupts */
-	gic_init(0, 29, gic_dist_base, gic_cpu_base);
-
-	r8a7779_init_irq_common();
-}
-
-#ifdef CONFIG_OF
-void __init r8a7779_init_irq_dt(void)
-{
-	irqchip_init();
-	r8a7779_init_irq_common();
 }
 #endif
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 18/19] ARM: shmobile: lager: enable nfsroot in DTS
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (16 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 17/19] ARM: shmobile: marzen: " Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-07  4:28 ` [GIT PULL 19/19] ARM: shmobile: r8a7740: Add TPU node to the device tree Simon Horman
  2013-08-14  8:08 ` [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Olof Johansson
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

Now that Ether support has been added to the lager board
it is possible to use nfsroot. This configuration is
in line with that of other shmobile boards.

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7790-lager.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 631b93b..203bd08 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -16,7 +16,7 @@
 	compatible = "renesas,lager", "renesas,r8a7790";
 
 	chosen {
-		bootargs = "console=ttySC6,115200 ignore_loglevel rw";
+		bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
 	};
 
 	memory@40000000 {
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [GIT PULL 19/19] ARM: shmobile: r8a7740: Add TPU node to the device tree
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (17 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 18/19] ARM: shmobile: lager: enable nfsroot in DTS Simon Horman
@ 2013-08-07  4:28 ` Simon Horman
  2013-08-14  8:08 ` [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Olof Johansson
  19 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-07  4:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm/boot/dts/r8a7740.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 4b0728f..27f014f 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -144,4 +144,11 @@
 			      0 72 0x4
 			      0 73 0x4>;
 	};
+
+	tpu: pwm@e6600000 {
+		compatible = "renesas,tpu-r8a7740", "renesas,tpu";
+		reg = <0xe6600000 0x100>;
+		status = "disabled";
+		#pwm-cells = <3>;
+	};
 };
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12
  2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
                   ` (18 preceding siblings ...)
  2013-08-07  4:28 ` [GIT PULL 19/19] ARM: shmobile: r8a7740: Add TPU node to the device tree Simon Horman
@ 2013-08-14  8:08 ` Olof Johansson
  2013-08-18  4:02   ` Simon Horman
  19 siblings, 1 reply; 22+ messages in thread
From: Olof Johansson @ 2013-08-14  8:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 07, 2013 at 01:28:09PM +0900, Simon Horman wrote:
> Hi Olof, Hi Arnd,
> 
> please consider this second round of Renesas ARM-based SoC DT updates for
> v3.12.
> 
> This pull-request is based on renesas-soc-for-v3.12 which I have
> previously sent a pull request-for. That is in turn based on
> renesas-dt-for-v3.12. So there is a semi-circular dependency,
> but it is not at all clear to me how this could be nicely avoided.

Best is to order it soc->dt instead of dt->soc, at least in this case. We tend
to sort the branches soc->boards->dt, so that fits.

There's also the alternative to base as much as possible on top of the old dt
branch, and only the bare minimum that depends on the soc branch in a separate
one (that we could even add on top of soc if truly needed). Note that it might
break down if you need yet another set of patches on top though.

For now I have added this to a next/dt2 branch to avoid the circular
dependency.


-Olof

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12
  2013-08-14  8:08 ` [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Olof Johansson
@ 2013-08-18  4:02   ` Simon Horman
  0 siblings, 0 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-18  4:02 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 14, 2013 at 01:08:18AM -0700, Olof Johansson wrote:
> On Wed, Aug 07, 2013 at 01:28:09PM +0900, Simon Horman wrote:
> > Hi Olof, Hi Arnd,
> > 
> > please consider this second round of Renesas ARM-based SoC DT updates for
> > v3.12.
> > 
> > This pull-request is based on renesas-soc-for-v3.12 which I have
> > previously sent a pull request-for. That is in turn based on
> > renesas-dt-for-v3.12. So there is a semi-circular dependency,
> > but it is not at all clear to me how this could be nicely avoided.
> 
> Best is to order it soc->dt instead of dt->soc, at least in this case. We tend
> to sort the branches soc->boards->dt, so that fits.
> 
> There's also the alternative to base as much as possible on top of the old dt
> branch, and only the bare minimum that depends on the soc branch in a separate
> one (that we could even add on top of soc if truly needed). Note that it might
> break down if you need yet another set of patches on top though.
> 
> For now I have added this to a next/dt2 branch to avoid the circular
> dependency.

Thanks for your advice. I'll try for dt->soc and/or dt->boards->soc
in future and see if that helps to avoid circular dependencies.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-08-18  4:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07  4:28 [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Simon Horman
2013-08-07  4:28 ` [GIT PULL 01/19] ARM: shmobile: ape6evm: add DT reference Simon Horman
2013-08-07  4:28 ` [GIT PULL 02/19] ARM: shmobile: ape6evm-reference: add CPUFreq support Simon Horman
2013-08-07  4:28 ` [GIT PULL 03/19] ARM: shmobile: lager: Add DT reference Simon Horman
2013-08-07  4:28 ` [GIT PULL 04/19] ARM: shmobile: Minor update for the Lager DT reference code Simon Horman
2013-08-07  4:28 ` [GIT PULL 05/19] ARM: shmobile: lager-reference: Add LED6-LED8 to the device tree Simon Horman
2013-08-07  4:28 ` [GIT PULL 06/19] ARM: shmobile: bockw: add DT reference Simon Horman
2013-08-07  4:28 ` [GIT PULL 10/19] ARM: shmobile: marzen: Switch to DT_MACHINE_START Simon Horman
2013-08-07  4:28 ` [GIT PULL 07/19] ARM: shmobile: sh73a0: Rely on DT for SMP CPU info Simon Horman
2013-08-07  4:28 ` [GIT PULL 11/19] ARM: shmobile: r8a7779: " Simon Horman
2013-08-07  4:28 ` [GIT PULL 08/19] ARM: shmobile: ape6evm-reference: switch PFC to DT Simon Horman
2013-08-07  4:28 ` [GIT PULL 12/19] ARM: shmobile: r8a7740: add PMU information to r8a7740.dtsi Simon Horman
2013-08-07  4:28 ` [GIT PULL 09/19] ARM: shmobile: marzen: Add r8a7779-marzen.dtb Simon Horman
2013-08-07  4:28 ` [GIT PULL 13/19] ARM: shmobile: sh73a0: add PMU information to sh73a0.dtsi Simon Horman
2013-08-07  4:28 ` [GIT PULL 14/19] ARM: shmobile: emev2: add PMU information to emev2.dtsi Simon Horman
2013-08-07  4:28 ` [GIT PULL 15/19] ARM: shmobile: Mount root file systems in r/w mode for all DT platforms Simon Horman
2013-08-07  4:28 ` [GIT PULL 16/19] ARM: shmobile: armadillo800eva: Use DT for GIC Simon Horman
2013-08-07  4:28 ` [GIT PULL 17/19] ARM: shmobile: marzen: " Simon Horman
2013-08-07  4:28 ` [GIT PULL 18/19] ARM: shmobile: lager: enable nfsroot in DTS Simon Horman
2013-08-07  4:28 ` [GIT PULL 19/19] ARM: shmobile: r8a7740: Add TPU node to the device tree Simon Horman
2013-08-14  8:08 ` [GIT PULL 00/19] Second round of Renesas ARM-based SoC DT updates for v3.12 Olof Johansson
2013-08-18  4:02   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).