* [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board
@ 2012-10-27 16:22 Gregory CLEMENT
2012-10-27 16:33 ` Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Gregory CLEMENT @ 2012-10-27 16:22 UTC (permalink / raw)
To: linux-arm-kernel
This platform, available from Globalscale has an Armada 370. For now,
only the serial port is supported. Support for network, USB and other
peripherals will be added as drivers for them become available for
Armada 370 in mainline.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
arch/arm/boot/dts/Makefile | 3 ++-
arch/arm/boot/dts/mbx001.dts | 37 +++++++++++++++++++++++++++++++++++
arch/arm/mach-mvebu/armada-370-xp.c | 1 +
3 files changed, 40 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/boot/dts/mbx001.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index f37cf9f..ee09963 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -44,7 +44,8 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \
dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
msm8960-cdp.dtb
dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
- armada-xp-db.dtb
+ armada-xp-db.dtb \
+ mbx0001.dtb
dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
imx53-ard.dtb \
imx53-evk.dtb \
diff --git a/arch/arm/boot/dts/mbx001.dts b/arch/arm/boot/dts/mbx001.dts
new file mode 100644
index 0000000..88a5a11
--- /dev/null
+++ b/arch/arm/boot/dts/mbx001.dts
@@ -0,0 +1,37 @@
+/*
+ * Device Tree file for Globalscale Mirabox MBX0001
+ *
+ * Gregory CLEMENT <gregory.clement@free-electrons.com>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+/dts-v1/;
+/include/ "armada-370.dtsi"
+
+/ {
+ model = "Mirabox MBX0001";
+ compatible = "globalscale,mbx0001", "marvell,armada370", "marvell,armada-370-xp";
+
+ chosen {
+ bootargs = "console=ttyS0,115200 earlyprintk";
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <0x00000000 0x20000000>; /* 512 MB */
+ };
+
+ soc {
+ serial at d0012000 {
+ clock-frequency = <200000000>;
+ status = "okay";
+ };
+ timer at d0020300 {
+ clock-frequency = <600000000>;
+ status = "okay";
+ };
+ };
+};
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
index 49d7915..e5269b4 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.c
+++ b/arch/arm/mach-mvebu/armada-370-xp.c
@@ -49,6 +49,7 @@ static void __init armada_370_xp_dt_init(void)
static const char * const armada_370_xp_dt_board_dt_compat[] = {
"marvell,a370-db",
"marvell,axp-db",
+ "globalscale,mbx0001",
NULL,
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board
2012-10-27 16:22 [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board Gregory CLEMENT
@ 2012-10-27 16:33 ` Thomas Petazzoni
2012-10-27 16:35 ` Sebastian Hesselbarth
2012-10-27 16:44 ` Andrew Lunn
2012-10-27 17:17 ` Thomas Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2012-10-27 16:33 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
On Sat, 27 Oct 2012 18:22:45 +0200, Gregory CLEMENT wrote:
> This platform, available from Globalscale has an Armada 370. For now,
> only the serial port is supported. Support for network, USB and other
> peripherals will be added as drivers for them become available for
> Armada 370 in mainline.
Great!
> +++ b/arch/arm/boot/dts/mbx001.dts
If you decided to name your platform with four zeros (00001), then the
file should be mbx0001.dts here.
> diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
> index 49d7915..e5269b4 100644
> --- a/arch/arm/mach-mvebu/armada-370-xp.c
> +++ b/arch/arm/mach-mvebu/armada-370-xp.c
> @@ -49,6 +49,7 @@ static void __init armada_370_xp_dt_init(void)
> static const char * const armada_370_xp_dt_board_dt_compat[] = {
> "marvell,a370-db",
> "marvell,axp-db",
> + "globalscale,mbx0001",
> NULL,
> };
As Andrew said, sorted entries would be nicer.
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board
2012-10-27 16:33 ` Thomas Petazzoni
@ 2012-10-27 16:35 ` Sebastian Hesselbarth
0 siblings, 0 replies; 6+ messages in thread
From: Sebastian Hesselbarth @ 2012-10-27 16:35 UTC (permalink / raw)
To: linux-arm-kernel
On 10/27/2012 06:33 PM, Thomas Petazzoni wrote:
> On Sat, 27 Oct 2012 18:22:45 +0200, Gregory CLEMENT wrote:
>> This platform, available from Globalscale has an Armada 370. For now,
>> only the serial port is supported. Support for network, USB and other
>> peripherals will be added as drivers for them become available for
>> Armada 370 in mainline.
>
> Great!
ACK!
>> +++ b/arch/arm/boot/dts/mbx001.dts
>
> If you decided to name your platform with four zeros (00001), then the
> file should be mbx0001.dts here.
What is wrong with "globalscale,mirabox" ?
Sebastian
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board
2012-10-27 16:22 [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board Gregory CLEMENT
2012-10-27 16:33 ` Thomas Petazzoni
@ 2012-10-27 16:44 ` Andrew Lunn
2012-10-27 16:54 ` Thomas Petazzoni
2012-10-27 17:17 ` Thomas Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2012-10-27 16:44 UTC (permalink / raw)
To: linux-arm-kernel
> diff --git a/arch/arm/boot/dts/mbx001.dts b/arch/arm/boot/dts/mbx001.dts
> new file mode 100644
> index 0000000..88a5a11
> --- /dev/null
> +++ b/arch/arm/boot/dts/mbx001.dts
Hi Gregory
Maybe it would be good to prefix this with armada-370. It then fits
with armada-370-db.dts, and all the kirkwood files are kirkwood-*.dts.
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board
2012-10-27 16:44 ` Andrew Lunn
@ 2012-10-27 16:54 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2012-10-27 16:54 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, 27 Oct 2012 18:44:48 +0200, Andrew Lunn wrote:
> > diff --git a/arch/arm/boot/dts/mbx001.dts b/arch/arm/boot/dts/mbx001.dts
> > new file mode 100644
> > index 0000000..88a5a11
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/mbx001.dts
>
> Hi Gregory
>
> Maybe it would be good to prefix this with armada-370. It then fits
> with armada-370-db.dts, and all the kirkwood files are kirkwood-*.dts.
So for OpenBlocks, I should rename armada-xp-openblocks-ax3-4.dts as
well, I guess. I agree with your comment: I think that a name such as
mbx001.dts is way too generic.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board
2012-10-27 16:22 [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board Gregory CLEMENT
2012-10-27 16:33 ` Thomas Petazzoni
2012-10-27 16:44 ` Andrew Lunn
@ 2012-10-27 17:17 ` Thomas Petazzoni
2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2012-10-27 17:17 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, 27 Oct 2012 18:22:45 +0200, Gregory CLEMENT wrote:
> This platform, available from Globalscale has an Armada 370. For now,
> only the serial port is supported. Support for network, USB and other
> peripherals will be added as drivers for them become available for
> Armada 370 in mainline.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> ---
> arch/arm/boot/dts/Makefile | 3 ++-
> arch/arm/boot/dts/mbx001.dts | 37 +++++++++++++++++++++++++++++++++++
> arch/arm/mach-mvebu/armada-370-xp.c | 1 +
> 3 files changed, 40 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/boot/dts/mbx001.dts
With the rename mbx001.dts -> mbx0001.dts, this works fine for me on
the hardware platform, so:
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-27 17:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-27 16:22 [PATCH] arm: mvebu: support for the Globalscale Mirabox MBX0001 board Gregory CLEMENT
2012-10-27 16:33 ` Thomas Petazzoni
2012-10-27 16:35 ` Sebastian Hesselbarth
2012-10-27 16:44 ` Andrew Lunn
2012-10-27 16:54 ` Thomas Petazzoni
2012-10-27 17:17 ` Thomas Petazzoni
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).