linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v11 0/2] Sigma Designs Tango4 port
@ 2015-12-15  9:37 Marc Gonzalez
  2015-12-15  9:39 ` [PATCH v11 1/2] arm-soc: Import initial tango4 device tree Marc Gonzalez
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Marc Gonzalez @ 2015-12-15  9:37 UTC (permalink / raw)
  To: linux-arm-kernel

"One more time. We're gonna celebrate."

Changes since v10:
Add aliases and chosen DT nodes
Use CPU_CLK and SYS_CLK symbolic names
MPCore private memory region DT node
select TANGO_IRQ instead of GENERIC_IRQ_CHIP

Changes planned for a future patch series:
Have clkgen driver export CD2 for USB, and CD6 for SDIO

Marc Gonzalez (2):
  arm-soc: Import initial tango4 device tree
  arm-soc: Add support for tango4 platforms

 MAINTAINERS                               |   7 ++
 arch/arm/Kconfig                          |   2 +
 arch/arm/Makefile                         |   1 +
 arch/arm/boot/dts/Makefile                |   2 +
 arch/arm/boot/dts/tango4-common.dtsi      | 130 ++++++++++++++++++++++++++++++
 arch/arm/boot/dts/tango4-smp8758.dtsi     |  31 +++++++
 arch/arm/boot/dts/tango4-vantage-1172.dts |  37 +++++++++
 arch/arm/mach-tango/Kconfig               |  12 +++
 arch/arm/mach-tango/Makefile              |   2 +
 arch/arm/mach-tango/setup.c               |  31 +++++++
 arch/arm/mach-tango/smc.S                 |   9 +++
 arch/arm/mach-tango/smc.h                 |   5 ++
 12 files changed, 269 insertions(+)
 create mode 100644 arch/arm/boot/dts/tango4-common.dtsi
 create mode 100644 arch/arm/boot/dts/tango4-smp8758.dtsi
 create mode 100644 arch/arm/boot/dts/tango4-vantage-1172.dts
 create mode 100644 arch/arm/mach-tango/Kconfig
 create mode 100644 arch/arm/mach-tango/Makefile
 create mode 100644 arch/arm/mach-tango/setup.c
 create mode 100644 arch/arm/mach-tango/smc.S
 create mode 100644 arch/arm/mach-tango/smc.h

-- 
2.6.3

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

* [PATCH v11 1/2] arm-soc: Import initial tango4 device tree
  2015-12-15  9:37 [PATCH v11 0/2] Sigma Designs Tango4 port Marc Gonzalez
@ 2015-12-15  9:39 ` Marc Gonzalez
  2015-12-15  9:41 ` [PATCH v11 2/2] arm-soc: Add support for tango4 platforms Marc Gonzalez
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Marc Gonzalez @ 2015-12-15  9:39 UTC (permalink / raw)
  To: linux-arm-kernel

This device tree was tested on a Sigma Designs SMP8758 Vantage-1172
Rev E1 development board.

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
---
 arch/arm/boot/dts/Makefile                |   2 +
 arch/arm/boot/dts/tango4-common.dtsi      | 130 ++++++++++++++++++++++++++++++
 arch/arm/boot/dts/tango4-smp8758.dtsi     |  31 +++++++
 arch/arm/boot/dts/tango4-vantage-1172.dts |  37 +++++++++
 4 files changed, 200 insertions(+)
 create mode 100644 arch/arm/boot/dts/tango4-common.dtsi
 create mode 100644 arch/arm/boot/dts/tango4-smp8758.dtsi
 create mode 100644 arch/arm/boot/dts/tango4-vantage-1172.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 992736b5229b..f91db919d5fe 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -564,6 +564,8 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a23-ippo-q8h-v1.2.dtb
 dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-optimus.dtb
+dtb-$(CONFIG_ARCH_TANGO) += \
+	tango4-vantage-1172.dtb
 dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \
 	tegra20-harmony.dtb \
 	tegra20-iris-512.dtb \
diff --git a/arch/arm/boot/dts/tango4-common.dtsi b/arch/arm/boot/dts/tango4-common.dtsi
new file mode 100644
index 000000000000..ef665d21d317
--- /dev/null
+++ b/arch/arm/boot/dts/tango4-common.dtsi
@@ -0,0 +1,130 @@
+/*
+ * Based on Mans Rullgard's Tango3 DT
+ * https://github.com/mansr/linux-tangox
+ */
+
+#define CPU_CLK 0
+#define SYS_CLK 1
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+/ {
+	interrupt-parent = <&gic>;
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	periph_clk: periph_clk {
+		compatible = "fixed-factor-clock";
+		clocks = <&clkgen CPU_CLK>;
+		clock-mult = <1>;
+		clock-div  = <2>;
+		#clock-cells = <0>;
+	};
+
+	mpcore {
+		compatible = "simple-bus";
+		ranges = <0x00000000 0x20000000 0x2000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		scu at 0 {
+			compatible = "arm,cortex-a9-scu";
+			reg = <0x0 0x100>;
+		};
+
+		twd at 600 {
+			compatible = "arm,cortex-a9-twd-timer";
+			reg = <0x600 0x10>;
+			interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
+			clocks = <&periph_clk>;
+			always-on;
+		};
+
+		gic: interrupt-controller at 1000 {
+			compatible = "arm,cortex-a9-gic";
+			#interrupt-cells = <3>;
+			interrupt-controller;
+			reg = <0x1000 0x1000>, <0x100 0x100>;
+		};
+	};
+
+	l2cc: l2-cache-controller at 20100000 {
+		compatible = "arm,pl310-cache";
+		reg = <0x20100000 0x1000>;
+		cache-level = <2>;
+		cache-unified;
+	};
+
+	soc {
+		compatible = "simple-bus";
+		interrupt-parent = <&irq0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		xtal: xtal {
+			compatible = "fixed-clock";
+			clock-frequency = <27000000>;
+			#clock-cells = <0>;
+		};
+
+		clkgen: clkgen at 10000 {
+			compatible = "sigma,tango4-clkgen";
+			reg = <0x10000 0x40>;
+			clocks = <&xtal>;
+			#clock-cells = <1>;
+		};
+
+		tick-counter at 10048 {
+			compatible = "sigma,tick-counter";
+			reg = <0x10048 0x4>;
+			clocks = <&xtal>;
+		};
+
+		uart: serial at 10700 {
+			compatible = "ralink,rt2880-uart";
+			reg = <0x10700 0x30>;
+			interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
+			clock-frequency = <7372800>;
+			reg-shift = <2>;
+		};
+
+		eth0: ethernet at 26000 {
+			compatible = "sigma,smp8734-ethernet";
+			reg = <0x26000 0x800>;
+			interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clkgen SYS_CLK>;
+		};
+
+		intc: interrupt-controller at 6e000 {
+			compatible = "sigma,smp8642-intc";
+			reg = <0x6e000 0x400>;
+			ranges = <0 0x6e000 0x400>;
+			interrupt-parent = <&gic>;
+			interrupt-controller;
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			irq0: irq0 at 000 {
+				reg = <0x000 0x100>;
+				interrupt-controller;
+				#interrupt-cells = <2>;
+				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+			};
+
+			irq1: irq1 at 100 {
+				reg = <0x100 0x100>;
+				interrupt-controller;
+				#interrupt-cells = <2>;
+				interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+			};
+
+			irq2: irq2 at 300 {
+				reg = <0x300 0x100>;
+				interrupt-controller;
+				#interrupt-cells = <2>;
+				interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+			};
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/tango4-smp8758.dtsi b/arch/arm/boot/dts/tango4-smp8758.dtsi
new file mode 100644
index 000000000000..7ed88ee629fb
--- /dev/null
+++ b/arch/arm/boot/dts/tango4-smp8758.dtsi
@@ -0,0 +1,31 @@
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+/ {
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		enable-method = "sigma,tango4-smp";
+
+		cpu0: cpu at 0 {
+			compatible = "arm,cortex-a9";
+			next-level-cache = <&l2cc>;
+			device_type = "cpu";
+			reg = <0>;
+		};
+
+		cpu1: cpu at 1 {
+			compatible = "arm,cortex-a9";
+			next-level-cache = <&l2cc>;
+			device_type = "cpu";
+			reg = <1>;
+		};
+	};
+
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupt-affinity = <&cpu0>, <&cpu1>;
+		interrupts =
+			<GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
+			<GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
diff --git a/arch/arm/boot/dts/tango4-vantage-1172.dts b/arch/arm/boot/dts/tango4-vantage-1172.dts
new file mode 100644
index 000000000000..3e5b9c81a51c
--- /dev/null
+++ b/arch/arm/boot/dts/tango4-vantage-1172.dts
@@ -0,0 +1,37 @@
+/dts-v1/;
+
+#include "tango4-smp8758.dtsi"
+#include "tango4-common.dtsi"
+
+/ {
+	model = "Sigma Designs SMP8758 Vantage-1172 Rev E1";
+	compatible = "sigma,vantage-1172", "sigma,smp8758", "sigma,tango4";
+
+	aliases {
+		serial = &uart;
+	};
+
+	memory at 80000000 {
+		device_type = "memory";
+		reg = <0x80000000 0x80000000>; /* 2 GB */
+	};
+
+	chosen {
+		stdout-path = "serial:115200n8";
+	};
+};
+
+&eth0 {
+	phy-connection-type = "rgmii";
+	phy-handle = <&eth0_phy>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	/* Atheros AR8035 */
+	eth0_phy: ethernet-phy at 4 {
+		compatible = "ethernet-phy-id004d.d072",
+			     "ethernet-phy-ieee802.3-c22";
+		interrupts = <37 IRQ_TYPE_EDGE_RISING>;
+		reg = <4>;
+	};
+};
-- 
2.6.3

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

* [PATCH v11 2/2] arm-soc: Add support for tango4 platforms
  2015-12-15  9:37 [PATCH v11 0/2] Sigma Designs Tango4 port Marc Gonzalez
  2015-12-15  9:39 ` [PATCH v11 1/2] arm-soc: Import initial tango4 device tree Marc Gonzalez
