diff mbox

arm: mvebu: support for the PlatHome OpenBlocks AX3 board

Message ID 1350980365-6698-1-git-send-email-thomas.petazzoni@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Petazzoni Oct. 23, 2012, 8:19 a.m. UTC
This platform, available in Japan from PlatHome, has a dual-core
Armada XP, the MV78260. For now, only the two serial ports and the
three front LEDs are supported. Support for network, SATA, USB and
other peripherals will be added as drivers for them become available
for Armada XP in mainline.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

---
This is 3.8 material.
---
 arch/arm/boot/dts/Makefile           |    3 +-
 arch/arm/boot/dts/openblocks-ax3.dts |   69 ++++++++++++++++++++++++++++++++++
 arch/arm/mach-mvebu/armada-370-xp.c  |    1 +
 3 files changed, 72 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/openblocks-ax3.dts

Comments

Andrew Lunn Oct. 23, 2012, 8:42 a.m. UTC | #1
> diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
> index 49d7915..cd2717b 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",
> +	"plathome,openblocks-ax3",
>  	NULL,
>  };

Hi Thomas

You will get less merge conflicts with new boards if you keep this
list sorted.

    Andrew
Thomas Petazzoni Oct. 23, 2012, 8:45 a.m. UTC | #2
Dear Andrew Lunn,

On Tue, 23 Oct 2012 10:42:41 +0200, Andrew Lunn wrote:
> > diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
> > index 49d7915..cd2717b 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",
> > +	"plathome,openblocks-ax3",
> >  	NULL,
> >  };
> 
> Hi Thomas
> 
> You will get less merge conflicts with new boards if you keep this
> list sorted.

Hum, right, but isn't "plathome" after "marvell" when sorted
alphabetically? Or maybe I don't get which kind of sorting you are
referring to?

Thomas
Jason Cooper Oct. 23, 2012, 11:16 a.m. UTC | #3
On Tue, Oct 23, 2012 at 10:45:34AM +0200, Thomas Petazzoni wrote:
> Dear Andrew Lunn,
> 
> On Tue, 23 Oct 2012 10:42:41 +0200, Andrew Lunn wrote:
> > > diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
> > > index 49d7915..cd2717b 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",
> > > +	"plathome,openblocks-ax3",
> > >  	NULL,
> > >  };
> > 
> > Hi Thomas
> > 
> > You will get less merge conflicts with new boards if you keep this
> > list sorted.
> 
> Hum, right, but isn't "plathome" after "marvell" when sorted
> alphabetically? Or maybe I don't get which kind of sorting you are
> referring to?

No, no, no.  marvell, /then/ NULL, /then/ plathome.  ;-)  Right, Andrew?

thx,

Jason.
Gregory CLEMENT Oct. 24, 2012, 8:58 a.m. UTC | #4
On 10/23/2012 10:19 AM, Thomas Petazzoni wrote:
> This platform, available in Japan from PlatHome, has a dual-core
> Armada XP, the MV78260. For now, only the two serial ports and the
> three front LEDs are supported. Support for network, SATA, USB and
> other peripherals will be added as drivers for them become available
> for Armada XP in mainline.
And don't forget the SMP support too, MV78260 is supposed to have 2 cores.

Besides this, this patch looks good. I have applied it on a v3.7-rc2
without any problem, and managed to build it also.
So you can add my
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>


> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> 
> ---
> This is 3.8 material.
> ---
>  arch/arm/boot/dts/Makefile           |    3 +-
>  arch/arm/boot/dts/openblocks-ax3.dts |   69 ++++++++++++++++++++++++++++++++++
>  arch/arm/mach-mvebu/armada-370-xp.c  |    1 +
>  3 files changed, 72 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/boot/dts/openblocks-ax3.dts
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index f37cf9f..b7814b9 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 \
> +	openblocks-ax3.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
>  	imx53-ard.dtb \
>  	imx53-evk.dtb \
> diff --git a/arch/arm/boot/dts/openblocks-ax3.dts b/arch/arm/boot/dts/openblocks-ax3.dts
> new file mode 100644
> index 0000000..f757116
> --- /dev/null
> +++ b/arch/arm/boot/dts/openblocks-ax3.dts
> @@ -0,0 +1,69 @@
> +/*
> + * Device Tree file for OpenBlocks AX3 board
> + *
> + * Copyright (C) 2012 Marvell
> + *
> + * Thomas Petazzoni <thomas.petazzoni@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-xp-mv78260.dtsi"
> +
> +/ {
> +	model = "PlatHome OpenBlocks AX3 board";
> +	compatible = "plathome,openblocks-ax3", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
> +
> +	chosen {
> +		bootargs = "console=ttyS0,115200 earlyprintk";
> +	};
> +
> +	memory {
> +		device_type = "memory";
> +		reg = <0x00000000 0x40000000>; /* 1 GB */
> +	};
> +
> +	soc {
> +		serial@d0012000 {
> +			clock-frequency = <250000000>;
> +			status = "okay";
> +		};
> +		serial@d0012100 {
> +			clock-frequency = <250000000>;
> +			status = "okay";
> +		};
> +		pinctrl {
> +			led_pins: led-pins-0 {
> +				  marvell,pins = "mpp49", "mpp51", "mpp53";
> +				  marvell,function = "gpio";
> +			};
> +		};
> +		leds {
> +		        compatible = "gpio-leds";
> +			pinctrl-names = "default";
> +			pinctrl-0 = <&led_pins>;
> +
> +			red_led {
> +				   label = "red_led";
> +				   gpios = <&gpio1 17 1>;
> +				   default-state = "off";
> +			};
> +
> +			yellow_led {
> +				   label = "yellow_led";
> +				   gpios = <&gpio1 19 1>;
> +				   default-state = "off";
> +			};
> +
> +			green_led {
> +				   label = "green_led";
> +				   gpios = <&gpio1 21 1>;
> +				   default-state = "off";
> +				   linux,default-trigger = "heartbeat";
> +			};
> +		};
> +	};
> +};
> diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
> index 49d7915..cd2717b 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",
> +	"plathome,openblocks-ax3",
>  	NULL,
>  };
>  
>
Thomas Petazzoni Oct. 24, 2012, 2:15 p.m. UTC | #5
Dear Gregory CLEMENT,

On Wed, 24 Oct 2012 10:58:02 +0200, Gregory CLEMENT wrote:
> On 10/23/2012 10:19 AM, Thomas Petazzoni wrote:
> > This platform, available in Japan from PlatHome, has a dual-core
> > Armada XP, the MV78260. For now, only the two serial ports and the
> > three front LEDs are supported. Support for network, SATA, USB and
> > other peripherals will be added as drivers for them become available
> > for Armada XP in mainline.
> And don't forget the SMP support too, MV78260 is supposed to have 2 cores.

Sure. My plan is to progressively add support for other devices and
features (SMP included) as we get them merged in mainline.

> Besides this, this patch looks good. I have applied it on a v3.7-rc2
> without any problem, and managed to build it also.
> So you can add my
> Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Thanks!

Thomas
Andrew Lunn Oct. 24, 2012, 3:06 p.m. UTC | #6
On Tue, Oct 23, 2012 at 10:19:25AM +0200, Thomas Petazzoni wrote:
> This platform, available in Japan from PlatHome, has a dual-core
> Armada XP, the MV78260. For now, only the two serial ports and the
> three front LEDs are supported. Support for network, SATA, USB and
> other peripherals will be added as drivers for them become available
> for Armada XP in mainline.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> 
> ---
> This is 3.8 material.
> ---
>  arch/arm/boot/dts/Makefile           |    3 +-
>  arch/arm/boot/dts/openblocks-ax3.dts |   69 ++++++++++++++++++++++++++++++++++
>  arch/arm/mach-mvebu/armada-370-xp.c  |    1 +
>  3 files changed, 72 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/boot/dts/openblocks-ax3.dts
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index f37cf9f..b7814b9 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 \
> +	openblocks-ax3.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
>  	imx53-ard.dtb \
>  	imx53-evk.dtb \
> diff --git a/arch/arm/boot/dts/openblocks-ax3.dts b/arch/arm/boot/dts/openblocks-ax3.dts
> new file mode 100644
> index 0000000..f757116
> --- /dev/null
> +++ b/arch/arm/boot/dts/openblocks-ax3.dts
> @@ -0,0 +1,69 @@
> +/*
> + * Device Tree file for OpenBlocks AX3 board
> + *
> + * Copyright (C) 2012 Marvell
> + *
> + * Thomas Petazzoni <thomas.petazzoni@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-xp-mv78260.dtsi"
> +
> +/ {
> +	model = "PlatHome OpenBlocks AX3 board";
> +	compatible = "plathome,openblocks-ax3", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
> +
> +	chosen {
> +		bootargs = "console=ttyS0,115200 earlyprintk";
> +	};
> +
> +	memory {
> +		device_type = "memory";
> +		reg = <0x00000000 0x40000000>; /* 1 GB */
> +	};

