linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] ARM: meson: add support for Meson8
@ 2014-10-05 21:59 Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 1/7] ARM: meson: add meson8 support Beniamino Galvani
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

Hi,

this patchset introduces support for Amlogic Meson8, which is a family
of quad-core Cortex-A9 SoCs used in tablets and set-top boxes.

Changes since v1:
 - reused the existing DT machine definition and renamed it to be more
   generic
 - added L2 cache support

Beniamino Galvani (7):
  ARM: meson: add meson8 support
  ARM: dts: add dtsi for Amlogic Meson8 SoCs
  ARM: dts: add dts for Tronsmart S89 Elite TV box
  of: add vendor prefix for Tronsmart
  ARM: document Tronsmart compatible properties
  ARM: meson: document meson8 compatible properties
  ARM: meson: enable L2 cache

 Documentation/devicetree/bindings/arm/amlogic.txt  |  8 +-
 .../devicetree/bindings/arm/tronsmart.txt          |  7 ++
 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 arch/arm/boot/dts/meson.dtsi                       |  7 ++
 arch/arm/boot/dts/meson6.dtsi                      |  2 +
 arch/arm/boot/dts/meson8-vega-s89e.dts             | 65 +++++++++++++++
 arch/arm/boot/dts/meson8.dtsi                      | 92 ++++++++++++++++++++++
 arch/arm/mach-meson/Kconfig                        |  6 ++
 arch/arm/mach-meson/meson.c                        | 10 ++-
 9 files changed, 191 insertions(+), 7 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/tronsmart.txt
 create mode 100644 arch/arm/boot/dts/meson8-vega-s89e.dts
 create mode 100644 arch/arm/boot/dts/meson8.dtsi

-- 
1.9.1


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

* [PATCH v2 1/7] ARM: meson: add meson8 support
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 2/7] ARM: dts: add dtsi for Amlogic Meson8 SoCs Beniamino Galvani
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

Add a MACH_MESON8 symbol and add "amlogic,meson8" to the list of
compatible strings for the Meson DT machine to support devices based
on the Meson8 family of SoCs.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 arch/arm/mach-meson/Kconfig | 5 +++++
 arch/arm/mach-meson/meson.c | 8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig
index 2c1154e..b289e8e 100644
--- a/arch/arm/mach-meson/Kconfig
+++ b/arch/arm/mach-meson/Kconfig
@@ -10,4 +10,9 @@ config MACH_MESON6
 	default ARCH_MESON
 	select MESON6_TIMER
 
+config MACH_MESON8
+	bool "Amlogic Meson8 SoCs support"
+	default ARCH_MESON
+	select MESON6_TIMER
+
 endif
diff --git a/arch/arm/mach-meson/meson.c b/arch/arm/mach-meson/meson.c
index 5ee064f..8f42d8f 100644
--- a/arch/arm/mach-meson/meson.c
+++ b/arch/arm/mach-meson/meson.c
@@ -16,12 +16,12 @@
 #include <linux/of_platform.h>
 #include <asm/mach/arch.h>
 
-static const char * const m6_common_board_compat[] = {
+static const char * const meson_common_board_compat[] = {
 	"amlogic,meson6",
+	"amlogic,meson8",
 	NULL,
 };
 
-DT_MACHINE_START(AML8726_MX, "Amlogic Meson6 platform")
-	.dt_compat	= m6_common_board_compat,
+DT_MACHINE_START(MESON, "Amlogic Meson platform")
+	.dt_compat	= meson_common_board_compat,
 MACHINE_END
-
-- 
1.9.1


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

* [PATCH v2 2/7] ARM: dts: add dtsi for Amlogic Meson8 SoCs
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 1/7] ARM: meson: add meson8 support Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 3/7] ARM: dts: add dts for Tronsmart S89 Elite TV box Beniamino Galvani
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

This adds a dtsi for Amlogic Meson8 SoCs. It differs from the Meson6
dtsi for the number of Cortex-A9 cores (4 vs 2) and for the frequency
of clk81.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 arch/arm/boot/dts/meson8.dtsi | 88 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)
 create mode 100644 arch/arm/boot/dts/meson8.dtsi

diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi
new file mode 100644
index 0000000..42e4026
--- /dev/null
+++ b/arch/arm/boot/dts/meson8.dtsi
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2014 Carlo Caione <carlo@caione.org>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This library 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; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This library 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, see <http://www.gnu.org/licenses/>.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/include/ "meson.dtsi"
+
+/ {
+	model = "Amlogic Meson8 SoC";
+	compatible = "amlogic,meson8";
+
+	interrupt-parent = <&gic>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu@200 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0x200>;
+		};
+
+		cpu@201 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0x201>;
+		};
+
+		cpu@202 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0x202>;
+		};
+
+		cpu@203 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0x203>;
+		};
+	};
+
+	clk81: clk@0 {
+		#clock-cells = <0>;
+		compatible = "fixed-clock";
+		clock-frequency = <141666666>;
+	};
+}; /* end of / */
-- 
1.9.1


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

