linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC
@ 2025-08-13 17:44 Robert Marko
  2025-08-13 17:44 ` [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms Robert Marko
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

This patch series adds basic support for Microchip LAN969x SoC.

It introduces the SoC ARCH symbol itself under the ARCH_MICROCHIP symbol
which allows to avoid the need to change dependencies of the drivers that
are shared for Microchip SoC-s in the future.

DTS and further driver will be added in follow-up series.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v9:
* Make ARCH_MICROCHIP hidden symbol that is selected by SparX-5 and LAN969x
directly, this avoids breaking existing configs with ARCH_SPARX5

Changes in v8:
* Move to using ARCH_MICROCHIP as suggested by Arnd
* Dropped any review tags due to changes

Robert Marko (9):
  arm64: Add config for Microchip SoC platforms
  ARM: at91: select ARCH_MICROCHIP
  arm64: lan969x: Add support for Microchip LAN969x SoC
  mfd: at91-usart: Make it selectable for ARCH_MICROCHIP
  tty: serial: atmel: make it selectable for ARCH_MICROCHIP
  spi: atmel: make it selectable for ARCH_MICROCHIP
  i2c: at91: make it selectable for ARCH_MICROCHIP
  char: hw_random: atmel: make it selectable for ARCH_MICROCHIP
  crypto: atmel-aes: make it selectable for ARCH_MICROCHIP

 arch/arm/mach-at91/Kconfig     |  4 +++
 arch/arm64/Kconfig.platforms   | 51 ++++++++++++++++++++++++----------
 drivers/char/hw_random/Kconfig |  2 +-
 drivers/crypto/Kconfig         |  2 +-
 drivers/i2c/busses/Kconfig     |  2 +-
 drivers/mfd/Kconfig            |  2 +-
 drivers/spi/Kconfig            |  2 +-
 drivers/tty/serial/Kconfig     |  2 +-
 8 files changed, 47 insertions(+), 20 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-22 13:29   ` Nicolas Ferre
  2025-08-13 17:44 ` [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP Robert Marko
                   ` (9 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

Currently, Microchip SparX-5 SoC is supported and it has its own symbol.

However, this means that new Microchip platforms that share drivers need
to constantly keep updating depends on various drivers.

So, to try and reduce this lets add ARCH_MICROCHIP symbol that drivers
could instead depend on.

LAN969x is being worked on and it will be added under ARCH_MICROCHIP.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v9:
* Make ARCH_MICROCHIP hidden symbol that is selected by SparX-5 directly,
this avoids breaking existing configs with ARCH_SPARX5

 arch/arm64/Kconfig.platforms | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index a88f5ad9328c..bfea380100a6 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -131,20 +131,6 @@ config ARCH_EXYNOS
 	help
 	  This enables support for ARMv8 based Samsung Exynos SoC family.
 
-config ARCH_SPARX5
-	bool "Microchip Sparx5 SoC family"
-	select PINCTRL
-	select DW_APB_TIMER_OF
-	help
-	  This enables support for the Microchip Sparx5 ARMv8-based
-	  SoC family of TSN-capable gigabit switches.
-
-	  The SparX-5 Ethernet switch family provides a rich set of
-	  switching features such as advanced TCAM-based VLAN and QoS
-	  processing enabling delivery of differentiated services, and
-	  security through TCAM-based frame processing using versatile
-	  content aware processor (VCAP).
-
 config ARCH_K3
 	bool "Texas Instruments Inc. K3 multicore SoC architecture"
 	select SOC_TI
@@ -186,6 +172,28 @@ config ARCH_MESON
 	  This enables support for the arm64 based Amlogic SoCs
 	  such as the s905, S905X/D, S912, A113X/D or S905X/D2
 
+menu "Microchip SoC support"
+
+config ARCH_MICROCHIP
+	bool
+
+config ARCH_SPARX5
+	bool "Microchip Sparx5 SoC family"
+	select PINCTRL
+	select DW_APB_TIMER_OF
+	select ARCH_MICROCHIP
+	help
+	  This enables support for the Microchip Sparx5 ARMv8-based
+	  SoC family of TSN-capable gigabit switches.
+
+	  The SparX-5 Ethernet switch family provides a rich set of
+	  switching features such as advanced TCAM-based VLAN and QoS
+	  processing enabling delivery of differentiated services, and
+	  security through TCAM-based frame processing using versatile
+	  content aware processor (VCAP).
+
+endmenu
+
 config ARCH_MMP
 	bool "Marvell MMP SoC Family"
 	select PINCTRL
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
  2025-08-13 17:44 ` [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-22 13:30   ` Nicolas Ferre
  2025-08-13 17:44 ` [PATCH v9 3/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (8 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

Like with the ARM64 Microchip platforms, lets add a generic ARCH_MICROCHIP
symbol and select it so that drivers that are reused for multiple product
generation or lines, can just depend on it instead of adding each SoC
symbol as their dependencies.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 arch/arm/mach-at91/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 04bd91c72521..c5ef27e3cd8f 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
+config ARCH_MICROCHIP
+	bool
+
 menuconfig ARCH_AT91
 	bool "AT91/Microchip SoCs"
 	depends on (CPU_LITTLE_ENDIAN && (ARCH_MULTI_V4T || ARCH_MULTI_V5)) || \
@@ -8,6 +11,7 @@ menuconfig ARCH_AT91
 	select GPIOLIB
 	select PINCTRL
 	select SOC_BUS
+	select ARCH_MICROCHIP
 
 if ARCH_AT91
 config SOC_SAMV7
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 3/9] arm64: lan969x: Add support for Microchip LAN969x SoC
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
  2025-08-13 17:44 ` [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms Robert Marko
  2025-08-13 17:44 ` [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-22 13:31   ` Nicolas Ferre
  2025-08-13 17:44 ` [PATCH v9 4/9] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP Robert Marko
                   ` (7 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

This adds support for the Microchip LAN969x ARMv8-based SoC switch family.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v9:
* Select ARCH_MICROCHIP when ARCH_LAN969X is selected as its now hidden

Changes in v8:
* Place LAN969x under ARCH_MICROCHIP as suggested by Arnd and drop review
tags due to this

 arch/arm64/Kconfig.platforms | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index bfea380100a6..31bddd1a17de 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -177,6 +177,21 @@ menu "Microchip SoC support"
 config ARCH_MICROCHIP
 	bool
 
+config ARCH_LAN969X
+	bool "Microchip LAN969X SoC family"
+	select PINCTRL
+	select DW_APB_TIMER_OF
+	select ARCH_MICROCHIP
+	help
+	  This enables support for the Microchip LAN969X ARMv8-based
+	  SoC family of TSN-capable gigabit switches.
+
+	  The LAN969X Ethernet switch family provides a rich set of
+	  switching features such as advanced TCAM-based VLAN and QoS
+	  processing enabling delivery of differentiated services, and
+	  security through TCAM-based frame processing using versatile
+	  content aware processor (VCAP).
+
 config ARCH_SPARX5
 	bool "Microchip Sparx5 SoC family"
 	select PINCTRL
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 4/9] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (2 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 3/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-09-02 10:02   ` Lee Jones
  2025-08-13 17:44 ` [PATCH v9 5/9] tty: serial: atmel: make " Robert Marko
                   ` (6 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

LAN969x uses the Atmel USART, so make it selectable for ARCH_MICROCHIP to
avoid needing to update depends in future if other Microchip SoC-s use it
as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 drivers/mfd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 425c5fba6cb1..8f11b2df1470 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -138,7 +138,7 @@ config MFD_AAT2870_CORE
 config MFD_AT91_USART
 	tristate "AT91 USART Driver"
 	select MFD_CORE
-	depends on ARCH_AT91 || ARCH_LAN969X || COMPILE_TEST
+	depends on ARCH_MICROCHIP || COMPILE_TEST
 	help
 	  Select this to get support for AT91 USART IP. This is a wrapper
 	  over at91-usart-serial driver and usart-spi-driver. Only one function
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 5/9] tty: serial: atmel: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (3 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 4/9] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-14 10:11   ` Greg KH
  2025-08-13 17:44 ` [PATCH v9 6/9] spi: " Robert Marko
                   ` (5 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

LAN969x uses the Atmel USART serial, so make it selectable for
ARCH_MICROCHIP to avoid needing to update depends in future if other
Microchip SoC-s use it as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 drivers/tty/serial/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index 44427415a80d..724ad4f3cbee 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -128,7 +128,7 @@ config SERIAL_SB1250_DUART_CONSOLE
 config SERIAL_ATMEL
 	bool "AT91 on-chip serial port support"
 	depends on COMMON_CLK
-	depends on ARCH_AT91 || ARCH_LAN969X || COMPILE_TEST
+	depends on ARCH_MICROCHIP || COMPILE_TEST
 	select SERIAL_CORE
 	select SERIAL_MCTRL_GPIO if GPIOLIB
 	select MFD_AT91_USART
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 6/9] spi: atmel: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (4 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 5/9] tty: serial: atmel: make " Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-13 17:48   ` Mark Brown
  2025-08-13 17:44 ` [PATCH v9 7/9] i2c: at91: " Robert Marko
                   ` (4 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

LAN969x uses the Atmel SPI, so make it selectable for ARCH_MICROCHIP to
avoid needing to update depends in future if other Microchip SoC-s use it
as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v8:
* Use ARCH_MICROCHIP for depends as its now selected by both ARM and ARM64
Microchip SoC-s

 drivers/spi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 891729c9c564..320b23e92cbd 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -154,7 +154,7 @@ config SPI_ASPEED_SMC
 
 config SPI_ATMEL
 	tristate "Atmel SPI Controller"
-	depends on ARCH_AT91 || COMPILE_TEST
+	depends on ARCH_MICROCHIP || COMPILE_TEST
 	depends on OF
 	help
 	  This selects a driver for the Atmel SPI Controller, present on
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 7/9] i2c: at91: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (5 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 6/9] spi: " Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-13 18:37   ` Wolfram Sang
  2025-08-13 17:44 ` [PATCH v9 8/9] char: hw_random: atmel: " Robert Marko
                   ` (3 subsequent siblings)
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

LAN969x uses the Atmel TWI I2C, so make it selectable for ARCH_MICROCHIP to
avoid needing to update depends in future if other Microchip SoC-s use it
as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v8:
* Use ARCH_MICROCHIP for depends as its now selected by both ARM and ARM64
Microchip SoC-s

 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 070d014fdc5d..c0aea0920f61 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -414,7 +414,7 @@ config I2C_ASPEED
 
 config I2C_AT91
 	tristate "Atmel AT91 I2C Two-Wire interface (TWI)"
-	depends on ARCH_AT91 || COMPILE_TEST
+	depends on ARCH_MICROCHIP || COMPILE_TEST
 	help
 	  This supports the use of the I2C interface on Atmel AT91
 	  processors.
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 8/9] char: hw_random: atmel: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (6 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 7/9] i2c: at91: " Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-13 17:44 ` [PATCH v9 9/9] crypto: atmel-aes: " Robert Marko
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

LAN969x uses the Atmel HWRNG, so make it selectable for ARCH_MICROCHIP to
avoid needing to update depends in future if other Microchip SoC-s use it
as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v8:
* Use ARCH_MICROCHIP for depends as its now selected by both ARM and ARM64
Microchip SoC-s

 drivers/char/hw_random/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index c85827843447..e316cbc5baa9 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -77,7 +77,7 @@ config HW_RANDOM_AIROHA
 
 config HW_RANDOM_ATMEL
 	tristate "Atmel Random Number Generator support"
-	depends on (ARCH_AT91 || COMPILE_TEST)
+	depends on (ARCH_MICROCHIP || COMPILE_TEST)
 	default HW_RANDOM
 	help
 	  This driver provides kernel-side support for the Random Number
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH v9 9/9] crypto: atmel-aes: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (7 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 8/9] char: hw_random: atmel: " Robert Marko
@ 2025-08-13 17:44 ` Robert Marko
  2025-08-22  9:32   ` Herbert Xu
  2025-08-22 13:33 ` [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Nicolas Ferre
  2025-08-25  6:27 ` Daniel Machon
  10 siblings, 1 reply; 20+ messages in thread
From: Robert Marko @ 2025-08-13 17:44 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

LAN969x uses the Atmel crypto, so make it selectable for ARCH_MICROCHIP to
avoid needing to update depends in future if other Microchip SoC-s use it
as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v8:
* Use ARCH_MICROCHIP for depends as its now selected by both ARM and ARM64
Microchip SoC-s

 drivers/crypto/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 04b4c43b6bae..7c1717c35b76 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -439,7 +439,7 @@ config CRYPTO_DEV_ATMEL_AUTHENC
 
 config CRYPTO_DEV_ATMEL_AES
 	tristate "Support for Atmel AES hw accelerator"
-	depends on ARCH_AT91 || COMPILE_TEST
+	depends on ARCH_MICROCHIP || COMPILE_TEST
 	select CRYPTO_AES
 	select CRYPTO_AEAD
 	select CRYPTO_SKCIPHER
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 6/9] spi: atmel: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 ` [PATCH v9 6/9] spi: " Robert Marko
@ 2025-08-13 17:48   ` Mark Brown
  0 siblings, 0 replies; 20+ messages in thread
