]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: hix5hd2: add gmac node
authorZhangfei Gao <zhangfei.gao@linaro.org>
Tue, 19 Aug 2014 03:00:33 +0000 (11:00 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 16 Sep 2014 03:00:23 +0000 (11:00 +0800)
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm/boot/dts/hisi-x5hd2-dkb.dts
arch/arm/boot/dts/hisi-x5hd2.dtsi

index 05b44c272c9a7b11cd05f64ac1879dc128fe035d..0da3f3b6721e62e9838b8185efa65aac0ec03b8e 100644 (file)
 &uart0 {
        status = "okay";
 };
+
+&gmac0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       phy-handle = <&phy2>;
+       phy-mode = "mii";
+       /* Placeholder, overwritten by bootloader */
+       mac-address = [00 00 00 00 00 00];
+       status = "okay";
+
+       phy2: ethernet-phy@2 {
+               reg = <2>;
+       };
+};
+
+&gmac1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       phy-handle = <&phy1>;
+       phy-mode = "rgmii";
+       /* Placeholder, overwritten by bootloader */
+       mac-address = [00 00 00 00 00 00];
+       status = "okay";
+
+       phy1: ethernet-phy@1 {
+               reg = <1>;
+       };
+};
index f85ba2924ff7ef01b08703a2ece00ffbe5382452..012525c2fa37d11e56a0847b862f232b9305e370 100644 (file)
                                #clock-cells = <1>;
                        };
                };
+
+               gmac0: ethernet@1840000 {
+                       compatible = "hisilicon,hix5hd2-gmac";
+                       reg = <0x1840000 0x1000>,<0x184300c 0x4>;
+                       interrupts = <0 71 4>;
+                       clocks = <&clock HIX5HD2_MAC0_CLK>;
+                       status = "disabled";
+               };
+
+               gmac1: ethernet@1841000 {
+                       compatible = "hisilicon,hix5hd2-gmac";
+                       reg = <0x1841000 0x1000>,<0x1843010 0x4>;
+                       interrupts = <0 72 4>;
+                       clocks = <&clock HIX5HD2_MAC1_CLK>;
+                       status = "disabled";
+               };
        };
 };