2020-07-23 16:25:51

by Codrin Ciubotariu

[permalink] [raw]
Subject: [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.

Signed-off-by: Razvan Stefanescu <[email protected]>
Signed-off-by: Codrin Ciubotariu <[email protected]>
---
arch/arm/configs/sama5_defconfig | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
index f688443fe7bf..123b95c1447a 100644
--- a/arch/arm/configs/sama5_defconfig
+++ b/arch/arm/configs/sama5_defconfig
@@ -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
--
2.25.1


2020-07-23 16:26:04

by Codrin Ciubotariu

[permalink] [raw]
Subject: [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.

Signed-off-by: Razvan Stefanescu <[email protected]>
Signed-off-by: Codrin Ciubotariu <[email protected]>
---
arch/arm/configs/sama5_defconfig | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
index 123b95c1447a..f4d71ffcb6e9 100644
--- a/arch/arm/configs/sama5_defconfig
+++ b/arch/arm/configs/sama5_defconfig
@@ -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
--
2.25.1

2020-07-23 16:28:09

by Codrin Ciubotariu

[permalink] [raw]
Subject: [PATCH 3/3] ARM: configs: at91: sama5: enable CAN PLATFORM driver

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.

Signed-off-by: Cristian Birsan <[email protected]>
Signed-off-by: Codrin Ciubotariu <[email protected]>
---
arch/arm/configs/sama5_defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig
index f4d71ffcb6e9..7b7e333157fe 100644
--- a/arch/arm/configs/sama5_defconfig
+++ b/arch/arm/configs/sama5_defconfig
@@ -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
--
2.25.1

2020-07-24 22:25:37

by Alexandre Belloni

[permalink] [raw]
Subject: Re: [PATCH 1/3] ARM: configs: at91: sama5: add support for KSZ ethernet switches

On Thu, 23 Jul 2020 19:24:32 +0300, Codrin Ciubotariu wrote:
> 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,
--
Alexandre Belloni <[email protected]>