@ 2015-12-15  9:41 ` Marc Gonzalez
  2015-12-22 19:25 ` [PATCH v11 0/2] Sigma Designs Tango4 port Kevin Hilman
  2015-12-22 23:12 ` Olof Johansson
  3 siblings, 0 replies; 13+ messages in thread
From: Marc Gonzalez @ 2015-12-15  9:41 UTC (permalink / raw)
  To: linux-arm-kernel

Support Sigma Designs ARM-based (specifically, Cortex-A9 MPCore r3p0)
Tango4 "Secure Media Processor" platforms: smp8756, smp8758, smp8759
(8756 is single-core, the latter are dual-core).

Note: 8758 vs 8759: same chip, different package.

Support for older MIPS-based platforms can be found elsewhere:
https://github.com/mansr/linux-tangox

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
---
 MAINTAINERS                  |  7 +++++++
 arch/arm/Kconfig             |  2 ++
 arch/arm/Makefile            |  1 +
 arch/arm/mach-tango/Kconfig  | 12 ++++++++++++
 arch/arm/mach-tango/Makefile |  2 ++
 arch/arm/mach-tango/setup.c  | 31 +++++++++++++++++++++++++++++++
 arch/arm/mach-tango/smc.S    |  9 +++++++++
 arch/arm/mach-tango/smc.h    |  5 +++++
 8 files changed, 69 insertions(+)
 create mode 100644 arch/arm/mach-tango/Kconfig
 create mode 100644 arch/arm/mach-tango/Makefile
 create mode 100644 arch/arm/mach-tango/setup.c
 create mode 100644 arch/arm/mach-tango/smc.S
 create mode 100644 arch/arm/mach-tango/smc.h

diff --git a/MAINTAINERS b/MAINTAINERS
index d8afd2953678..3869a8053b82 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1494,6 +1494,13 @@ F:	drivers/usb/host/ehci-st.c
 F:	drivers/usb/host/ohci-st.c
 F:	drivers/ata/ahci_st.c
 
+ARM/TANGO ARCHITECTURE
+M:	Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
+L:	linux-arm-kernel at lists.infradead.org
+S:	Maintained
+F:	arch/arm/mach-tango/
+F:	arch/arm/boot/dts/tango*
+
 ARM/TECHNOLOGIC SYSTEMS TS7250 MACHINE SUPPORT
 M:	Lennert Buytenhek <kernel@wantstofly.org>
 L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 5c236f60e235..98cf131d9e08 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -934,6 +934,8 @@ source "arch/arm/mach-sunxi/Kconfig"
 
 source "arch/arm/mach-prima2/Kconfig"
 
+source "arch/arm/mach-tango/Kconfig"
+
 source "arch/arm/mach-tegra/Kconfig"
 
 source "arch/arm/mach-u300/Kconfig"
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 47f10e7ad1f6..e85717823d38 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -205,6 +205,7 @@ machine-$(CONFIG_ARCH_SIRF)		+= prima2
 machine-$(CONFIG_ARCH_SOCFPGA)		+= socfpga
 machine-$(CONFIG_ARCH_STI)		+= sti
 machine-$(CONFIG_ARCH_SUNXI)		+= sunxi
+machine-$(CONFIG_ARCH_TANGO)		+= tango
 machine-$(CONFIG_ARCH_TEGRA)		+= tegra
 machine-$(CONFIG_ARCH_U300)		+= u300
 machine-$(CONFIG_ARCH_U8500)		+= ux500
diff --git a/arch/arm/mach-tango/Kconfig b/arch/arm/mach-tango/Kconfig
new file mode 100644
index 000000000000..d6a3714b096e
--- /dev/null
+++ b/arch/arm/mach-tango/Kconfig
@@ -0,0 +1,12 @@
+config ARCH_TANGO
+	bool "Sigma Designs Tango4 (SMP87xx)" if ARCH_MULTI_V7
+	# Cortex-A9 MPCore r3p0, PL310 r3p2
+	select ARCH_HAS_HOLES_MEMORYMODEL
+	select ARM_ERRATA_754322
+	select ARM_ERRATA_764369 if SMP
+	select ARM_ERRATA_775420
+	select ARM_GIC
+	select CLKSRC_TANGO_XTAL
+	select HAVE_ARM_SCU
+	select HAVE_ARM_TWD
+	select TANGO_IRQ
diff --git a/arch/arm/mach-tango/Makefile b/arch/arm/mach-tango/Makefile
new file mode 100644
index 000000000000..0d7e2b5976e3
--- /dev/null
+++ b/arch/arm/mach-tango/Makefile
@@ -0,0 +1,2 @@
+asflags-y += -mcpu=cortex-a9
+obj-y += setup.o smc.o
diff --git a/arch/arm/mach-tango/setup.c b/arch/arm/mach-tango/setup.c
new file mode 100644
index 000000000000..d86900550e63
--- /dev/null
+++ b/arch/arm/mach-tango/setup.c
@@ -0,0 +1,31 @@
+#include <linux/smp.h>
+#include <asm/mach/arch.h>
+#include <asm/hardware/cache-l2x0.h>
+#include "smc.h"
+
+static int tango4_boot_secondary(unsigned int cpu, struct task_struct *idle)
+{
+	tango_set_aux_boot_addr(virt_to_phys(secondary_startup));
+	tango_start_aux_core(cpu);
+	return 0;
+}
+
+static struct smp_operations tango4_smp_ops __initdata = {
+	.smp_boot_secondary	= tango4_boot_secondary,
+};
+
+CPU_METHOD_OF_DECLARE(tango4_smp, "sigma,tango4-smp", &tango4_smp_ops);
+
+static void tango_l2c_write(unsigned long val, unsigned int reg)
+{
+	if (reg == L2X0_CTRL)
+		tango_set_l2_control(val);
+}
+
+static const char *const tango_dt_compat[] = { "sigma,tango4", NULL };
+
+DT_MACHINE_START(TANGO_DT, "Sigma Tango DT")
+	.dt_compat	= tango_dt_compat,
+	.l2c_aux_mask	= ~0,
+	.l2c_write_sec	= tango_l2c_write,
+MACHINE_END
diff --git a/arch/arm/mach-tango/smc.S b/arch/arm/mach-tango/smc.S
new file mode 100644
index 000000000000..5d932ce3c1bd
--- /dev/null
+++ b/arch/arm/mach-tango/smc.S
@@ -0,0 +1,9 @@
+#include <linux/linkage.h>
+
+ENTRY(tango_smc)
+	push	{lr}
+	mov	ip, r1
+	dsb	/* This barrier is probably unnecessary */
+	smc	#0
+	pop	{pc}
+ENDPROC(tango_smc)
diff --git a/arch/arm/mach-tango/smc.h b/arch/arm/mach-tango/smc.h
new file mode 100644
index 000000000000..7a4af35cc390
--- /dev/null
+++ b/arch/arm/mach-tango/smc.h
@@ -0,0 +1,5 @@
+extern int tango_smc(unsigned int val, unsigned int service);
+
+#define tango_set_l2_control(val)	tango_smc(val, 0x102)
+#define tango_start_aux_core(val)	tango_smc(val, 0x104)
+#define tango_set_aux_boot_addr(val)	tango_smc((unsigned int)val, 0x105)
-- 
2.6.3

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-15  9:37 [PATCH v11 0/2] Sigma Designs Tango4 port Marc Gonzalez
  2015-12-15  9:39 ` [PATCH v11 1/2] arm-soc: Import initial tango4 device tree Marc Gonzalez
  2015-12-15  9:41 ` [PATCH v11 2/2] arm-soc: Add support for tango4 platforms Marc Gonzalez
@ 2015-12-22 19:25 ` Kevin Hilman
  2015-12-22 20:23   ` Mason
  2015-12-22 23:12 ` Olof Johansson
  3 siblings, 1 reply; 13+ messages in thread
