ARM: meson: add support for Meson8
v2 cover ARM: meson: add support for Meson8
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
Signature · 1 line
1.9.1
PATCH v2 1/7 ARM: meson: add meson8 support
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.
--- arch/arm/mach-meson/Kconfig | 5 +++++ arch/arm/mach-meson/meson.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-)
arch/arm/mach-meson/Kconfig +5 -0
@@ -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
arch/arm/mach-meson/meson.c +4 -4
@@ -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 -
Signature · 1 line
1.9.1
PATCH v2 2/7 ARM: dts: add dtsi for Amlogic Meson8 SoCs
In reply to Beniamino GalvaniThis 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.
--- arch/arm/boot/dts/meson8.dtsi | 88 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 arch/arm/boot/dts/meson8.dtsi
arch/arm/boot/dts/meson8.dtsi new file +88 -0
@@ -0,0 +1,88 @@ +/* + * Copyright 2014 Carlo Caione <[email protected]> + * + * 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 at 200 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0x200>; + }; + + cpu at 201 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0x201>; + }; + + cpu at 202 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0x202>; + }; + + cpu at 203 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0x203>; + }; + }; + + clk81: clk at 0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <141666666>; + }; +}; /* end of / */
Signature · 1 line
1.9.1
PATCH v2 3/7 ARM: dts: add dts for Tronsmart S89 Elite TV box
In reply to Beniamino GalvaniThis 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.
--- 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
arch/arm/boot/dts/meson8-vega-s89e.dts new file +65 -0
@@ -0,0 +1,65 @@ +/* + * Copyright 2014 Beniamino Galvani <[email protected]> + * + * 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"; +};
Signature · 1 line
1.9.1
PATCH v2 4/7 of: add vendor prefix for Tronsmart
In reply to Beniamino GalvaniThis adds Tronsmart to the list of device tree vendor prefixes.
--- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -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.
Signature · 1 line
1.9.1
PATCH v2 5/7 ARM: document Tronsmart compatible properties
In reply to Beniamino GalvaniDocument device tree bindings for Tronsmart devices.
--- Documentation/devicetree/bindings/arm/tronsmart.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/tronsmart.txt
Documentation/devicetree/bindings/arm/tronsmart.txt new file +7 -0
@@ -0,0 +1,7 @@ +Tronsmart Platforms Device Tree Bindings +--------------------------------------- + +Vega S89 Elite TV box + +Required root node properties: + - compatible = "tronsmart,vega-s89e";
Signature · 1 line
1.9.1
PATCH v2 6/7 ARM: meson: document meson8 compatible properties
In reply to Beniamino GalvaniAdd device tree bindings documentation for Amlogic Meson8 SoCs.
--- Documentation/devicetree/bindings/arm/amlogic.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arm/amlogic.txt +5 -3
@@ -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";
Signature · 1 line
1.9.1
PATCH v2 7/7 ARM: meson: enable L2 cache
In reply to Beniamino GalvaniThis enables the L2 cache controller available in Amlogic SoCs.
--- 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(+)
arch/arm/boot/dts/meson.dtsi +7 -0
@@ -50,6 +50,13 @@ / { interrupt-parent = <&gic>; + L2: l2-cache-controller at c4200000 { + compatible = "arm,pl310-cache"; + reg = <0xc4200000 0x1000>; + cache-unified; + cache-level = <2>; + }; + gic: interrupt-controller at c4301000 { compatible = "arm,cortex-a9-gic"; reg = <0xc4301000 0x1000>,
arch/arm/boot/dts/meson6.dtsi +2 -0
@@ -60,12 +60,14 @@ cpu at 200 { device_type = "cpu"; compatible = "arm,cortex-a9"; + next-level-cache = <&L2>; reg = <0x200>; }; cpu at 201 { device_type = "cpu"; compatible = "arm,cortex-a9"; + next-level-cache = <&L2>; reg = <0x201>; }; };
arch/arm/boot/dts/meson8.dtsi +4 -0
@@ -58,24 +58,28 @@ cpu at 200 { device_type = "cpu"; compatible = "arm,cortex-a9"; + next-level-cache = <&L2>; reg = <0x200>; }; cpu at 201 { device_type = "cpu"; compatible = "arm,cortex-a9"; + next-level-cache = <&L2>; reg = <0x201>; }; cpu at 202 { device_type = "cpu"; compatible = "arm,cortex-a9"; + next-level-cache = <&L2>; reg = <0x202>; }; cpu at 203 { device_type = "cpu"; compatible = "arm,cortex-a9"; + next-level-cache = <&L2>; reg = <0x203>; }; };
arch/arm/mach-meson/Kconfig +1 -0
@@ -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
arch/arm/mach-meson/meson.c +2 -0
@@ -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
Signature · 1 line
1.9.1
Re: [PATCH v2 4/7] of: add vendor prefix for Tronsmart
In reply to Beniamino GalvaniQuoted 3 lines · Beniamino Galvani
This adds Tronsmart to the list of device tree vendor prefixes.
Signed-off-by Beniamino Galvani <[email protected]>
Quoted 19 lines
--- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/vendor-prefixes.txt +1
-1@@ -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
Quoted 4 lines · 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.
For the whole patchset
Signature · 1 line
Carlo Caione
Quoted 8 lines · 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