bcm53xx: backport BCM5301X patches for SRAB
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 038-0003-ARM-dts-BCM5310x-Enable-switch-ports-on-SmartRG-SR40.patch
1 From 2df1808dc0e2b5358e13beb95192b15200017776 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Wed, 25 May 2016 16:55:35 -0700
4 Subject: [PATCH 3/3] ARM: dts: BCM5310x: Enable switch ports on SmartRG
5 SR400AC
6
7 Define the port mapping for the SmartRG SR400ACE device.
8
9 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
10 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
11 ---
12 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 40 +++++++++++++++++++++++++++
13 1 file changed, 40 insertions(+)
14
15 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
16 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
17 @@ -126,3 +126,43 @@
18 &spi_nor {
19 status = "okay";
20 };
21 +
22 +&srab {
23 + status = "okay";
24 +
25 + ports {
26 + #address-cells = <1>;
27 + #size-cells = <0>;
28 +
29 + port@0 {
30 + reg = <0>;
31 + label = "lan4";
32 + };
33 +
34 + port@1 {
35 + reg = <1>;
36 + label = "lan3";
37 + };
38 +
39 + port@2 {
40 + reg = <2>;
41 + label = "lan2";
42 + };
43 +
44 + port@3 {
45 + reg = <3>;
46 + label = "lan1";
47 + };
48 +
49 + port@4 {
50 + reg = <4>;
51 + label = "wan";
52 + };
53 +
54 + port@5 {
55 + reg = <5>;
56 + label = "cpu";
57 + ethernet = <&gmac0>;
58 + };
59 + };
60 +};