]> git.itanic.dy.fi Git - linux-stable/commitdiff
ARM: BCM53016: Specify switch ports for Meraki MR32
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 18 Sep 2021 17:29:30 +0000 (19:29 +0200)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 21 Sep 2021 21:20:07 +0000 (14:20 -0700)
the switch identifies itself as a BCM53012 (rev 5)...
This patch has been tested & verified on OpenWrt's
snapshot with Linux 5.10 (didn't test any older kernels).
The MR32 is able to "talk to the network" as before with
OpenWrt's SWITCHDEV b53 driver.

| b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 5
| libphy: dsa slave smi: probed
| b53-srab-switch 18007000.ethernet-switch poe (uninitialized):
| PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
| b53-srab-switch 18007000.ethernet-switch: Using legacy PHYLIB callbacks.
| Please migrate to PHYLINK!
| DSA: tree 0 setup

Reported-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm53016-meraki-mr32.dts

index 612d61852bfb9febeda056e5db8552b79fc5c9c5..577a4dc604d93e89c3be314c2a6f495ba65de569 100644 (file)
@@ -195,3 +195,25 @@ partition4@800000 {
                };
        };
 };
+
+&srab {
+       status = "okay";
+
+       ports {
+               port@0 {
+                       reg = <0>;
+                       label = "poe";
+               };
+
+               port@5 {
+                       reg = <5>;
+                       label = "cpu";
+                       ethernet = <&gmac0>;
+
+                       fixed-link {
+                               speed = <1000>;
+                               duplex-full;
+                       };
+               };
+       };
+};