]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-linux-kernel/ti-linux-kernel-next.git/commitdiff
ARM: dts: am57xx-idk-common: Add PRUSS Ethernet ports
authorRoger Quadros <rogerq@ti.com>
Tue, 16 Feb 2016 00:44:15 +0000 (18:44 -0600)
committerSekhar Nori <nsekhar@ti.com>
Tue, 16 Feb 2016 08:03:17 +0000 (13:33 +0530)
Add PRUSS Ethernet ports on ICSS2. We don't add the
ICSS1 ethernet ports as they are not connected to the
SoC by default on the AM57xx IDKs.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/am57xx-idk-common.dtsi

index 61e7540d8635cdf66cfece344c5c14c2ef9aa56c..549f02eae844a0a7dbaa17f928bcc3b5da3bd837 100644 (file)
@@ -12,6 +12,8 @@
                rtc1 = &rtc;
                display0 = &hdmi0;
                sound0 = &hdmi;
+               ethernet2 = &pruss2_emac0;
+               ethernet3 = &pruss2_emac1;
        };
 
        vmain: fixedregulator-vmain {
                mboxes = <&mailbox4 &mbox_pru2_1>;
                status = "okay";
        };
+
+       pruss2_mdio: mdio@4b2b2400 {
+               status = "okay";
+               pruss2_eth0_phy: ethernet-phy@0 {
+                       reg = <0>;
+                       interrupt-parent = <&gpio3>;
+                       interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
+               };
+
+               pruss2_eth1_phy: ethernet-phy@1 {
+                       reg = <1>;
+                       interrupt-parent = <&gpio3>;
+                       interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
+               };
+       };
+
+       /* Dual mac ethernet application node on icss2 */
+       pruss2_eth {
+               compatible = "ti,prueth";
+               pruss = <&pruss2>;
+               sram = <&ocmcram1>;
+
+               pruss2_emac0: ethernet-mii0 {
+                       phy-handle = <&pruss2_eth0_phy>;
+                       phy-mode = "mii";
+                       sysevent-rx = <20>;     /* PRU_ARM_EVENT0 */
+                       /* Filled in by bootloader */
+                       local-mac-address = [00 00 00 00 00 00];
+               };
+
+               pruss2_emac1: ethernet-mii1 {
+                       phy-handle = <&pruss2_eth1_phy>;
+                       phy-mode = "mii";
+                       sysevent-rx = <21>;     /* PRU_ARM_EVENT1 */
+                       /* Filled in by bootloader */
+                       local-mac-address = [00 00 00 00 00 00];
+               };
+       };
 };
 
 &hdmi {