From: Mark Brown @ 2025-08-13 17:48 UTC (permalink / raw)
  To: Robert Marko
  Cc: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon, luka.perkov

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

On Wed, Aug 13, 2025 at 07:44:42PM +0200, Robert Marko wrote:
> LAN969x uses the Atmel SPI, so make it selectable for ARCH_MICROCHIP to
> avoid needing to update depends in future if other Microchip SoC-s use it
> as well.

Acked-by: Mark Brown <broonie@kernel.org>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 7/9] i2c: at91: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 ` [PATCH v9 7/9] i2c: at91: " Robert Marko
@ 2025-08-13 18:37   ` Wolfram Sang
  0 siblings, 0 replies; 20+ messages in thread
From: Wolfram Sang @ 2025-08-13 18:37 UTC (permalink / raw)
  To: Robert Marko
  Cc: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon, luka.perkov

On Wed, Aug 13, 2025 at 07:44:43PM +0200, Robert Marko wrote:
> LAN969x uses the Atmel TWI I2C, so make it selectable for ARCH_MICROCHIP to
> avoid needing to update depends in future if other Microchip SoC-s use it
> as well.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 5/9] tty: serial: atmel: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 ` [PATCH v9 5/9] tty: serial: atmel: make " Robert Marko
@ 2025-08-14 10:11   ` Greg KH
  0 siblings, 0 replies; 20+ messages in thread