Hi Thomas

There are two variants of this box, ax3/2 and ax3/4. The ax3/4 can
have more RAM and has a mini pci express slot. Do you expect both
boards to be supported with one dts file?

Thanks
	Andrew
Thomas Petazzoni Oct. 24, 2012, 3:20 p.m. UTC | #7
Andrew,

On Wed, 24 Oct 2012 17:06:14 +0200, Andrew Lunn wrote:

> There are two variants of this box, ax3/2 and ax3/4. The ax3/4 can
> have more RAM and has a mini pci express slot. Do you expect both
> boards to be supported with one dts file?

I have the ax3/4 version apparently.

So, we can have the following possible schemes:

 + openblocks-ax3.dtsi
   + openblocks-ax3-2.dts
   + openblocks-ax3-4.dts

But I am not sure if using a .dtsi to factorize things common between
multiple boards is OK. Or we can do:

 + openblocks-ax3-2.dts
   + openblocks-ax3-4.dts

With openblocks-ax3-4.dts being the simple addition of PCIe slot + more
RAM. That said, I don't have the ax3/2 board anyway, so should we plan
for something that nobody can test at the moment, or wait for someone
to get a ax3/2 board, and therefore be able to do the testing? I think
I prefer to submit dts files that are know to work and have been tested
on hardware that we have.

Best regards,

Thomas
Andrew Lunn Oct. 24, 2012, 3:31 p.m. UTC | #8
On Wed, Oct 24, 2012 at 05:20:50PM +0200, Thomas Petazzoni wrote:
> Andrew,
> 
> On Wed, 24 Oct 2012 17:06:14 +0200, Andrew Lunn wrote:
> 
> > There are two variants of this box, ax3/2 and ax3/4. The ax3/4 can
> > have more RAM and has a mini pci express slot. Do you expect both
> > boards to be supported with one dts file?
> 
> I have the ax3/4 version apparently.
> 
> So, we can have the following possible schemes:
> 
>  + openblocks-ax3.dtsi
>    + openblocks-ax3-2.dts
>    + openblocks-ax3-4.dts
> 
> But I am not sure if using a .dtsi to factorize things common between
> multiple boards is OK. Or we can do:
> 
>  + openblocks-ax3-2.dts
>    + openblocks-ax3-4.dts
> 
> With openblocks-ax3-4.dts being the simple addition of PCIe slot + more
> RAM. That said, I don't have the ax3/2 board anyway, so should we plan
> for something that nobody can test at the moment, or wait for someone
> to get a ax3/2 board, and therefore be able to do the testing? I think
> I prefer to submit dts files that are know to work and have been tested
> on hardware that we have.

Hi Thomas

I agree with the last point. So maybe have a openblocks-ax3-4.dts and
set the compatibility string to plathome,openblocks-ax3-4. 

When somebody gets a ax3/2, they can refactor the common DT into a
dtsi file without causing any compatibility issues.

     Andrew
Thomas Petazzoni Oct. 24, 2012, 3:35 p.m. UTC | #9
Andrew,

On Wed, 24 Oct 2012 17:31:31 +0200, Andrew Lunn wrote:

> I agree with the last point. So maybe have a openblocks-ax3-4.dts and
> set the compatibility string to plathome,openblocks-ax3-4. 
> 
> When somebody gets a ax3/2, they can refactor the common DT into a
> dtsi file without causing any compatibility issues.

Ok, I'll repost with this update. Thanks!