From: Kevin Hilman @ 2015-12-22 19:25 UTC (permalink / raw)
  To: linux-arm-kernel

Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:

> "One more time. We're gonna celebrate."
>
> Changes since v10:
> Add aliases and chosen DT nodes
> Use CPU_CLK and SYS_CLK symbolic names
> MPCore private memory region DT node
> select TANGO_IRQ instead of GENERIC_IRQ_CHIP
>
> Changes planned for a future patch series:
> Have clkgen driver export CD2 for USB, and CD6 for SDIO

Was it intentional to leave out a multi_v7_defconfig change so that this
actually builds?  Or was that planned for a future series?

IMO, it should be part of this series so it gets build tested as soon as
it's merged.

Otherwise, looking good to me.

Reviewed-by: Kevin Hilman <khilman@linaro.org>

Kevin

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 19:25 ` [PATCH v11 0/2] Sigma Designs Tango4 port Kevin Hilman
@ 2015-12-22 20:23   ` Mason
  2015-12-22 20:49     ` Kevin Hilman
  0 siblings, 1 reply; 13+ messages in thread
From: Mason @ 2015-12-22 20:23 UTC (permalink / raw)
  To: linux-arm-kernel

On 22/12/2015 20:25, Kevin Hilman wrote:

> Marc Gonzalez wrote:
> 
>> Changes since v10:
>> Add aliases and chosen DT nodes
>> Use CPU_CLK and SYS_CLK symbolic names
>> MPCore private memory region DT node
>> select TANGO_IRQ instead of GENERIC_IRQ_CHIP
>>
>> Changes planned for a future patch series:
>> Have clkgen driver export CD2 for USB, and CD6 for SDIO
> 
> Was it intentional to leave out a multi_v7_defconfig change so that this
> actually builds?  Or was that planned for a future series?

How is a multi_v7_defconfig different from any old defconfig?

> IMO, it should be part of this series so it gets build tested as soon as
> it's merged.

The problem is that a mandatory driver is missing upstream
(interrupt controller).

http://thread.gmane.org/gmane.linux.kernel/2089470

> Otherwise, looking good to me.
> 
> Reviewed-by: Kevin Hilman <khilman@linaro.org>

Woot! I already have the next patch series mostly ready, but I suppose
I should wait for this one to be accepted before submitting a new one.

Regards.

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 20:23   ` Mason
@ 2015-12-22 20:49     ` Kevin Hilman
  2015-12-22 21:57       ` Mason
  0 siblings, 1 reply; 13+ messages in thread
