OpenCloudOS-Kernel/arch/arm/mach-kirkwood
Tero Jaasko afcad88425 arm: kirkwood: add support for ZyXEL NSA310
Hello, Andrew

> > +#define NSA310_GPIO_LED_ESATA_GREEN	12
> > <..>
> > +#define NSA310_GPIO_POWER_OFF		48
>
> It looks like most of these are not used. Please remove them.

True. Fixed.

> > +static struct mtd_partition nsa310_mtd_parts[] = {
> > +	{
> > +		.name	= "uboot",
> > +		.offset	= 0,
> > +		.size	= 0x100000,
> > +		.mask_flags = MTD_WRITEABLE,
> > +	}, {
> > <..>
> You should be able to put all that into DT. Take a look at

Correct. I did the conversion and tested that the partitions
can be read with dd and produce exactly the same data before and
after conversion. So, the partition offsets at least should be fine.

> > +static struct i2c_board_info __initdata nsa310_i2c_info[] = {
> > +	{ I2C_BOARD_INFO("adt7476", 0x2e) },
> > +};
>
> You can also do this in DT as well. kirkwood-ts219.dtsi has
>
>                 i2c@11000 {
>                         status = "okay";
>                         clock-frequency = <400000>;

Ok, I did convert the i2c definition to use the devicetree.
The adt7476 device itself is not at reach of device tree,
AFAIK and requires more work at there?

Thanks for your valuable comments. Following is a new patch that
should address the problems and mistakes you pointed and also
some of the pointed by Jason Cooper. The nand and i2c are now
defined at DT and I also removed the pointless defines and
ARM_APPENDED_DTB. It is based against the Linus' official
3.6 version.

Best regards,
Tero

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
2012-11-21 20:59:30 +00:00
..
include/mach Merge branch 'kirkwood/addr_decode' of git://git.infradead.org/users/jcooper/linux into late/kirkwood 2012-09-22 14:22:47 -07:00
Kconfig arm: kirkwood: add support for ZyXEL NSA310 2012-11-21 20:59:30 +00:00
Makefile arm: kirkwood: add support for ZyXEL NSA310 2012-11-21 20:59:30 +00:00
Makefile.boot ARM: kirkwood: move new dtbs to common Makefile 2012-09-22 14:24:00 -07:00
addr-map.c arm: plat-orion: use void __iomem pointers for addr-map functions 2012-09-21 18:04:47 +00:00
board-dnskw.c ARM: kirkwood: Trim excess #includes in board-dnskw.c 2012-09-22 15:19:05 +00:00
board-dockstar.c ARM: kirkwood: dockstar: fix header include 2012-09-22 14:24:04 -07:00
board-dreamplug.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
board-dt.c arm: kirkwood: add support for ZyXEL NSA310 2012-11-21 20:59:30 +00:00
board-goflexnet.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
board-ib62x0.c ARM: Kirkwood: Describe IB62x0 LEDs in DT. 2012-07-27 16:50:18 +02:00
board-iconnect.c ARM: Kirkwood: Describe iconnect nand in DT. 2012-09-22 14:38:58 +00:00
board-iomega_ix2_200.c ARM: Kirkwood: Iomega ix2-200 DT support 2012-09-21 15:12:48 +00:00
board-km_kirkwood.c ARM: initial DTS support for km_kirkwood 2012-09-21 17:07:17 +00:00
board-lsxl.c ARM: kirkwood: use gpio-fan DT binding on lsxl 2012-11-21 20:59:05 +00:00
board-ns2.c ARM: kirkwood: DT board setup for Network Space Mini v2 2012-11-21 20:58:49 +00:00
board-nsa310.c arm: kirkwood: add support for ZyXEL NSA310 2012-11-21 20:59:30 +00:00
board-ts219.c ARM: Kirkwood: Use DT to configure SATA device. 2012-07-27 16:49:29 +02:00
board-usi_topkick.c ARM: Kirkwood: new board USI Topkick 2012-11-21 20:59:22 +00:00
common.c ARM: Kirkwood: Enable the second I2C bus 2012-11-21 20:58:18 +00:00
common.h arm: kirkwood: add support for ZyXEL NSA310 2012-11-21 20:59:30 +00:00
cpuidle.c ARM: kirkwood: Consolidate time keeping and irq enable 2012-03-21 02:00:25 -04:00
d2net_v2-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
db88f6281-bp-setup.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
dockstar-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
guruplug-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
irq.c Merge branch 'kirkwood/addr_decode' of git://git.infradead.org/users/jcooper/linux into late/kirkwood 2012-09-22 14:22:47 -07:00
lacie_v2-common.c [ARM] Kirkwood: fix timer initialization for LaCie boards 2010-10-21 14:13:58 -04:00
lacie_v2-common.h [ARM] Kirkwood: fix timer initialization for LaCie boards 2010-10-21 14:13:58 -04:00
mpp.c arm: plat-orion: use void __iomem pointers for MPP functions 2012-09-21 18:04:24 +00:00
mpp.h ARM: orion: Fix Orion5x GPIO regression from MPP cleanup 2012-02-09 16:16:31 -08:00
mv88f6281gtw_ge-setup.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
netspace_v2-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
netxbig_v2-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
openrd-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
pcie.c Merge branch 'kirkwood/addr_decode' of git://git.infradead.org/users/jcooper/linux into late/kirkwood 2012-09-22 14:22:47 -07:00
rd88f6192-nas-setup.c ARM: orion: move custom gpio functions to orion-gpio.h 2012-09-14 09:21:59 -05:00
rd88f6281-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
sheevaplug-setup.c ARM: orion: move platform_data definitions 2012-09-19 17:42:17 +02:00
t5325-setup.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
ts41x-setup.c arm: mach-kirkwood: use IOMEM() for base address definitions 2012-09-21 18:03:35 +00:00
ts219-setup.c ARM: restart: kirkwood: use new restart hook 2012-01-05 12:57:14 +00:00
tsx1x-common.c ARM: Orion: SPI: Add clk/clkdev support. 2012-05-08 16:33:55 -07:00
tsx1x-common.h ARM: 6265/1: kirkwood: move qnap_tsx1x_register_flash() to .init.text 2010-07-26 10:33:08 +01:00