Thomas
Héctor Orón Martínez Nov. 26, 2012, 9:18 a.m. UTC | #10
Hi,

2012/10/24 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>:

> With openblocks-ax3-4.dts being the simple addition of PCIe slot + more
> RAM. That said, I don't have the ax3/2 board anyway, so should we plan
> for something that nobody can test at the moment, or wait for someone
> to get a ax3/2 board, and therefore be able to do the testing? I think
> I prefer to submit dts files that are know to work and have been tested
> on hardware that we have.

I got an ax3/2 device, I would not mind to test any changes? Are you
aware of which changes should I apply to dtsi file to work on ax3-2
device?

regards,
Thomas Petazzoni Nov. 26, 2012, 9:25 a.m. UTC | #11
Dear Hector Oron,

On Mon, 26 Nov 2012 10:18:47 +0100, Hector Oron wrote:

> I got an ax3/2 device, I would not mind to test any changes? Are you
> aware of which changes should I apply to dtsi file to work on ax3-2
> device?

If I'm correct, the differences between AX-2 and AX3-4 is:

 * AX3-2 has two Ethernet interfaces, while AX3-4 has four Ethernet
   interfaces

 * AX3-4 is in standard mounted with a 2 GB additional DRAM in a
   SO-DIMM slot, while the AX3-2 is not. However, it is not clear if
   the SO-DIMM slot is present or not on the AX3-2 (could you confirm
   this?).

 * AX3-2 does not have a mini PCIe slot, while AX3-4 has one.

So I guess you could create a separate armada-xp-openblocks-ax3-2.dts
file to support this new board. Maybe at some point it will make sense
to have a common armada-xp-openblocks-ax3.dtsi that both board .dts
includes.

Best regards,

Thomas
Jason Cooper Nov. 27, 2012, 1 p.m. UTC | #12
On Mon, Nov 26, 2012 at 10:25:35AM +0100, Thomas Petazzoni wrote:
> On Mon, 26 Nov 2012 10:18:47 +0100, Hector Oron wrote:
> 
> > I got an ax3/2 device, I would not mind to test any changes? Are you
> > aware of which changes should I apply to dtsi file to work on ax3-2
> > device?
> 
> If I'm correct, the differences between AX-2 and AX3-4 is:
> 
>  * AX3-2 has two Ethernet interfaces, while AX3-4 has four Ethernet
>    interfaces
> 
>  * AX3-4 is in standard mounted with a 2 GB additional DRAM in a
>    SO-DIMM slot, while the AX3-2 is not. However, it is not clear if
>    the SO-DIMM slot is present or not on the AX3-2 (could you confirm
>    this?).
> 
>  * AX3-2 does not have a mini PCIe slot, while AX3-4 has one.
> 
> So I guess you could create a separate armada-xp-openblocks-ax3-2.dts
> file to support this new board. Maybe at some point it will make sense
> to have a common armada-xp-openblocks-ax3.dtsi that both board .dts
> includes.

Adding plathome to the email list to see if they can offer any
concrete answers.

thx,

Jason.
Mio Watanabe Nov. 28, 2012, 2:45 a.m. UTC | #13
Dear Jason and all,

Thank you for adding us to the email list.

Thomas is correct. The differences between AX3-2 and AX3-4 are only 3 as following.


                                                    AX3-2                   AX3-4  
No. of ethernet interface                2                           4
SO-DIMM slot                                none                       1                            
mini PCIe slot                                none                       1



I delite Mr. Matumoto from the list since he quit Plat'Home already and
I am his successor. Please just remain "eg@". It is a mailing list
including our development section. Thank you.

Kind regards,
Mio Watanabe

????????????????????????
Plat'Home Co., Ltd.
Product Marketing Dept.
Nihon Building Kudanbekkan 3F
4-1-3 Kudankita, Chiyoda-ku, Tokyo
102-0073 Japan
TEL: ++81 (0) 3 5213 4373
FAX: ++81 (0) 3 3221-0882
E-mail : m-watanabe@plathome.co.jp



On Tue, 27 Nov 2012 08:00:35 -0500
Jason Cooper <jason@lakedaemon.net> wrote:

