From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: kirkwood: add support for ZyXEL NSA310
Date: Thu, 25 Oct 2012 20:14:26 +0200 [thread overview]
Message-ID: <20121025181426.GC21046@lunn.ch> (raw)
In-Reply-To: <alpine.DEB.2.02.1210251735020.15860@mirri>
Hi Tero
On Thu, Oct 25, 2012 at 06:01:00PM +0300, Tero Jaasko wrote:
> +#define NSA310_GPIO_LED_ESATA_GREEN 12
> +#define NSA310_GPIO_LED_ESATA_RED 13
> +#define NSA310_GPIO_LED_USB_GREEN 15
> +#define NSA310_GPIO_LED_USB_RED 16
> +#define NSA310_GPIO_USB_POWER_OFF 21
> +#define NSA310_GPIO_LED_SYS_GREEN 28
> +#define NSA310_GPIO_LED_SYS_RED 29
> +#define NSA310_GPIO_KEY_RESTART 36
> +#define NSA310_GPIO_KEY_COPY 37
> +#define NSA310_GPIO_LED_COPY_GREEN 39
> +#define NSA310_GPIO_LED_COPY_RED 40
> +#define NSA310_GPIO_LED_HDD_GREEN 41
> +#define NSA310_GPIO_LED_HDD_RED 42
> +#define NSA310_GPIO_BUZZER 44
> +#define NSA310_GPIO_KEY_POWER 46
> +#define NSA310_GPIO_POWER_OFF 48
It looks like most of these are not used. Please remove them.
> +static struct mtd_partition nsa310_mtd_parts[] = {
> + {
> + .name = "uboot",
> + .offset = 0,
> + .size = 0x100000,
> + .mask_flags = MTD_WRITEABLE,
> + }, {
> + .name = "uboot_env",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0x80000,
> + }, {
> + .name = "key_store",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0x80000,
> + }, {
> + .name = "info",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0x80000,
> + }, {
> + .name = "etc",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0xa00000,
> + }, {
> + .name = "kernel_1",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0xa00000,
> + }, {
> + .name = "rootfs1",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0x2fc0000,
> + }, {
> + .name = "kernel_2",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0xa00000,
> + }, {
> + .name = "rootfs2",
> + .offset = MTDPART_OFS_NXTBLK,
> + .size = 0x2fc0000,
> + },
> +};
You should be able to put all that into DT. Take a look at
arch/arm/boot/dts/kirkwood-goflexnet.dts for example.
> +
> +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 at 11000 {
status = "okay";
clock-frequency = <400000>;
s35390a: s35390a at 30 {
compatible = "s35390a";
reg = <0x30>;
};
Thanks
Andrew
next prev parent reply other threads:[~2012-10-25 18:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 15:01 [PATCH] arm: kirkwood: add support for ZyXEL NSA310 Tero Jaasko
2012-10-25 18:13 ` Jason Cooper
2012-10-26 17:25 ` Tero Jaasko
2012-10-26 18:00 ` Jason Cooper
2012-10-27 9:11 ` Andrew Lunn
2012-10-25 18:14 ` Andrew Lunn [this message]
2012-10-26 15:56 ` Tero Jaasko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121025181426.GC21046@lunn.ch \
--to=andrew@lunn.ch \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.