From: Greg KH @ 2025-08-14 10:11 UTC (permalink / raw)
  To: Robert Marko
  Cc: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon, luka.perkov

On Wed, Aug 13, 2025 at 07:44:41PM +0200, Robert Marko wrote:
> LAN969x uses the Atmel USART serial, so make it selectable for
> ARCH_MICROCHIP to avoid needing to update depends in future if other
> Microchip SoC-s use it as well.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
>  drivers/tty/serial/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
> index 44427415a80d..724ad4f3cbee 100644
> --- a/drivers/tty/serial/Kconfig
> +++ b/drivers/tty/serial/Kconfig
> @@ -128,7 +128,7 @@ config SERIAL_SB1250_DUART_CONSOLE
>  config SERIAL_ATMEL
>  	bool "AT91 on-chip serial port support"
>  	depends on COMMON_CLK
> -	depends on ARCH_AT91 || ARCH_LAN969X || COMPILE_TEST
> +	depends on ARCH_MICROCHIP || COMPILE_TEST
>  	select SERIAL_CORE
>  	select SERIAL_MCTRL_GPIO if GPIOLIB
>  	select MFD_AT91_USART
> -- 
> 2.50.1
> 

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 9/9] crypto: atmel-aes: make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 ` [PATCH v9 9/9] crypto: atmel-aes: " Robert Marko
@ 2025-08-22  9:32   ` Herbert Xu
  0 siblings, 0 replies; 20+ messages in thread
