linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/17] SoC and defconfig support for SAM9X60
@ 2019-11-26 13:12 Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 01/17] ARM: at91: Kconfig: add sam9x60 pll config flag Claudiu Beznea
                   ` (17 more replies)
  0 siblings, 18 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Hi,

This series enables proper support for SAM9X60 in Kconfig and
defconfig.

Thank you,
Claudiu Beznea

Changes in v2:
- cahnged cover letter title; previously it was:
  "add defconfig support for SAM9X60"
- have new entry in arch/arm/mach-at91/Kconfig for SOC_SAM9X60
  independent of SOC_AT91SAM9 to be able to select only necessary
  config flags for SAM9X60 (patches 02/17, 03/17)
- select POWER_RESET_AT91_RESET and POWER_RESET_AT91_SAMA5D2_SHDWC
  as for SAMA5D2 (patches 04/17, 05/17)
- select DEBUG_AT91_RM9200_DBGU (patch 06/17)
- shaped a bit the patches titles and commit desciptions for defconfig
  patches (patches 09-17/17)

Claudiu Beznea (12):
  ARM: at91: Kconfig: add sam9x60 pll config flag
  ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  drivers: soc: atmel: move sam9x60 under its own config flag
  power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60
  drivers: soc: atmel: select POWER_RESET_AT91_SAMA5D2_SHDWC for sam9x60
  ARM: debug-ll: select DEBUG_AT91_RM9200_DBGU for sam9x60
  ARM: at91: Kconfig: add config flag for SAM9X60 SoC
  ARM: at91/defconfig: use savedefconfig
  ARM: at91/defconfig: enable config flag for sam9x60 SoC
  ARM: at91/defconfig: enable config flag for atmel maxtouch
  ARM: at91/defconfig: enable config flag for flexcom
  ARM: at91/defconfig: enable config flag for XDMAC

Codrin Ciubotariu (3):
  ARM: at91/defconfig: enable config flag for I2S Multi-channel
  ARM: at91/defconfig: enable config flag for audio PROTO board
  ARM: at91/defconfig: enable config flag for CLASSD

Tudor Ambarus (2):
  ARM: at91/defconfig: enable config flag for SAMA5D2's ADC
  ARM: at91/defconfig: enable config flag for ATMEL QUADSPI

 arch/arm/Kconfig.debug             |  6 ++---
 arch/arm/configs/at91_dt_defconfig | 55 ++++++++++++++++++--------------------
 arch/arm/mach-at91/Kconfig         | 24 +++++++++++++++--
 arch/arm/mach-at91/Makefile        |  1 +
 arch/arm/mach-at91/at91sam9.c      | 18 -------------
 arch/arm/mach-at91/pm.c            |  2 +-
 arch/arm/mach-at91/sam9x60.c       | 34 +++++++++++++++++++++++
 drivers/power/reset/Kconfig        |  4 +--
 drivers/soc/atmel/soc.c            |  5 ++--
 9 files changed, 92 insertions(+), 57 deletions(-)
 create mode 100644 arch/arm/mach-at91/sam9x60.c

-- 
2.7.4


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

* [PATCH v2 01/17] ARM: at91: Kconfig: add sam9x60 pll config flag
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC " Claudiu Beznea
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Add SAM9X60's pll config flag. It was first used in
commit a436c2a447e5 ("clk: at91: add sam9x60 PLL driver").

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/mach-at91/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index af41725fcc72..262b550d7329 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -154,6 +154,9 @@ config HAVE_AT91_AUDIO_PLL
 config HAVE_AT91_I2S_MUX_CLK
 	bool
 
+config HAVE_AT91_SAM9X60_PLL
+	bool
+
 config SOC_SAM_V4_V5
 	bool
 
-- 
2.7.4


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

* [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 01/17] ARM: at91: Kconfig: add sam9x60 pll config flag Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 21:28   ` Alexandre Belloni
  2019-11-26 13:12 ` [PATCH v2 03/17] drivers: soc: atmel: move sam9x60 under its own " Claudiu Beznea
                   ` (15 subsequent siblings)
  17 siblings, 1 reply; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Move SAM9X60's PM part under SoC config flag. This allows the building
of SAM9X60 platform withouth depending on CONFIG_SOC_AT91SAM9 flag,
allowing us to select only necessary config flags for SAM9X60.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/mach-at91/Makefile   |  1 +
 arch/arm/mach-at91/at91sam9.c | 18 ------------------
 arch/arm/mach-at91/pm.c       |  2 +-
 arch/arm/mach-at91/sam9x60.c  | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 36 insertions(+), 19 deletions(-)
 create mode 100644 arch/arm/mach-at91/sam9x60.c

diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index de64301dcff2..f565490f1b70 100644
--- a/arch/arm/mach-at91/Makefile
+++ b/arch/arm/mach-at91/Makefile
@@ -6,6 +6,7 @@
 # CPU-specific support
 obj-$(CONFIG_SOC_AT91RM9200)	+= at91rm9200.o
 obj-$(CONFIG_SOC_AT91SAM9)	+= at91sam9.o
+obj-$(CONFIG_SOC_SAM9X60)	+= sam9x60.o
 obj-$(CONFIG_SOC_SAMA5)		+= sama5.o
 obj-$(CONFIG_SOC_SAMV7)		+= samv7.o
 
diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c
index bf629c90c758..7e572189a5eb 100644
--- a/arch/arm/mach-at91/at91sam9.c
+++ b/arch/arm/mach-at91/at91sam9.c
@@ -31,21 +31,3 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
 	.init_machine	= at91sam9_init,
 	.dt_compat	= at91_dt_board_compat,
 MACHINE_END
-
-static void __init sam9x60_init(void)
-{
-	of_platform_default_populate(NULL, NULL, NULL);
-
-	sam9x60_pm_init();
-}
-
-static const char *const sam9x60_dt_board_compat[] __initconst = {
-	"microchip,sam9x60",
-	NULL
-};
-
-DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
-	/* Maintainer: Microchip */
-	.init_machine	= sam9x60_init,
-	.dt_compat	= sam9x60_dt_board_compat,
-MACHINE_END
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index d5af6aedc02c..56a6a49b19e2 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -805,7 +805,7 @@ void __init at91rm9200_pm_init(void)
 
 void __init sam9x60_pm_init(void)
 {
-	if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
+	if (!IS_ENABLED(CONFIG_SOC_SAM9X60))
 		return;
 
 	at91_pm_modes_init();
diff --git a/arch/arm/mach-at91/sam9x60.c b/arch/arm/mach-at91/sam9x60.c
new file mode 100644
index 000000000000..d8c739d25458
--- /dev/null
+++ b/arch/arm/mach-at91/sam9x60.c
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Setup code for SAM9X60.
+ *
+ * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
+ */
+
+#include <linux/of.h>
+#include <linux/of_platform.h>
+
+#include <asm/mach/arch.h>
+#include <asm/system_misc.h>
+
+#include "generic.h"
+
+static void __init sam9x60_init(void)
+{
+	of_platform_default_populate(NULL, NULL, NULL);
+
+	sam9x60_pm_init();
+}
+
+static const char *const sam9x60_dt_board_compat[] __initconst = {
+	"microchip,sam9x60",
+	NULL
+};
+
+DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
+	/* Maintainer: Microchip */
+	.init_machine	= sam9x60_init,
+	.dt_compat	= sam9x60_dt_board_compat,
+MACHINE_END
-- 
2.7.4


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

* [PATCH v2 03/17] drivers: soc: atmel: move sam9x60 under its own config flag
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 01/17] ARM: at91: Kconfig: add sam9x60 pll config flag Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC " Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 04/17] power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60 Claudiu Beznea
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Move SAM9X60 under its own config flag.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/soc/atmel/soc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c
index 096a83cf0caf..55a1f57a4d8c 100644
--- a/drivers/soc/atmel/soc.c
+++ b/drivers/soc/atmel/soc.c
@@ -66,8 +66,9 @@ static const struct at91_soc __initconst socs[] = {
 	AT91_SOC(AT91SAM9XE128_CIDR_MATCH, 0, "at91sam9xe128", "at91sam9xe128"),
 	AT91_SOC(AT91SAM9XE256_CIDR_MATCH, 0, "at91sam9xe256", "at91sam9xe256"),
 	AT91_SOC(AT91SAM9XE512_CIDR_MATCH, 0, "at91sam9xe512", "at91sam9xe512"),
-	AT91_SOC(SAM9X60_CIDR_MATCH, SAM9X60_EXID_MATCH,
-		 "sam9x60", "sam9x60"),
+#endif
+#ifdef CONFIG_SOC_SAM9X60
+	AT91_SOC(SAM9X60_CIDR_MATCH, SAM9X60_EXID_MATCH, "sam9x60", "sam9x60"),
 #endif
 #ifdef CONFIG_SOC_SAMA5
 	AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D21CU_EXID_MATCH,
-- 
2.7.4


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

* [PATCH v2 04/17] power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (2 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 03/17] drivers: soc: atmel: move sam9x60 under its own " Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-29 14:06   ` Sebastian Reichel
  2019-11-26 13:12 ` [PATCH v2 05/17] drivers: soc: atmel: select POWER_RESET_AT91_SAMA5D2_SHDWC " Claudiu Beznea
                   ` (13 subsequent siblings)
  17 siblings, 1 reply; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Select POWER_RESET_AT91_RESET for SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/power/reset/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index c721939767eb..886e60017f4d 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -26,7 +26,7 @@ config POWER_RESET_AT91_POWEROFF
 config POWER_RESET_AT91_RESET
 	tristate "Atmel AT91 reset driver"
 	depends on ARCH_AT91
-	default SOC_AT91SAM9 || SOC_SAMA5
+	default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
 	help
 	  This driver supports restart for Atmel AT91SAM9 and SAMA5
 	  SoCs
-- 
2.7.4


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

* [PATCH v2 05/17] drivers: soc: atmel: select POWER_RESET_AT91_SAMA5D2_SHDWC for sam9x60
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (3 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 04/17] power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60 Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 06/17] ARM: debug-ll: select DEBUG_AT91_RM9200_DBGU " Claudiu Beznea
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Select POWER_RESET_AT91_SAMA5D2_SHDWC for SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/power/reset/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index 886e60017f4d..ff81d02740c2 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -34,7 +34,7 @@ config POWER_RESET_AT91_RESET
 config POWER_RESET_AT91_SAMA5D2_SHDWC
 	tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
 	depends on ARCH_AT91