From: Kevin Hilman @ 2015-12-22 20:49 UTC (permalink / raw)
  To: linux-arm-kernel

Mason <slash.tmp@free.fr> writes:

> On 22/12/2015 20:25, Kevin Hilman wrote:
>
>> Marc Gonzalez wrote:
>> 
>>> Changes since v10:
>>> Add aliases and chosen DT nodes
>>> Use CPU_CLK and SYS_CLK symbolic names
>>> MPCore private memory region DT node
>>> select TANGO_IRQ instead of GENERIC_IRQ_CHIP
>>>
>>> Changes planned for a future patch series:
>>> Have clkgen driver export CD2 for USB, and CD6 for SDIO
>> 
>> Was it intentional to leave out a multi_v7_defconfig change so that this
>> actually builds?  Or was that planned for a future series?
>
> How is a multi_v7_defconfig different from any old defconfig?

Not sure what you're asking.

The point is that this series doesn't enable any defconfig to build it.

>> IMO, it should be part of this series so it gets build tested as soon as
>> it's merged.
>
> The problem is that a mandatory driver is missing upstream
> (interrupt controller).
>
> http://thread.gmane.org/gmane.linux.kernel/2089470

Which means it presumably wont boot without that, but it should still
build without it, correct?  (I tried it locally, and it does.)