From: Herbert Xu @ 2025-08-22  9:32 UTC (permalink / raw)
  To: Robert Marko
  Cc: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, davem, andi.shyti, lee, broonie,
	gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon, luka.perkov

On Wed, Aug 13, 2025 at 07:44:45PM +0200, Robert Marko wrote:
> LAN969x uses the Atmel crypto, so make it selectable for ARCH_MICROCHIP to
> avoid needing to update depends in future if other Microchip SoC-s use it
> as well.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
> Changes in v8:
> * Use ARCH_MICROCHIP for depends as its now selected by both ARM and ARM64
> Microchip SoC-s
> 
>  drivers/crypto/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms
  2025-08-13 17:44 ` [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms Robert Marko
@ 2025-08-22 13:29   ` Nicolas Ferre
  0 siblings, 0 replies; 20+ messages in thread
From: Nicolas Ferre @ 2025-08-22 13:29 UTC (permalink / raw)
  To: Robert Marko, linux, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov

On 13/08/2025 at 19:44, Robert Marko wrote:
> Currently, Microchip SparX-5 SoC is supported and it has its own symbol.
> 
> However, this means that new Microchip platforms that share drivers need
> to constantly keep updating depends on various drivers.
> 
> So, to try and reduce this lets add ARCH_MICROCHIP symbol that drivers
> could instead depend on.
> 
> LAN969x is being worked on and it will be added under ARCH_MICROCHIP.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Ok, according to the compromise that we discussed during v8 that's fine 
with me:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