> On Mon, Nov 26, 2012 at 10:25:35AM +0100, Thomas Petazzoni wrote:
> > On Mon, 26 Nov 2012 10:18:47 +0100, Hector Oron wrote:
> > 
> > > I got an ax3/2 device, I would not mind to test any changes? Are you
> > > aware of which changes should I apply to dtsi file to work on ax3-2
> > > device?
> > 
> > If I'm correct, the differences between AX-2 and AX3-4 is:
> > 
> >  * AX3-2 has two Ethernet interfaces, while AX3-4 has four Ethernet
> >    interfaces
> > 
> >  * AX3-4 is in standard mounted with a 2 GB additional DRAM in a
> >    SO-DIMM slot, while the AX3-2 is not. However, it is not clear if
> >    the SO-DIMM slot is present or not on the AX3-2 (could you confirm
> >    this?).
> > 
> >  * AX3-2 does not have a mini PCIe slot, while AX3-4 has one.
> > 
> > So I guess you could create a separate armada-xp-openblocks-ax3-2.dts
> > file to support this new board. Maybe at some point it will make sense
> > to have a common armada-xp-openblocks-ax3.dtsi that both board .dts
> > includes.
> 
> Adding plathome to the email list to see if they can offer any
> concrete answers.
> 
> thx,
> 
> Jason.
Héctor Orón Martínez Dec. 16, 2012, 4:18 p.m. UTC | #14
Hello,

>> On Mon, Nov 26, 2012 at 10:25:35AM +0100, Thomas Petazzoni wrote:
>> > On Mon, 26 Nov 2012 10:18:47 +0100, Hector Oron wrote:

>> > > I got an ax3/2 device, I would not mind to test any changes? Are you
>> > > aware of which changes should I apply to dtsi file to work on ax3-2
>> > > device?

>> > If I'm correct, the differences between AX-2 and AX3-4 is:

Apologies for confusion, while the box I had referenced AX3/2, the
machine inside is a AX3/4. So, currently I am trying to test Linus'
tree which has merged your patchsets.

Best regards,
diff mbox

Patch

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index f37cf9f..b7814b9 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 \
+	openblocks-ax3.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
 	imx53-ard.dtb \
 	imx53-evk.dtb \
diff --git a/arch/arm/boot/dts/openblocks-ax3.dts b/arch/arm/boot/dts/openblocks-ax3.dts
new file mode 100644
index 0000000..f757116
--- /dev/null
+++ b/arch/arm/boot/dts/openblocks-ax3.dts
@@ -0,0 +1,69 @@ 
+/*
+ * Device Tree file for OpenBlocks AX3 board
+ *
+ * Copyright (C) 2012 Marvell
+ *
+ * Thomas Petazzoni <thomas.petazzoni@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-xp-mv78260.dtsi"
+
+/ {
+	model = "PlatHome OpenBlocks AX3 board";
+	compatible = "plathome,openblocks-ax3", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
+
+	chosen {
+		bootargs = "console=ttyS0,115200 earlyprintk";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x00000000 0x40000000>; /* 1 GB */
+	};
+
+	soc {
+		serial@d0012000 {
+			clock-frequency = <250000000>;
+			status = "okay";
+		};
+		serial@d0012100 {
+			clock-frequency = <250000000>;
+			status = "okay";
+		};
+		pinctrl {
+			led_pins: led-pins-0 {
+				  marvell,pins = "mpp49", "mpp51", "mpp53";
+				  marvell,function = "gpio";
+			};
+		};
+		leds {
+		        compatible = "gpio-leds";
+			pinctrl-names = "default";
+			pinctrl-0 = <&led_pins>;
+
+			red_led {
+				   label = "red_led";
+				   gpios = <&gpio1 17 1>;
+				   default-state = "off";
+			};
+
+			yellow_led {
+				   label = "yellow_led";
+				   gpios = <&gpio1 19 1>;
+				   default-state = "off";
+			};
+
+			green_led {
+				   label = "green_led";
+				   gpios = <&gpio1 21 1>;
+				   default-state = "off";
+				   linux,default-trigger = "heartbeat";
+			};
+		};
+	};
+};
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c
index 49d7915..cd2717b 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",
+	"plathome,openblocks-ax3",
 	NULL,
 };