-	default SOC_SAMA5
+	default SOC_SAM9X60 || SOC_SAMA5
 	help
 	  This driver supports the alternate shutdown controller for some Atmel
 	  SAMA5 SoCs. It is present for example on SAMA5D2 SoC.
-- 
2.7.4


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

* [PATCH v2 06/17] ARM: debug-ll: select DEBUG_AT91_RM9200_DBGU for sam9x60
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (4 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 05/17] drivers: soc: atmel: select POWER_RESET_AT91_SAMA5D2_SHDWC " Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 07/17] ARM: at91: Kconfig: add config flag for SAM9X60 SoC Claudiu Beznea
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Select DEBUG_AT91_RM9200_DBGU for SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/Kconfig.debug | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 8bcbd0cd739b..b70d7debf5ca 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -147,14 +147,14 @@ choice
 		    0x80024000      | 0xf0024000     | UART9
 
 	config DEBUG_AT91_RM9200_DBGU
-		bool "Kernel low-level debugging on AT91RM9200, AT91SAM9 DBGU"
+		bool "Kernel low-level debugging on AT91RM9200, AT91SAM9, SAM9X60 DBGU"
 		select DEBUG_AT91_UART
-		depends on SOC_AT91RM9200 || SOC_AT91SAM9
+		depends on SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAM9X60
 		help
 		  Say Y here if you want kernel low-level debugging support
 		  on the DBGU port of:
 		    at91rm9200, at91sam9260, at91sam9g20, at91sam9261,
-		    at91sam9g10, at91sam9n12, at91sam9rl64, at91sam9x5
+		    at91sam9g10, at91sam9n12, at91sam9rl64, at91sam9x5, sam9x60
 
 	config DEBUG_AT91_SAM9263_DBGU
 		bool "Kernel low-level debugging on AT91SAM{9263,9G45,A5D3} DBGU"
-- 
2.7.4


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

* [PATCH v2 07/17] ARM: at91: Kconfig: add config flag for SAM9X60 SoC
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (5 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 06/17] ARM: debug-ll: select DEBUG_AT91_RM9200_DBGU " Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 08/17] ARM: at91/defconfig: use savedefconfig Claudiu Beznea
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Add config flag for SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
---
 arch/arm/mach-at91/Kconfig | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 262b550d7329..7979420bd48b 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -105,11 +105,28 @@ config SOC_AT91SAM9
 	    AT91SAM9X35
 	    AT91SAM9XE
 
+config SOC_SAM9X60
+	bool "SAM9X60"
+	depends on ARCH_MULTI_V5
+	select ATMEL_AIC5_IRQ
+	select ATMEL_PM if PM
+	select ATMEL_SDRAMC
+	select CPU_ARM926T
+	select HAVE_AT91_USB_CLK
+	select HAVE_AT91_GENERATED_CLK
+	select HAVE_AT91_SAM9X60_PLL
+	select MEMORY
+	select PINCTRL_AT91
+	select SOC_SAM_V4_V5
+	select SRAM if PM
+	help
+	  Select this if you are using Microchip's SAM9X60 SoC
+
 comment "Clocksource driver selection"
 
 config ATMEL_CLOCKSOURCE_PIT
 	bool "Periodic Interval Timer (PIT) support"
-	depends on SOC_AT91SAM9 || SOC_SAMA5
+	depends on SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
 	default SOC_AT91SAM9 || SOC_SAMA5
 	select ATMEL_PIT
 	help
@@ -119,7 +136,7 @@ config ATMEL_CLOCKSOURCE_PIT
 
 config ATMEL_CLOCKSOURCE_TCB
 	bool "Timer Counter Blocks (TCB) support"
-	default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5
+	default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
 	select ATMEL_TCB_CLKSRC
 	help
 	  Select this to get a high precision clocksource based on a
-- 
2.7.4


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

* [PATCH v2 08/17] ARM: at91/defconfig: use savedefconfig
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (6 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 07/17] ARM: at91: Kconfig: add config flag for SAM9X60 SoC Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 09/17] ARM: at91/defconfig: enable config flag for sam9x60 SoC Claudiu Beznea
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Use savedefconfig.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 44 +++++++++++++-------------------------
 1 file changed, 15 insertions(+), 29 deletions(-)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 3729a6e0ee24..148f753de6c7 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -7,11 +7,6 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_KALLSYMS_ALL=y
 CONFIG_EMBEDDED=y
 CONFIG_SLAB=y
-CONFIG_MODULES=y
-CONFIG_MODULE_UNLOAD=y
-# CONFIG_BLK_DEV_BSG is not set
-# CONFIG_IOSCHED_DEADLINE is not set
-# CONFIG_IOSCHED_CFQ is not set
 CONFIG_ARCH_MULTI_V4T=y
 CONFIG_ARCH_MULTI_V5=y
 # CONFIG_ARCH_MULTI_V7 is not set
@@ -27,6 +22,9 @@ CONFIG_ARM_APPENDED_DTB=y
 CONFIG_ARM_ATAG_DTB_COMPAT=y
 CONFIG_CMDLINE="console=ttyS0,115200 initrd=0x21100000,25165824 root=/dev/ram0 rw"
 CONFIG_KEXEC=y
+CONFIG_MODULES=y
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_BLK_DEV_BSG is not set
 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
 CONFIG_NET=y
 CONFIG_PACKET=y
@@ -37,13 +35,7 @@ CONFIG_IP_PNP=y
 CONFIG_IP_PNP_DHCP=y
 CONFIG_IP_PNP_BOOTP=y
 CONFIG_IP_PNP_RARP=y
-# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
-# CONFIG_INET_XFRM_MODE_TUNNEL is not set
-# CONFIG_INET_XFRM_MODE_BEET is not set
 # CONFIG_INET_DIAG is not set
-# CONFIG_INET6_XFRM_MODE_TRANSPORT is not set
-# CONFIG_INET6_XFRM_MODE_TUNNEL is not set
-# CONFIG_INET6_XFRM_MODE_BEET is not set
 CONFIG_IPV6_SIT_6RD=y
 CONFIG_CFG80211=y
 CONFIG_MAC80211=y