Thanks Robert! Regards,
   Nicolas

> ---
> Changes in v9:
> * Make ARCH_MICROCHIP hidden symbol that is selected by SparX-5 directly,
> this avoids breaking existing configs with ARCH_SPARX5
> 
>   arch/arm64/Kconfig.platforms | 36 ++++++++++++++++++++++--------------
>   1 file changed, 22 insertions(+), 14 deletions(-)
> 
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index a88f5ad9328c..bfea380100a6 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -131,20 +131,6 @@ config ARCH_EXYNOS
>          help
>            This enables support for ARMv8 based Samsung Exynos SoC family.
> 
> -config ARCH_SPARX5
> -       bool "Microchip Sparx5 SoC family"
> -       select PINCTRL
> -       select DW_APB_TIMER_OF
> -       help
> -         This enables support for the Microchip Sparx5 ARMv8-based
> -         SoC family of TSN-capable gigabit switches.
> -
> -         The SparX-5 Ethernet switch family provides a rich set of
> -         switching features such as advanced TCAM-based VLAN and QoS
> -         processing enabling delivery of differentiated services, and
> -         security through TCAM-based frame processing using versatile
> -         content aware processor (VCAP).
> -
>   config ARCH_K3
>          bool "Texas Instruments Inc. K3 multicore SoC architecture"
>          select SOC_TI
> @@ -186,6 +172,28 @@ config ARCH_MESON
>            This enables support for the arm64 based Amlogic SoCs
>            such as the s905, S905X/D, S912, A113X/D or S905X/D2
> 
> +menu "Microchip SoC support"
> +
> +config ARCH_MICROCHIP
> +       bool
> +
> +config ARCH_SPARX5
> +       bool "Microchip Sparx5 SoC family"
> +       select PINCTRL
> +       select DW_APB_TIMER_OF
> +       select ARCH_MICROCHIP
> +       help
> +         This enables support for the Microchip Sparx5 ARMv8-based
> +         SoC family of TSN-capable gigabit switches.
> +
> +         The SparX-5 Ethernet switch family provides a rich set of
> +         switching features such as advanced TCAM-based VLAN and QoS
> +         processing enabling delivery of differentiated services, and
> +         security through TCAM-based frame processing using versatile
> +         content aware processor (VCAP).
> +
> +endmenu
> +
>   config ARCH_MMP
>          bool "Marvell MMP SoC Family"
>          select PINCTRL
> --
> 2.50.1
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP
  2025-08-13 17:44 ` [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP Robert Marko
@ 2025-08-22 13:30   ` Nicolas Ferre
  0 siblings, 0 replies; 20+ messages in thread