* [PATCH v2 3/7] ARM: dts: add dts for Tronsmart S89 Elite TV box
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 1/7] ARM: meson: add meson8 support Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 2/7] ARM: dts: add dtsi for Amlogic Meson8 SoCs Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 4/7] of: add vendor prefix for Tronsmart Beniamino Galvani
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

This adds a dts for the Tronsmart S89 Elite, a set-top box based on
the Amlogic S802 SoC with a 8GiB NAND flash, USB ports, 10/100 Mbps
Ethernet adapter, WiFi, HDMI and a micro SD slot.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 arch/arm/boot/dts/meson8-vega-s89e.dts | 65 ++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 arch/arm/boot/dts/meson8-vega-s89e.dts

diff --git a/arch/arm/boot/dts/meson8-vega-s89e.dts b/arch/arm/boot/dts/meson8-vega-s89e.dts
new file mode 100644
index 0000000..950998f
--- /dev/null
+++ b/arch/arm/boot/dts/meson8-vega-s89e.dts
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2014 Beniamino Galvani <b.galvani@gmail.com>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This library 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; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This library 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, see <http://www.gnu.org/licenses/>.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+/dts-v1/;
+/include/ "meson8.dtsi"
+
+/ {
+	model = "Tronsmart Vega S89 Elite";
+	compatible = "tronsmart,vega-s89e", "amlogic,meson8";
+
+	aliases {
+		serial0 = &uart_AO;
+	};
+
+	memory {
+		reg = <0x40000000 0x80000000>;
+	};
+};
+
+&uart_AO {
+	status = "okay";
+};
-- 
1.9.1


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

* [PATCH v2 4/7] of: add vendor prefix for Tronsmart
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
                   ` (2 preceding siblings ...)
  2014-10-05 21:59 ` [PATCH v2 3/7] ARM: dts: add dts for Tronsmart S89 Elite TV box Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-06 15:07   ` Rob Herring
  2014-10-05 21:59 ` [PATCH v2 5/7] ARM: document Tronsmart compatible properties Beniamino Galvani
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

This adds Tronsmart to the list of device tree vendor prefixes.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index c681434..92a1798 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -141,6 +141,7 @@ tlm	Trusted Logic Mobility
 toradex	Toradex AG
 toshiba	Toshiba Corporation
 toumaz	Toumaz
+tronsmart	Tronsmart
 usi	Universal Scientifc Industrial Co., Ltd.
 v3	V3 Semiconductor
 variscite	Variscite Ltd.
-- 
1.9.1


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

* [PATCH v2 5/7] ARM: document Tronsmart compatible properties
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
                   ` (3 preceding siblings ...)
  2014-10-05 21:59 ` [PATCH v2 4/7] of: add vendor prefix for Tronsmart Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 6/7] ARM: meson: document meson8 " Beniamino Galvani
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

Document device tree bindings for Tronsmart devices.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 Documentation/devicetree/bindings/arm/tronsmart.txt | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/tronsmart.txt

diff --git a/Documentation/devicetree/bindings/arm/tronsmart.txt b/Documentation/devicetree/bindings/arm/tronsmart.txt
new file mode 100644
index 0000000..bd29d60
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/tronsmart.txt
@@ -0,0 +1,7 @@
+Tronsmart Platforms Device Tree Bindings
+---------------------------------------
+
+Vega S89 Elite TV box
+
+Required root node properties:
+    - compatible = "tronsmart,vega-s89e";
-- 
1.9.1


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

