bcm53xx: prepare kernel 5.15 support
[openwrt/staging/mkresin.git] / target / linux / bcm53xx / patches-5.15 / 030-v5.16-0021-ARM-BCM53016-Specify-switch-ports-for-Meraki-MR32.patch
1 From 6abc4ca5a28070945e0d68cb4160b309bfbf4b8b Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@gmail.com>
3 Date: Sat, 18 Sep 2021 19:29:30 +0200
4 Subject: [PATCH] ARM: BCM53016: Specify switch ports for Meraki MR32
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 the switch identifies itself as a BCM53012 (rev 5)...
10 This patch has been tested & verified on OpenWrt's
11 snapshot with Linux 5.10 (didn't test any older kernels).
12 The MR32 is able to "talk to the network" as before with
13 OpenWrt's SWITCHDEV b53 driver.
14
15 | b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 5
16 | libphy: dsa slave smi: probed
17 | b53-srab-switch 18007000.ethernet-switch poe (uninitialized):
18 | PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
19 | b53-srab-switch 18007000.ethernet-switch: Using legacy PHYLIB callbacks.
20 | Please migrate to PHYLINK!
21 | DSA: tree 0 setup
22
23 Reported-by: Rafał Miłecki <zajec5@gmail.com>
24 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
25 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
26 ---
27 arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 22 ++++++++++++++++++++++
28 1 file changed, 22 insertions(+)
29
30 --- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
31 +++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
32 @@ -217,3 +217,25 @@
33 };
34 };
35 };
36 +
37 +&srab {
38 + status = "okay";
39 +
40 + ports {
41 + port@0 {
42 + reg = <0>;
43 + label = "poe";
44 + };
45 +
46 + port@5 {
47 + reg = <5>;
48 + label = "cpu";
49 + ethernet = <&gmac0>;
50 +
51 + fixed-link {
52 + speed = <1000>;
53 + duplex-full;
54 + };
55 + };
56 + };
57 +};