ARM: dts: BCM5310x: Enable switch ports on SmartRG SR400AC
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 May 2016 23:55:35 +0000 (16:55 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 13 Jun 2016 19:44:46 +0000 (12:44 -0700)
Define the port mapping for the SmartRG SR400ACE device.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts

index 8b0c440..70f4bb9 100644 (file)
 &spi_nor {
        status = "okay";
 };
+
+&srab {
+       status = "okay";
+
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@0 {
+                       reg = <0>;
+                       label = "lan4";
+               };
+
+               port@1 {
+                       reg = <1>;
+                       label = "lan3";
+               };
+
+               port@2 {
+                       reg = <2>;
+                       label = "lan2";
+               };
+
+               port@3 {
+                       reg = <3>;
+                       label = "lan1";
+               };
+
+               port@4 {
+                       reg = <4>;
+                       label = "wan";
+               };
+
+               port@5 {
+                       reg = <5>;
+                       label = "cpu";
+                       ethernet = <&gmac0>;
+               };
+       };
+};