@@ -69,8 +61,8 @@ CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 # CONFIG_SCSI_LOWLEVEL is not set
 CONFIG_NETDEVICES=y
-CONFIG_MACB=y
 # CONFIG_NET_VENDOR_BROADCOM is not set
+CONFIG_MACB=y
 CONFIG_DM9000=y
 # CONFIG_NET_VENDOR_FARADAY is not set
 # CONFIG_NET_VENDOR_INTEL is not set
@@ -82,10 +74,12 @@ CONFIG_DM9000=y
 # CONFIG_NET_VENDOR_STMICRO is not set
 CONFIG_DAVICOM_PHY=y
 CONFIG_MICREL_PHY=y
-CONFIG_RTL8187=m
 CONFIG_LIBERTAS=m
 CONFIG_LIBERTAS_SDIO=m
 CONFIG_LIBERTAS_SPI=m
+CONFIG_MWIFIEX=m
+CONFIG_MWIFIEX_SDIO=m
+CONFIG_MWIFIEX_USB=m
 CONFIG_RT2X00=m
 CONFIG_RT2500USB=m
 CONFIG_RT73USB=m
@@ -93,15 +87,10 @@ CONFIG_RT2800USB=m
 CONFIG_RT2800USB_RT53XX=y
 CONFIG_RT2800USB_RT55XX=y
 CONFIG_RT2800USB_UNKNOWN=y
+CONFIG_RTL8187=m
 CONFIG_RTL8192CU=m
 # CONFIG_RTLWIFI_DEBUG is not set
-CONFIG_MWIFIEX=m
-CONFIG_MWIFIEX_SDIO=m
-CONFIG_MWIFIEX_USB=m
 CONFIG_INPUT_POLLDEV=y
-# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
-CONFIG_INPUT_MOUSEDEV_SCREEN_X=480
-CONFIG_INPUT_MOUSEDEV_SCREEN_Y=272
 CONFIG_INPUT_JOYDEV=y
 CONFIG_INPUT_EVDEV=y
 # CONFIG_KEYBOARD_ATKBD is not set
@@ -119,8 +108,8 @@ CONFIG_I2C_AT91=y
 CONFIG_I2C_GPIO=y
 CONFIG_SPI=y
 CONFIG_SPI_ATMEL=y
-CONFIG_POWER_SUPPLY=y
 CONFIG_POWER_RESET=y
+CONFIG_POWER_SUPPLY=y
 # CONFIG_HWMON is not set
 CONFIG_WATCHDOG=y
 CONFIG_AT91SAM9X_WATCHDOG=y
@@ -130,14 +119,11 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_MEDIA_SUPPORT=y
 CONFIG_MEDIA_CAMERA_SUPPORT=y
 CONFIG_V4L_PLATFORM_DRIVERS=y
-CONFIG_SOC_CAMERA=y
 CONFIG_VIDEO_ATMEL_ISI=y
-CONFIG_SOC_CAMERA_OV2640=m
 CONFIG_DRM=y
 CONFIG_DRM_ATMEL_HLCDC=y
 CONFIG_DRM_PANEL_SIMPLE=y
 CONFIG_FB_ATMEL=y
-# CONFIG_LCD_CLASS_DEVICE is not set
 CONFIG_BACKLIGHT_ATMEL_LCDC=y
 # CONFIG_BACKLIGHT_GENERIC is not set
 CONFIG_BACKLIGHT_PWM=y
@@ -200,12 +186,6 @@ CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
-CONFIG_STRIP_ASM_SYMS=y
-CONFIG_DEBUG_FS=y
-# CONFIG_SCHED_DEBUG is not set
-# CONFIG_DEBUG_BUGVERBOSE is not set
-# CONFIG_FTRACE is not set
-CONFIG_DEBUG_USER=y
 CONFIG_CRYPTO_ECB=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
@@ -215,3 +195,9 @@ CONFIG_FONTS=y
 CONFIG_FONT_8x8=y
 CONFIG_FONT_ACORN_8x8=y
 CONFIG_FONT_MINI_4x6=y
+# CONFIG_DEBUG_BUGVERBOSE is not set
+CONFIG_STRIP_ASM_SYMS=y
+CONFIG_DEBUG_FS=y
+# CONFIG_SCHED_DEBUG is not set
+# CONFIG_FTRACE is not set
+CONFIG_DEBUG_USER=y
-- 
2.7.4


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

* [PATCH v2 09/17] ARM: at91/defconfig: enable config flag for sam9x60 SoC
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (7 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 08/17] ARM: at91/defconfig: use savedefconfig Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 10/17] ARM: at91/defconfig: enable config flag for atmel maxtouch Claudiu Beznea
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Enable config flag for SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 148f753de6c7..5afc39c241db 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -13,6 +13,7 @@ CONFIG_ARCH_MULTI_V5=y
 CONFIG_ARCH_AT91=y
 CONFIG_SOC_AT91RM9200=y
 CONFIG_SOC_AT91SAM9=y
+CONFIG_SOC_SAM9X60=y
 # CONFIG_ATMEL_CLOCKSOURCE_PIT is not set
 CONFIG_AEABI=y
 CONFIG_UACCESS_WITH_MEMCPY=y
@@ -109,6 +110,7 @@ CONFIG_I2C_GPIO=y
 CONFIG_SPI=y
 CONFIG_SPI_ATMEL=y
 CONFIG_POWER_RESET=y
+# CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC is not set
 CONFIG_POWER_SUPPLY=y
 # CONFIG_HWMON is not set
 CONFIG_WATCHDOG=y
-- 
2.7.4


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

* [PATCH v2 10/17] ARM: at91/defconfig: enable config flag for atmel maxtouch
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (8 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 09/17] ARM: at91/defconfig: enable config flag for sam9x60 SoC Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 11/17] ARM: at91/defconfig: enable config flag for flexcom Claudiu Beznea
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Enable config flag for atmel maxtouch. This is needed for SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 5afc39c241db..c3305e563742 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -100,6 +100,7 @@ CONFIG_KEYBOARD_GPIO=y
 # CONFIG_INPUT_MOUSE is not set
 CONFIG_INPUT_TOUCHSCREEN=y
 CONFIG_TOUCHSCREEN_ADS7846=y
+CONFIG_TOUCHSCREEN_ATMEL_MXT=y
 # CONFIG_SERIO is not set
 CONFIG_LEGACY_PTY_COUNT=4
 CONFIG_SERIAL_ATMEL=y
-- 
2.7.4


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

* [PATCH v2 11/17] ARM: at91/defconfig: enable config flag for flexcom
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (9 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 10/17] ARM: at91/defconfig: enable config flag for atmel maxtouch Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 12/17] ARM: at91/defconfig: enable config flag for XDMAC Claudiu Beznea
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Enable config flag for flexcom. This IP is available on SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index c3305e563742..7603efe5809e 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -116,6 +116,7 @@ CONFIG_POWER_SUPPLY=y
 # CONFIG_HWMON is not set
 CONFIG_WATCHDOG=y
 CONFIG_AT91SAM9X_WATCHDOG=y
+CONFIG_MFD_ATMEL_FLEXCOM=y
 CONFIG_MFD_ATMEL_HLCDC=y
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
-- 
2.7.4


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

* [PATCH v2 12/17] ARM: at91/defconfig: enable config flag for XDMAC
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (10 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 11/17] ARM: at91/defconfig: enable config flag for flexcom Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 13/17] ARM: at91/defconfig: enable config flag for I2S Multi-channel Claudiu Beznea
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Claudiu Beznea

Enable config flag for XDMA. This IP is available on SAM9X60 SoC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 7603efe5809e..89ab64ce295a 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -171,6 +171,7 @@ CONFIG_RTC_DRV_AT91RM9200=y
 CONFIG_RTC_DRV_AT91SAM9=y
 CONFIG_DMADEVICES=y
 CONFIG_AT_HDMAC=y
+CONFIG_AT_XDMAC=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_IIO=y
 CONFIG_AT91_ADC=y
-- 
2.7.4


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

* [PATCH v2 13/17] ARM: at91/defconfig: enable config flag for I2S Multi-channel
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (11 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 12/17] ARM: at91/defconfig: enable config flag for XDMAC Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 14/17] ARM: at91/defconfig: enable config flag for audio PROTO board Claudiu Beznea
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Codrin Ciubotariu

From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>

