From: valentin.longchamp@keymile.com (Valentin Longchamp)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] ARM: initial DTS support for km_kirkwood
Date: Wed, 29 Aug 2012 10:15:51 +0200 [thread overview]
Message-ID: <503DCFB7.4080804@keymile.com> (raw)
In-Reply-To: <20120828172344.GE19437@titan.lakedaemon.net>
On 08/28/2012 07:23 PM, Jason Cooper wrote:
> On Tue, Aug 28, 2012 at 01:56:16PM +0200, Valentin Longchamp wrote:
>> This is a first attempt to support the km_kirkwood reference design with
>> a device tree. This km_kirkwood design is present in many Keymile
>> products. It is based on the Marvell Bobcat SOC which integrates a
>> Kirkwood CPU next to a big L2 Ethernet Switch. The Kirkwood in the SOC
>> is very similar to the "normal" one, but there are a few differences.
>>
>> This initial support is minimal: the kernel can boot with network
>> (ge0), serial port and NAND functional.
>>
>> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
>> Cc: Holger Brunck <holger.brunck@keymile.com>
>> ---
>> arch/arm/boot/dts/kirkwood-km_kirkwood.dts | 29 +++++++++++
>> arch/arm/mach-kirkwood/Kconfig | 7 +++
>> arch/arm/mach-kirkwood/Makefile | 1 +
>> arch/arm/mach-kirkwood/Makefile.boot | 1 +
>> arch/arm/mach-kirkwood/board-dt.c | 4 ++
>> arch/arm/mach-kirkwood/board-km_kirkwood.c | 75 ++++++++++++++++++++++++++++
>> arch/arm/mach-kirkwood/common.h | 6 ++
>> 7 files changed, 123 insertions(+), 0 deletions(-)
>> create mode 100644 arch/arm/boot/dts/kirkwood-km_kirkwood.dts
>> create mode 100644 arch/arm/mach-kirkwood/board-km_kirkwood.c
>>
>> diff --git a/arch/arm/boot/dts/kirkwood-km_kirkwood.dts b/arch/arm/boot/dts/kirkwood-km_kirkwood.dts
>> new file mode 100644
>> index 0000000..60118d5
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/kirkwood-km_kirkwood.dts
>> @@ -0,0 +1,29 @@
>> +/dts-v1/;
>> +
>> +/include/ "kirkwood.dtsi"
>> +
>> +/ {
>> + model = "Keymile Kirkwood Reference Design";
>> + compatible = "keymile,km_kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
>> +
>> + memory {
>> + device_type = "memory";
>> + reg = <0x00000000 0x08000000>;
>> + };
>> +
>> + chosen {
>> + bootargs = "console=ttyS0,115200n8 earlyprintk";
>> + };
>> +
>> + ocp at f1000000 {
>> + serial at 12000 {
>> + clock-frequency = <200000000>;
>> + status = "ok";
>> + };
>> +
>> + nand at 3000000 {
>> + status = "ok";
>> + chip-delay = <25>;
>> + };
>
> Is there a partition layout for this board?
>
Well, there is one: one big UBI partition on the whole NAND chip (we then create
UBI volumes when building the initial system and dynamically create additional
ones when neeeded). But this UBI partition gets detected perfecly well without
this partition layout so I left it out.
Valentin
next prev parent reply other threads:[~2012-08-29 8:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 11:56 [RFC PATCH] ARM: initial DTS support for km_kirkwood Valentin Longchamp
2012-08-28 12:20 ` Andrew Lunn
2012-08-29 8:04 ` Valentin Longchamp
2012-08-28 17:23 ` Jason Cooper
2012-08-29 8:15 ` Valentin Longchamp [this message]
2012-08-29 17:14 ` Jason Cooper
2012-09-03 17:56 ` Andrew Lunn
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=503DCFB7.4080804@keymile.com \
--to=valentin.longchamp@keymile.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).