From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: kirkwood: Basic support for DNS-320 and DNS-325
Date: Sun, 11 Mar 2012 17:46:09 +0000 [thread overview]
Message-ID: <201203111746.09757.arnd@arndb.de> (raw)
In-Reply-To: <1331476406-9844-2-git-send-email-jm@lentin.co.uk>
On Sunday 11 March 2012, Jamie Lentin wrote:
> Add support for the DNS-320 and DNS-325. Describe as much as currently possible
> in the devicetree files, leave everything else in board-dt.c to be patched
> later.
>
> Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
Great work!
> +
> +/ {
> + model = "D-Link DNS-320 NAS (Rev A1)";
> + compatible = "dlink,dns-320-a1", "dlink,dns-320", "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
> +
> + memory {
> + device_type = "memory";
> + reg = <0x00000000 0x8000000>;
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,115200n8 earlyprintk";
> + };
> +
> + wdt at fed20300 {
> + compatible = "mrvl,orion-wdt";
> + reg = <0xfed20300 0x28>;
> + clock-frequency = <166666667>;
> + };
> +
> + serial at f1012000 {
> + compatible = "ns16550a";
> + reg = <0xf1012000 0xff>;
> + reg-shift = <2>;
> + interrupts = <33>;
> + clock-frequency = <166666667>;
> + };
> +
> + serial at f1012100 {
> + compatible = "ns16550a";
> + reg = <0xf1012100 0xff>;
> + reg-shift = <2>;
> + interrupts = <34>;
> + clock-frequency = <166666667>;
> + };
I think the generic kirkwood device nodes should all be part of
the kirkwood.dtsi file, except for any properties you want to
override.
You can add a status="disabled" property in device nodes
that may not be connected in individual boards, and then
just override it by listing status="enabled" in the board.dts
file, without having to duplicate all the other properties.
I would also suggest to change the kirkwood.dtsi layout to
put all the on-chip peripherals from the 0xf1 section into
one bus in the device tree, like
ocp at f1000000 {
compatible = "simple-bus";
ranges = <0xf1000000 0xf1000000 0x1000000>;
#address-cells = 1;
#size-cells = 1;
serial at f1012000 {
...
};
...
};
Or even use the ranges property to remap everything into
a simpler address range:
ocp at f1000000 {
compatible = "simple-bus";
ranges = <0 0xf1000000 0x1000000>;
#address-cells = 1;
#size-cells = 1;
serial at 12000 {
reg = <0x12000 0x100>;
...
};
...
};
Arnd
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Jamie Lentin <jm-Pj/HzkgeCk7QXOPxS62xeg@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Jason <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH 1/2] ARM: kirkwood: Basic support for DNS-320 and DNS-325
Date: Sun, 11 Mar 2012 17:46:09 +0000 [thread overview]
Message-ID: <201203111746.09757.arnd@arndb.de> (raw)
In-Reply-To: <1331476406-9844-2-git-send-email-jm-Pj/HzkgeCk7QXOPxS62xeg@public.gmane.org>
On Sunday 11 March 2012, Jamie Lentin wrote:
> Add support for the DNS-320 and DNS-325. Describe as much as currently possible
> in the devicetree files, leave everything else in board-dt.c to be patched
> later.
>
> Signed-off-by: Jamie Lentin <jm-Pj/HzkgeCk7QXOPxS62xeg@public.gmane.org>
Great work!
> +
> +/ {
> + model = "D-Link DNS-320 NAS (Rev A1)";
> + compatible = "dlink,dns-320-a1", "dlink,dns-320", "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
> +
> + memory {
> + device_type = "memory";
> + reg = <0x00000000 0x8000000>;
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,115200n8 earlyprintk";
> + };
> +
> + wdt@fed20300 {
> + compatible = "mrvl,orion-wdt";
> + reg = <0xfed20300 0x28>;
> + clock-frequency = <166666667>;
> + };
> +
> + serial@f1012000 {
> + compatible = "ns16550a";
> + reg = <0xf1012000 0xff>;
> + reg-shift = <2>;
> + interrupts = <33>;
> + clock-frequency = <166666667>;
> + };
> +
> + serial@f1012100 {
> + compatible = "ns16550a";
> + reg = <0xf1012100 0xff>;
> + reg-shift = <2>;
> + interrupts = <34>;
> + clock-frequency = <166666667>;
> + };
I think the generic kirkwood device nodes should all be part of
the kirkwood.dtsi file, except for any properties you want to
override.
You can add a status="disabled" property in device nodes
that may not be connected in individual boards, and then
just override it by listing status="enabled" in the board.dts
file, without having to duplicate all the other properties.
I would also suggest to change the kirkwood.dtsi layout to
put all the on-chip peripherals from the 0xf1 section into
one bus in the device tree, like
ocp@f1000000 {
compatible = "simple-bus";
ranges = <0xf1000000 0xf1000000 0x1000000>;
#address-cells = 1;
#size-cells = 1;
serial@f1012000 {
...
};
...
};
Or even use the ranges property to remap everything into
a simpler address range:
ocp@f1000000 {
compatible = "simple-bus";
ranges = <0 0xf1000000 0x1000000>;
#address-cells = 1;
#size-cells = 1;
serial@12000 {
reg = <0x12000 0x100>;
...
};
...
};
Arnd
next prev parent reply other threads:[~2012-03-11 17:46 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-11 14:33 [PATCH 0/2] Add support for DNS-320 and DNS-325 using devicetree Jamie Lentin
2012-03-11 14:33 ` Jamie Lentin
2012-03-11 14:33 ` [PATCH 1/2] ARM: kirkwood: Basic support for DNS-320 and DNS-325 Jamie Lentin
2012-03-11 14:33 ` Jamie Lentin
2012-03-11 17:46 ` Arnd Bergmann [this message]
2012-03-11 17:46 ` Arnd Bergmann
2012-03-12 3:17 ` Jason Cooper
2012-03-12 3:17 ` Jason Cooper
2012-03-12 8:11 ` Arnd Bergmann
2012-03-12 8:11 ` Arnd Bergmann
2012-03-12 16:10 ` Jason Cooper
2012-03-12 16:10 ` Jason Cooper
[not found] ` <20120312161004.GB5050-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2012-03-12 16:43 ` Arnd Bergmann
2012-03-12 3:02 ` Jason Cooper
2012-03-12 3:02 ` Jason Cooper
2012-03-12 8:17 ` Arnd Bergmann
2012-03-12 8:17 ` Arnd Bergmann
2012-03-12 14:22 ` Jamie Lentin
2012-03-12 14:22 ` Jamie Lentin
2012-03-12 14:27 ` Jason Cooper
2012-03-12 14:27 ` Jason Cooper
2012-03-12 14:58 ` Arnd Bergmann
2012-03-12 14:58 ` Arnd Bergmann
2012-03-12 17:59 ` Jamie Lentin
2012-03-12 17:59 ` Jamie Lentin
2012-03-12 18:56 ` Jason Cooper
2012-03-12 18:56 ` Jason Cooper
2012-03-11 14:33 ` [PATCH 2/2] ARM: kirkwood: Convert orion-nand to fdt Jamie Lentin
2012-03-11 14:33 ` Jamie Lentin
2012-03-11 17:52 ` Arnd Bergmann
2012-03-11 17:52 ` Arnd Bergmann
2012-03-12 3:23 ` Jason Cooper
2012-03-12 3:23 ` Jason Cooper
2012-03-12 2:36 ` [PATCH 0/2] Add support for DNS-320 and DNS-325 using devicetree Jason Cooper
2012-03-12 2:36 ` Jason Cooper
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=201203111746.09757.arnd@arndb.de \
--to=arnd@arndb.de \
--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.