* [PATCH v2 6/7] ARM: meson: document meson8 compatible properties
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
                   ` (4 preceding siblings ...)
  2014-10-05 21:59 ` [PATCH v2 5/7] ARM: document Tronsmart compatible properties Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-05 21:59 ` [PATCH v2 7/7] ARM: meson: enable L2 cache Beniamino Galvani
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

Add device tree bindings documentation for Amlogic Meson8 SoCs.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 Documentation/devicetree/bindings/arm/amlogic.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/bindings/arm/amlogic.txt
index 7eece72..8fe8150 100644
--- a/Documentation/devicetree/bindings/arm/amlogic.txt
+++ b/Documentation/devicetree/bindings/arm/amlogic.txt
@@ -2,7 +2,9 @@ Amlogic MesonX device tree bindings
 -------------------------------------------
 
 Boards with the Amlogic Meson6 SoC shall have the following properties:
+  Required root node property:
+    compatible: "amlogic,meson6"
 
-Required root node property:
-
-compatible = "amlogic,meson6";
+Boards with the Amlogic Meson8 SoC shall have the following properties:
+  Required root node property:
+    compatible: "amlogic,meson8";
-- 
1.9.1


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

* [PATCH v2 7/7] ARM: meson: enable L2 cache
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
                   ` (5 preceding siblings ...)
  2014-10-05 21:59 ` [PATCH v2 6/7] ARM: meson: document meson8 " Beniamino Galvani
@ 2014-10-05 21:59 ` Beniamino Galvani
  2014-10-06 16:01 ` [PATCH v2 0/7] ARM: meson: add support for Meson8 Carlo Caione
  2014-10-08 19:30 ` Arnd Bergmann
  8 siblings, 0 replies; 11+ messages in thread
From: Beniamino Galvani @ 2014-10-05 21:59 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Arnd Bergmann, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan, Beniamino Galvani

This enables the L2 cache controller available in Amlogic SoCs.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 arch/arm/boot/dts/meson.dtsi  | 7 +++++++
 arch/arm/boot/dts/meson6.dtsi | 2 ++
 arch/arm/boot/dts/meson8.dtsi | 4 ++++
 arch/arm/mach-meson/Kconfig   | 1 +
 arch/arm/mach-meson/meson.c   | 2 ++
 5 files changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi
index 55feb14..7d27f12 100644
--- a/arch/arm/boot/dts/meson.dtsi
+++ b/arch/arm/boot/dts/meson.dtsi
@@ -50,6 +50,13 @@
 / {
 	interrupt-parent = <&gic>;
 
+	L2: l2-cache-controller@c4200000 {
+		compatible = "arm,pl310-cache";
+		reg = <0xc4200000 0x1000>;
+		cache-unified;
+		cache-level = <2>;
+	};
+
 	gic: interrupt-controller@c4301000 {
 		compatible = "arm,cortex-a9-gic";
 		reg = <0xc4301000 0x1000>,
diff --git a/arch/arm/boot/dts/meson6.dtsi b/arch/arm/boot/dts/meson6.dtsi
index 4ba4912..8b33be1 100644
--- a/arch/arm/boot/dts/meson6.dtsi
+++ b/arch/arm/boot/dts/meson6.dtsi
@@ -60,12 +60,14 @@
 		cpu@200 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
+			next-level-cache = <&L2>;
 			reg = <0x200>;
 		};
 
 		cpu@201 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
+			next-level-cache = <&L2>;
 			reg = <0x201>;
 		};
 	};
diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi
index 42e4026..1f442a7 100644
--- a/arch/arm/boot/dts/meson8.dtsi
+++ b/arch/arm/boot/dts/meson8.dtsi
@@ -58,24 +58,28 @@
 		cpu@200 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
+			next-level-cache = <&L2>;
 			reg = <0x200>;
 		};
 
 		cpu@201 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
+			next-level-cache = <&L2>;
 			reg = <0x201>;
 		};
 
 		cpu@202 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
+			next-level-cache = <&L2>;
 			reg = <0x202>;
 		};
 
 		cpu@203 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
+			next-level-cache = <&L2>;
 			reg = <0x203>;
 		};
 	};
diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig
index b289e8e..18301dc 100644
--- a/arch/arm/mach-meson/Kconfig
+++ b/arch/arm/mach-meson/Kconfig
@@ -2,6 +2,7 @@ menuconfig ARCH_MESON
 	bool "Amlogic Meson SoCs" if ARCH_MULTI_V7
 	select GENERIC_IRQ_CHIP
 	select ARM_GIC
+	select CACHE_L2X0
 
 if ARCH_MESON
 