From: Nicolas Ferre @ 2025-08-22 13:30 UTC (permalink / raw)
  To: Robert Marko, linux, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov

On 13/08/2025 at 19:44, Robert Marko wrote:
> Like with the ARM64 Microchip platforms, lets add a generic ARCH_MICROCHIP
> symbol and select it so that drivers that are reused for multiple product
> generation or lines, can just depend on it instead of adding each SoC
> symbol as their dependencies.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

> ---
>   arch/arm/mach-at91/Kconfig | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
> index 04bd91c72521..c5ef27e3cd8f 100644
> --- a/arch/arm/mach-at91/Kconfig
> +++ b/arch/arm/mach-at91/Kconfig
> @@ -1,4 +1,7 @@
>   # SPDX-License-Identifier: GPL-2.0-only
> +config ARCH_MICROCHIP
> +       bool
> +
>   menuconfig ARCH_AT91
>          bool "AT91/Microchip SoCs"
>          depends on (CPU_LITTLE_ENDIAN && (ARCH_MULTI_V4T || ARCH_MULTI_V5)) || \
> @@ -8,6 +11,7 @@ menuconfig ARCH_AT91
>          select GPIOLIB
>          select PINCTRL
>          select SOC_BUS
> +       select ARCH_MICROCHIP
> 
>   if ARCH_AT91
>   config SOC_SAMV7
> --
> 2.50.1
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 3/9] arm64: lan969x: Add support for Microchip LAN969x SoC
  2025-08-13 17:44 ` [PATCH v9 3/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
@ 2025-08-22 13:31   ` Nicolas Ferre
  0 siblings, 0 replies; 20+ messages in thread
From: Nicolas Ferre @ 2025-08-22 13:31 UTC (permalink / raw)
  To: Robert Marko, linux, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov

On 13/08/2025 at 19:44, Robert Marko wrote:
> This adds support for the Microchip LAN969x ARMv8-based SoC switch family.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

