aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhangfei Gao <zhangfei.gao@linaro.org>2014-08-18 23:00:33 -0400
committerWei Xu <xuwei5@hisilicon.com>2014-11-07 06:29:16 -0500
commit9fb0e6e7e05371c33ee2f8c838117e58e129d72d (patch)
tree458f3c8e9368c77151a2f35c0cec97f17bd47a54
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
ARM: dts: hix5hd2: add gmac node
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
-rw-r--r--arch/arm/boot/dts/hisi-x5hd2-dkb.dts28
-rw-r--r--arch/arm/boot/dts/hisi-x5hd2.dtsi16
2 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
index 05b44c272c9a..0da3f3b6721e 100644
--- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
+++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts
@@ -51,3 +51,31 @@
51&uart0 { 51&uart0 {
52 status = "okay"; 52 status = "okay";
53}; 53};
54
55&gmac0 {
56 #address-cells = <1>;
57 #size-cells = <0>;
58 phy-handle = <&phy2>;
59 phy-mode = "mii";
60 /* Placeholder, overwritten by bootloader */
61 mac-address = [00 00 00 00 00 00];
62 status = "okay";
63
64 phy2: ethernet-phy@2 {
65 reg = <2>;
66 };
67};
68
69&gmac1 {
70 #address-cells = <1>;
71 #size-cells = <0>;
72 phy-handle = <&phy1>;
73 phy-mode = "rgmii";
74 /* Placeholder, overwritten by bootloader */
75 mac-address = [00 00 00 00 00 00];
76 status = "okay";
77
78 phy1: ethernet-phy@1 {
79 reg = <1>;
80 };
81};
diff --git a/arch/arm/boot/dts/hisi-x5hd2.dtsi b/arch/arm/boot/dts/hisi-x5hd2.dtsi
index f85ba2924ff7..012525c2fa37 100644
--- a/arch/arm/boot/dts/hisi-x5hd2.dtsi
+++ b/arch/arm/boot/dts/hisi-x5hd2.dtsi
@@ -166,5 +166,21 @@
166 #clock-cells = <1>; 166 #clock-cells = <1>;
167 }; 167 };
168 }; 168 };
169
170 gmac0: ethernet@1840000 {
171 compatible = "hisilicon,hix5hd2-gmac";
172 reg = <0x1840000 0x1000>,<0x184300c 0x4>;
173 interrupts = <0 71 4>;
174 clocks = <&clock HIX5HD2_MAC0_CLK>;
175 status = "disabled";
176 };
177
178 gmac1: ethernet@1841000 {
179 compatible = "hisilicon,hix5hd2-gmac";
180 reg = <0x1841000 0x1000>,<0x1843010 0x4>;
181 interrupts = <0 72 4>;
182 clocks = <&clock HIX5HD2_MAC1_CLK>;
183 status = "disabled";
184 };
169 }; 185 };
170}; 186};