arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
/*
|
|
|
|
* Device Tree file for OpenBlocks AX3-4 board
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Marvell
|
|
|
|
*
|
|
|
|
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
*
|
2015-01-26 21:16:10 +07:00
|
|
|
* This file is dual-licensed: you can use it either under the terms
|
|
|
|
* of the GPL or the X11 license, at your option. Note that this dual
|
|
|
|
* licensing only applies to this file, and not this project as a
|
|
|
|
* whole.
|
|
|
|
*
|
|
|
|
* a) This file is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* Or, alternatively
|
|
|
|
*
|
|
|
|
* b) Permission is hereby granted, free of charge, to any person
|
|
|
|
* obtaining a copy of this software and associated documentation
|
|
|
|
* files (the "Software"), to deal in the Software without
|
|
|
|
* restriction, including without limitation the rights to use
|
|
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
* sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following
|
|
|
|
* conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
|
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
|
|
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2014-02-12 00:07:12 +07:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2014-02-12 00:07:13 +07:00
|
|
|
#include <dt-bindings/input/input.h>
|
2013-07-26 20:17:56 +07:00
|
|
|
#include "armada-xp-mv78260.dtsi"
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "PlatHome OpenBlocks AX3-4 board";
|
|
|
|
compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
|
|
|
|
|
|
|
|
chosen {
|
2015-03-03 21:41:02 +07:00
|
|
|
stdout-path = "serial0:115200n8";
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
2014-06-04 20:41:20 +07:00
|
|
|
reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
2013-07-26 20:17:58 +07:00
|
|
|
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
|
2013-07-26 20:17:59 +07:00
|
|
|
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
|
|
|
|
MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x8000000>;
|
|
|
|
|
|
|
|
devbus-bootcs {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
/* Device Bus parameters are required */
|
|
|
|
|
|
|
|
/* Read parameters */
|
2014-04-14 22:29:21 +07:00
|
|
|
devbus,bus-width = <16>;
|
2013-07-26 20:17:59 +07:00
|
|
|
devbus,turn-off-ps = <60000>;
|
|
|
|
devbus,badr-skew-ps = <0>;
|
|
|
|
devbus,acc-first-ps = <124000>;
|
|
|
|
devbus,acc-next-ps = <248000>;
|
|
|
|
devbus,rd-setup-ps = <0>;
|
|
|
|
devbus,rd-hold-ps = <0>;
|
|
|
|
|
|
|
|
/* Write parameters */
|
|
|
|
devbus,sync-enable = <0>;
|
|
|
|
devbus,wr-high-ps = <60000>;
|
|
|
|
devbus,wr-low-ps = <60000>;
|
|
|
|
devbus,ale-wr-ps = <60000>;
|
|
|
|
|
|
|
|
/* NOR 128 MiB */
|
|
|
|
nor@0 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0 0x8000000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
};
|
|
|
|
};
|
2013-05-13 22:22:53 +07:00
|
|
|
|
2013-07-26 20:18:00 +07:00
|
|
|
pcie-controller {
|
|
|
|
status = "okay";
|
|
|
|
/* Internal mini-PCIe connector */
|
|
|
|
pcie@1,0 {
|
|
|
|
/* Port 0, Lane 0 */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
internal-regs {
|
2015-04-14 16:50:13 +07:00
|
|
|
rtc@10300 {
|
|
|
|
/* No crystal connected to the internal RTC */
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2013-04-12 21:29:09 +07:00
|
|
|
serial@12000 {
|
|
|
|
status = "okay";
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
};
|
2013-04-12 21:29:09 +07:00
|
|
|
serial@12100 {
|
|
|
|
status = "okay";
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
};
|
2014-09-20 02:20:09 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&led_pins>;
|
|
|
|
|
|
|
|
red_led {
|
|
|
|
label = "red_led";
|
2014-02-12 00:07:12 +07:00
|
|
|
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
|
2013-04-12 21:29:09 +07:00
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
yellow_led {
|
|
|
|
label = "yellow_led";
|
2014-02-12 00:07:12 +07:00
|
|
|
gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
|
2013-04-12 21:29:09 +07:00
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
green_led {
|
|
|
|
label = "green_led";
|
2014-02-12 00:07:12 +07:00
|
|
|
gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
|
2013-10-15 00:37:55 +07:00
|
|
|
default-state = "keep";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
};
|
2012-11-09 21:12:47 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2013-01-07 23:29:58 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
button@1 {
|
|
|
|
label = "Init Button";
|
2014-02-12 00:07:13 +07:00
|
|
|
linux,code = <KEY_POWER>;
|
2014-02-12 00:07:12 +07:00
|
|
|
gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
2013-01-07 23:29:58 +07:00
|
|
|
};
|
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
mdio {
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
};
|
2012-11-09 21:12:47 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
phy1: ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
};
|
2012-11-09 21:12:47 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
phy2: ethernet-phy@2 {
|
|
|
|
reg = <2>;
|
|
|
|
};
|
2012-11-09 21:12:47 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
phy3: ethernet-phy@3 {
|
|
|
|
reg = <3>;
|
|
|
|
};
|
2012-11-09 21:12:47 +07:00
|
|
|
};
|
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
ethernet@70000 {
|
|
|
|
status = "okay";
|
|
|
|
phy = <&phy0>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
ethernet@74000 {
|
|
|
|
status = "okay";
|
|
|
|
phy = <&phy1>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
ethernet@30000 {
|
|
|
|
status = "okay";
|
|
|
|
phy = <&phy2>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
ethernet@34000 {
|
|
|
|
status = "okay";
|
|
|
|
phy = <&phy3>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
i2c@11000 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
};
|
|
|
|
i2c@11100 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <400000>;
|
2012-10-30 17:41:25 +07:00
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
s35390a: s35390a@30 {
|
|
|
|
compatible = "s35390a";
|
|
|
|
reg = <0x30>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
sata@a0000 {
|
|
|
|
nr-ports = <2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2013-05-16 23:07:24 +07:00
|
|
|
|
|
|
|
/* Front side USB 0 */
|
2013-04-12 21:29:09 +07:00
|
|
|
usb@50000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2013-05-16 23:07:24 +07:00
|
|
|
|
|
|
|
/* Front side USB 1 */
|
2013-04-12 21:29:09 +07:00
|
|
|
usb@51000 {
|
|
|
|
status = "okay";
|
2012-10-30 17:41:25 +07:00
|
|
|
};
|
2013-04-10 04:06:35 +07:00
|
|
|
};
|
arm: mvebu: support for the PlatHome OpenBlocks AX3-4 board
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 SMP, 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>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
This is 3.8 material.
Changes since v2:
* Renamed the .dts file to armada-xp-openblocks-ax3-4.dts
* Removed the compatible string from armada-370-xp.c (which now only
lists the common SoC compatible string)
Changes since v1:
* Renamed the board to OpenBlocks AX3-4, since there is a variant
called AX3-2 which has less RAM, and no mini PCIe port. Requested
by Andrew Lunn.
* Fix the amount of memory to 3 GB. In fact, the board has 1 GB
soldered, and 2 GB in a SODIMM slot (which is therefore
removable). But as the board is delivered as is, we'll assume it
has 3 GB of memory by default.
2012-10-23 13:17:20 +07:00
|
|
|
};
|
|
|
|
};
|
2014-09-20 02:20:09 +07:00
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
led_pins: led-pins-0 {
|
|
|
|
marvell,pins = "mpp49", "mpp51", "mpp53";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|