aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-07-02 07:00:20 -0400
committerJason Cooper <jason@lakedaemon.net>2013-07-25 16:54:10 -0400
commit99d6455b8ecbc7d29e279f66cde564998718e0ee (patch)
tree21f17efe18c853c214d81bb24d1fb6aac4d47a96
parent876e233335115eadd51761d49fc638db575337aa (diff)
ARM: orion5x: add gigabit ethernet and mvmdio device tree nodes
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Orion5x boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts17
-rw-r--r--arch/arm/boot/dts/orion5x.dtsi29
2 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts b/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
index 0077fc8510b7..aed83deaa991 100644
--- a/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
+++ b/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
@@ -53,3 +53,20 @@
53 }; 53 };
54 }; 54 };
55}; 55};
56
57&mdio {
58 status = "okay";
59
60 ethphy: ethernet-phy {
61 device-type = "ethernet-phy";
62 reg = <8>;
63 };
64};
65
66&eth {
67 status = "okay";
68
69 ethernet-port@0 {
70 phy-handle = <&ethphy>;
71 };
72};
diff --git a/arch/arm/boot/dts/orion5x.dtsi b/arch/arm/boot/dts/orion5x.dtsi
index 892c64e3f1e1..6fe45d590745 100644
--- a/arch/arm/boot/dts/orion5x.dtsi
+++ b/arch/arm/boot/dts/orion5x.dtsi
@@ -132,5 +132,34 @@
132 interrupts = <28>; 132 interrupts = <28>;
133 status = "okay"; 133 status = "okay";
134 }; 134 };
135
136 mdio: mdio-bus@72004 {
137 compatible = "marvell,orion-mdio";
138 #address-cells = <1>;
139 #size-cells = <0>;
140 reg = <0x72004 0x84>;
141 interrupts = <22>;
142 status = "disabled";
143
144 /* add phy nodes in board file */
145 };
146
147 eth: ethernet-controller@72000 {
148 compatible = "marvell,orion-eth";
149 #address-cells = <1>;
150 #size-cells = <0>;
151 reg = <0x72000 0x4000>;
152 marvell,tx-checksum-limit = <1600>;
153 status = "disabled";
154
155 ethernet-port@0 {
156 device_type = "network";
157 compatible = "marvell,orion-eth-port";
158 reg = <0>;
159 /* overwrite MAC address in bootloader */
160 local-mac-address = [00 00 00 00 00 00];
161 /* set phy-handle property in board file */
162 };
163 };
135 }; 164 };
136}; 165};