Skip to contentSkip to conversation

ARM: configs: at91: sama5: add support for KSZ ethernet switches

PATCH Applied Codrin Ciubotariu 2 participants 4 messages Jul 23, 2020 – Jul 24, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: configs: at91: sama5: add support for KSZ ethernet switches

From: Razvan Stefanescu <[email protected]>

Enable DSA and KSZ9477 support as modules. Ethernet switches are used by the SAMA5D2-ICP board.

---
 arch/arm/configs/sama5_defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/sama5_defconfig +3 -0
index f688443fe7bf..123b95c1447a 100644
@@ -49,6 +49,7 @@ CONFIG_IP_PNP_RARP=y
 # CONFIG_INET6_XFRM_MODE_TUNNEL is not set
 # CONFIG_INET6_XFRM_MODE_BEET is not set
 CONFIG_IPV6_SIT_6RD=y
+CONFIG_NET_DSA=m
 CONFIG_CAN=y
 CONFIG_CAN_AT91=y
 CONFIG_CAN_M_CAN=y
@@ -80,6 +81,8 @@ CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 # CONFIG_SCSI_LOWLEVEL is not set
 CONFIG_NETDEVICES=y
+CONFIG_NET_DSA_MICROCHIP_KSZ9477=m
+CONFIG_NET_DSA_MICROCHIP_KSZ9477_SPI=m
 CONFIG_MACB=y
 # CONFIG_NET_VENDOR_BROADCOM is not set
 # CONFIG_NET_VENDOR_CIRRUS is not set
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/3 ARM: configs: at91: sama5: enable bridge and VLAN filtering

From: Razvan Stefanescu <[email protected]>

These modules are needed to configure bridges in Linux, to take full advantage of the KSZ switch capabilities.

---
 arch/arm/configs/sama5_defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/sama5_defconfig +3 -0
index 123b95c1447a..f4d71ffcb6e9 100644
@@ -49,7 +49,10 @@ CONFIG_IP_PNP_RARP=y
 # CONFIG_INET6_XFRM_MODE_TUNNEL is not set
 # CONFIG_INET6_XFRM_MODE_BEET is not set
 CONFIG_IPV6_SIT_6RD=y
+CONFIG_BRIDGE=m
+CONFIG_BRIDGE_VLAN_FILTERING=y
 CONFIG_NET_DSA=m
+CONFIG_VLAN_8021Q=m
 CONFIG_CAN=y
 CONFIG_CAN_AT91=y
 CONFIG_CAN_M_CAN=y
Signature · 1 line
2.25.1
#2 lore raw

PATCH 3/3 ARM: configs: at91: sama5: enable CAN PLATFORM driver

In reply to Codrin Ciubotariu

From: Cristian Birsan <[email protected]>

CAN_M_CAN_PLATFORM is needed to probe the driver on sama5 platforms after the driver was split into multiple files.

---
 arch/arm/configs/sama5_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/sama5_defconfig +1 -0
index f4d71ffcb6e9..7b7e333157fe 100644
@@ -56,6 +56,7 @@ CONFIG_VLAN_8021Q=m
 CONFIG_CAN=y
 CONFIG_CAN_AT91=y
 CONFIG_CAN_M_CAN=y
+CONFIG_CAN_M_CAN_PLATFORM=y
 CONFIG_CFG80211=y
 CONFIG_MAC80211=y
 CONFIG_MAC80211_LEDS=y
Signature · 1 line
2.25.1
#3 lore raw
In reply to Codrin Ciubotariu
Quoted 2 lines · Codrin Ciubotariu

Enable DSA and KSZ9477 support as modules. Ethernet switches are used by the SAMA5D2-ICP board.

Applied, thanks!

[1/3] ARM: configs: at91: sama5: add support for KSZ ethernet switches

      commit: 6dadeab7d260eaa410649a48d8368e4d3237377d
[2/3] ARM: configs: at91: sama5: enable bridge and VLAN filtering
      commit: 33d8c87ef47f5303dca851f320611552bc84e32f
[3/3] ARM: configs: at91: sama5: enable CAN PLATFORM driver
      commit: c12b539787efff5b4fc5abac1debf3ea1901348e

Best regards,

Signature · 1 line
Alexandre Belloni <[email protected]>