ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Subsystems (4)
PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.
---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Remove kirkwood_uart0_init().
arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/kirkwood-openblocks_a6.dts | 39 ++++++++++++++ arch/arm/configs/kirkwood_defconfig | 1 + arch/arm/mach-kirkwood/Kconfig | 7 +++ arch/arm/mach-kirkwood/Makefile | 1 + arch/arm/mach-kirkwood/board-dt.c | 4 ++ arch/arm/mach-kirkwood/board-openblocks_a6.c | 71 ++++++++++++++++++++++++++ arch/arm/mach-kirkwood/common.h | 6 +++ 8 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/kirkwood-openblocks_a6.dts create mode 100644 arch/arm/mach-kirkwood/board-openblocks_a6.c
arch/arm/boot/dts/Makefile +2 -1
@@ -41,7 +41,8 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \ kirkwood-lschlv2.dtb \ kirkwood-lsxhl.dtb \ kirkwood-ts219-6281.dtb \ - kirkwood-ts219-6282.dtb + kirkwood-ts219-6282.dtb \ + kirkwood-openblocks_a6.dtb dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \ msm8960-cdp.dtb dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
arch/arm/boot/dts/kirkwood-openblocks_a6.dts new file +39 -0
@@ -0,0 +1,39 @@ +/dts-v1/; + +/include/ "kirkwood.dtsi" + +/ { + model = "Plat'Home OpenBlocksA6"; + compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "marvell,kirkwood"; + + memory { + device_type = "memory"; + reg = <0x00000000 0x20000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8 earlyprintk"; + }; + + ocp at f1000000 { + serial at 12000 { + clock-frequency = <200000000>; + status = "ok"; + }; + + serial at 12100 { + clock-frequency = <200000000>; + status = "ok"; + }; + + nand at 3000000 { + chip-delay = <25>; + status = "okay"; + }; + + sata at 80000 { + nr-ports = <1>; + status = "okay"; + }; + }; +};
arch/arm/configs/kirkwood_defconfig +1 -0
@@ -27,6 +27,7 @@ CONFIG_MACH_GOFLEXNET_DT=y CONFIG_MACH_LSXL_DT=y CONFIG_MACH_IOMEGA_IX2_200_DT=y CONFIG_MACH_KM_KIRKWOOD_DT=y +CONFIG_MACH_OPENBLOCKS_A6_DT=y CONFIG_MACH_TS219=y CONFIG_MACH_TS41X=y CONFIG_MACH_DOCKSTAR=y
arch/arm/mach-kirkwood/Kconfig +7 -0
@@ -130,6 +130,13 @@ config MACH_KM_KIRKWOOD_DT Say 'Y' here if you want your kernel to support the Keymile Kirkwood Reference Desgin, using Flattened Device Tree. +config MACH_OPENBLOCKS_A6_DT + bool "Plat'Home OpenBlocks A6 (Flattened Device Tree)" + select ARCH_KIRKWOOD_DT + help + Say 'Y' here if you want your kernel to support the + Plat'Home OpenBlocks A6 (Flattened Device Tree). + config MACH_TS219 bool "QNAP TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and TS-219P+ Turbo NAS" help
arch/arm/mach-kirkwood/Makefile +1 -0
@@ -31,3 +31,4 @@ obj-$(CONFIG_MACH_GOFLEXNET_DT) += board-goflexnet.o obj-$(CONFIG_MACH_LSXL_DT) += board-lsxl.o obj-$(CONFIG_MACH_IOMEGA_IX2_200_DT) += board-iomega_ix2_200.o obj-$(CONFIG_MACH_KM_KIRKWOOD_DT) += board-km_kirkwood.o +obj-$(CONFIG_MACH_OPENBLOCKS_A6_DT) += board-openblocks_a6.o
arch/arm/mach-kirkwood/board-dt.c +4 -0
@@ -94,6 +94,9 @@ static void __init kirkwood_dt_init(void)if (of_machine_is_compatible ("keymile,km_kirkwood" ))km_kirkwood_init (); +if (of_machine_is_compatible ("plathome,openblocks-a6" )) +openblocks_a6_init (); +of_platform_populate (NULL , kirkwood_dt_match_table, kirkwood_auxdata_lookup,NULL ); }
@@ -110,6 +113,7 @@ static const char *kirkwood_dt_board_compat[] = {"buffalo,lsxl" ,"iom,ix2-200" ,"keymile,km_kirkwood" , +"plathome,openblocks-a6" , NULL };
arch/arm/mach-kirkwood/board-openblocks_a6.c new file +71 -0
71 lines not on this page · raw message
arch/arm/mach-kirkwood/common.h +6 -0
@@ -112,6 +112,12 @@ void km_kirkwood_init(void);static inline void km_kirkwood_init (void ) {};#endif +#ifdef CONFIG_MACH_OPENBLOCKS_A6_DT +void openblocks_a6_init (void ); +#else +static inline void openblocks_a6_init (void ) {}; +#endif +/* early init functions not converted to fdt yet */ char *kirkwood_id (void );void kirkwood_l2_init (void );
Signature · 1 line
1.7.10.4
PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Nobuhiro,
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().
Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
thx,
Jason.
PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Hi,
Quoted 14 lines · Jason Cooper
Nobuhiro,
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().
Quoted 3 lines
Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
Although I knew about it , I forgot adding "V2".
Quoted 3 lines
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
Thank you.
Quoted 4 lines
thx,
Jason.
Best regards,
Nobuhiro
Signature · 3 lines
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Hi, Jason.
Quoted 17 lines · Nobuhiro Iwamatsu
Hi,
Quoted 14 lines · Jason Cooper
Nobuhiro,
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().
Quoted 9 lines
Quoted 3 lines
Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
Although I knew about it , I forgot adding "V2".
Quoted 3 lines
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
Where have you managed this patch? http://git.infradead.org/ ? I would like to put this into 3.8. And I would like to follow some functions (clock frame work etc.) updated.
Best regards,
Nobuhiro
Signature · 3 lines
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Quoted 18 lines · Nobuhiro Iwamatsu
Quoted 17 lines · Nobuhiro Iwamatsu
Quoted 15 lines · Jason Cooper
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
Quoted 7 lines
Quoted 5 lines
Although I knew about it , I forgot adding "V2".
Quoted 3 lines
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
Where have you managed this patch? http://git.infradead.org/ ?
Yes, mostly on my local machine currently. I'm busy sorting everything. ;-)
Quoted 2 lines
I would like to put this into 3.8. And I would like to follow some functions (clock frame work etc.) updated.
I'm not sure what you mean by the second sentence. At any rate, Thomas has included your patch in his pull request, which I have merged in for 3.8. I should have everything up in the next day with pull requests sent to Arnd.
thx,
Jason.
PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Quoted 27 lines · Jason Cooper
Quoted 18 lines · Nobuhiro Iwamatsu
Quoted 17 lines · Nobuhiro Iwamatsu
Quoted 15 lines · Jason Cooper
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
Quoted 7 lines
Quoted 5 lines
Although I knew about it , I forgot adding "V2".
Quoted 3 lines
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
Where have you managed this patch? http://git.infradead.org/ ?
Quoted 8 lines
Yes, mostly on my local machine currently. I'm busy sorting everything. ;-)
Quoted 2 lines
I would like to put this into 3.8. And I would like to follow some functions (clock frame work etc.) updated.
I'm not sure what you mean by the second sentence. At any rate, Thomas has included your patch in his pull request,
Hi Jason
What out for the difference between OpenBlocks A6 and AX4. A6 is kirkwood, AX4 is XP. I've seen patches from Thomas for AX4. I don't remember patches for A6 from Thomas. For A6 it would be nice to have pinctrl, convert EHCI to DT, etc.
Happy Thanks Giving,
Andrew
PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
Quoted 37 lines · Andrew Lunn
Quoted 27 lines · Jason Cooper
Quoted 18 lines · Nobuhiro Iwamatsu
Quoted 17 lines · Nobuhiro Iwamatsu
Quoted 15 lines · Jason Cooper
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
Quoted 7 lines
Quoted 5 lines
Although I knew about it , I forgot adding "V2".
Quoted 3 lines
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
Where have you managed this patch? http://git.infradead.org/ ?
Quoted 8 lines
Yes, mostly on my local machine currently. I'm busy sorting everything. ;-)
Quoted 2 lines
I would like to put this into 3.8. And I would like to follow some functions (clock frame work etc.) updated.
I'm not sure what you mean by the second sentence. At any rate, Thomas has included your patch in his pull request,
Quoted 6 lines
Hi Jason
What out for the difference between OpenBlocks A6 and AX4. A6 is kirkwood, AX4 is XP. I've seen patches from Thomas for AX4. I don't remember patches for A6 from Thomas. For A6 it would be nice to have pinctrl, convert EHCI to DT, etc.
Ahhh, good catch! I'll add it in.
Quoted 1 line
Happy Thanks Giving,
Thanks!
Jason.
PATCH 1/1 ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
In reply to Andrew LunnHi, Andrew.
Quoted 39 lines · Andrew Lunn
Quoted 27 lines · Jason Cooper
Quoted 18 lines · Nobuhiro Iwamatsu
Quoted 17 lines · Nobuhiro Iwamatsu
Quoted 15 lines · Jason Cooper
Quoted 10 lines · Nobuhiro Iwamatsu
Add support for Plat'Home OpenBlocks A6 using the device tree where possible.
This commit supports SATA, USB, ether and serial console.Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
V2:
- Remove unnecessary value from bootargs.
- Update comment for MPP table.
- Removekirkwood_uart0_init().Thanks for the patch. One small note. In the future, please add a 'V2' to the subject line, eg "[PATCH V2] ...". It really helps us keep track of which one to merge.
Quoted 7 lines
Quoted 5 lines
Although I knew about it , I forgot adding "V2".
Quoted 3 lines
No need to resend, I'll keep track of it since I'm about to pull everything together over the next few days.
Where have you managed this patch? http://git.infradead.org/ ?
Quoted 8 lines
Yes, mostly on my local machine currently. I'm busy sorting everything. ;-)
Quoted 2 lines
I would like to put this into 3.8. And I would like to follow some functions (clock frame work etc.) updated.
I'm not sure what you mean by the second sentence. At any rate, Thomas has included your patch in his pull request,
Hi Jason
Quoted 9 lines
What out for the difference between OpenBlocks A6 and AX4. A6 is kirkwood, AX4 is XP. I've seen patches from Thomas for AX4. I don't remember patches for A6 from Thomas. For A6 it would be nice to have pinctrl, convert EHCI to DT, etc.
Happy Thanks Giving,
Andrew
Thank you for your advice.
I explained that was not enough.
Best regards,
Nobuhiro
Signature · 3 lines
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6