Kevin

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 20:49     ` Kevin Hilman
@ 2015-12-22 21:57       ` Mason
  2015-12-22 22:31         ` Kevin Hilman
  0 siblings, 1 reply; 13+ messages in thread
From: Mason @ 2015-12-22 21:57 UTC (permalink / raw)
  To: linux-arm-kernel

On 22/12/2015 21:49, Kevin Hilman wrote:

> Mason wrote:
> 
>> On 22/12/2015 20:25, Kevin Hilman wrote:
>>
>>> Was it intentional to leave out a multi_v7_defconfig change so that this
>>> actually builds?  Or was that planned for a future series?
>>
>> How is a multi_v7_defconfig different from any old defconfig?
> 
> Not sure what you're asking.
> 
> The point is that this series doesn't enable any defconfig to build it.

What is not clear to me is: are you asking me to submit a new defconfig
(specific to my platform), or are you saying I need to add the new
platform to arch/arm/configs/multi_v7_defconfig (I'm not sure how exactly
to go about doing that; also I'm concerned about merge conflicts, since
my patch set is based on v4.1)

>>> IMO, it should be part of this series so it gets build tested as soon as
>>> it's merged.
>>
>> The problem is that a mandatory driver is missing upstream
>> (interrupt controller).
>>
>> http://thread.gmane.org/gmane.linux.kernel/2089470
> 
> Which means it presumably wont boot without that, but it should still
> build without it, correct?  (I tried it locally, and it does.)

Can I submit the defconfig update as a follow-up patch?

Regards.

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 21:57       ` Mason
@ 2015-12-22 22:31         ` Kevin Hilman
  2015-12-22 23:58           ` Kevin Hilman
  2015-12-23 14:23           ` Mason
  0 siblings, 2 replies; 13+ messages in thread
From: Kevin Hilman @ 2015-12-22 22:31 UTC (permalink / raw)
  To: linux-arm-kernel

Mason <slash.tmp@free.fr> writes:

> On 22/12/2015 21:49, Kevin Hilman wrote:
>
>> Mason wrote:
>> 
>>> On 22/12/2015 20:25, Kevin Hilman wrote:
>>>
>>>> Was it intentional to leave out a multi_v7_defconfig change so that this
>>>> actually builds?  Or was that planned for a future series?
>>>
>>> How is a multi_v7_defconfig different from any old defconfig?
>> 
>> Not sure what you're asking.
>> 
>> The point is that this series doesn't enable any defconfig to build it.
>
> What is not clear to me is: are you asking me to submit a new defconfig
> (specific to my platform), or are you saying I need to add the new
> platform to arch/arm/configs/multi_v7_defconfig

multi_v7_defconfig, which is what I've been assuming you've been testing
it with.  Is that correct?

> (I'm not sure how exactly
> to go about doing that; also I'm concerned about merge conflicts, since
> my patch set is based on v4.1)

The latter.  Something like below[1].  Just keep the multi_v7_defconfig
patch as a separate patch, and we'll take care of the merge conflicts
when applying to the relevant arm-soc branches.

>
>>>> IMO, it should be part of this series so it gets build tested as soon as
>>>> it's merged.
>>>
>>> The problem is that a mandatory driver is missing upstream
>>> (interrupt controller).
>>>
>>> http://thread.gmane.org/gmane.linux.kernel/2089470
>> 
>> Which means it presumably wont boot without that, but it should still
>> build without it, correct?  (I tried it locally, and it does.)
>
> Can I submit the defconfig update as a follow-up patch?

IMO, it should be part of this series that adds the platform.  That way,
as soon as it gets merged, it will be automatically build tested by
various automated builders.  (also note that it would be automatically
boot tested if I had the hardware as well... hint, hint) ;)

Kevin

[1]
diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 69a22fdb52a5..d5aa59b148da 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -89,6 +89,7 @@ CONFIG_ARCH_R8A7794=y
 CONFIG_ARCH_SH73A0=y
 CONFIG_ARCH_SUNXI=y
 CONFIG_ARCH_SIRF=y
+CONFIG_ARCH_TANGO=y
 CONFIG_ARCH_TEGRA=y
 CONFIG_ARCH_TEGRA_2x_SOC=y
 CONFIG_ARCH_TEGRA_3x_SOC=y

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-15  9:37 [PATCH v11 0/2] Sigma Designs Tango4 port Marc Gonzalez
                   ` (2 preceding siblings ...)
  2015-12-22 19:25 ` [PATCH v11 0/2] Sigma Designs Tango4 port Kevin Hilman
@ 2015-12-22 23:12 ` Olof Johansson
  2015-12-23 14:35   ` Mason
  3 siblings, 1 reply; 13+ messages in thread
From: Olof Johansson @ 2015-12-22 23:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Dec 15, 2015 at 10:37:23AM +0100, Marc Gonzalez wrote:
> "One more time. We're gonna celebrate."
> 
> Changes since v10:
> Add aliases and chosen DT nodes
> Use CPU_CLK and SYS_CLK symbolic names
> MPCore private memory region DT node
> select TANGO_IRQ instead of GENERIC_IRQ_CHIP
> 
> Changes planned for a future patch series:
> Have clkgen driver export CD2 for USB, and CD6 for SDIO
> 
> Marc Gonzalez (2):
>   arm-soc: Import initial tango4 device tree
>   arm-soc: Add support for tango4 platforms

Thanks, I've applied these now (but with slightly modified patch subjects), and
with Kevin's reviewed-by tag:

ARM: dts: tango4: Initial device trees
ARM: tango4: Initial platform support


-Olof

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 22:31         ` Kevin Hilman
@ 2015-12-22 23:58           ` Kevin Hilman
  2015-12-23 14:23           ` Mason
  1 sibling, 0 replies; 13+ messages in thread
