Marvell boards changes related to Ethernet, for 3.8
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlCmB6oACgkQ9lPLMJjT96elAwCfQyZY9HP0PW+0y2VRbKLYlrTW vaQAoJMNKRaxjBwnF5As4I4/5g0rsE/H =hRb7 -----END PGP SIGNATURE----- Merge tag 'marvell-boards-net-for-3.8' of github.com:MISL-EBU-System-SW/mainline-public into test-the-merge Marvell boards changes related to Ethernet, for 3.8 Conflicts: arch/arm/boot/dts/armada-370-xp.dtsi arch/arm/boot/dts/armada-xp-db.dts Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
commit
089c38e724
7 changed files with 274 additions and 1 deletions
|
@ -44,7 +44,9 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \
|
||||||
dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
|
dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
|
||||||
msm8960-cdp.dtb
|
msm8960-cdp.dtb
|
||||||
dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
|
dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
|
||||||
armada-xp-db.dtb
|
armada-370-mirabox.dtb \
|
||||||
|
armada-xp-db.dtb \
|
||||||
|
armada-xp-openblocks-ax3-4.dtb
|
||||||
dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
|
dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
|
||||||
imx53-ard.dtb \
|
imx53-ard.dtb \
|
||||||
imx53-evk.dtb \
|
imx53-evk.dtb \
|
||||||
|
|
|
@ -38,5 +38,28 @@
|
||||||
nr-ports = <2>;
|
nr-ports = <2>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mdio {
|
||||||
|
phy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy1: ethernet-phy@1 {
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ethernet@d0070000 {
|
||||||
|
clock-frequency = <200000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy0>;
|
||||||
|
phy-mode = "rgmii-id";
|
||||||
|
};
|
||||||
|
ethernet@d0074000 {
|
||||||
|
clock-frequency = <200000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy1>;
|
||||||
|
phy-mode = "rgmii-id";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
58
arch/arm/boot/dts/armada-370-mirabox.dts
Normal file
58
arch/arm/boot/dts/armada-370-mirabox.dts
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
/*
|
||||||
|
* Device Tree file for Globalscale Mirabox
|
||||||
|
*
|
||||||
|
* 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 = "Globalscale Mirabox";
|
||||||
|
compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
bootargs = "console=ttyS0,115200 earlyprintk";
|
||||||
|
};
|
||||||
|
|
||||||
|
memory {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0x00000000 0x20000000>; /* 512 MB */
|
||||||
|
};
|
||||||
|
|
||||||
|
soc {
|
||||||
|
serial@d0012000 {
|
||||||
|
clock-frequency = <200000000>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
timer@d0020300 {
|
||||||
|
clock-frequency = <600000000>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
mdio {
|
||||||
|
phy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy1: ethernet-phy@1 {
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ethernet@d0070000 {
|
||||||
|
clock-frequency = <200000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy0>;
|
||||||
|
phy-mode = "rgmii-id";
|
||||||
|
};
|
||||||
|
ethernet@d0074000 {
|
||||||
|
clock-frequency = <200000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy1>;
|
||||||
|
phy-mode = "rgmii-id";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -79,6 +79,26 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mdio {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
compatible = "marvell,orion-mdio";
|
||||||
|
reg = <0xd0072004 0x4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ethernet@d0070000 {
|
||||||
|
compatible = "marvell,armada-370-neta";
|
||||||
|
reg = <0xd0070000 0x2500>;
|
||||||
|
interrupts = <8>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
ethernet@d0074000 {
|
||||||
|
compatible = "marvell,armada-370-neta";
|
||||||
|
reg = <0xd0074000 0x2500>;
|
||||||
|
interrupts = <10>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -46,9 +46,53 @@
|
||||||
clock-frequency = <250000000>;
|
clock-frequency = <250000000>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
sata@d00a0000 {
|
sata@d00a0000 {
|
||||||
nr-ports = <2>;
|
nr-ports = <2>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mdio {
|
||||||
|
phy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy1: ethernet-phy@1 {
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy2: ethernet-phy@2 {
|
||||||
|
reg = <25>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy3: ethernet-phy@3 {
|
||||||
|
reg = <27>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ethernet@d0070000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy0>;
|
||||||
|
phy-mode = "rgmii-id";
|
||||||
|
};
|
||||||
|
ethernet@d0074000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy1>;
|
||||||
|
phy-mode = "rgmii-id";
|
||||||
|
};
|
||||||
|
ethernet@d0030000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy2>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
};
|
||||||
|
ethernet@d0034000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy3>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
112
arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
Normal file
112
arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
Normal file
|
@ -0,0 +1,112 @@
|
||||||
|
/*
|
||||||
|
* Device Tree file for OpenBlocks AX3-4 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-4 board";
|
||||||
|
compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
bootargs = "console=ttyS0,115200 earlyprintk";
|
||||||
|
};
|
||||||
|
|
||||||
|
memory {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0x00000000 0xC0000000>; /* 3 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
mdio {
|
||||||
|
phy0: ethernet-phy@0 {
|
||||||
|
reg = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy1: ethernet-phy@1 {
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy2: ethernet-phy@2 {
|
||||||
|
reg = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
phy3: ethernet-phy@3 {
|
||||||
|
reg = <3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ethernet@d0070000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy0>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
};
|
||||||
|
ethernet@d0074000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy1>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
};
|
||||||
|
ethernet@d0030000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy2>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
};
|
||||||
|
ethernet@d0034000 {
|
||||||
|
clock-frequency = <250000000>;
|
||||||
|
status = "okay";
|
||||||
|
phy = <&phy3>;
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -71,5 +71,19 @@
|
||||||
compatible = "marvell,armada-370-xp-system-controller";
|
compatible = "marvell,armada-370-xp-system-controller";
|
||||||
reg = <0xd0018200 0x500>;
|
reg = <0xd0018200 0x500>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ethernet@d0030000 {
|
||||||
|
compatible = "marvell,armada-370-neta";
|
||||||
|
reg = <0xd0030000 0x2500>;
|
||||||
|
interrupts = <12>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
ethernet@d0034000 {
|
||||||
|
compatible = "marvell,armada-370-neta";
|
||||||
|
reg = <0xd0034000 0x2500>;
|
||||||
|
interrupts = <14>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue