arm: prima2: add support for CSR SiRFatlas6 SoC
Subsystems (3)
cover arm: prima2: add support for CSR SiRFatlas6 SoC
SiRFatlas6 is much similar with SiRFprimaII with some changes about:
1. deleted l2 cache, sdmmc4, multimedia and so on
2. changed pinmux layout and clock layout
3. DMA access limitation disappears, that makes us not need DMA_ZONE on atlas6
Barry Song (2):
arm: prima2: add new SiRFatlas6 machine in common board ARM/dts: prima2: add .dtsi for atlas6 and .dts for atla6-evb board
arch/arm/boot/dts/atlas6-evb.dts | 78 +++++ arch/arm/boot/dts/atlas6.dtsi | 668 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-prima2/Kconfig | 10 +- arch/arm/mach-prima2/common.c | 21 ++ 4 files changed, 776 insertions(+), 1 deletions(-) create mode 100644 arch/arm/boot/dts/atlas6-evb.dts create mode 100644 arch/arm/boot/dts/atlas6.dtsi
Signature · 6 lines
1.7.5.4 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
PATCH 1/2 arm: prima2: add new SiRFatlas6 machine in common board
From: Barry Song <[email protected]>
SiRFatlas6's machine definition is almost seem with SiRFprimaII except that prima2 has a 256MB DMA zone.
This patch adds SiRFatlas6 machine in common board files, and also adds atlas6 arch node in Kconfig.
--- arch/arm/mach-prima2/Kconfig | 10 +++++++++- arch/arm/mach-prima2/common.c | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletions(-)
arch/arm/mach-prima2/Kconfig +9 -1
@@ -1,6 +1,14 @@ if ARCH_SIRF -menu "CSR SiRF primaII/Marco/Polo Specific Features" +menu "CSR SiRF atlas6/primaII/Marco/Polo Specific Features" + +config ARCH_ATLAS6 + bool "CSR SiRFSoC ATLAS6 ARM Cortex A9 Platform" + default y + select CPU_V7 + select SIRF_IRQ + help + Support for CSR SiRFSoC ARM Cortex A9 Platform config ARCH_PRIMA2 bool "CSR SiRFSoC PRIMA2 ARM Cortex A9 Platform"
arch/arm/mach-prima2/common.c +21 -0
@@ -37,6 +37,27 @@ static __init void sirfsoc_map_io(void)sirfsoc_map_scu (); } +#ifdef CONFIG_ARCH_ATLAS6 +static const char *atlas6_dt_match[]__initdata = { +"sirf,atlas6" , +NULL +}; + +DT_MACHINE_START (ATLAS6_DT ,"Generic ATLAS6 (Flattened Device Tree)" ) +/* Maintainer: Barry Song <[email protected]> */ + .map_io = sirfsoc_map_io, + .init_irq = sirfsoc_of_irq_init, + .init_time = sirfsoc_prima2_timer_init, +#ifdef CONFIG_MULTI_IRQ_HANDLER + .handle_irq = sirfsoc_handle_irq, +#endif + .init_machine = sirfsoc_mach_init, + .init_late = sirfsoc_init_late, + .dt_compat = atlas6_dt_match, + .restart = sirfsoc_restart, +MACHINE_END +#endif +#ifdef CONFIG_ARCH_PRIMA2 static const char *prima2_dt_match[]__initdata = { "sirf,prima2",
Signature · 6 lines
1.7.5.4 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
PATCH 2/2 ARM/dts: prima2: add .dtsi for atlas6 and .dts for atla6-evb board
In reply to Barry SongFrom: Barry Song <[email protected]>
atlas6.dtsi is basically a copy of prima2.dtsi as most components are compatible with prima2 except that:
1. node of l2 cache is deleted
2. node multimedia engine is deleted
3. node of sata is deleted
4. node of sdmmc4 is deleted
5. powervr is moved to "powervr,sgx510"
6. pinctrl is moved to atlas6 as pinmux layout has big changes in atlas6
7. clock is moved to atlas6 as clock layout has changes in atlas6
--- arch/arm/boot/dts/atlas6-evb.dts | 78 +++++ arch/arm/boot/dts/atlas6.dtsi | 668 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 746 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/atlas6-evb.dts create mode 100644 arch/arm/boot/dts/atlas6.dtsi
arch/arm/boot/dts/atlas6-evb.dts new file +78 -0
@@ -0,0 +1,78 @@ +/* + * DTS file for CSR SiRFatlas6 Evaluation Board + * + * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company. + * + * Licensed under GPLv2 or later. + */ + +/dts-v1/; + +/include/ "atlas6.dtsi" + +/ { + model = "CSR SiRFatlas6 Evaluation Board"; + compatible = "sirf,atlas6-cb", "sirf,atlas6"; + + memory { + reg = <0x00000000 0x20000000>; + }; + + axi { + peri-iobg { + uart at b0060000 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins_a>; + }; + spi at b00d0000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins_a>; + spi at 0 { + compatible = "spidev"; + reg = <0>; + spi-max-frequency = <1000000>; + }; + }; + spi at b0170000 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pins_a>; + }; + i2c0: i2c at b00e0000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + lcd at 40 { + compatible = "sirf,lcd"; + reg = <0x40>; + }; + }; + + }; + disp-iobg { + lcd at 90010000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_24pins_a>; + }; + }; + }; + display: display at 0 { + panels { + panel0: panel at 0 { + panel-name = "Innolux TFT"; + hactive = <800>; + vactive = <480>; + left_margin = <20>; + right_margin = <234>; + upper_margin = <3>; + lower_margin = <41>; + hsync_len = <3>; + vsync_len = <2>; + pixclock = <33264000>; + sync = <3>; + timing = <0x88>; + }; + }; + }; +};
arch/arm/boot/dts/atlas6.dtsi new file +668 -0
668 lines not on this page · raw message
Signature · 6 lines
1.7.5.4 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
cover arm: prima2: add support for CSR SiRFatlas6 SoC
In reply to Barry SongQuoted 10 lines · Barry Song
SiRFatlas6 is much similar with SiRFprimaII with some changes about:
1. deleted l2 cache, sdmmc4, multimedia and so on
2. changed pinmux layout and clock layout
3. DMA access limitation disappears, that makes us not needDMA_ZONEon atlas6Barry Song (2):
arm: prima2: add new SiRFatlas6 machine in common board ARM/dts: prima2: add .dtsi for atlas6 and .dts for atla6-evb board
It seems I forgot to reply here when I applied these to the next/soc branch.
I have also prepared a series on top of your patches to update mach-prima2 for multiplatform support that I'll send out for review in a bit.
Arnd
cover arm: prima2: add support for CSR SiRFatlas6 SoC
Hi Arnd,
2013/3/20 Arnd Bergmann <[email protected]>:
Quoted 12 lines · Barry Song
Quoted 10 lines
SiRFatlas6 is much similar with SiRFprimaII with some changes about:
1. deleted l2 cache, sdmmc4, multimedia and so on
2. changed pinmux layout and clock layout
3. DMA access limitation disappears, that makes us not needDMA_ZONEon atlas6Barry Song (2):
arm: prima2: add new SiRFatlas6 machine in common board ARM/dts: prima2: add .dtsi for atlas6 and .dts for atla6-evb board
Quoted 4 lines
It seems I forgot to reply here when I applied these to the next/soc branch.
I have also prepared a series on top of your patches to update mach-prima2 for multiplatform support that I'll send out for review in a bit.
Thanks very much for your great job on the CSR platform. i will take some time to test the patch series.
Quoted 3 lines
Arnd
-barry