> ---
> Changes in v9:
> * Select ARCH_MICROCHIP when ARCH_LAN969X is selected as its now hidden
> 
> Changes in v8:
> * Place LAN969x under ARCH_MICROCHIP as suggested by Arnd and drop review
> tags due to this
> 
>   arch/arm64/Kconfig.platforms | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index bfea380100a6..31bddd1a17de 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -177,6 +177,21 @@ menu "Microchip SoC support"
>   config ARCH_MICROCHIP
>          bool
> 
> +config ARCH_LAN969X
> +       bool "Microchip LAN969X SoC family"
> +       select PINCTRL
> +       select DW_APB_TIMER_OF
> +       select ARCH_MICROCHIP
> +       help
> +         This enables support for the Microchip LAN969X ARMv8-based
> +         SoC family of TSN-capable gigabit switches.
> +
> +         The LAN969X Ethernet switch family provides a rich set of
> +         switching features such as advanced TCAM-based VLAN and QoS
> +         processing enabling delivery of differentiated services, and
> +         security through TCAM-based frame processing using versatile
> +         content aware processor (VCAP).
> +
>   config ARCH_SPARX5
>          bool "Microchip Sparx5 SoC family"
>          select PINCTRL
> --
> 2.50.1
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (8 preceding siblings ...)
  2025-08-13 17:44 ` [PATCH v9 9/9] crypto: atmel-aes: " Robert Marko
@ 2025-08-22 13:33 ` Nicolas Ferre
  2025-08-25  6:27 ` Daniel Machon
  10 siblings, 0 replies; 20+ messages in thread
From: Nicolas Ferre @ 2025-08-22 13:33 UTC (permalink / raw)
  To: Robert Marko, linux, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon
  Cc: luka.perkov

On 13/08/2025 at 19:44, Robert Marko wrote:
> This patch series adds basic support for Microchip LAN969x SoC.
> 
> It introduces the SoC ARCH symbol itself under the ARCH_MICROCHIP symbol
> which allows to avoid the need to change dependencies of the drivers that
> are shared for Microchip SoC-s in the future.
> 
> DTS and further driver will be added in follow-up series.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

I added explicitly my Ack to the 3 first patches of the series to be 
super-specific, but for the whole series:

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

Thanks for your work on this Robert, it's highly appreciated. Best regards,
   Nicolas

> ---
> Changes in v9:
> * Make ARCH_MICROCHIP hidden symbol that is selected by SparX-5 and LAN969x
> directly, this avoids breaking existing configs with ARCH_SPARX5
> 
> Changes in v8:
> * Move to using ARCH_MICROCHIP as suggested by Arnd
> * Dropped any review tags due to changes
> 
> Robert Marko (9):
>    arm64: Add config for Microchip SoC platforms
>    ARM: at91: select ARCH_MICROCHIP
>    arm64: lan969x: Add support for Microchip LAN969x SoC
>    mfd: at91-usart: Make it selectable for ARCH_MICROCHIP
>    tty: serial: atmel: make it selectable for ARCH_MICROCHIP
>    spi: atmel: make it selectable for ARCH_MICROCHIP
>    i2c: at91: make it selectable for ARCH_MICROCHIP
>    char: hw_random: atmel: make it selectable for ARCH_MICROCHIP
>    crypto: atmel-aes: make it selectable for ARCH_MICROCHIP
> 
>   arch/arm/mach-at91/Kconfig     |  4 +++
>   arch/arm64/Kconfig.platforms   | 51 ++++++++++++++++++++++++----------
>   drivers/char/hw_random/Kconfig |  2 +-
>   drivers/crypto/Kconfig         |  2 +-
>   drivers/i2c/busses/Kconfig     |  2 +-
>   drivers/mfd/Kconfig            |  2 +-
>   drivers/spi/Kconfig            |  2 +-
>   drivers/tty/serial/Kconfig     |  2 +-
>   8 files changed, 47 insertions(+), 20 deletions(-)
> 
> --
> 2.50.1
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC
  2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
                   ` (9 preceding siblings ...)
  2025-08-22 13:33 ` [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Nicolas Ferre
@ 2025-08-25  6:27 ` Daniel Machon
  10 siblings, 0 replies; 20+ messages in thread
From: Daniel Machon @ 2025-08-25  6:27 UTC (permalink / raw)
  To: Robert Marko
  Cc: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti, lee,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	luka.perkov

> This patch series adds basic support for Microchip LAN969x SoC.
> 
> It introduces the SoC ARCH symbol itself under the ARCH_MICROCHIP symbol
> which allows to avoid the need to change dependencies of the drivers that
> are shared for Microchip SoC-s in the future.
> 
> DTS and further driver will be added in follow-up series.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
> Changes in v9:
> * Make ARCH_MICROCHIP hidden symbol that is selected by SparX-5 and LAN969x
> directly, this avoids breaking existing configs with ARCH_SPARX5
> 
> Changes in v8:
> * Move to using ARCH_MICROCHIP as suggested by Arnd
> * Dropped any review tags due to changes
> 
> Robert Marko (9):
>   arm64: Add config for Microchip SoC platforms
>   ARM: at91: select ARCH_MICROCHIP
>   arm64: lan969x: Add support for Microchip LAN969x SoC
>   mfd: at91-usart: Make it selectable for ARCH_MICROCHIP
>   tty: serial: atmel: make it selectable for ARCH_MICROCHIP
>   spi: atmel: make it selectable for ARCH_MICROCHIP
>   i2c: at91: make it selectable for ARCH_MICROCHIP
>   char: hw_random: atmel: make it selectable for ARCH_MICROCHIP
>   crypto: atmel-aes: make it selectable for ARCH_MICROCHIP
> 
>  arch/arm/mach-at91/Kconfig     |  4 +++
>  arch/arm64/Kconfig.platforms   | 51 ++++++++++++++++++++++++----------
>  drivers/char/hw_random/Kconfig |  2 +-
>  drivers/crypto/Kconfig         |  2 +-
>  drivers/i2c/busses/Kconfig     |  2 +-
>  drivers/mfd/Kconfig            |  2 +-
>  drivers/spi/Kconfig            |  2 +-
>  drivers/tty/serial/Kconfig     |  2 +-
>  8 files changed, 47 insertions(+), 20 deletions(-)
> 
> --
> 2.50.1
>

