sunxi: bring up DSA b53 switch on Lamobo R1
authorDaniel Golle <daniel@makrotopia.org>
Fri, 10 Sep 2021 22:02:15 +0000 (23:02 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 15 Sep 2021 18:11:29 +0000 (19:11 +0100)
commit47b531de3250de24158024a39beda21328f50701
tree5e41a997a380fbe43415d2b32a5901ee6ebd6965
parent23e4d90b617e2369a272e1873321c531a9296e4c
sunxi: bring up DSA b53 switch on Lamobo R1

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.

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@makrotopia.org>
target/linux/sunxi/base-files/etc/board.d/02_network
target/linux/sunxi/base-files/etc/board.d/05_compat-version [new file with mode: 0644]
target/linux/sunxi/base-files/lib/preinit/03_b53_hack.sh [deleted file]
target/linux/sunxi/config-5.4
target/linux/sunxi/cortexa7/config-5.4
target/linux/sunxi/image/cortexa7.mk
target/linux/sunxi/patches-5.4/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch [deleted file]