From: Kevin Hilman @ 2015-12-22 23:58 UTC (permalink / raw)
  To: linux-arm-kernel

Kevin Hilman <khilman@kernel.org> writes:

> Mason <slash.tmp@free.fr> writes:

[...]

>>
>> Can I submit the defconfig update as a follow-up patch?
>
> IMO, it should be part of this series that adds the platform.  That way,
> as soon as it gets merged, it will be automatically build tested by
> various automated builders.  (also note that it would be automatically
> boot tested if I had the hardware as well... hint, hint) ;)

Olof's and my emails crossed paths, so the main part of the series is
already merged.

Please send a defconfig patch which we can apply to next/defconfig and
so it gets some build test coverage.

Thanks,

Kevin

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 22:31         ` Kevin Hilman
  2015-12-22 23:58           ` Kevin Hilman
@ 2015-12-23 14:23           ` Mason
  1 sibling, 0 replies; 13+ messages in thread
From: Mason @ 2015-12-23 14:23 UTC (permalink / raw)
  To: linux-arm-kernel

On 22/12/2015 23:31, Kevin Hilman wrote:

> Mason wrote:
> 
>> What is not clear to me is: are you asking me to submit a new defconfig
>> (specific to my platform), or are you saying I need to add the new
>> platform to arch/arm/configs/multi_v7_defconfig
> 
> multi_v7_defconfig, which is what I've been assuming you've been testing
> it with.  Is that correct?

No, I'm not using the Christmas Tree kernel :-)

I needed a small kernel, so I created a config from scratch, just for
my platform (as things were before ARCH_MULTI_V7)

> The latter.  Something like below[1].  Just keep the multi_v7_defconfig
> patch as a separate patch, and we'll take care of the merge conflicts
> when applying to the relevant arm-soc branches.

I'll send the patch ASAP (probably next week).

>> Can I submit the defconfig update as a follow-up patch?
> 
> IMO, it should be part of this series that adds the platform.  That way,
> as soon as it gets merged, it will be automatically build tested by
> various automated builders.  (also note that it would be automatically
> boot tested if I had the hardware as well... hint, hint) ;)

I will contact HQ and ask if they have boards to spare.

Regards.

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-22 23:12 ` Olof Johansson
@ 2015-12-23 14:35   ` Mason
  2016-01-07  5:08     ` Olof Johansson
  0 siblings, 1 reply; 13+ messages in thread