Enable config flag for I2S Multi-channel. This IP available on SAM9X60
SoC.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 89ab64ce295a..7cc27fad0114 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -140,6 +140,7 @@ CONFIG_SND_ATMEL_SOC=y
 CONFIG_SND_AT91_SOC_SAM9G20_WM8731=y
 CONFIG_SND_ATMEL_SOC_WM8904=y
 CONFIG_SND_AT91_SOC_SAM9X5_WM8731=y
+CONFIG_SND_MCHP_SOC_I2S_MCC=y
 CONFIG_USB=y
 CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
 CONFIG_USB_EHCI_HCD=y
-- 
2.7.4


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

* [PATCH v2 14/17] ARM: at91/defconfig: enable config flag for audio PROTO board
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (12 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 13/17] ARM: at91/defconfig: enable config flag for I2S Multi-channel Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 15/17] ARM: at91/defconfig: enable config flag for SAMA5D2's ADC Claudiu Beznea
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Codrin Ciubotariu

From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>

Enable config flag for audio proto board. This can be used with I2S
Multi-channel available on SAM9X60 SoC.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 7cc27fad0114..b76e9741909c 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -140,6 +140,7 @@ CONFIG_SND_ATMEL_SOC=y
 CONFIG_SND_AT91_SOC_SAM9G20_WM8731=y
 CONFIG_SND_ATMEL_SOC_WM8904=y
 CONFIG_SND_AT91_SOC_SAM9X5_WM8731=y
+CONFIG_SND_SOC_MIKROE_PROTO=m
 CONFIG_SND_MCHP_SOC_I2S_MCC=y
 CONFIG_USB=y
 CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
-- 
2.7.4


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

* [PATCH v2 15/17] ARM: at91/defconfig: enable config flag for SAMA5D2's ADC
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (13 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 14/17] ARM: at91/defconfig: enable config flag for audio PROTO board Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 16/17] ARM: at91/defconfig: enable config flag for ATMEL QUADSPI Claudiu Beznea
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Tudor Ambarus

From: Tudor Ambarus <tudor.ambarus@microchip.com>

Enable config flag for SAMA5D2's ADC. This IP is available on
SAM9X60 SoC.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index b76e9741909c..011400f926b0 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -177,6 +177,7 @@ CONFIG_AT_XDMAC=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_IIO=y
 CONFIG_AT91_ADC=y
+CONFIG_AT91_SAMA5D2_ADC=y
 CONFIG_PWM=y
 CONFIG_PWM_ATMEL=y
 CONFIG_PWM_ATMEL_HLCDC_PWM=y
-- 
2.7.4


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

* [PATCH v2 16/17] ARM: at91/defconfig: enable config flag for ATMEL QUADSPI
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (14 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 15/17] ARM: at91/defconfig: enable config flag for SAMA5D2's ADC Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 13:12 ` [PATCH v2 17/17] ARM: at91/defconfig: enable config flag for CLASSD Claudiu Beznea
  2019-11-26 21:24 ` [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Alexandre Belloni
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Tudor Ambarus

From: Tudor Ambarus <tudor.ambarus@microchip.com>

Enable config flag for ATMEL QUADSPI. This IP is available on SAM9X60
SoC.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 011400f926b0..51c91af0a19a 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -50,6 +50,7 @@ CONFIG_MTD_BLOCK=y
 CONFIG_MTD_DATAFLASH=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_MTD_NAND_ATMEL=y
+CONFIG_MTD_SPI_NOR=y
 CONFIG_MTD_UBI=y
 CONFIG_MTD_UBI_GLUEBI=y
 CONFIG_BLK_DEV_LOOP=y
@@ -110,6 +111,7 @@ CONFIG_I2C_AT91=y
 CONFIG_I2C_GPIO=y
 CONFIG_SPI=y
 CONFIG_SPI_ATMEL=y
+CONFIG_SPI_ATMEL_QUADSPI=y
 CONFIG_POWER_RESET=y
 # CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC is not set
 CONFIG_POWER_SUPPLY=y
-- 
2.7.4


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

* [PATCH v2 17/17] ARM: at91/defconfig: enable config flag for CLASSD
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (15 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 16/17] ARM: at91/defconfig: enable config flag for ATMEL QUADSPI Claudiu Beznea
@ 2019-11-26 13:12 ` Claudiu Beznea
  2019-11-26 21:24 ` [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Alexandre Belloni
  17 siblings, 0 replies; 25+ messages in thread
From: Claudiu Beznea @ 2019-11-26 13:12 UTC (permalink / raw)
  To: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches, sre
  Cc: linux-arm-kernel, linux-kernel, linux-pm, Codrin Ciubotariu

From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>

Enable config flag for CLASSD audio interface. This IP is available on
SAM9X60 SoC.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
---
 arch/arm/configs/at91_dt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
index 51c91af0a19a..5c5df8bc0074 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -142,6 +142,7 @@ CONFIG_SND_ATMEL_SOC=y
 CONFIG_SND_AT91_SOC_SAM9G20_WM8731=y
 CONFIG_SND_ATMEL_SOC_WM8904=y
 CONFIG_SND_AT91_SOC_SAM9X5_WM8731=y
+CONFIG_SND_ATMEL_SOC_CLASSD=y
 CONFIG_SND_SOC_MIKROE_PROTO=m
 CONFIG_SND_MCHP_SOC_I2S_MCC=y
 CONFIG_USB=y
-- 
2.7.4


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

* Re: [PATCH v2 00/17] SoC and defconfig support for SAM9X60
  2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
                   ` (16 preceding siblings ...)
  2019-11-26 13:12 ` [PATCH v2 17/17] ARM: at91/defconfig: enable config flag for CLASSD Claudiu Beznea
@ 2019-11-26 21:24 ` Alexandre Belloni
  17 siblings, 0 replies; 25+ messages in thread
From: Alexandre Belloni @ 2019-11-26 21:24 UTC (permalink / raw)
  To: Claudiu Beznea
  Cc: linux, nicolas.ferre, ludovic.desroches, sre, linux-arm-kernel,
	linux-kernel, linux-pm

Hi,

On 26/11/2019 15:12:04+0200, Claudiu Beznea wrote:
> Hi,
> 
> This series enables proper support for SAM9X60 in Kconfig and
> defconfig.
> 
> Thank you,
> Claudiu Beznea
> 
> Changes in v2:
> - cahnged cover letter title; previously it was:
>   "add defconfig support for SAM9X60"
> - have new entry in arch/arm/mach-at91/Kconfig for SOC_SAM9X60
>   independent of SOC_AT91SAM9 to be able to select only necessary
>   config flags for SAM9X60 (patches 02/17, 03/17)
> - select POWER_RESET_AT91_RESET and POWER_RESET_AT91_SAMA5D2_SHDWC
>   as for SAMA5D2 (patches 04/17, 05/17)
> - select DEBUG_AT91_RM9200_DBGU (patch 06/17)
> - shaped a bit the patches titles and commit desciptions for defconfig
>   patches (patches 09-17/17)
> 
> Claudiu Beznea (12):
>   ARM: at91: Kconfig: add sam9x60 pll config flag
>   ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
>   drivers: soc: atmel: move sam9x60 under its own config flag
>   power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60
>   drivers: soc: atmel: select POWER_RESET_AT91_SAMA5D2_SHDWC for sam9x60
>   ARM: debug-ll: select DEBUG_AT91_RM9200_DBGU for sam9x60
>   ARM: at91: Kconfig: add config flag for SAM9X60 SoC

This patch should come before the other one making use of it.

>   ARM: at91/defconfig: use savedefconfig
>   ARM: at91/defconfig: enable config flag for sam9x60 SoC
>   ARM: at91/defconfig: enable config flag for atmel maxtouch
>   ARM: at91/defconfig: enable config flag for flexcom
>   ARM: at91/defconfig: enable config flag for XDMAC
> 
> Codrin Ciubotariu (3):
>   ARM: at91/defconfig: enable config flag for I2S Multi-channel
>   ARM: at91/defconfig: enable config flag for audio PROTO board
>   ARM: at91/defconfig: enable config flag for CLASSD
> 
> Tudor Ambarus (2):
>   ARM: at91/defconfig: enable config flag for SAMA5D2's ADC
>   ARM: at91/defconfig: enable config flag for ATMEL QUADSPI

Please squash all of those but the savedefconfig.