diff --git a/arch/arm/mach-meson/meson.c b/arch/arm/mach-meson/meson.c
index 8f42d8f..5d6affe 100644
--- a/arch/arm/mach-meson/meson.c
+++ b/arch/arm/mach-meson/meson.c
@@ -24,4 +24,6 @@ static const char * const meson_common_board_compat[] = {
 
 DT_MACHINE_START(MESON, "Amlogic Meson platform")
 	.dt_compat	= meson_common_board_compat,
+	.l2c_aux_val	= 0,
+	.l2c_aux_mask	= ~0,
 MACHINE_END
-- 
1.9.1


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

* Re: [PATCH v2 4/7] of: add vendor prefix for Tronsmart
  2014-10-05 21:59 ` [PATCH v2 4/7] of: add vendor prefix for Tronsmart Beniamino Galvani
@ 2014-10-06 15:07   ` Rob Herring
  0 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2014-10-06 15:07 UTC (permalink / raw)
  To: Beniamino Galvani
  Cc: linux-arm-kernel, Arnd Bergmann, Carlo Caione, Russell King,
	linux-kernel, devicetree, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Jerry Cao, Victor Wan

On Sun, Oct 5, 2014 at 4:59 PM, Beniamino Galvani <b.galvani@gmail.com> wrote:
> This adds Tronsmart to the list of device tree vendor prefixes.
>
> Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>

Acked-by: Rob Herring <robh@kernel.org>

> ---
>  Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
> index c681434..92a1798 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -141,6 +141,7 @@ tlm Trusted Logic Mobility
>  toradex        Toradex AG
>  toshiba        Toshiba Corporation
>  toumaz Toumaz
> +tronsmart      Tronsmart
>  usi    Universal Scientifc Industrial Co., Ltd.
>  v3     V3 Semiconductor
>  variscite      Variscite Ltd.
> --
> 1.9.1
>

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

* Re: [PATCH v2 0/7] ARM: meson: add support for Meson8
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
                   ` (6 preceding siblings ...)
  2014-10-05 21:59 ` [PATCH v2 7/7] ARM: meson: enable L2 cache Beniamino Galvani
@ 2014-10-06 16:01 ` Carlo Caione
  2014-10-08 19:30 ` Arnd Bergmann
  8 siblings, 0 replies; 11+ messages in thread
From: Carlo Caione @ 2014-10-06 16:01 UTC (permalink / raw)
  To: Beniamino Galvani
  Cc: linux-arm-kernel, Arnd Bergmann, Carlo Caione, Russell King,
	linux-kernel, devicetree, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Jerry Cao, Victor Wan

On Sun, Oct 5, 2014 at 11:59 PM, Beniamino Galvani <b.galvani@gmail.com> wrote:
> Hi,
>
> this patchset introduces support for Amlogic Meson8, which is a family
> of quad-core Cortex-A9 SoCs used in tablets and set-top boxes.

For the whole patchset

Acked-by: Carlo Caione <carlo@caione.org>

-- 
Carlo Caione

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

* Re: [PATCH v2 0/7] ARM: meson: add support for Meson8
  2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
                   ` (7 preceding siblings ...)
  2014-10-06 16:01 ` [PATCH v2 0/7] ARM: meson: add support for Meson8 Carlo Caione
@ 2014-10-08 19:30 ` Arnd Bergmann
  8 siblings, 0 replies; 11+ messages in thread
From: Arnd Bergmann @ 2014-10-08 19:30 UTC (permalink / raw)
  To: Beniamino Galvani
  Cc: linux-arm-kernel, Carlo Caione, Russell King, linux-kernel,
	devicetree, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
	Kumar Gala, Jerry Cao, Victor Wan

On Sunday 05 October 2014 23:59:12 Beniamino Galvani wrote:
> 
> this patchset introduces support for Amlogic Meson8, which is a family
> of quad-core Cortex-A9 SoCs used in tablets and set-top boxes.
> 
> Changes since v1:
>  - reused the existing DT machine definition and renamed it to be more
>    generic
>  - added L2 cache support

Looks all good to me

Acked-by: Arnd Bergmann <arnd@arndb.de>

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

end of thread, other threads:[~2014-10-08 19:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-05 21:59 [PATCH v2 0/7] ARM: meson: add support for Meson8 Beniamino Galvani
2014-10-05 21:59 ` [PATCH v2 1/7] ARM: meson: add meson8 support Beniamino Galvani
2014-10-05 21:59 ` [PATCH v2 2/7] ARM: dts: add dtsi for Amlogic Meson8 SoCs Beniamino Galvani
2014-10-05 21:59 ` [PATCH v2 3/7] ARM: dts: add dts for Tronsmart S89 Elite TV box Beniamino Galvani
2014-10-05 21:59 ` [PATCH v2 4/7] of: add vendor prefix for Tronsmart Beniamino Galvani
2014-10-06 15:07   ` Rob Herring
2014-10-05 21:59 ` [PATCH v2 5/7] ARM: document Tronsmart compatible properties Beniamino Galvani
2014-10-05 21:59 ` [PATCH v2 6/7] ARM: meson: document meson8 " Beniamino Galvani
2014-10-05 21:59 ` [PATCH v2 7/7] ARM: meson: enable L2 cache Beniamino Galvani
2014-10-06 16:01 ` [PATCH v2 0/7] ARM: meson: add support for Meson8 Carlo Caione
2014-10-08 19:30 ` Arnd Bergmann

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