From: Mason @ 2015-12-23 14:35 UTC (permalink / raw)
  To: linux-arm-kernel

On 23/12/2015 00:12, Olof Johansson wrote:

> Thanks, I've applied these now (but with slightly modified patch subjects),
> and with Kevin's reviewed-by tag:
> 
> ARM: dts: tango4: Initial device trees

Why the plural? Isn't there just one tree per board?

> ARM: tango4: Initial platform support

Cool, cool, cool.

Regards.

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

* [PATCH v11 0/2] Sigma Designs Tango4 port
  2015-12-23 14:35   ` Mason
@ 2016-01-07  5:08     ` Olof Johansson
  0 siblings, 0 replies; 13+ messages in thread
From: Olof Johansson @ 2016-01-07  5:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Dec 23, 2015 at 03:35:19PM +0100, Mason wrote:
> On 23/12/2015 00:12, Olof Johansson wrote:
> 
> > Thanks, I've applied these now (but with slightly modified patch subjects),
> > and with Kevin's reviewed-by tag:
> > 
> > ARM: dts: tango4: Initial device trees
> 
> Why the plural? Isn't there just one tree per board?

Only one dts, but multiple files which I suppose is why I wrote in plural.

> > ARM: tango4: Initial platform support
> 
> Cool, cool, cool.


-Olof

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

end of thread, other threads:[~2016-01-07  5:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15  9:37 [PATCH v11 0/2] Sigma Designs Tango4 port Marc Gonzalez
2015-12-15  9:39 ` [PATCH v11 1/2] arm-soc: Import initial tango4 device tree Marc Gonzalez
2015-12-15  9:41 ` [PATCH v11 2/2] arm-soc: Add support for tango4 platforms Marc Gonzalez
2015-12-22 19:25 ` [PATCH v11 0/2] Sigma Designs Tango4 port Kevin Hilman
2015-12-22 20:23   ` Mason
2015-12-22 20:49     ` Kevin Hilman
2015-12-22 21:57       ` Mason
2015-12-22 22:31         ` Kevin Hilman
2015-12-22 23:58           ` Kevin Hilman
2015-12-23 14:23           ` Mason
2015-12-22 23:12 ` Olof Johansson
2015-12-23 14:35   ` Mason
2016-01-07  5:08     ` Olof Johansson

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).