> 
>  arch/arm/Kconfig.debug             |  6 ++---
>  arch/arm/configs/at91_dt_defconfig | 55 ++++++++++++++++++--------------------
>  arch/arm/mach-at91/Kconfig         | 24 +++++++++++++++--
>  arch/arm/mach-at91/Makefile        |  1 +
>  arch/arm/mach-at91/at91sam9.c      | 18 -------------
>  arch/arm/mach-at91/pm.c            |  2 +-
>  arch/arm/mach-at91/sam9x60.c       | 34 +++++++++++++++++++++++
>  drivers/power/reset/Kconfig        |  4 +--
>  drivers/soc/atmel/soc.c            |  5 ++--
>  9 files changed, 92 insertions(+), 57 deletions(-)
>  create mode 100644 arch/arm/mach-at91/sam9x60.c
> 
> -- 
> 2.7.4
> 

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* Re: [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  2019-11-26 13:12 ` [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC " Claudiu Beznea
@ 2019-11-26 21:28   ` Alexandre Belloni
  2019-11-27  8:06     ` Claudiu.Beznea
  0 siblings, 1 reply; 25+ messages in thread
From: Alexandre Belloni @ 2019-11-26 21:28 UTC (permalink / raw)
  To: Claudiu Beznea
  Cc: linux, nicolas.ferre, ludovic.desroches, sre, linux-arm-kernel,
	linux-kernel, linux-pm

On 26/11/2019 15:12:06+0200, Claudiu Beznea wrote:
> Move SAM9X60's PM part under SoC config flag. This allows the building
> of SAM9X60 platform withouth depending on CONFIG_SOC_AT91SAM9 flag,
> allowing us to select only necessary config flags for SAM9X60.
> 

I'm really wondering, how much space does that really save?

The net benefit seems to be very small...

> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
>  arch/arm/mach-at91/Makefile   |  1 +
>  arch/arm/mach-at91/at91sam9.c | 18 ------------------
>  arch/arm/mach-at91/pm.c       |  2 +-
>  arch/arm/mach-at91/sam9x60.c  | 34 ++++++++++++++++++++++++++++++++++
>  4 files changed, 36 insertions(+), 19 deletions(-)
>  create mode 100644 arch/arm/mach-at91/sam9x60.c
> 
> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
> index de64301dcff2..f565490f1b70 100644
> --- a/arch/arm/mach-at91/Makefile
> +++ b/arch/arm/mach-at91/Makefile
> @@ -6,6 +6,7 @@
>  # CPU-specific support
>  obj-$(CONFIG_SOC_AT91RM9200)	+= at91rm9200.o
>  obj-$(CONFIG_SOC_AT91SAM9)	+= at91sam9.o
> +obj-$(CONFIG_SOC_SAM9X60)	+= sam9x60.o
>  obj-$(CONFIG_SOC_SAMA5)		+= sama5.o
>  obj-$(CONFIG_SOC_SAMV7)		+= samv7.o
>  
> diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c
> index bf629c90c758..7e572189a5eb 100644
> --- a/arch/arm/mach-at91/at91sam9.c
> +++ b/arch/arm/mach-at91/at91sam9.c
> @@ -31,21 +31,3 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
>  	.init_machine	= at91sam9_init,
>  	.dt_compat	= at91_dt_board_compat,
>  MACHINE_END
> -
> -static void __init sam9x60_init(void)
> -{
> -	of_platform_default_populate(NULL, NULL, NULL);
> -
> -	sam9x60_pm_init();
> -}
> -
> -static const char *const sam9x60_dt_board_compat[] __initconst = {
> -	"microchip,sam9x60",
> -	NULL
> -};
> -
> -DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
> -	/* Maintainer: Microchip */
> -	.init_machine	= sam9x60_init,
> -	.dt_compat	= sam9x60_dt_board_compat,
> -MACHINE_END
> diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
> index d5af6aedc02c..56a6a49b19e2 100644
> --- a/arch/arm/mach-at91/pm.c
> +++ b/arch/arm/mach-at91/pm.c
> @@ -805,7 +805,7 @@ void __init at91rm9200_pm_init(void)
>  
>  void __init sam9x60_pm_init(void)
>  {
> -	if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
> +	if (!IS_ENABLED(CONFIG_SOC_SAM9X60))
>  		return;
>  
>  	at91_pm_modes_init();
> diff --git a/arch/arm/mach-at91/sam9x60.c b/arch/arm/mach-at91/sam9x60.c
> new file mode 100644
> index 000000000000..d8c739d25458
> --- /dev/null
> +++ b/arch/arm/mach-at91/sam9x60.c
> @@ -0,0 +1,34 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Setup code for SAM9X60.
> + *
> + * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
> + *
> + * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
> + */
> +
> +#include <linux/of.h>
> +#include <linux/of_platform.h>
> +
> +#include <asm/mach/arch.h>
> +#include <asm/system_misc.h>
> +
> +#include "generic.h"
> +
> +static void __init sam9x60_init(void)
> +{
> +	of_platform_default_populate(NULL, NULL, NULL);
> +
> +	sam9x60_pm_init();
> +}
> +
> +static const char *const sam9x60_dt_board_compat[] __initconst = {
> +	"microchip,sam9x60",
> +	NULL
> +};
> +
> +DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
> +	/* Maintainer: Microchip */
> +	.init_machine	= sam9x60_init,
> +	.dt_compat	= sam9x60_dt_board_compat,
> +MACHINE_END
> -- 
> 2.7.4
> 

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* Re: [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  2019-11-26 21:28   ` Alexandre Belloni
@ 2019-11-27  8:06     ` Claudiu.Beznea
  2019-11-27 10:07       ` Alexandre Belloni
  0 siblings, 1 reply; 25+ messages in thread
From: Claudiu.Beznea @ 2019-11-27  8:06 UTC (permalink / raw)
  To: alexandre.belloni
  Cc: linux, Nicolas.Ferre, Ludovic.Desroches, sre, linux-arm-kernel,
	linux-kernel, linux-pm



On 26.11.2019 23:28, Alexandre Belloni wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 26/11/2019 15:12:06+0200, Claudiu Beznea wrote:
>> Move SAM9X60's PM part under SoC config flag. This allows the building
>> of SAM9X60 platform withouth depending on CONFIG_SOC_AT91SAM9 flag,
>> allowing us to select only necessary config flags for SAM9X60.
>>
> 
> I'm really wondering, how much space does that really save?
> 
> The net benefit seems to be very small...

Not that much, indeed. We want to be independent of SOC_AT91SAM9.

> 
>> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
>> ---
>>  arch/arm/mach-at91/Makefile   |  1 +
>>  arch/arm/mach-at91/at91sam9.c | 18 ------------------
>>  arch/arm/mach-at91/pm.c       |  2 +-
>>  arch/arm/mach-at91/sam9x60.c  | 34 ++++++++++++++++++++++++++++++++++
>>  4 files changed, 36 insertions(+), 19 deletions(-)
>>  create mode 100644 arch/arm/mach-at91/sam9x60.c
>>
>> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
>> index de64301dcff2..f565490f1b70 100644
>> --- a/arch/arm/mach-at91/Makefile
>> +++ b/arch/arm/mach-at91/Makefile
>> @@ -6,6 +6,7 @@
>>  # CPU-specific support
>>  obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o
>>  obj-$(CONFIG_SOC_AT91SAM9)   += at91sam9.o
>> +obj-$(CONFIG_SOC_SAM9X60)    += sam9x60.o
>>  obj-$(CONFIG_SOC_SAMA5)              += sama5.o
>>  obj-$(CONFIG_SOC_SAMV7)              += samv7.o
>>
>> diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c
>> index bf629c90c758..7e572189a5eb 100644
>> --- a/arch/arm/mach-at91/at91sam9.c
>> +++ b/arch/arm/mach-at91/at91sam9.c
>> @@ -31,21 +31,3 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
>>       .init_machine   = at91sam9_init,
>>       .dt_compat      = at91_dt_board_compat,
>>  MACHINE_END
>> -
>> -static void __init sam9x60_init(void)
>> -{
>> -     of_platform_default_populate(NULL, NULL, NULL);
>> -
>> -     sam9x60_pm_init();
>> -}
>> -
>> -static const char *const sam9x60_dt_board_compat[] __initconst = {
>> -     "microchip,sam9x60",
>> -     NULL
>> -};
>> -
>> -DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
>> -     /* Maintainer: Microchip */
>> -     .init_machine   = sam9x60_init,
>> -     .dt_compat      = sam9x60_dt_board_compat,
>> -MACHINE_END
>> diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
>> index d5af6aedc02c..56a6a49b19e2 100644
>> --- a/arch/arm/mach-at91/pm.c
>> +++ b/arch/arm/mach-at91/pm.c
>> @@ -805,7 +805,7 @@ void __init at91rm9200_pm_init(void)
>>
>>  void __init sam9x60_pm_init(void)
>>  {
>> -     if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
>> +     if (!IS_ENABLED(CONFIG_SOC_SAM9X60))
>>               return;
>>
>>       at91_pm_modes_init();
>> diff --git a/arch/arm/mach-at91/sam9x60.c b/arch/arm/mach-at91/sam9x60.c
>> new file mode 100644
>> index 000000000000..d8c739d25458
>> --- /dev/null
>> +++ b/arch/arm/mach-at91/sam9x60.c
>> @@ -0,0 +1,34 @@
>> +// SPDX-License-Identifier: GPL-2.0+
>> +/*
>> + * Setup code for SAM9X60.
>> + *
>> + * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
>> + *
>> + * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
>> + */
>> +
>> +#include <linux/of.h>
>> +#include <linux/of_platform.h>
>> +
>> +#include <asm/mach/arch.h>
>> +#include <asm/system_misc.h>
>> +
>> +#include "generic.h"
>> +
>> +static void __init sam9x60_init(void)
>> +{
>> +     of_platform_default_populate(NULL, NULL, NULL);
>> +
>> +     sam9x60_pm_init();
>> +}
>> +
>> +static const char *const sam9x60_dt_board_compat[] __initconst = {
>> +     "microchip,sam9x60",
>> +     NULL
>> +};
>> +
>> +DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
>> +     /* Maintainer: Microchip */
>> +     .init_machine   = sam9x60_init,
>> +     .dt_compat      = sam9x60_dt_board_compat,
>> +MACHINE_END
>> --
>> 2.7.4
>>
> 
> --
> Alexandre Belloni, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 

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

* Re: [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  2019-11-27  8:06     ` Claudiu.Beznea
@ 2019-11-27 10:07       ` Alexandre Belloni
  2019-11-27 10:59         ` Nicolas.Ferre
  2019-11-27 11:00         ` Claudiu.Beznea
  0 siblings, 2 replies; 25+ messages in thread
From: Alexandre Belloni @ 2019-11-27 10:07 UTC (permalink / raw)
  To: Claudiu.Beznea
  Cc: linux, Nicolas.Ferre, Ludovic.Desroches, sre, linux-arm-kernel,
	linux-kernel, linux-pm

On 27/11/2019 08:06:47+0000, Claudiu.Beznea@microchip.com wrote:
> 
> 
> On 26.11.2019 23:28, Alexandre Belloni wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> > 
> > On 26/11/2019 15:12:06+0200, Claudiu Beznea wrote:
> >> Move SAM9X60's PM part under SoC config flag. This allows the building
> >> of SAM9X60 platform withouth depending on CONFIG_SOC_AT91SAM9 flag,
> >> allowing us to select only necessary config flags for SAM9X60.
> >>
> > 
> > I'm really wondering, how much space does that really save?
> > 
> > The net benefit seems to be very small...
> 
> Not that much, indeed. We want to be independent of SOC_AT91SAM9.
> 

The question is why? I don't see the technical benefit but I
definitively see the maintenance burden of having two separate configs
doing almost the same thing.

> > 
> >> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> >> ---
> >>  arch/arm/mach-at91/Makefile   |  1 +
> >>  arch/arm/mach-at91/at91sam9.c | 18 ------------------
> >>  arch/arm/mach-at91/pm.c       |  2 +-
> >>  arch/arm/mach-at91/sam9x60.c  | 34 ++++++++++++++++++++++++++++++++++
> >>  4 files changed, 36 insertions(+), 19 deletions(-)
> >>  create mode 100644 arch/arm/mach-at91/sam9x60.c
> >>
> >> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
> >> index de64301dcff2..f565490f1b70 100644
> >> --- a/arch/arm/mach-at91/Makefile
> >> +++ b/arch/arm/mach-at91/Makefile
> >> @@ -6,6 +6,7 @@
> >>  # CPU-specific support
> >>  obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o
> >>  obj-$(CONFIG_SOC_AT91SAM9)   += at91sam9.o
> >> +obj-$(CONFIG_SOC_SAM9X60)    += sam9x60.o
> >>  obj-$(CONFIG_SOC_SAMA5)              += sama5.o
> >>  obj-$(CONFIG_SOC_SAMV7)              += samv7.o
> >>
> >> diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c
> >> index bf629c90c758..7e572189a5eb 100644
> >> --- a/arch/arm/mach-at91/at91sam9.c
> >> +++ b/arch/arm/mach-at91/at91sam9.c
> >> @@ -31,21 +31,3 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
> >>       .init_machine   = at91sam9_init,
> >>       .dt_compat      = at91_dt_board_compat,
> >>  MACHINE_END
> >> -
> >> -static void __init sam9x60_init(void)
> >> -{
> >> -     of_platform_default_populate(NULL, NULL, NULL);
> >> -
> >> -     sam9x60_pm_init();
> >> -}
> >> -
> >> -static const char *const sam9x60_dt_board_compat[] __initconst = {
> >> -     "microchip,sam9x60",
> >> -     NULL
> >> -};
> >> -
> >> -DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
> >> -     /* Maintainer: Microchip */
> >> -     .init_machine   = sam9x60_init,
> >> -     .dt_compat      = sam9x60_dt_board_compat,
> >> -MACHINE_END
> >> diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
> >> index d5af6aedc02c..56a6a49b19e2 100644
> >> --- a/arch/arm/mach-at91/pm.c
> >> +++ b/arch/arm/mach-at91/pm.c
> >> @@ -805,7 +805,7 @@ void __init at91rm9200_pm_init(void)
> >>
> >>  void __init sam9x60_pm_init(void)
> >>  {
> >> -     if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
> >> +     if (!IS_ENABLED(CONFIG_SOC_SAM9X60))
> >>               return;
> >>
> >>       at91_pm_modes_init();
> >> diff --git a/arch/arm/mach-at91/sam9x60.c b/arch/arm/mach-at91/sam9x60.c
> >> new file mode 100644
> >> index 000000000000..d8c739d25458
> >> --- /dev/null
> >> +++ b/arch/arm/mach-at91/sam9x60.c
> >> @@ -0,0 +1,34 @@
> >> +// SPDX-License-Identifier: GPL-2.0+
> >> +/*
> >> + * Setup code for SAM9X60.
> >> + *
> >> + * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
> >> + *
> >> + * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
> >> + */
> >> +
> >> +#include <linux/of.h>
> >> +#include <linux/of_platform.h>
> >> +
> >> +#include <asm/mach/arch.h>
> >> +#include <asm/system_misc.h>
> >> +
> >> +#include "generic.h"
> >> +
> >> +static void __init sam9x60_init(void)
> >> +{
> >> +     of_platform_default_populate(NULL, NULL, NULL);
> >> +
> >> +     sam9x60_pm_init();
> >> +}
> >> +
> >> +static const char *const sam9x60_dt_board_compat[] __initconst = {
> >> +     "microchip,sam9x60",
> >> +     NULL
> >> +};
> >> +
> >> +DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
> >> +     /* Maintainer: Microchip */
> >> +     .init_machine   = sam9x60_init,
> >> +     .dt_compat      = sam9x60_dt_board_compat,
> >> +MACHINE_END
> >> --
> >> 2.7.4
> >>
> > 
> > --
> > Alexandre Belloni, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
> > 

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* Re: [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  2019-11-27 10:07       ` Alexandre Belloni
@ 2019-11-27 10:59         ` Nicolas.Ferre
  2019-11-27 11:00         ` Claudiu.Beznea
  1 sibling, 0 replies; 25+ messages in thread
From: Nicolas.Ferre @ 2019-11-27 10:59 UTC (permalink / raw)
  To: alexandre.belloni, Claudiu.Beznea
  Cc: linux, Ludovic.Desroches, sre, linux-arm-kernel, linux-kernel, linux-pm

On 27/11/2019 at 11:07, Alexandre Belloni wrote:
> On 27/11/2019 08:06:47+0000, Claudiu.Beznea@microchip.com wrote:
>>
>>
>> On 26.11.2019 23:28, Alexandre Belloni wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> On 26/11/2019 15:12:06+0200, Claudiu Beznea wrote:
>>>> Move SAM9X60's PM part under SoC config flag. This allows the building
>>>> of SAM9X60 platform withouth depending on CONFIG_SOC_AT91SAM9 flag,
>>>> allowing us to select only necessary config flags for SAM9X60.
>>>>
>>>
>>> I'm really wondering, how much space does that really save?
>>>
>>> The net benefit seems to be very small...
>>
>> Not that much, indeed. We want to be independent of SOC_AT91SAM9.
>>
> 
> The question is why? I don't see the technical benefit but I
> definitively see the maintenance burden of having two separate configs
> doing almost the same thing.

The AT91SAM9 config embeds a bunch of earlier drivers/clock definitions 
that are not needed anymore in the new SAM9X60. Likewise, some sam9x60 
new things are not needed at all for the older sam9 series.
There is somehow a generation gap between them...

I would like that we preserve the possibility to only embed the sam9x60 
alone in a tailored kernel configuration, basically how it is done for 
our SAMA5s. I know that we're talking about ~100s of KB here, but 
however, it's easy to do now and it could make a difference when 
targeting low spec systems.
Maintaining the SAMA5 as separate config options never proved us to be 
difficult to do.

Best regards,
   Nicolas

>>>> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
>>>> ---
>>>>   arch/arm/mach-at91/Makefile   |  1 +
>>>>   arch/arm/mach-at91/at91sam9.c | 18 ------------------
>>>>   arch/arm/mach-at91/pm.c       |  2 +-
>>>>   arch/arm/mach-at91/sam9x60.c  | 34 ++++++++++++++++++++++++++++++++++
>>>>   4 files changed, 36 insertions(+), 19 deletions(-)
>>>>   create mode 100644 arch/arm/mach-at91/sam9x60.c
>>>>
>>>> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
>>>> index de64301dcff2..f565490f1b70 100644
>>>> --- a/arch/arm/mach-at91/Makefile
>>>> +++ b/arch/arm/mach-at91/Makefile
>>>> @@ -6,6 +6,7 @@
>>>>   # CPU-specific support
>>>>   obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o
>>>>   obj-$(CONFIG_SOC_AT91SAM9)   += at91sam9.o
>>>> +obj-$(CONFIG_SOC_SAM9X60)    += sam9x60.o
>>>>   obj-$(CONFIG_SOC_SAMA5)              += sama5.o
>>>>   obj-$(CONFIG_SOC_SAMV7)              += samv7.o
>>>>
>>>> diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c
>>>> index bf629c90c758..7e572189a5eb 100644
>>>> --- a/arch/arm/mach-at91/at91sam9.c
>>>> +++ b/arch/arm/mach-at91/at91sam9.c
>>>> @@ -31,21 +31,3 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
>>>>        .init_machine   = at91sam9_init,
>>>>        .dt_compat      = at91_dt_board_compat,
>>>>   MACHINE_END
>>>> -
>>>> -static void __init sam9x60_init(void)
>>>> -{
>>>> -     of_platform_default_populate(NULL, NULL, NULL);
>>>> -
>>>> -     sam9x60_pm_init();
>>>> -}
>>>> -
>>>> -static const char *const sam9x60_dt_board_compat[] __initconst = {
>>>> -     "microchip,sam9x60",
>>>> -     NULL
>>>> -};
>>>> -
>>>> -DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
>>>> -     /* Maintainer: Microchip */
>>>> -     .init_machine   = sam9x60_init,
>>>> -     .dt_compat      = sam9x60_dt_board_compat,
>>>> -MACHINE_END
>>>> diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
>>>> index d5af6aedc02c..56a6a49b19e2 100644
>>>> --- a/arch/arm/mach-at91/pm.c
>>>> +++ b/arch/arm/mach-at91/pm.c
>>>> @@ -805,7 +805,7 @@ void __init at91rm9200_pm_init(void)
>>>>
>>>>   void __init sam9x60_pm_init(void)
>>>>   {
>>>> -     if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
>>>> +     if (!IS_ENABLED(CONFIG_SOC_SAM9X60))
>>>>                return;
>>>>
>>>>        at91_pm_modes_init();
>>>> diff --git a/arch/arm/mach-at91/sam9x60.c b/arch/arm/mach-at91/sam9x60.c
>>>> new file mode 100644
>>>> index 000000000000..d8c739d25458
>>>> --- /dev/null
>>>> +++ b/arch/arm/mach-at91/sam9x60.c
>>>> @@ -0,0 +1,34 @@
>>>> +// SPDX-License-Identifier: GPL-2.0+
>>>> +/*
>>>> + * Setup code for SAM9X60.
>>>> + *
>>>> + * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
>>>> + *
>>>> + * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
>>>> + */
>>>> +
>>>> +#include <linux/of.h>
>>>> +#include <linux/of_platform.h>
>>>> +
>>>> +#include <asm/mach/arch.h>
>>>> +#include <asm/system_misc.h>
>>>> +
>>>> +#include "generic.h"
>>>> +
>>>> +static void __init sam9x60_init(void)
>>>> +{
>>>> +     of_platform_default_populate(NULL, NULL, NULL);
>>>> +
>>>> +     sam9x60_pm_init();
>>>> +}
>>>> +
>>>> +static const char *const sam9x60_dt_board_compat[] __initconst = {
>>>> +     "microchip,sam9x60",
>>>> +     NULL
>>>> +};
>>>> +
>>>> +DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
>>>> +     /* Maintainer: Microchip */
>>>> +     .init_machine   = sam9x60_init,
>>>> +     .dt_compat      = sam9x60_dt_board_compat,
>>>> +MACHINE_END
>>>> --
>>>> 2.7.4
>>>>
>>>
>>> --
>>> Alexandre Belloni, Bootlin
>>> Embedded Linux and Kernel engineering
>>> https://bootlin.com
>>>
> 
> --
> Alexandre Belloni, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 


-- 
Nicolas Ferre

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

* Re: [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC config flag
  2019-11-27 10:07       ` Alexandre Belloni
  2019-11-27 10:59         ` Nicolas.Ferre
@ 2019-11-27 11:00         ` Claudiu.Beznea
  1 sibling, 0 replies; 25+ messages in thread
From: Claudiu.Beznea @ 2019-11-27 11:00 UTC (permalink / raw)
  To: alexandre.belloni
  Cc: linux, Nicolas.Ferre, Ludovic.Desroches, sre, linux-arm-kernel,
	linux-kernel, linux-pm



On 27.11.2019 12:07, Alexandre Belloni wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 27/11/2019 08:06:47+0000, Claudiu.Beznea@microchip.com wrote:
>>
>>
>> On 26.11.2019 23:28, Alexandre Belloni wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> On 26/11/2019 15:12:06+0200, Claudiu Beznea wrote:
>>>> Move SAM9X60's PM part under SoC config flag. This allows the building
>>>> of SAM9X60 platform withouth depending on CONFIG_SOC_AT91SAM9 flag,
>>>> allowing us to select only necessary config flags for SAM9X60.
>>>>
>>>
>>> I'm really wondering, how much space does that really save?
>>>
>>> The net benefit seems to be very small...
>>
>> Not that much, indeed. We want to be independent of SOC_AT91SAM9.
>>
> 
> The question is why? I don't see the technical benefit but I
> definitively see the maintenance burden of having two separate configs
> doing almost the same thing.

As I said above: to be able to build SAM9X60 without depending on
SOC_AT91SAM9 and to limit the legacy (in term of drivers) coming with
SOC_AT91SAM9.

Would you prefer the other way around like I had in the 1st version:

+config SOC_SAM9X60
+	bool "SAM9X60"
+	depends on SOC_AT91SAM9
+	select ATMEL_AIC5_IRQ
+	select HAVE_AT91_GENERATED_CLK
+	select HAVE_AT91_SAM9X60_PLL
+	help
+	  Select this if you are using Microchip's SAM9X60 SoC



> 
>>>
>>>> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
>>>> ---
>>>>  arch/arm/mach-at91/Makefile   |  1 +
>>>>  arch/arm/mach-at91/at91sam9.c | 18 ------------------
>>>>  arch/arm/mach-at91/pm.c       |  2 +-
>>>>  arch/arm/mach-at91/sam9x60.c  | 34 ++++++++++++++++++++++++++++++++++
>>>>  4 files changed, 36 insertions(+), 19 deletions(-)
>>>>  create mode 100644 arch/arm/mach-at91/sam9x60.c
>>>>
>>>> diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
>>>> index de64301dcff2..f565490f1b70 100644
>>>> --- a/arch/arm/mach-at91/Makefile
>>>> +++ b/arch/arm/mach-at91/Makefile
>>>> @@ -6,6 +6,7 @@
>>>>  # CPU-specific support
>>>>  obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o
>>>>  obj-$(CONFIG_SOC_AT91SAM9)   += at91sam9.o
>>>> +obj-$(CONFIG_SOC_SAM9X60)    += sam9x60.o
>>>>  obj-$(CONFIG_SOC_SAMA5)              += sama5.o
>>>>  obj-$(CONFIG_SOC_SAMV7)              += samv7.o
>>>>
>>>> diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c
>>>> index bf629c90c758..7e572189a5eb 100644
>>>> --- a/arch/arm/mach-at91/at91sam9.c
>>>> +++ b/arch/arm/mach-at91/at91sam9.c
>>>> @@ -31,21 +31,3 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
>>>>       .init_machine   = at91sam9_init,
>>>>       .dt_compat      = at91_dt_board_compat,
>>>>  MACHINE_END
>>>> -
>>>> -static void __init sam9x60_init(void)
>>>> -{
>>>> -     of_platform_default_populate(NULL, NULL, NULL);
>>>> -
>>>> -     sam9x60_pm_init();
>>>> -}
>>>> -
>>>> -static const char *const sam9x60_dt_board_compat[] __initconst = {
>>>> -     "microchip,sam9x60",
>>>> -     NULL
>>>> -};
>>>> -
>>>> -DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
>>>> -     /* Maintainer: Microchip */
>>>> -     .init_machine   = sam9x60_init,
>>>> -     .dt_compat      = sam9x60_dt_board_compat,
>>>> -MACHINE_END
>>>> diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
>>>> index d5af6aedc02c..56a6a49b19e2 100644
>>>> --- a/arch/arm/mach-at91/pm.c
>>>> +++ b/arch/arm/mach-at91/pm.c
>>>> @@ -805,7 +805,7 @@ void __init at91rm9200_pm_init(void)
>>>>
>>>>  void __init sam9x60_pm_init(void)
>>>>  {
>>>> -     if (!IS_ENABLED(CONFIG_SOC_AT91SAM9))
>>>> +     if (!IS_ENABLED(CONFIG_SOC_SAM9X60))
>>>>               return;
>>>>
>>>>       at91_pm_modes_init();
>>>> diff --git a/arch/arm/mach-at91/sam9x60.c b/arch/arm/mach-at91/sam9x60.c
>>>> new file mode 100644
>>>> index 000000000000..d8c739d25458
>>>> --- /dev/null
>>>> +++ b/arch/arm/mach-at91/sam9x60.c
>>>> @@ -0,0 +1,34 @@
>>>> +// SPDX-License-Identifier: GPL-2.0+
>>>> +/*
>>>> + * Setup code for SAM9X60.
>>>> + *
>>>> + * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries
>>>> + *
>>>> + * Author: Claudiu Beznea <claudiu.beznea@microchip.com>
>>>> + */
>>>> +
>>>> +#include <linux/of.h>
>>>> +#include <linux/of_platform.h>
>>>> +
>>>> +#include <asm/mach/arch.h>
>>>> +#include <asm/system_misc.h>
>>>> +
>>>> +#include "generic.h"
>>>> +
>>>> +static void __init sam9x60_init(void)
>>>> +{
>>>> +     of_platform_default_populate(NULL, NULL, NULL);
>>>> +
>>>> +     sam9x60_pm_init();
>>>> +}
>>>> +
>>>> +static const char *const sam9x60_dt_board_compat[] __initconst = {
>>>> +     "microchip,sam9x60",
>>>> +     NULL
>>>> +};
>>>> +
>>>> +DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
>>>> +     /* Maintainer: Microchip */
>>>> +     .init_machine   = sam9x60_init,
>>>> +     .dt_compat      = sam9x60_dt_board_compat,
>>>> +MACHINE_END
>>>> --
>>>> 2.7.4
>>>>
>>>
>>> --
>>> Alexandre Belloni, Bootlin
>>> Embedded Linux and Kernel engineering
>>> https://bootlin.com
>>>
> 
> --
> Alexandre Belloni, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 

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

* Re: [PATCH v2 04/17] power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60
  2019-11-26 13:12 ` [PATCH v2 04/17] power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60 Claudiu Beznea
@ 2019-11-29 14:06   ` Sebastian Reichel
  0 siblings, 0 replies; 25+ messages in thread
From: Sebastian Reichel @ 2019-11-29 14:06 UTC (permalink / raw)
  To: Claudiu Beznea
  Cc: linux, nicolas.ferre, alexandre.belloni, ludovic.desroches,
	linux-arm-kernel, linux-kernel, linux-pm

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

Hi,

On Tue, Nov 26, 2019 at 03:12:08PM +0200, Claudiu Beznea wrote:
> Select POWER_RESET_AT91_RESET for SAM9X60 SoC.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
>  drivers/power/reset/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
> index c721939767eb..886e60017f4d 100644
> --- a/drivers/power/reset/Kconfig
> +++ b/drivers/power/reset/Kconfig
> @@ -26,7 +26,7 @@ config POWER_RESET_AT91_POWEROFF
>  config POWER_RESET_AT91_RESET
>  	tristate "Atmel AT91 reset driver"
>  	depends on ARCH_AT91
> -	default SOC_AT91SAM9 || SOC_SAMA5
> +	default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
>  	help
>  	  This driver supports restart for Atmel AT91SAM9 and SAMA5
>  	  SoCs

I suppose this will go through ARM:

Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>

-- Sebastian

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

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

end of thread, other threads:[~2019-11-29 19:10 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 13:12 [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 01/17] ARM: at91: Kconfig: add sam9x60 pll config flag Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 02/17] ARM: at91: pm: move SAM9X60's PM under its own SoC " Claudiu Beznea
2019-11-26 21:28   ` Alexandre Belloni
2019-11-27  8:06     ` Claudiu.Beznea
2019-11-27 10:07       ` Alexandre Belloni
2019-11-27 10:59         ` Nicolas.Ferre
2019-11-27 11:00         ` Claudiu.Beznea
2019-11-26 13:12 ` [PATCH v2 03/17] drivers: soc: atmel: move sam9x60 under its own " Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 04/17] power: reset: Kconfig: select POWER_RESET_AT91_RESET for sam9x60 Claudiu Beznea
2019-11-29 14:06   ` Sebastian Reichel
2019-11-26 13:12 ` [PATCH v2 05/17] drivers: soc: atmel: select POWER_RESET_AT91_SAMA5D2_SHDWC " Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 06/17] ARM: debug-ll: select DEBUG_AT91_RM9200_DBGU " Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 07/17] ARM: at91: Kconfig: add config flag for SAM9X60 SoC Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 08/17] ARM: at91/defconfig: use savedefconfig Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 09/17] ARM: at91/defconfig: enable config flag for sam9x60 SoC Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 10/17] ARM: at91/defconfig: enable config flag for atmel maxtouch Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 11/17] ARM: at91/defconfig: enable config flag for flexcom Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 12/17] ARM: at91/defconfig: enable config flag for XDMAC Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 13/17] ARM: at91/defconfig: enable config flag for I2S Multi-channel Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 14/17] ARM: at91/defconfig: enable config flag for audio PROTO board Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 15/17] ARM: at91/defconfig: enable config flag for SAMA5D2's ADC Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 16/17] ARM: at91/defconfig: enable config flag for ATMEL QUADSPI Claudiu Beznea
2019-11-26 13:12 ` [PATCH v2 17/17] ARM: at91/defconfig: enable config flag for CLASSD Claudiu Beznea
2019-11-26 21:24 ` [PATCH v2 00/17] SoC and defconfig support for SAM9X60 Alexandre Belloni

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