linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/4] arm64: lan969x: Add support for Microchip LAN969x SoC
@ 2024-11-08 13:57 Robert Marko
  2024-11-08 13:57 ` [PATCH v2 2/4] clk: lan966x: make it selectable for ARCH_LAN969X Robert Marko
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Marko @ 2024-11-08 13:57 UTC (permalink / raw)
  To: catalin.marinas, will, mturquette, sboyd, lee, gregkh, jirislaby,
	linux-arm-kernel, linux-kernel, linux-clk, linux-serial
  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 v2:
* Add forgotten LAN969x architecture support itself

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

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 6c6d11536b42..4650ad3674aa 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -128,6 +128,20 @@ config ARCH_SPARX5
 	  security through TCAM-based frame processing using versatile
 	  content aware processor (VCAP).
 
+config ARCH_LAN969X
+	bool "Microchip LAN969X SoC family"
+	select PINCTRL
+	select DW_APB_TIMER_OF
+	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_K3
 	bool "Texas Instruments Inc. K3 multicore SoC architecture"
 	select PM_GENERIC_DOMAINS if PM
-- 
2.47.0


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

* [PATCH v2 2/4] clk: lan966x: make it selectable for ARCH_LAN969X
  2024-11-08 13:57 [PATCH v2 1/4] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
@ 2024-11-08 13:57 ` Robert Marko
  2024-11-08 13:57 ` [PATCH v2 3/4] mfd: at91-usart: " Robert Marko
  2024-11-08 13:57 ` [PATCH v2 4/4] tty: serial: atmel: " Robert Marko
  2 siblings, 0 replies; 5+ messages in thread
From: Robert Marko @ 2024-11-08 13:57 UTC (permalink / raw)
  To: catalin.marinas, will, mturquette, sboyd, lee, gregkh, jirislaby,
	linux-arm-kernel, linux-kernel, linux-clk, linux-serial
  Cc: luka.perkov, Robert Marko

LAN969x uses the same LAN966x clock driver so make it selectable for
ARCH_LAN969X.

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

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index ef709327cba1..713573b6c86c 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -270,7 +270,7 @@ config COMMON_CLK_LAN966X
 	tristate "Generic Clock Controller driver for LAN966X SoC"
 	depends on HAS_IOMEM
 	depends on OF
-	depends on SOC_LAN966 || COMPILE_TEST
+	depends on SOC_LAN966 || ARCH_LAN969X || COMPILE_TEST
 	help
 	  This driver provides support for Generic Clock Controller(GCK) on
 	  LAN966X SoC. GCK generates and supplies clock to various peripherals
-- 
2.47.0


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

* [PATCH v2 3/4] mfd: at91-usart: make it selectable for ARCH_LAN969X
  2024-11-08 13:57 [PATCH v2 1/4] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
  2024-11-08 13:57 ` [PATCH v2 2/4] clk: lan966x: make it selectable for ARCH_LAN969X Robert Marko
@ 2024-11-08 13:57 ` Robert Marko
  2024-11-12 14:38   ` Lee Jones
  2024-11-08 13:57 ` [PATCH v2 4/4] tty: serial: atmel: " Robert Marko
  2 siblings, 1 reply; 5+ messages in thread
From: Robert Marko @ 2024-11-08 13:57 UTC (permalink / raw)
  To: catalin.marinas, will, mturquette, sboyd, lee, gregkh, jirislaby,
	linux-arm-kernel, linux-kernel, linux-clk, linux-serial
  Cc: luka.perkov, Robert Marko, Nicolas Ferre

LAN969x uses the AT91 USART IP so make it selectable for ARCH_LAN969X.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
---
Changes in v2:
* Pickup Acked-by from Nicolas

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

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index ae23b317a64e..f280ba28d618 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 || COMPILE_TEST
+	depends on ARCH_AT91 || ARCH_LAN969X ||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.47.0


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

* [PATCH v2 4/4] tty: serial: atmel: make it selectable for ARCH_LAN969X
  2024-11-08 13:57 [PATCH v2 1/4] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
  2024-11-08 13:57 ` [PATCH v2 2/4] clk: lan966x: make it selectable for ARCH_LAN969X Robert Marko
  2024-11-08 13:57 ` [PATCH v2 3/4] mfd: at91-usart: " Robert Marko
@ 2024-11-08 13:57 ` Robert Marko
  2 siblings, 0 replies; 5+ messages in thread
From: Robert Marko @ 2024-11-08 13:57 UTC (permalink / raw)
  To: catalin.marinas, will, mturquette, sboyd, lee, gregkh, jirislaby,
	linux-arm-kernel, linux-kernel, linux-clk, linux-serial
  Cc: luka.perkov, Robert Marko, Nicolas Ferre

LAN969x uses the Atmel serial, so make it selectable for ARCH_LAN969X.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
---
Changes in v2:
* Pickup Acked-by from Nicolas
* Add whitespace before COMPILE_TEST

 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 45f0f779fbf9..976dae3bb1bb 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 || COMPILE_TEST
+	depends on ARCH_AT91 || ARCH_LAN969X || COMPILE_TEST
 	select SERIAL_CORE
 	select SERIAL_MCTRL_GPIO if GPIOLIB
 	select MFD_AT91_USART
-- 
2.47.0


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

* Re: [PATCH v2 3/4] mfd: at91-usart: make it selectable for ARCH_LAN969X
  2024-11-08 13:57 ` [PATCH v2 3/4] mfd: at91-usart: " Robert Marko
@ 2024-11-12 14:38   ` Lee Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2024-11-12 14:38 UTC (permalink / raw)
  To: Robert Marko
  Cc: catalin.marinas, will, mturquette, sboyd, gregkh, jirislaby,
	linux-arm-kernel, linux-kernel, linux-clk, linux-serial,
	luka.perkov, Nicolas Ferre

On Fri, 08 Nov 2024, Robert Marko wrote:

> LAN969x uses the AT91 USART IP so make it selectable for ARCH_LAN969X.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> ---
> Changes in v2:
> * Pickup Acked-by from Nicolas
> 
>  drivers/mfd/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Lee Jones <lee@kernel.org>

> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index ae23b317a64e..f280ba28d618 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 || COMPILE_TEST
> +	depends on ARCH_AT91 || ARCH_LAN969X ||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.47.0
> 

-- 
Lee Jones [李琼斯]

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

end of thread, other threads:[~2024-11-12 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-08 13:57 [PATCH v2 1/4] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
2024-11-08 13:57 ` [PATCH v2 2/4] clk: lan966x: make it selectable for ARCH_LAN969X Robert Marko
2024-11-08 13:57 ` [PATCH v2 3/4] mfd: at91-usart: " Robert Marko
2024-11-12 14:38   ` Lee Jones
2024-11-08 13:57 ` [PATCH v2 4/4] tty: serial: atmel: " Robert Marko

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).