[PATCH] sunxi: bring up DSA b53 switch on Lamobo R1

Hauke Mehrtens hauke at hauke-m.de
Sat Sep 11 02:09:56 PDT 2021


Hi Daniel,

Thanks for working on this.

On 9/11/21 12:40 AM, Daniel Golle wrote:
> Build cortexa7 subtarget with DSA driver for MDIO-connected Broadcom
> BCM53xxx switches. This is needed for the Lamobo R1 aka. BananaPi
> BPi-R1 board which comes with such a switch IC.
> 
> Remove old swconfig driver from target kernel config as the only board
> using it is now supported by the DSA driver.
> 
> No changes to device tree are needed as upstream DTS already got a
> DSA switch definition and we are just using that upstream source.

This patch removes the upstream DTS part for the switch:
target/linux/sunxi/patches-5.4/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch

I think you should remove it.

> Update default network config of the Lamobo R1 to create lan bridge
> with all 4 lan ports.
> 
> Introduce DEVICE_COMPAT_VERSION for the board to inform users about
> having the re-create their network configuration and add device alias
> as Bananapi BPi-R1 while at it.
> 
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>

Currently the switch is broken, at least I saw multiple complains about 
this. Do you have the device and is the switch working? If so I would 
suggest to also backport this to 21.02 as it looks like the switch is 
not working in 21.01.

> ---
>   target/linux/sunxi/base-files/etc/board.d/02_network |  3 +--
>   target/linux/sunxi/config-5.4                        |  4 ----
>   target/linux/sunxi/cortexa7/config-5.4               | 12 ++++++++++++
>   target/linux/sunxi/image/cortexa7.mk                 |  5 ++++-
>   4 files changed, 17 insertions(+), 7 deletions(-)
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x93DD20630910B515.asc
Type: application/pgp-keys
Size: 13571 bytes
Desc: OpenPGP public key
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210911/3862cd16/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210911/3862cd16/attachment-0001.sig>


More information about the openwrt-devel mailing list