]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: socfpga: dts: Add ethernet bindings for SOCFPGA
authorDinh Nguyen <dinguyen@altera.com>
Wed, 5 Jun 2013 15:02:53 +0000 (10:02 -0500)
committerOlof Johansson <olof@lixom.net>
Tue, 11 Jun 2013 23:34:57 +0000 (16:34 -0700)
Add entry for 2nd GMAC controller. Add the correct clocks for the GMAC.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Reviewed-by: Pavel Machek <pavel@denx.de>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Olof Johansson <olof@lixom.net>
Cc: Pavel Machek <pavel@denx.de>
CC: <linux@arm.linux.org.uk>
v2:
- Moved "disabled" status to dtsi file
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/socfpga.dtsi
arch/arm/boot/dts/socfpga_cyclone5.dts
arch/arm/boot/dts/socfpga_vt.dts

index 16a6e13e08b41cc3e876d077acf14d2315a98b22..02bb425719be9b71040c59999643d4bf0f4cf08b 100644 (file)
@@ -23,6 +23,7 @@
 
        aliases {
                ethernet0 = &gmac0;
+               ethernet1 = &gmac1;
                serial0 = &uart0;
                serial1 = &uart1;
                timer0 = &timer0;
                                };
                        };
 
-               gmac0: stmmac@ff700000 {
+               gmac0: ethernet@ff700000 {
                        compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
                        reg = <0xff700000 0x2000>;
                        interrupts = <0 115 4>;
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
-                       phy-mode = "gmii";
+                       clocks = <&emac0_clk>;
+                       clock-names = "stmmaceth";
+                       status = "disabled";
+               };
+
+               gmac1: ethernet@ff702000 {
+                       compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
+                       reg = <0xff702000 0x2000>;
+                       interrupts = <0 120 4>;
+                       interrupt-names = "macirq";
+                       mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
+                       clocks = <&emac1_clk>;
+                       clock-names = "stmmaceth";
+                       status = "disabled";
                };
 
                L2: l2-cache@fffef000 {
index 2495958f10168383b3a80e9ee26c707ceb54bb8c..973999d2c69759b7303073bb06db3cc3533417f0 100644 (file)
                reg = <0x0 0x40000000>; /* 1GB */
        };
 
+       aliases {
+               /* this allow the ethaddr uboot environmnet variable contents
+                * to be added to the gmac1 device tree blob.
+                */
+               ethernet0 = &gmac1;
+       };
+
        soc {
                clkmgr@ffd04000 {
                        clocks {
                        };
                };
 
+               ethernet@ff702000 {
+                       phy-mode = "rgmii";
+                       phy-addr = <0xffffffff>; /* probe for phy addr */
+                       status = "okay";
+               };
+
                timer0@ffc08000 {
                        clock-frequency = <100000000>;
                };
index 0bf035d607f051fc62fe0a762cbd9c5dd0c7911a..d1ec0cab2dee0daa986a8ddd75f10222cbcd25bb 100644 (file)
                        };
                };
 
+               ethernet@ff700000 {
+                       phy-mode = "gmii";
+                       status = "okay";
+               };
+
                timer0@ffc08000 {
                        clock-frequency = <7000000>;
                };