Skip to content

Commit c5b12fc

Browse files
committed
airoha: Introduce support for Airoha AN7583 SoC
Introduce initial support for Airoha AN7583 SoC and add all the required patch for basic functionality of the SoC. Airoha AN7583 is based on Airoha EN7581 SoC with some major changes on the PHY handling and Serdes. It can be see as a lower spec of EN7581 with modern and simplified implementations. All the patch are sent upstream and are pending revision. Support for PCIe and USB will come later as soon as DT structure is accepted upstream. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
1 parent 2470ee4 commit c5b12fc

31 files changed

Lines changed: 10297 additions & 1 deletion

File tree

target/linux/airoha/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
33
ARCH:=arm
44
BOARD:=airoha
55
BOARDNAME:=Airoha ARM
6-
SUBTARGETS:=en7523 an7581
6+
SUBTARGETS:=en7523 an7581 an7583
77
FEATURES:=dt squashfs nand ramdisk gpio
88

99
KERNEL_PATCHVER:=6.12

target/linux/airoha/an7581/config-6.12

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ CONFIG_LZO_COMPRESS=y
213213
CONFIG_LZO_DECOMPRESS=y
214214
CONFIG_MDIO_BUS=y
215215
CONFIG_MDIO_DEVICE=y
216+
# CONFIG_MDIO_AIROHA is not set
216217
CONFIG_MDIO_DEVRES=y
217218
# CONFIG_MEDIATEK_GE_SOC_PHY is not set
218219
# CONFIG_MEMCG is not set
@@ -289,6 +290,7 @@ CONFIG_PCI_DOMAINS=y
289290
CONFIG_PCI_DOMAINS_GENERIC=y
290291
CONFIG_PCI_MSI=y
291292
CONFIG_PCS_AIROHA_AN7581=y
293+
# CONFIG_PCS_AIROHA_AN7583 is not set
292294
CONFIG_PERF_EVENTS=y
293295
CONFIG_PER_VMA_LOCK=y
294296
CONFIG_PGTABLE_LEVELS=3
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Copyright (c) 2015 The Linux Foundation. All rights reserved.
3+
# Copyright (c) 2011-2015 OpenWrt.org
4+
#
5+
6+
. /lib/functions/uci-defaults.sh
7+
. /lib/functions/system.sh
8+
9+
an7583_setup_interfaces()
10+
{
11+
local board="$1"
12+
13+
case "$board" in
14+
airoha,an7583-evb)
15+
ucidef_set_interface_lan "lan1 lan2 lan3 lan4 eth1"
16+
;;
17+
*)
18+
echo "Unsupported hardware. Network interfaces not initialized"
19+
;;
20+
esac
21+
}
22+
23+
board_config_update
24+
board=$(board_name)
25+
an7583_setup_interfaces $board
26+
board_config_flush
27+
28+
exit 0

0 commit comments

Comments
 (0)