* [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC @ 2014-09-21 14:58 Chen-Yu Tsai [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA Hi everyone, This patch series adds very basic support for Allwinner's A80 SoC, a big.LITTLE architecture with 4 Cortex-A7s and 4 Cortex-A15s. Development is done on the A80 Optimus Board, the defacto development board for the A80, with the accompanying SDK as a reference. So far I've been unable to get the board to boot from MMC, or using Android fastboot. I'm using Allwinner's FEL mode to load the bootloader and kernel+dtb image over USB. Notes on my attempts can be found here: http://linux-sunxi.org/User:Wens#A80_Optimus Patch 1 introduces the compatible string for the A80. Patch 2 adds options to use UART0 on the A80 as the debug port for earlyprintk. Patch 3 adds a barebone dtsi with just the cpu, memory and uart nodes. Patch 4 adds a barebone dts for the A80 Optimus Board. Patch 5 documents the vendor prefix for Merrii Technology Co., Ltd, the designer and vendor of the A80 Optimus Board. Patch 6 documents all the Allwinner SoCs we currently support. Cheers ChenYu Chen-Yu Tsai (6): ARM: sunxi: Introduce Allwinner A80 support ARM: sunxi: Add debug uart used by sun9i (Allwinner A80) ARM: dts: sunxi: Add Allwinner A80 dtsi ARM: dts: sun9i: Add A80 Optimus Board support devicetree: bindings: Add vendor prefix for Merrii Technology Co., Ltd. devicetree: bindings: Document supported Allwinner sunxi SoCs Documentation/devicetree/bindings/arm/sunxi.txt | 12 + .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm/Kconfig.debug | 10 + arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/sun9i-a80-optimus.dts | 66 +++++ arch/arm/boot/dts/sun9i-a80.dtsi | 280 +++++++++++++++++++++ arch/arm/mach-sunxi/Kconfig | 5 + arch/arm/mach-sunxi/sunxi.c | 9 + 8 files changed, 385 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sunxi.txt create mode 100644 arch/arm/boot/dts/sun9i-a80-optimus.dts create mode 100644 arch/arm/boot/dts/sun9i-a80.dtsi -- 2.1.0 ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>]
* [PATCH 1/6] ARM: sunxi: Introduce Allwinner A80 support [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> @ 2014-09-21 14:58 ` Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 2/6] ARM: sunxi: Add debug uart used by sun9i (Allwinner A80) Chen-Yu Tsai ` (5 subsequent siblings) 6 siblings, 0 replies; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA The Allwinner A80 is a new Cortex octo-core A7/A15 big.LITTLE SoC. While it's processor cores and interconnecting bus are new, it re-uses many peripherals found in earlier Allwinner SoCs. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- arch/arm/mach-sunxi/Kconfig | 5 +++++ arch/arm/mach-sunxi/sunxi.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 1aaa1e1..72f222b 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -42,4 +42,9 @@ config MACH_SUN8I select MFD_SUN6I_PRCM select RESET_CONTROLLER +config MACH_SUN9I + bool "Allwinner A80 (sun9i) SoCs support" + default ARCH_SUNXI + select ARM_GIC + endif diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index 42d4753..4bd2117 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c @@ -139,3 +139,12 @@ static const char * const sun8i_board_dt_compat[] = { DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i (A23) Family") .dt_compat = sun8i_board_dt_compat, MACHINE_END + +static const char * const sun9i_board_dt_compat[] = { + "allwinner,sun9i-a80", + NULL, +}; + +DT_MACHINE_START(SUN9I_DT, "Allwinner sun9i (A80) Family") + .dt_compat = sun9i_board_dt_compat, +MACHINE_END -- 2.1.0 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/6] ARM: sunxi: Add debug uart used by sun9i (Allwinner A80) [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-21 14:58 ` [PATCH 1/6] ARM: sunxi: Introduce Allwinner A80 support Chen-Yu Tsai @ 2014-09-21 14:58 ` Chen-Yu Tsai [not found] ` <1411311493-24344-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-21 14:58 ` [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi Chen-Yu Tsai ` (4 subsequent siblings) 6 siblings, 1 reply; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA The uarts on sun9i are still compatible with the dw_8250, but are located at different addresses. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- arch/arm/Kconfig.debug | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index b11ad54..58b5218 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -707,6 +707,14 @@ choice Say Y here if you want kernel low-level debugging support on SOCFPGA based platforms. + config DEBUG_SUN9I_UART0 + bool "Kernel low-level debugging messages via sun9i UART0" + depends on ARCH_SUNXI && MACH_SUN9I + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on Allwinner A80 based platforms on the UART0. + config DEBUG_SUNXI_UART0 bool "Kernel low-level debugging messages via sunXi UART0" depends on ARCH_SUNXI @@ -1068,6 +1076,7 @@ config DEBUG_UART_PHYS default 0x02530c00 if DEBUG_KEYSTONE_UART0 default 0x02531000 if DEBUG_KEYSTONE_UART1 default 0x03010fe0 if ARCH_RPC + default 0x07000000 if DEBUG_SUN9I_UART0 default 0x10009000 if DEBUG_REALVIEW_STD_PORT || DEBUG_CNS3XXX || \ DEBUG_VEXPRESS_UART0_CA9 default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT @@ -1145,6 +1154,7 @@ config DEBUG_UART_VIRT default 0xf2100000 if DEBUG_PXA_UART1 default 0xf4090000 if ARCH_LPC32XX default 0xf4200000 if ARCH_GEMINI + default 0xf7000000 if DEBUG_SUN9I_UART0 default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \ DEBUG_S3C2410_UART0) default 0xf7004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \ -- 2.1.0 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1411311493-24344-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>]
* Re: [PATCH 2/6] ARM: sunxi: Add debug uart used by sun9i (Allwinner A80) [not found] ` <1411311493-24344-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> @ 2014-09-24 6:39 ` Maxime Ripard 0 siblings, 0 replies; 17+ messages in thread From: Maxime Ripard @ 2014-09-24 6:39 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA [-- Attachment #1: Type: text/plain, Size: 957 bytes --] On Sun, Sep 21, 2014 at 10:58:09PM +0800, Chen-Yu Tsai wrote: > The uarts on sun9i are still compatible with the dw_8250, but are > located at different addresses. > > Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> > --- > arch/arm/Kconfig.debug | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug > index b11ad54..58b5218 100644 > --- a/arch/arm/Kconfig.debug > +++ b/arch/arm/Kconfig.debug > @@ -707,6 +707,14 @@ choice > Say Y here if you want kernel low-level debugging support > on SOCFPGA based platforms. > > + config DEBUG_SUN9I_UART0 > + bool "Kernel low-level debugging messages via sun9i UART0" > + depends on ARCH_SUNXI && MACH_SUN9I Depending on MACH_SUN9I should be enough. It already depends on ARCH_SUNXI. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-21 14:58 ` [PATCH 1/6] ARM: sunxi: Introduce Allwinner A80 support Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 2/6] ARM: sunxi: Add debug uart used by sun9i (Allwinner A80) Chen-Yu Tsai @ 2014-09-21 14:58 ` Chen-Yu Tsai [not found] ` <1411311493-24344-4-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-21 14:58 ` [PATCH 4/6] ARM: dts: sun9i: Add A80 Optimus Board support Chen-Yu Tsai ` (3 subsequent siblings) 6 siblings, 1 reply; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA The Allwinner A80 is a new multi-purpose SoC with 4 Cortex-A7 and 4 Cortex-A15 cores in a big.LITTLE architecture, and a 64-core PowerVR G6230 GPU. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- arch/arm/boot/dts/sun9i-a80.dtsi | 280 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 280 insertions(+) create mode 100644 arch/arm/boot/dts/sun9i-a80.dtsi diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi new file mode 100644 index 0000000..f23ea59 --- /dev/null +++ b/arch/arm/boot/dts/sun9i-a80.dtsi @@ -0,0 +1,280 @@ +/* + * Copyright 2014 Chen-Yu Tsai + * + * Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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 library; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * 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/ "skeleton.dtsi" + +/ { + interrupt-parent = <&gic>; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + serial5 = &uart5; + serial6 = &r_uart; + }; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + core2 { + cpu = <&cpu2>; + }; + core3 { + cpu = <&cpu3>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu4>; + }; + core1 { + cpu = <&cpu5>; + }; + core2 { + cpu = <&cpu6>; + }; + core3 { + cpu = <&cpu7>; + }; + }; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <0x0>; + }; + + cpu1: cpu@1 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <0x1>; + }; + + cpu2: cpu@2 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <0x2>; + }; + + cpu3: cpu@3 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <0x3>; + }; + + cpu4: cpu@100 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + reg = <0x100>; + }; + + cpu5: cpu@101 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + reg = <0x101>; + }; + + cpu6: cpu@102 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + reg = <0x102>; + }; + + cpu7: cpu@103 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + reg = <0x103>; + }; + }; + + memory { + reg = <0x20000000 0x40000000>; + }; + + clocks { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + osc24M: osc24M_clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <24000000>; + clock-output-names = "osc24M"; + }; + + osc32k: osc32k_clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <32768>; + clock-output-names = "osc32k"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + gic: interrupt-controller@01c41000 { + compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; + reg = <0x01c41000 0x1000>, + <0x01c42000 0x1000>, + <0x01c44000 0x2000>, + <0x01c46000 0x2000>; + interrupt-controller; + #interrupt-cells = <3>; + interrupts = <1 9 0xf04>; + }; + + timer@06000c00 { + compatible = "allwinner,sun4i-a10-timer"; + reg = <0x06000c00 0xa0>; + interrupts = <0 18 4>, + <0 19 4>, + <0 20 4>, + <0 21 4>, + <0 22 4>, + <0 23 4>; + + clocks = <&osc24M>; + }; + + uart0: serial@07000000 { + compatible = "snps,dw-apb-uart"; + reg = <0x07000000 0x400>; + interrupts = <0 0 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + + uart1: serial@07000400 { + compatible = "snps,dw-apb-uart"; + reg = <0x07000400 0x400>; + interrupts = <0 1 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + + uart2: serial@07000800 { + compatible = "snps,dw-apb-uart"; + reg = <0x07000800 0x400>; + interrupts = <0 2 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + + uart3: serial@07000c00 { + compatible = "snps,dw-apb-uart"; + reg = <0x07000c00 0x400>; + interrupts = <0 3 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + + uart4: serial@07001000 { + compatible = "snps,dw-apb-uart"; + reg = <0x07001000 0x400>; + interrupts = <0 4 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + + uart5: serial@07001400 { + compatible = "snps,dw-apb-uart"; + reg = <0x07001400 0x400>; + interrupts = <0 5 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + + r_wdt: watchdog@08001000 { + compatible = "allwinner,sun6i-a31-wdt"; + reg = <0x08001000 0x20>; + interrupts = <0 36 4>; + }; + + r_uart: serial@08002800 { + compatible = "snps,dw-apb-uart"; + reg = <0x08002800 0x400>; + interrupts = <0 38 4>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&osc24M>; + status = "disabled"; + }; + }; +}; -- 2.1.0 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1411311493-24344-4-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>]
* Re: [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi [not found] ` <1411311493-24344-4-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> @ 2014-09-24 6:37 ` Maxime Ripard 2014-09-24 7:14 ` Chen-Yu Tsai 0 siblings, 1 reply; 17+ messages in thread From: Maxime Ripard @ 2014-09-24 6:37 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA [-- Attachment #1: Type: text/plain, Size: 5391 bytes --] Hi, Thanks, a lot for your patches :) On Sun, Sep 21, 2014 at 10:58:10PM +0800, Chen-Yu Tsai wrote: > The Allwinner A80 is a new multi-purpose SoC with 4 Cortex-A7 and > 4 Cortex-A15 cores in a big.LITTLE architecture, and a 64-core > PowerVR G6230 GPU. > > Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> > --- > arch/arm/boot/dts/sun9i-a80.dtsi | 280 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 280 insertions(+) > create mode 100644 arch/arm/boot/dts/sun9i-a80.dtsi > > diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi > new file mode 100644 > index 0000000..f23ea59 > --- /dev/null > +++ b/arch/arm/boot/dts/sun9i-a80.dtsi > @@ -0,0 +1,280 @@ > +/* > + * Copyright 2014 Chen-Yu Tsai > + * > + * Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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 library; if not, write to the Free > + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, > + * MA 02110-1301 USA > + * > + * 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/ "skeleton.dtsi" > + > +/ { > + interrupt-parent = <&gic>; > + > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + serial3 = &uart3; > + serial4 = &uart4; > + serial5 = &uart5; > + serial6 = &r_uart; > + }; > + > + cpu-map { > + cluster0 { > + core0 { > + cpu = <&cpu0>; > + }; > + core1 { > + cpu = <&cpu1>; > + }; > + core2 { > + cpu = <&cpu2>; > + }; > + core3 { > + cpu = <&cpu3>; > + }; Having separation lines between the cores here would be nice. > + }; > + > + cluster1 { > + core0 { > + cpu = <&cpu4>; > + }; > + core1 { > + cpu = <&cpu5>; > + }; > + core2 { > + cpu = <&cpu6>; > + }; > + core3 { > + cpu = <&cpu7>; > + }; > + }; > + }; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu0: cpu@0 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <0x0>; > + }; > + > + cpu1: cpu@1 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <0x1>; > + }; > + > + cpu2: cpu@2 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <0x2>; > + }; > + > + cpu3: cpu@3 { > + compatible = "arm,cortex-a7"; > + device_type = "cpu"; > + reg = <0x3>; > + }; > + > + cpu4: cpu@100 { > + compatible = "arm,cortex-a15"; > + device_type = "cpu"; > + reg = <0x100>; > + }; > + > + cpu5: cpu@101 { > + compatible = "arm,cortex-a15"; > + device_type = "cpu"; > + reg = <0x101>; > + }; > + > + cpu6: cpu@102 { > + compatible = "arm,cortex-a15"; > + device_type = "cpu"; > + reg = <0x102>; > + }; > + > + cpu7: cpu@103 { > + compatible = "arm,cortex-a15"; > + device_type = "cpu"; > + reg = <0x103>; > + }; > + }; > + > + memory { > + reg = <0x20000000 0x40000000>; Usually, what we put there was the maximum amount of RAM that can be handled by the SoC. I think that it can go above 1GB It looks fine otherwise, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Re: [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi 2014-09-24 6:37 ` Maxime Ripard @ 2014-09-24 7:14 ` Chen-Yu Tsai [not found] ` <CAGb2v64voZpK_82wtkErRowR0vjEUALNUwvCx_sd8Q5wb4Hq-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-24 7:14 UTC (permalink / raw) To: linux-sunxi Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA On Wed, Sep 24, 2014 at 2:37 PM, Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > Hi, > > Thanks, a lot for your patches :) > > On Sun, Sep 21, 2014 at 10:58:10PM +0800, Chen-Yu Tsai wrote: >> The Allwinner A80 is a new multi-purpose SoC with 4 Cortex-A7 and >> 4 Cortex-A15 cores in a big.LITTLE architecture, and a 64-core >> PowerVR G6230 GPU. >> >> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> >> --- >> arch/arm/boot/dts/sun9i-a80.dtsi | 280 +++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 280 insertions(+) >> create mode 100644 arch/arm/boot/dts/sun9i-a80.dtsi >> >> diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi >> new file mode 100644 >> index 0000000..f23ea59 >> --- /dev/null >> +++ b/arch/arm/boot/dts/sun9i-a80.dtsi >> @@ -0,0 +1,280 @@ >> +/* >> + * Copyright 2014 Chen-Yu Tsai >> + * >> + * Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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 library; if not, write to the Free >> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, >> + * MA 02110-1301 USA >> + * >> + * 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/ "skeleton.dtsi" >> + >> +/ { >> + interrupt-parent = <&gic>; >> + >> + aliases { >> + serial0 = &uart0; >> + serial1 = &uart1; >> + serial2 = &uart2; >> + serial3 = &uart3; >> + serial4 = &uart4; >> + serial5 = &uart5; >> + serial6 = &r_uart; >> + }; >> + >> + cpu-map { >> + cluster0 { >> + core0 { >> + cpu = <&cpu0>; >> + }; >> + core1 { >> + cpu = <&cpu1>; >> + }; >> + core2 { >> + cpu = <&cpu2>; >> + }; >> + core3 { >> + cpu = <&cpu3>; >> + }; > > Having separation lines between the cores here would be nice. OK. >> + }; >> + >> + cluster1 { >> + core0 { >> + cpu = <&cpu4>; >> + }; >> + core1 { >> + cpu = <&cpu5>; >> + }; >> + core2 { >> + cpu = <&cpu6>; >> + }; >> + core3 { >> + cpu = <&cpu7>; >> + }; >> + }; >> + }; >> + >> + cpus { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + cpu0: cpu@0 { >> + compatible = "arm,cortex-a7"; >> + device_type = "cpu"; >> + reg = <0x0>; >> + }; >> + >> + cpu1: cpu@1 { >> + compatible = "arm,cortex-a7"; >> + device_type = "cpu"; >> + reg = <0x1>; >> + }; >> + >> + cpu2: cpu@2 { >> + compatible = "arm,cortex-a7"; >> + device_type = "cpu"; >> + reg = <0x2>; >> + }; >> + >> + cpu3: cpu@3 { >> + compatible = "arm,cortex-a7"; >> + device_type = "cpu"; >> + reg = <0x3>; >> + }; >> + >> + cpu4: cpu@100 { >> + compatible = "arm,cortex-a15"; >> + device_type = "cpu"; >> + reg = <0x100>; >> + }; >> + >> + cpu5: cpu@101 { >> + compatible = "arm,cortex-a15"; >> + device_type = "cpu"; >> + reg = <0x101>; >> + }; >> + >> + cpu6: cpu@102 { >> + compatible = "arm,cortex-a15"; >> + device_type = "cpu"; >> + reg = <0x102>; >> + }; >> + >> + cpu7: cpu@103 { >> + compatible = "arm,cortex-a15"; >> + device_type = "cpu"; >> + reg = <0x103>; >> + }; >> + }; >> + >> + memory { >> + reg = <0x20000000 0x40000000>; > > Usually, what we put there was the maximum amount of RAM that can be > handled by the SoC. I think that it can go above 1GB With LPAE, it can handle 8GB. But the DT won't take 64bit values. I'm not sure how to get it in. I'll look around for examples. > It looks fine otherwise, thanks! Thanks! ChenYu ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <CAGb2v64voZpK_82wtkErRowR0vjEUALNUwvCx_sd8Q5wb4Hq-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Re: [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi [not found] ` <CAGb2v64voZpK_82wtkErRowR0vjEUALNUwvCx_sd8Q5wb4Hq-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-09-24 7:18 ` Gregory CLEMENT [not found] ` <54227038.2020805-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Gregory CLEMENT @ 2014-09-24 7:18 UTC (permalink / raw) To: Chen-Yu Tsai Cc: linux-sunxi, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA Hi Chen-Yu, >>> + >>> + memory { >>> + reg = <0x20000000 0x40000000>; >> >> Usually, what we put there was the maximum amount of RAM that can be >> handled by the SoC. I think that it can go above 1GB > > With LPAE, it can handle 8GB. But the DT won't take 64bit values. > I'm not sure how to get it in. I'll look around for examples. You can have a look on what we did for Armada XP: arch/arm/boot/dts/armada-370-xp.dtsi arch/arm/boot/dts/armada-xp.dtsi arch/arm/boot/dts/armada-xp-gp.dts I created a skeleton64.dtsi for this case Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <54227038.2020805-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: Re: [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi [not found] ` <54227038.2020805-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-09-24 7:27 ` Chen-Yu Tsai 2014-09-24 11:53 ` Chen-Yu Tsai 1 sibling, 0 replies; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-24 7:27 UTC (permalink / raw) To: linux-sunxi Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, Shuge, Meng Zhang, yhf, ctl On Wed, Sep 24, 2014 at 3:18 PM, Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > Hi Chen-Yu, > > >>>> + >>>> + memory { >>>> + reg = <0x20000000 0x40000000>; >>> >>> Usually, what we put there was the maximum amount of RAM that can be >>> handled by the SoC. I think that it can go above 1GB >> >> With LPAE, it can handle 8GB. But the DT won't take 64bit values. >> I'm not sure how to get it in. I'll look around for examples. > > You can have a look on what we did for Armada XP: > > arch/arm/boot/dts/armada-370-xp.dtsi > arch/arm/boot/dts/armada-xp.dtsi > arch/arm/boot/dts/armada-xp-gp.dts > > I created a skeleton64.dtsi for this case Thanks! I was wondering what that was for. ChenYu ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Re: [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi [not found] ` <54227038.2020805-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-09-24 7:27 ` Chen-Yu Tsai @ 2014-09-24 11:53 ` Chen-Yu Tsai [not found] ` <CAGb2v64yGmdLeWmA=+nxD85DbQf_xxUNx3n3oedFZi51uc50+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 1 reply; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-24 11:53 UTC (permalink / raw) To: Gregory CLEMENT, Maxime Ripard Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, Shuge, Meng Zhang, yhf, ctl, linux-sunxi On Wed, Sep 24, 2014 at 3:18 PM, Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > Hi Chen-Yu, > > >>>> + >>>> + memory { >>>> + reg = <0x20000000 0x40000000>; >>> >>> Usually, what we put there was the maximum amount of RAM that can be >>> handled by the SoC. I think that it can go above 1GB >> >> With LPAE, it can handle 8GB. But the DT won't take 64bit values. >> I'm not sure how to get it in. I'll look around for examples. > > You can have a look on what we did for Armada XP: > > arch/arm/boot/dts/armada-370-xp.dtsi > arch/arm/boot/dts/armada-xp.dtsi > arch/arm/boot/dts/armada-xp-gp.dts > > I created a skeleton64.dtsi for this case Thanks for the tip. Before I send v2, I do have a question. I'm using ranges = <0 0 0 0x20000000>; in the clocks and soc node to avoid having to use 64bit values for all addresses and sizes. Would this be undesirable, even bad practice maybe? http://linux-sunxi.org/A80/Memory_map is a document I pieced together from Allwinner's SDK header files. AFAIK only the memory goes above the 4GB limit. All peripherals are under 512 MB, 256MB even. Thanks ChenYu ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <CAGb2v64yGmdLeWmA=+nxD85DbQf_xxUNx3n3oedFZi51uc50+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Re: [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi [not found] ` <CAGb2v64yGmdLeWmA=+nxD85DbQf_xxUNx3n3oedFZi51uc50+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-09-24 12:36 ` Gregory CLEMENT 0 siblings, 0 replies; 17+ messages in thread From: Gregory CLEMENT @ 2014-09-24 12:36 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, Shuge, Meng Zhang, yhf, ctl, linux-sunxi Hi Chen-Yu, > > Thanks for the tip. Before I send v2, I do have a question. I'm using > > ranges = <0 0 0 0x20000000>; > > in the clocks and soc node to avoid having to use 64bit values for all > addresses and sizes. Would this be undesirable, even bad practice maybe? We did something like that for all the internal registers too as they are all under 4GB. In our case the use of a range really makes sens because the hardware addresses were configurable. You don't have such requirement so I can't say if it is a bad practice. From my point of view it seems sensible but I am not an DT expert. Grégory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 4/6] ARM: dts: sun9i: Add A80 Optimus Board support [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> ` (2 preceding siblings ...) 2014-09-21 14:58 ` [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi Chen-Yu Tsai @ 2014-09-21 14:58 ` Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 5/6] devicetree: bindings: Add vendor prefix for Merrii Technology Co., Ltd Chen-Yu Tsai ` (2 subsequent siblings) 6 siblings, 0 replies; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA The A80 Optimus Board is was launched with the Allwinner A80 SoC. It was jointly developed by Allwinner and Merrii. This board has a UART port, a JTAG connector, USB host ports, a USB 3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash, 4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone jack, IR receiver, and additional GPIO headers. This patch adds only basic support. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/sun9i-a80-optimus.dts | 66 +++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 arch/arm/boot/dts/sun9i-a80-optimus.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 2f42b18..098f319 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -424,6 +424,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-pcduino3.dtb dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-a23-ippo-q8h-v5.dtb +dtb-$(CONFIG_MACH_SUN9I) += \ + sun9i-a80-optimus.dtb dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ tegra20-iris-512.dtb \ tegra20-medcom-wide.dtb \ diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts new file mode 100644 index 0000000..b46391a --- /dev/null +++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts @@ -0,0 +1,66 @@ +/* + * Copyright 2014 Chen-Yu Tsai + * + * Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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 library; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * 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/ "sun9i-a80.dtsi" + +/ { + model = "Merrii A80 Optimus Board"; + compatible = "merrii,a80-optimus", "allwinner,sun9i-a80"; + + chosen { + bootargs = "earlyprintk console=ttyS0,115200"; + }; + + soc@00000000 { + uart0: serial@07000000 { + status = "okay"; + }; + }; +}; -- 2.1.0 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 5/6] devicetree: bindings: Add vendor prefix for Merrii Technology Co., Ltd. [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> ` (3 preceding siblings ...) 2014-09-21 14:58 ` [PATCH 4/6] ARM: dts: sun9i: Add A80 Optimus Board support Chen-Yu Tsai @ 2014-09-21 14:58 ` Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 6/6] devicetree: bindings: Document supported Allwinner sunxi SoCs Chen-Yu Tsai 2014-09-24 6:41 ` [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC Maxime Ripard 6 siblings, 0 replies; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA Merrii Technology Co., Ltd. is a Chinese ARM integration developer that specializes in Allwinner SoC based designs. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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 ac7269f..d3a96ac 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -81,6 +81,7 @@ lltc Linear Technology Corporation marvell Marvell Technology Group Ltd. maxim Maxim Integrated Products mediatek MediaTek Inc. +merrii Merrii Technology Co., Ltd. micrel Micrel Inc. microchip Microchip Technology Inc. mosaixtech Mosaix Technologies, Inc. -- 2.1.0 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 6/6] devicetree: bindings: Document supported Allwinner sunxi SoCs [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> ` (4 preceding siblings ...) 2014-09-21 14:58 ` [PATCH 5/6] devicetree: bindings: Add vendor prefix for Merrii Technology Co., Ltd Chen-Yu Tsai @ 2014-09-21 14:58 ` Chen-Yu Tsai 2014-09-24 6:41 ` [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC Maxime Ripard 6 siblings, 0 replies; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-21 14:58 UTC (permalink / raw) To: Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA This adds a list of supported Allwinner SoC bindings. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- Documentation/devicetree/bindings/arm/sunxi.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sunxi.txt diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt new file mode 100644 index 0000000..d7d1039 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/sunxi.txt @@ -0,0 +1,12 @@ +Allwinner sunXi Platforms Device Tree Bindings + +Each device tree must specify which Allwinner SoC it uses, +using one of the following compatible stirngs: + + allwinner,sun4i-a10 + allwinner,sun5i-a10s + allwinner,sun5i-a13 + allwinner,sun6i-a31 + allwinner,sun7i-a20 + allwinner,sun8i-a23 + allwinner,sun9i-a80 -- 2.1.0 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> ` (5 preceding siblings ...) 2014-09-21 14:58 ` [PATCH 6/6] devicetree: bindings: Document supported Allwinner sunxi SoCs Chen-Yu Tsai @ 2014-09-24 6:41 ` Maxime Ripard 2014-09-24 10:40 ` Chen-Yu Tsai 6 siblings, 1 reply; 17+ messages in thread From: Maxime Ripard @ 2014-09-24 6:41 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Shuge, Meng Zhang, yhf-HcjymKqD97rQT0dZR+AlfA, ctl-HcjymKqD97rQT0dZR+AlfA [-- Attachment #1: Type: text/plain, Size: 1070 bytes --] Hi Chen-Yu, On Sun, Sep 21, 2014 at 10:58:07PM +0800, Chen-Yu Tsai wrote: > Hi everyone, > > This patch series adds very basic support for Allwinner's A80 SoC, > a big.LITTLE architecture with 4 Cortex-A7s and 4 Cortex-A15s. > > Development is done on the A80 Optimus Board, the defacto development > board for the A80, with the accompanying SDK as a reference. > > So far I've been unable to get the board to boot from MMC, or > using Android fastboot. I'm using Allwinner's FEL mode to load > the bootloader and kernel+dtb image over USB. Notes on my attempts > can be found here: http://linux-sunxi.org/User:Wens#A80_Optimus It looks very nice, thanks a lot. You'll find a minor comments inline. One thing I forgot to ask you about when doing the A23, and that would nice to do is to update the documentation we have in Documentation/arm/sunxi/README with the A23 and A80 infos you've been able to gather. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC 2014-09-24 6:41 ` [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC Maxime Ripard @ 2014-09-24 10:40 ` Chen-Yu Tsai [not found] ` <CAGb2v659fps1WAqkdnbnTtHxAdCZQy+rYXDC90Y44pPtcxnsFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Chen-Yu Tsai @ 2014-09-24 10:40 UTC (permalink / raw) To: Maxime Ripard Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, linux-sunxi, Shuge, Meng Zhang, ctl Hi, On Wed, Sep 24, 2014 at 2:41 PM, Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > Hi Chen-Yu, > > On Sun, Sep 21, 2014 at 10:58:07PM +0800, Chen-Yu Tsai wrote: >> Hi everyone, >> >> This patch series adds very basic support for Allwinner's A80 SoC, >> a big.LITTLE architecture with 4 Cortex-A7s and 4 Cortex-A15s. >> >> Development is done on the A80 Optimus Board, the defacto development >> board for the A80, with the accompanying SDK as a reference. >> >> So far I've been unable to get the board to boot from MMC, or >> using Android fastboot. I'm using Allwinner's FEL mode to load >> the bootloader and kernel+dtb image over USB. Notes on my attempts >> can be found here: http://linux-sunxi.org/User:Wens#A80_Optimus > > It looks very nice, thanks a lot. You'll find a minor comments inline. > > One thing I forgot to ask you about when doing the A23, and that would > nice to do is to update the documentation we have in > Documentation/arm/sunxi/README with the A23 and A80 infos you've been > able to gather. I'll add the A80 datasheet in v2, and do a separate series for A23, A31, and A31s docs. Thanks ChenYu ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <CAGb2v659fps1WAqkdnbnTtHxAdCZQy+rYXDC90Y44pPtcxnsFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC [not found] ` <CAGb2v659fps1WAqkdnbnTtHxAdCZQy+rYXDC90Y44pPtcxnsFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-09-24 13:28 ` Maxime Ripard 0 siblings, 0 replies; 17+ messages in thread From: Maxime Ripard @ 2014-09-24 13:28 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-arm-kernel, devicetree, linux-kernel, linux-sunxi, Shuge, Meng Zhang, ctl [-- Attachment #1: Type: text/plain, Size: 1507 bytes --] On Wed, Sep 24, 2014 at 06:40:42PM +0800, Chen-Yu Tsai wrote: > Hi, > > On Wed, Sep 24, 2014 at 2:41 PM, Maxime Ripard > <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > > Hi Chen-Yu, > > > > On Sun, Sep 21, 2014 at 10:58:07PM +0800, Chen-Yu Tsai wrote: > >> Hi everyone, > >> > >> This patch series adds very basic support for Allwinner's A80 SoC, > >> a big.LITTLE architecture with 4 Cortex-A7s and 4 Cortex-A15s. > >> > >> Development is done on the A80 Optimus Board, the defacto development > >> board for the A80, with the accompanying SDK as a reference. > >> > >> So far I've been unable to get the board to boot from MMC, or > >> using Android fastboot. I'm using Allwinner's FEL mode to load > >> the bootloader and kernel+dtb image over USB. Notes on my attempts > >> can be found here: http://linux-sunxi.org/User:Wens#A80_Optimus > > > > It looks very nice, thanks a lot. You'll find a minor comments inline. > > > > One thing I forgot to ask you about when doing the A23, and that would > > nice to do is to update the documentation we have in > > Documentation/arm/sunxi/README with the A23 and A80 infos you've been > > able to gather. > > I'll add the A80 datasheet in v2, and do a separate series for A23, A31, > and A31s docs. Ah, yes, the A31 and A31s didn't have links to the user manuals... Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2014-09-24 13:28 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-09-21 14:58 [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC Chen-Yu Tsai [not found] ` <1411311493-24344-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-21 14:58 ` [PATCH 1/6] ARM: sunxi: Introduce Allwinner A80 support Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 2/6] ARM: sunxi: Add debug uart used by sun9i (Allwinner A80) Chen-Yu Tsai [not found] ` <1411311493-24344-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-24 6:39 ` Maxime Ripard 2014-09-21 14:58 ` [PATCH 3/6] ARM: dts: sunxi: Add Allwinner A80 dtsi Chen-Yu Tsai [not found] ` <1411311493-24344-4-git-send-email-wens-jdAy2FN1RRM@public.gmane.org> 2014-09-24 6:37 ` Maxime Ripard 2014-09-24 7:14 ` Chen-Yu Tsai [not found] ` <CAGb2v64voZpK_82wtkErRowR0vjEUALNUwvCx_sd8Q5wb4Hq-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-09-24 7:18 ` Gregory CLEMENT [not found] ` <54227038.2020805-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-09-24 7:27 ` Chen-Yu Tsai 2014-09-24 11:53 ` Chen-Yu Tsai [not found] ` <CAGb2v64yGmdLeWmA=+nxD85DbQf_xxUNx3n3oedFZi51uc50+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-09-24 12:36 ` Gregory CLEMENT 2014-09-21 14:58 ` [PATCH 4/6] ARM: dts: sun9i: Add A80 Optimus Board support Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 5/6] devicetree: bindings: Add vendor prefix for Merrii Technology Co., Ltd Chen-Yu Tsai 2014-09-21 14:58 ` [PATCH 6/6] devicetree: bindings: Document supported Allwinner sunxi SoCs Chen-Yu Tsai 2014-09-24 6:41 ` [PATCH 0/6] ARM: sunxi: Add basic support for Allwinner A80 SoC Maxime Ripard 2014-09-24 10:40 ` Chen-Yu Tsai [not found] ` <CAGb2v659fps1WAqkdnbnTtHxAdCZQy+rYXDC90Y44pPtcxnsFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-09-24 13:28 ` Maxime Ripard
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).