Acked-by: Daniel Machon <daniel.machon@microchip.com> 

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH v9 4/9] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP
  2025-08-13 17:44 ` [PATCH v9 4/9] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP Robert Marko
@ 2025-09-02 10:02   ` Lee Jones
  0 siblings, 0 replies; 20+ messages in thread
From: Lee Jones @ 2025-09-02 10:02 UTC (permalink / raw)
  To: Robert Marko
  Cc: linux, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	catalin.marinas, will, olivia, herbert, davem, andi.shyti,
	broonie, gregkh, jirislaby, arnd, linux-arm-kernel, linux-kernel,
	linux-crypto, linux-i2c, linux-spi, linux-serial, o.rempel,
	daniel.machon, luka.perkov

On Wed, 13 Aug 2025, Robert Marko wrote:

> LAN969x uses the Atmel USART, so make it selectable for ARCH_MICROCHIP to
> avoid needing to update depends in future if other Microchip SoC-s use it
> as well.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
>  drivers/mfd/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 425c5fba6cb1..8f11b2df1470 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -138,7 +138,7 @@ config MFD_AAT2870_CORE
>  config MFD_AT91_USART
>  	tristate "AT91 USART Driver"
>  	select MFD_CORE
> -	depends on ARCH_AT91 || ARCH_LAN969X || COMPILE_TEST
> +	depends on ARCH_MICROCHIP || COMPILE_TEST
>  	help
>  	  Select this to get support for AT91 USART IP. This is a wrapper
>  	  over at91-usart-serial driver and usart-spi-driver. Only one function

Let me know when the deps are in Mainline.

-- 
Lee Jones [李琼斯]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-09-02 10:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 17:44 [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
2025-08-13 17:44 ` [PATCH v9 1/9] arm64: Add config for Microchip SoC platforms Robert Marko
2025-08-22 13:29   ` Nicolas Ferre
2025-08-13 17:44 ` [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP Robert Marko
2025-08-22 13:30   ` Nicolas Ferre
2025-08-13 17:44 ` [PATCH v9 3/9] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
2025-08-22 13:31   ` Nicolas Ferre
2025-08-13 17:44 ` [PATCH v9 4/9] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP Robert Marko
2025-09-02 10:02   ` Lee Jones
2025-08-13 17:44 ` [PATCH v9 5/9] tty: serial: atmel: make " Robert Marko
2025-08-14 10:11   ` Greg KH
2025-08-13 17:44 ` [PATCH v9 6/9] spi: " Robert Marko
2025-08-13 17:48   ` Mark Brown
2025-08-13 17:44 ` [PATCH v9 7/9] i2c: at91: " Robert Marko
2025-08-13 18:37   ` Wolfram Sang
2025-08-13 17:44 ` [PATCH v9 8/9] char: hw_random: atmel: " Robert Marko
2025-08-13 17:44 ` [PATCH v9 9/9] crypto: atmel-aes: " Robert Marko
2025-08-22  9:32   ` Herbert Xu
2025-08-22 13:33 ` [PATCH v9 0/9] arm64: lan969x: Add support for Microchip LAN969x SoC Nicolas Ferre
2025-08-25  6:27 ` Daniel Machon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).