linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/45] Add support for sam9x7 SoC family
@ 2023-06-23 20:30 Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible Varshini Rajendran
                   ` (47 more replies)
  0 siblings, 48 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

This patch series adds support for the new SoC family - sam9x7.
 - The device tree, configs and drivers are added
 - Clock driver for sam9x7 is added
 - Support for basic peripherals is added
 - Target board SAM9X75 Curiosity is added

 Changes in v2:
 --------------

 - Added sam9x7 specific compatibles in DT with fallbacks
 - Documented all the newly added DT compatible strings
 - Added device tree for the target board sam9x75 curiosity and
   documented the same in the DT bindings documentation
 - Removed the dt nodes that are not supported at the moment
 - Removed the configs added by previous version that are not supported
   at the moment
 - Fixed all the corrections in the commit message
 - Changed all the instances of copyright year to 2023
 - Added sam9x7 flag in PIT64B configuration
 - Moved macro definitions to header file
 - Added another divider in mck characteristics in the pmc driver
 - Fixed the memory leak in the pmc driver
 - Dropped patches that are no longer needed
 - Picked up Acked-by and Reviewed-by tags


Hari Prasath (1):
  irqchip/atmel-aic5: Add support for sam9x7 aic

Varshini Rajendran (44):
  dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7
    compatible
  dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible
  dt-bindings: usb: generic-ehci: Document clock-names property
  dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet
    interface
  ARM: at91: pm: add support for sam9x7 SoC family
  ARM: at91: pm: add sam9x7 SoC init config
  ARM: at91: add support in SoC driver for new sam9x7
  clk: at91: clk-sam9x60-pll: re-factor to support individual core freq
    outputs
  clk: at91: sam9x7: add support for HW PLL freq dividers
  clk: at91: sama7g5: move mux table macros to header file
  dt-bindings: clk: at91: add bindings for SAM9X7's clock controller
  dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding
  dt-bindings: atmel-sysreg: add bindings for sam9x7
  dt-bindings: crypto: add bindings for sam9x7 in Atmel AES
  dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA
  dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES
  dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7
  dt-bindings: i2c: at91: Add SAM9X7 compatible string
  dt-bindings: mfd: at91: Add SAM9X7 compatible string
  dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr
  dt-bindings: atmel-matrix: add microchip,sam9x7-matrix
  dt-bindings: atmel-smc: add microchip,sam9x7-smc
  dt-bindings: atmel-ssc: add microchip,sam9x7-ssc
  dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci
  dt-bindings: atmel-nand: add microchip,sam9x7-pmecc
  dt-bindings: pinctrl: at91: add bindings for SAM9X7
  dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG
  dt-bindings: rtc: at91rm9200: add sam9x7 compatible
  dt-bindings: rtt: at91rm9260: add sam9x7 compatible
  dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7
  dt-bindings: atmel-classd: add sam9x7 compatible
  spi: dt-bindings: atmel,at91rm9200-spi: add sam9x7 compatible
  dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7
  dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt
  dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic
  clk: at91: sam9x7: add sam9x7 pmc driver
  power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7
  power: reset: at91-reset: add reset support for sam9x7 SoC
  power: reset: at91-reset: add sdhwc support for sam9x7 SoC
  ARM: at91: Kconfig: add config flag for SAM9X7 SoC
  ARM: configs: at91: enable config flags for sam9x7 SoC family
  ARM: dts: at91: sam9x7: add device tree for SoC
  dt-bindings: arm: add sam9x75 curiosity board
  ARM: dts: at91: sam9x75_curiosity: add device tree for sam9x75
    curiosity board

 .../devicetree/bindings/arm/atmel-at91.yaml   |    6 +
 .../devicetree/bindings/arm/atmel-sysregs.txt |    7 +-
 .../devicetree/bindings/clock/at91-clock.txt  |    7 +-
 .../crypto/atmel,at91sam9g46-aes.yaml         |    5 +-
 .../crypto/atmel,at91sam9g46-sha.yaml         |    5 +-
 .../crypto/atmel,at91sam9g46-tdes.yaml        |    5 +-
 .../devicetree/bindings/dma/atmel-xdma.txt    |    4 +-
 .../bindings/i2c/atmel,at91sam-i2c.yaml       |    3 +
 .../interrupt-controller/atmel,aic.txt        |    2 +-
 .../devicetree/bindings/mfd/atmel-flexcom.txt |    2 +-
 .../devicetree/bindings/mfd/atmel-gpbr.txt    |    1 +
 .../devicetree/bindings/mfd/atmel-matrix.txt  |    1 +
 .../devicetree/bindings/mfd/atmel-smc.txt     |    1 +
 .../devicetree/bindings/misc/atmel-ssc.txt    |    1 +
 .../devicetree/bindings/mmc/sdhci-atmel.txt   |    4 +-
 .../devicetree/bindings/mtd/atmel-nand.txt    |    1 +
 .../devicetree/bindings/net/cdns,macb.yaml    |    1 +
 .../bindings/pinctrl/atmel,at91-pinctrl.txt   |    3 +-
 .../reset/atmel,at91sam9260-reset.yaml        |    1 +
 .../bindings/rng/atmel,at91-trng.yaml         |    1 +
 .../bindings/rtc/atmel,at91rm9200-rtc.yaml    |    1 +
 .../bindings/rtc/atmel,at91sam9260-rtt.yaml   |    1 +
 .../bindings/serial/atmel,at91-usart.yaml     |    3 +
 .../soc/microchip/atmel,at91rm9200-tcb.yaml   |    2 +
 .../bindings/sound/atmel,sama5d2-classd.yaml  |    5 +-
 .../bindings/spi/atmel,at91rm9200-spi.yaml    |    1 +
 .../devicetree/bindings/usb/atmel-usb.txt     |    9 +-
 .../devicetree/bindings/usb/generic-ehci.yaml |    5 +
 .../bindings/watchdog/atmel,sama5d4-wdt.yaml  |    1 +
 arch/arm/boot/dts/Makefile                    |    2 +
 arch/arm/boot/dts/at91-sam9x75_curiosity.dts  |  336 +++++
 arch/arm/boot/dts/sam9x7.dtsi                 | 1237 +++++++++++++++++
 arch/arm/configs/at91_dt_defconfig            |    1 +
 arch/arm/mach-at91/Kconfig                    |   23 +-
 arch/arm/mach-at91/Makefile                   |    1 +
 arch/arm/mach-at91/generic.h                  |    2 +
 arch/arm/mach-at91/pm.c                       |   35 +
 arch/arm/mach-at91/sam9x7.c                   |   34 +
 drivers/clk/at91/Makefile                     |    1 +
 drivers/clk/at91/clk-sam9x60-pll.c            |   50 +-
 drivers/clk/at91/pmc.h                        |   18 +
 drivers/clk/at91/sam9x60.c                    |    7 +
 drivers/clk/at91/sam9x7.c                     |  942 +++++++++++++
 drivers/clk/at91/sama7g5.c                    |   42 +-
 drivers/irqchip/irq-atmel-aic5.c              |   10 +
 drivers/power/reset/Kconfig                   |    4 +-
 drivers/power/reset/at91-sama5d2_shdwc.c      |    1 +
 drivers/soc/atmel/soc.c                       |   23 +
 drivers/soc/atmel/soc.h                       |    9 +
 49 files changed, 2806 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm/boot/dts/at91-sam9x75_curiosity.dts
 create mode 100644 arch/arm/boot/dts/sam9x7.dtsi
 create mode 100644 arch/arm/mach-at91/sam9x7.c
 create mode 100644 drivers/clk/at91/sam9x7.c

-- 
2.25.1


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

* [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:53   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 02/45] dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible Varshini Rajendran
                   ` (46 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add sam9x60, sam9x7 compatible string support in the schema file.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml b/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml
index a46411149571..4a008d86085e 100644
--- a/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml
+++ b/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml
@@ -20,6 +20,8 @@ properties:
           - atmel,at91rm9200-tcb
           - atmel,at91sam9x5-tcb
           - atmel,sama5d2-tcb
+          - microchip,sam9x60-tcb
+          - microchip,sam9x7-tcb
       - const: simple-mfd
       - const: syscon
 
-- 
2.25.1


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

* [PATCH v2 02/45] dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:53   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 03/45] dt-bindings: usb: generic-ehci: Document clock-names property Varshini Rajendran
                   ` (45 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Document at91sam9g45-ehci compatible for usb-ehci.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml
index 9445764bd8de..7e486cc6cfb8 100644
--- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml
+++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml
@@ -66,6 +66,7 @@ properties:
           - const: generic-ehci
       - items:
           - enum:
+              - atmel,at91sam9g45-ehci
               - cavium,octeon-6335-ehci
               - ibm,usb-ehci-440epx
               - ibm,usb-ehci-460ex
-- 
2.25.1


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

* [PATCH v2 03/45] dt-bindings: usb: generic-ehci: Document clock-names property
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 02/45] dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:54   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 04/45] dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface Varshini Rajendran
                   ` (44 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Document the property clock-names in the schema.

It fixes the dtbs_check warning,
'clock-names' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/usb/generic-ehci.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml
index 7e486cc6cfb8..542ac26960fc 100644
--- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml
+++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml
@@ -102,6 +102,10 @@ properties:
         - if a USB DRD channel: first clock should be host and second
           one should be peripheral
 
+  clock-names:
+    minItems: 1
+    maxItems: 4
+
   power-domains:
     maxItems: 1
 
-- 
2.25.1


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

* [PATCH v2 04/45] dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (2 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 03/45] dt-bindings: usb: generic-ehci: Document clock-names property Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:54   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 05/45] ARM: at91: pm: add support for sam9x7 SoC family Varshini Rajendran
                   ` (43 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add documentation for sam9x7 ethernet interface.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/net/cdns,macb.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml
index bef5e0f895be..e4f9e9b353e5 100644
--- a/Documentation/devicetree/bindings/net/cdns,macb.yaml
+++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml
@@ -54,6 +54,7 @@ properties:
           - cdns,np4-macb             # NP4 SoC devices
           - microchip,sama7g5-emac    # Microchip SAMA7G5 ethernet interface
           - microchip,sama7g5-gem     # Microchip SAMA7G5 gigabit ethernet interface
+          - microchip,sam9x7-gem      # Microchip SAM9X7 gigabit ethernet interface
           - sifive,fu540-c000-gem     # SiFive FU540-C000 SoC
           - cdns,emac                 # Generic
           - cdns,gem                  # Generic
-- 
2.25.1


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

* [PATCH v2 05/45] ARM: at91: pm: add support for sam9x7 SoC family
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (3 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 04/45] dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 06/45] ARM: at91: pm: add sam9x7 SoC init config Varshini Rajendran
                   ` (42 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add support and pm init config for sam9x7 SoC.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 arch/arm/mach-at91/generic.h |  2 ++
 arch/arm/mach-at91/pm.c      | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h
index 0c3960a8b3eb..acf0b3c82a30 100644
--- a/arch/arm/mach-at91/generic.h
+++ b/arch/arm/mach-at91/generic.h
@@ -12,6 +12,7 @@
 extern void __init at91rm9200_pm_init(void);
 extern void __init at91sam9_pm_init(void);
 extern void __init sam9x60_pm_init(void);
+extern void __init sam9x7_pm_init(void);
 extern void __init sama5_pm_init(void);
 extern void __init sama5d2_pm_init(void);
 extern void __init sama7_pm_init(void);
@@ -19,6 +20,7 @@ extern void __init sama7_pm_init(void);
 static inline void __init at91rm9200_pm_init(void) { }
 static inline void __init at91sam9_pm_init(void) { }
 static inline void __init sam9x60_pm_init(void) { }
+static inline void __init sam9x7_pm_init(void) { }
 static inline void __init sama5_pm_init(void) { }
 static inline void __init sama5d2_pm_init(void) { }
 static inline void __init sama7_pm_init(void) { }
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index 60dc56d8acfb..43a77ae0c38c 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -232,6 +232,17 @@ static const struct of_device_id sama7g5_ws_ids[] = {
 	{ /* sentinel */ }
 };
 
+static const struct of_device_id sam9x7_ws_ids[] = {
+	{ .compatible = "microchip,sam9x60-rtc",	.data = &ws_info[1] },
+	{ .compatible = "atmel,at91rm9200-ohci",	.data = &ws_info[2] },
+	{ .compatible = "usb-ohci",			.data = &ws_info[2] },
+	{ .compatible = "atmel,at91sam9g45-ehci",	.data = &ws_info[2] },
+	{ .compatible = "usb-ehci",			.data = &ws_info[2] },
+	{ .compatible = "microchip,sam9x60-rtt",	.data = &ws_info[4] },
+	{ .compatible = "microchip,sam9x7-gem",		.data = &ws_info[5] },
+	{ /* sentinel */ }
+};
+
 static int at91_pm_config_ws(unsigned int pm_mode, bool set)
 {
 	const struct wakeup_source_info *wsi;
@@ -1133,6 +1144,7 @@ static const struct of_device_id gmac_ids[] __initconst = {
 	{ .compatible = "atmel,sama5d2-gem" },
 	{ .compatible = "atmel,sama5d29-gem" },
 	{ .compatible = "microchip,sama7g5-gem" },
+	{ .compatible = "microchip,sam9x7-gem" },
 	{ },
 };
 
@@ -1360,6 +1372,7 @@ static const struct of_device_id atmel_pmc_ids[] __initconst = {
 	{ .compatible = "atmel,sama5d2-pmc", .data = &pmc_infos[1] },
 	{ .compatible = "microchip,sam9x60-pmc", .data = &pmc_infos[4] },
 	{ .compatible = "microchip,sama7g5-pmc", .data = &pmc_infos[5] },
+	{ .compatible = "microchip,sam9x7-pmc", .data = &pmc_infos[4] },
 	{ /* sentinel */ },
 };
 
@@ -1497,6 +1510,28 @@ void __init sam9x60_pm_init(void)
 	soc_pm.config_pmc_ws = at91_sam9x60_config_pmc_ws;
 }
 
+void __init sam9x7_pm_init(void)
+{
+	static const int modes[] __initconst = {
+		AT91_PM_STANDBY, AT91_PM_ULP0,
+	};
+
+	int ret;
+
+	if (!IS_ENABLED(CONFIG_SOC_SAM9X7))
+		return;
+
+	at91_pm_modes_validate(modes, ARRAY_SIZE(modes));
+	ret = at91_dt_ramc(false);
+	if (ret)
+		return;
+
+	at91_pm_init(NULL);
+
+	soc_pm.ws_ids = sam9x7_ws_ids;
+	soc_pm.config_pmc_ws = at91_sam9x60_config_pmc_ws;
+}
+
 void __init at91sam9_pm_init(void)
 {
 	int ret;
-- 
2.25.1


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

* [PATCH v2 06/45] ARM: at91: pm: add sam9x7 SoC init config
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (4 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 05/45] ARM: at91: pm: add support for sam9x7 SoC family Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 07/45] ARM: at91: add support in SoC driver for new sam9x7 Varshini Rajendran
                   ` (41 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add SoC init config for sam9x7 family.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 arch/arm/mach-at91/Makefile |  1 +
 arch/arm/mach-at91/sam9x7.c | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 arch/arm/mach-at91/sam9x7.c

diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index 794bd12ab0a8..7d8a7bc44e65 100644
--- a/arch/arm/mach-at91/Makefile
+++ b/arch/arm/mach-at91/Makefile
@@ -7,6 +7,7 @@
 obj-$(CONFIG_SOC_AT91RM9200)	+= at91rm9200.o
 obj-$(CONFIG_SOC_AT91SAM9)	+= at91sam9.o
 obj-$(CONFIG_SOC_SAM9X60)	+= sam9x60.o
+obj-$(CONFIG_SOC_SAM9X7)	+= sam9x7.o
 obj-$(CONFIG_SOC_SAMA5)		+= sama5.o sam_secure.o
 obj-$(CONFIG_SOC_SAMA7)		+= sama7.o
 obj-$(CONFIG_SOC_SAMV7)		+= samv7.o
diff --git a/arch/arm/mach-at91/sam9x7.c b/arch/arm/mach-at91/sam9x7.c
new file mode 100644
index 000000000000..d998fb327860
--- /dev/null
+++ b/arch/arm/mach-at91/sam9x7.c
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Setup code for SAM9X7.
+ *
+ * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Varshini Rajendran <varshini.rajendran@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 sam9x7_init(void)
+{
+	of_platform_default_populate(NULL, NULL, NULL);
+
+	sam9x7_pm_init();
+}
+
+static const char *const sam9x7_dt_board_compat[] __initconst = {
+	"microchip,sam9x7",
+	NULL
+};
+
+DT_MACHINE_START(sam9x7_dt, "Microchip SAM9X7")
+	/* Maintainer: Microchip */
+	.init_machine	= sam9x7_init,
+	.dt_compat	= sam9x7_dt_board_compat,
+MACHINE_END
-- 
2.25.1


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

* [PATCH v2 07/45] ARM: at91: add support in SoC driver for new sam9x7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (5 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 06/45] ARM: at91: pm: add sam9x7 SoC init config Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 08/45] clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs Varshini Rajendran
                   ` (40 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add support for SAM9X7 SoC in the SoC driver.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/soc/atmel/soc.c | 23 +++++++++++++++++++++++
 drivers/soc/atmel/soc.h |  9 +++++++++
 2 files changed, 32 insertions(+)

diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c
index cc9a3e107479..cae3452cbc60 100644
--- a/drivers/soc/atmel/soc.c
+++ b/drivers/soc/atmel/soc.c
@@ -101,6 +101,29 @@ static const struct at91_soc socs[] __initconst = {
 		 AT91_CIDR_VERSION_MASK, SAM9X60_D6K_EXID_MATCH,
 		 "sam9x60 8MiB SDRAM SiP", "sam9x60"),
 #endif
+#ifdef CONFIG_SOC_SAM9X7
+	AT91_SOC(SAM9X7_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
+		 AT91_CIDR_VERSION_MASK, SAM9X75_EXID_MATCH,
+		 "sam9x75", "sam9x7"),
+	AT91_SOC(SAM9X7_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
+		 AT91_CIDR_VERSION_MASK, SAM9X72_EXID_MATCH,
+		 "sam9x72", "sam9x7"),
+	AT91_SOC(SAM9X7_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
+		 AT91_CIDR_VERSION_MASK, SAM9X70_EXID_MATCH,
+		 "sam9x70", "sam9x7"),
+	AT91_SOC(SAM9X7_CIDR_MATCH, SAM9X75_D1G_EXID_MATCH,
+		 AT91_CIDR_VERSION_MASK, SAM9X75_EXID_MATCH,
+		 "sam9x75 1Gb DDR3L SiP ", "sam9x7"),
+	AT91_SOC(SAM9X7_CIDR_MATCH, SAM9X75_D5M_EXID_MATCH,
+		 AT91_CIDR_VERSION_MASK, SAM9X75_EXID_MATCH,
+		 "sam9x75 512Mb DDR2 SiP", "sam9x7"),
+	AT91_SOC(SAM9X7_CIDR_MATCH, SAM9X75_D1M_EXID_MATCH,
+		 AT91_CIDR_VERSION_MASK, SAM9X75_EXID_MATCH,
+		 "sam9x75 128Mb DDR2 SiP", "sam9x7"),
+	AT91_SOC(SAM9X7_CIDR_MATCH, SAM9X75_D2G_EXID_MATCH,
+		 AT91_CIDR_VERSION_MASK, SAM9X75_EXID_MATCH,
+		 "sam9x75 2Gb DDR3L SiP", "sam9x7"),
+#endif
 #ifdef CONFIG_SOC_SAMA5
 	AT91_SOC(SAMA5D2_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
 		 AT91_CIDR_VERSION_MASK, SAMA5D21CU_EXID_MATCH,
diff --git a/drivers/soc/atmel/soc.h b/drivers/soc/atmel/soc.h
index 7a9f47ce85fb..26dd26b4f179 100644
--- a/drivers/soc/atmel/soc.h
+++ b/drivers/soc/atmel/soc.h
@@ -45,6 +45,7 @@ at91_soc_init(const struct at91_soc *socs);
 #define AT91SAM9N12_CIDR_MATCH		0x019a07a0
 #define SAM9X60_CIDR_MATCH		0x019b35a0
 #define SAMA7G5_CIDR_MATCH		0x00162100
+#define SAM9X7_CIDR_MATCH		0x09750020
 
 #define AT91SAM9M11_EXID_MATCH		0x00000001
 #define AT91SAM9M10_EXID_MATCH		0x00000002
@@ -74,6 +75,14 @@ at91_soc_init(const struct at91_soc *socs);
 #define SAMA7G54_D2G_EXID_MATCH		0x00000020
 #define SAMA7G54_D4G_EXID_MATCH		0x00000028
 
+#define SAM9X75_EXID_MATCH		0x00000000
+#define SAM9X72_EXID_MATCH		0x00000004
+#define SAM9X70_EXID_MATCH		0x00000005
+#define SAM9X75_D1G_EXID_MATCH		0x00000001
+#define SAM9X75_D5M_EXID_MATCH		0x00000002
+#define SAM9X75_D1M_EXID_MATCH		0x00000003
+#define SAM9X75_D2G_EXID_MATCH		0x00000006
+
 #define AT91SAM9XE128_CIDR_MATCH	0x329973a0
 #define AT91SAM9XE256_CIDR_MATCH	0x329a93a0
 #define AT91SAM9XE512_CIDR_MATCH	0x329aa3a0
-- 
2.25.1


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

* [PATCH v2 08/45] clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (6 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 07/45] ARM: at91: add support in SoC driver for new sam9x7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 09/45] clk: at91: sam9x7: add support for HW PLL freq dividers Varshini Rajendran
                   ` (39 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

SAM9X7 SoC family supports different core output frequencies for
different PLL IDs. To handle the same in the PLL driver, a separate
parameter core_output is added. The sam9x60 and sama7g5 SoC PMC drivers
are aligned to the PLL driver by adding the core output freq range in
the PLL characteristics configurations.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/clk/at91/clk-sam9x60-pll.c | 12 ++++++------
 drivers/clk/at91/pmc.h             |  1 +
 drivers/clk/at91/sam9x60.c         |  7 +++++++
 drivers/clk/at91/sama7g5.c         |  7 +++++++
 4 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c
index 0882ed01d5c2..b3012641214c 100644
--- a/drivers/clk/at91/clk-sam9x60-pll.c
+++ b/drivers/clk/at91/clk-sam9x60-pll.c
@@ -23,9 +23,6 @@
 #define UPLL_DIV		2
 #define PLL_MUL_MAX		(FIELD_GET(PMC_PLL_CTRL1_MUL_MSK, UINT_MAX) + 1)
 
-#define FCORE_MIN		(600000000)
-#define FCORE_MAX		(1200000000)
-
 #define PLL_MAX_ID		7
 
 struct sam9x60_pll_core {
@@ -194,7 +191,8 @@ static long sam9x60_frac_pll_compute_mul_frac(struct sam9x60_pll_core *core,
 	unsigned long nmul = 0;
 	unsigned long nfrac = 0;
 
-	if (rate < FCORE_MIN || rate > FCORE_MAX)
+	if (rate < core->characteristics->core_output[0].min ||
+	    rate > core->characteristics->core_output[0].max)
 		return -ERANGE;
 
 	/*
@@ -214,7 +212,8 @@ static long sam9x60_frac_pll_compute_mul_frac(struct sam9x60_pll_core *core,
 	}
 
 	/* Check if resulted rate is a valid.  */
-	if (tmprate < FCORE_MIN || tmprate > FCORE_MAX)
+	if (tmprate < core->characteristics->core_output[0].min ||
+	    tmprate > core->characteristics->core_output[0].max)
 		return -ERANGE;
 
 	if (update) {
@@ -666,7 +665,8 @@ sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock,
 			goto free;
 		}
 
-		ret = sam9x60_frac_pll_compute_mul_frac(&frac->core, FCORE_MIN,
+		ret = sam9x60_frac_pll_compute_mul_frac(&frac->core,
+							characteristics->core_output[0].min,
 							parent_rate, true);
 		if (ret < 0) {
 			hw = ERR_PTR(ret);
diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
index 1b3ca7dd9b57..3e36dcc464c1 100644
--- a/drivers/clk/at91/pmc.h
+++ b/drivers/clk/at91/pmc.h
@@ -75,6 +75,7 @@ struct clk_pll_characteristics {
 	struct clk_range input;
 	int num_output;
 	const struct clk_range *output;
+	const struct clk_range *core_output;
 	u16 *icpll;
 	u8 *out;
 	u8 upll : 1;
diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c
index ac070db58195..452ad45cf251 100644
--- a/drivers/clk/at91/sam9x60.c
+++ b/drivers/clk/at91/sam9x60.c
@@ -26,10 +26,16 @@ static const struct clk_range plla_outputs[] = {
 	{ .min = 2343750, .max = 1200000000 },
 };
 
+/* Fractional PLL core output range. */
+static const struct clk_range core_outputs[] = {
+	{ .min = 600000000, .max = 1200000000 },
+};
+
 static const struct clk_pll_characteristics plla_characteristics = {
 	.input = { .min = 12000000, .max = 48000000 },
 	.num_output = ARRAY_SIZE(plla_outputs),
 	.output = plla_outputs,
+	.core_output = core_outputs,
 };
 
 static const struct clk_range upll_outputs[] = {
@@ -40,6 +46,7 @@ static const struct clk_pll_characteristics upll_characteristics = {
 	.input = { .min = 12000000, .max = 48000000 },
 	.num_output = ARRAY_SIZE(upll_outputs),
 	.output = upll_outputs,
+	.core_output = core_outputs,
 	.upll = true,
 };
 
diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c
index f135b662f1ff..468a3c5449b5 100644
--- a/drivers/clk/at91/sama7g5.c
+++ b/drivers/clk/at91/sama7g5.c
@@ -104,11 +104,17 @@ static const struct clk_range pll_outputs[] = {
 	{ .min = 2343750, .max = 1200000000 },
 };
 
+/* Fractional PLL core output range. */
+static const struct clk_range core_outputs[] = {
+	{ .min = 600000000, .max = 1200000000 },
+};
+
 /* CPU PLL characteristics. */
 static const struct clk_pll_characteristics cpu_pll_characteristics = {
 	.input = { .min = 12000000, .max = 50000000 },
 	.num_output = ARRAY_SIZE(cpu_pll_outputs),
 	.output = cpu_pll_outputs,
+	.core_output = core_outputs,
 };
 
 /* PLL characteristics. */
@@ -116,6 +122,7 @@ static const struct clk_pll_characteristics pll_characteristics = {
 	.input = { .min = 12000000, .max = 50000000 },
 	.num_output = ARRAY_SIZE(pll_outputs),
 	.output = pll_outputs,
+	.core_output = core_outputs,
 };
 
 /*
-- 
2.25.1


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

* [PATCH v2 09/45] clk: at91: sam9x7: add support for HW PLL freq dividers
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (7 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 08/45] clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 10/45] clk: at91: sama7g5: move mux table macros to header file Varshini Rajendran
                   ` (38 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add support for hardware dividers for PLL IDs in sam9x7 SoC. The system
PLL - PLLA and the system PLL divided by 2 - PLLADIV2 with PLL ID 0 and
4 respectively, both have a hardware divider /2. This has to taken into
account in the software to obtain the right frequencies. Support for the
same is added in the PLL driver.

fcorepllack -----> HW Div = 2 -+--> fpllack
                               |
                               +--> HW Div = 2 ---> fplladiv2ck

In this case the corepll freq is 1600 MHz. So, the plla freq is 800 MHz
after the hardware divider and the plladiv2 freq is 400 MHz after the
hardware divider (Given that the DIVPMC is 0).

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/clk/at91/clk-sam9x60-pll.c | 38 ++++++++++++++++++++++++++----
 drivers/clk/at91/pmc.h             |  1 +
 2 files changed, 34 insertions(+), 5 deletions(-)

diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c
index b3012641214c..76273ea74f8b 100644
--- a/drivers/clk/at91/clk-sam9x60-pll.c
+++ b/drivers/clk/at91/clk-sam9x60-pll.c
@@ -73,9 +73,15 @@ static unsigned long sam9x60_frac_pll_recalc_rate(struct clk_hw *hw,
 {
 	struct sam9x60_pll_core *core = to_sam9x60_pll_core(hw);
 	struct sam9x60_frac *frac = to_sam9x60_frac(core);
+	unsigned long freq;
 
-	return parent_rate * (frac->mul + 1) +
+	freq = parent_rate * (frac->mul + 1) +
 		DIV_ROUND_CLOSEST_ULL((u64)parent_rate * frac->frac, (1 << 22));
+
+	if (core->layout->div2)
+		freq >>= 1;
+
+	return freq;
 }
 
 static int sam9x60_frac_pll_set(struct sam9x60_pll_core *core)
@@ -432,6 +438,12 @@ static unsigned long sam9x60_div_pll_recalc_rate(struct clk_hw *hw,
 	return DIV_ROUND_CLOSEST_ULL(parent_rate, (div->div + 1));
 }
 
+static unsigned long sam9x60_fixed_div_pll_recalc_rate(struct clk_hw *hw,
+						       unsigned long parent_rate)
+{
+	return parent_rate >> 1;
+}
+
 static long sam9x60_div_pll_compute_div(struct sam9x60_pll_core *core,
 					unsigned long *parent_rate,
 					unsigned long rate)
@@ -606,6 +618,16 @@ static const struct clk_ops sam9x60_div_pll_ops_chg = {
 	.restore_context = sam9x60_div_pll_restore_context,
 };
 
+static const struct clk_ops sam9x60_fixed_div_pll_ops = {
+	.prepare = sam9x60_div_pll_prepare,
+	.unprepare = sam9x60_div_pll_unprepare,
+	.is_prepared = sam9x60_div_pll_is_prepared,
+	.recalc_rate = sam9x60_fixed_div_pll_recalc_rate,
+	.round_rate = sam9x60_div_pll_round_rate,
+	.save_context = sam9x60_div_pll_save_context,
+	.restore_context = sam9x60_div_pll_restore_context,
+};
+
 struct clk_hw * __init
 sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock,
 			      const char *name, const char *parent_name,
@@ -718,10 +740,16 @@ sam9x60_clk_register_div_pll(struct regmap *regmap, spinlock_t *lock,
 	init.name = name;
 	init.parent_names = &parent_name;
 	init.num_parents = 1;
-	if (flags & CLK_SET_RATE_GATE)
-		init.ops = &sam9x60_div_pll_ops;
-	else
-		init.ops = &sam9x60_div_pll_ops_chg;
+
+	if (layout->div2) {
+		init.ops = &sam9x60_fixed_div_pll_ops;
+	} else {
+		if (flags & CLK_SET_RATE_GATE)
+			init.ops = &sam9x60_div_pll_ops;
+		else
+			init.ops = &sam9x60_div_pll_ops_chg;
+	}
+
 	init.flags = flags;
 
 	div->core.id = id;
diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
index 3e36dcc464c1..1dd01f30bdee 100644
--- a/drivers/clk/at91/pmc.h
+++ b/drivers/clk/at91/pmc.h
@@ -64,6 +64,7 @@ struct clk_pll_layout {
 	u8 frac_shift;
 	u8 div_shift;
 	u8 endiv_shift;
+	u8 div2;
 };
 
 extern const struct clk_pll_layout at91rm9200_pll_layout;
-- 
2.25.1


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

* [PATCH v2 10/45] clk: at91: sama7g5: move mux table macros to header file
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (8 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 09/45] clk: at91: sam9x7: add support for HW PLL freq dividers Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 11/45] dt-bindings: clk: at91: add bindings for SAM9X7's clock controller Varshini Rajendran
                   ` (37 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Move the mux table init and fill macro function definitions from the
sama7g5 pmc driver to the pmc.h header file since they will be used
by other SoC's pmc drivers as well like sam9x7.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/clk/at91/pmc.h     | 16 ++++++++++++++++
 drivers/clk/at91/sama7g5.c | 35 ++++++++++-------------------------
 2 files changed, 26 insertions(+), 25 deletions(-)

diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
index 1dd01f30bdee..f3c23ff0da02 100644
--- a/drivers/clk/at91/pmc.h
+++ b/drivers/clk/at91/pmc.h
@@ -121,6 +121,22 @@ struct at91_clk_pms {
 
 #define ndck(a, s) (a[s - 1].id + 1)
 #define nck(a) (a[ARRAY_SIZE(a) - 1].id + 1)
+
+#define PMC_INIT_TABLE(_table, _count)		\
+	do {						\
+		u8 _i;					\
+		for (_i = 0; _i < (_count); _i++)	\
+			(_table)[_i] = _i;		\
+	} while (0)
+
+#define PMC_FILL_TABLE(_to, _from, _count)		\
+	do {						\
+		u8 _i;					\
+		for (_i = 0; _i < (_count); _i++) {	\
+			(_to)[_i] = (_from)[_i];	\
+		}					\
+	} while (0)
+
 struct pmc_data *pmc_data_allocate(unsigned int ncore, unsigned int nsystem,
 				   unsigned int nperiph, unsigned int ngck,
 				   unsigned int npck);
diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c
index 468a3c5449b5..75011df708cc 100644
--- a/drivers/clk/at91/sama7g5.c
+++ b/drivers/clk/at91/sama7g5.c
@@ -16,21 +16,6 @@
 
 #include "pmc.h"
 
-#define SAMA7G5_INIT_TABLE(_table, _count)		\
-	do {						\
-		u8 _i;					\
-		for (_i = 0; _i < (_count); _i++)	\
-			(_table)[_i] = _i;		\
-	} while (0)
-
-#define SAMA7G5_FILL_TABLE(_to, _from, _count)		\
-	do {						\
-		u8 _i;					\
-		for (_i = 0; _i < (_count); _i++) {	\
-			(_to)[_i] = (_from)[_i];	\
-		}					\
-	} while (0)
-
 static DEFINE_SPINLOCK(pmc_pll_lock);
 static DEFINE_SPINLOCK(pmc_mck0_lock);
 static DEFINE_SPINLOCK(pmc_mckX_lock);
@@ -1022,11 +1007,11 @@ static void __init sama7g5_pmc_setup(struct device_node *np)
 		if (!mux_table)
 			goto err_free;
 
-		SAMA7G5_INIT_TABLE(mux_table, 3);
-		SAMA7G5_FILL_TABLE(&mux_table[3], sama7g5_mckx[i].ep_mux_table,
-				   sama7g5_mckx[i].ep_count);
-		SAMA7G5_FILL_TABLE(&parent_names[3], sama7g5_mckx[i].ep,
-				   sama7g5_mckx[i].ep_count);
+		PMC_INIT_TABLE(mux_table, 3);
+		PMC_FILL_TABLE(&mux_table[3], sama7g5_mckx[i].ep_mux_table,
+			       sama7g5_mckx[i].ep_count);
+		PMC_FILL_TABLE(&parent_names[3], sama7g5_mckx[i].ep,
+			       sama7g5_mckx[i].ep_count);
 
 		hw = at91_clk_sama7g5_register_master(regmap, sama7g5_mckx[i].n,
 				   num_parents, parent_names, mux_table,
@@ -1109,11 +1094,11 @@ static void __init sama7g5_pmc_setup(struct device_node *np)
 		if (!mux_table)
 			goto err_free;
 
-		SAMA7G5_INIT_TABLE(mux_table, 3);
-		SAMA7G5_FILL_TABLE(&mux_table[3], sama7g5_gck[i].pp_mux_table,
-				   sama7g5_gck[i].pp_count);
-		SAMA7G5_FILL_TABLE(&parent_names[3], sama7g5_gck[i].pp,
-				   sama7g5_gck[i].pp_count);
+		PMC_INIT_TABLE(mux_table, 3);
+		PMC_FILL_TABLE(&mux_table[3], sama7g5_gck[i].pp_mux_table,
+			       sama7g5_gck[i].pp_count);
+		PMC_FILL_TABLE(&parent_names[3], sama7g5_gck[i].pp,
+			       sama7g5_gck[i].pp_count);
 
 		hw = at91_clk_register_generated(regmap, &pmc_pcr_lock,
 						 &sama7g5_pcr_layout,
-- 
2.25.1


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

* [PATCH v2 11/45] dt-bindings: clk: at91: add bindings for SAM9X7's clock controller
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (9 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 10/45] clk: at91: sama7g5: move mux table macros to header file Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 12/45] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding Varshini Rajendran
                   ` (36 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add bindings for SAM9X7's slow clock controller and pmc.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/clock/at91-clock.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/at91-clock.txt b/Documentation/devicetree/bindings/clock/at91-clock.txt
index 13f45db3b66d..446937fab950 100644
--- a/Documentation/devicetree/bindings/clock/at91-clock.txt
+++ b/Documentation/devicetree/bindings/clock/at91-clock.txt
@@ -10,8 +10,9 @@ Required properties:
 - compatible : shall be one of the following:
 	"atmel,at91sam9x5-sckc",
 	"atmel,sama5d3-sckc",
-	"atmel,sama5d4-sckc" or
-	"microchip,sam9x60-sckc":
+	"atmel,sama5d4-sckc",
+	"microchip,sam9x60-sckc" or
+	"microchip,sam9x7-sckc":
 		at91 SCKC (Slow Clock Controller)
 - #clock-cells : shall be 1 for "microchip,sam9x60-sckc" otherwise shall be 0.
 - clocks : shall be the input parent clock phandle for the clock.
@@ -32,7 +33,7 @@ Power Management Controller (PMC):
 
 Required properties:
 - compatible : shall be "atmel,<chip>-pmc", "syscon" or
-	"microchip,sam9x60-pmc"
+	"microchip,sam9x60-pmc" or "microchip,sam9x7-pmc"
 	<chip> can be: at91rm9200, at91sam9260, at91sam9261,
 	at91sam9263, at91sam9g45, at91sam9n12, at91sam9rl, at91sam9g15,
 	at91sam9g25, at91sam9g35, at91sam9x25, at91sam9x35, at91sam9x5,
-- 
2.25.1


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

* [PATCH v2 12/45] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (10 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 11/45] dt-bindings: clk: at91: add bindings for SAM9X7's clock controller Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:57   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 13/45] dt-bindings: atmel-sysreg: add bindings for sam9x7 Varshini Rajendran
                   ` (35 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add documentation for SAM9X7 reset controller.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/reset/atmel,at91sam9260-reset.yaml       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml b/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
index 98465d26949e..593a13c277ab 100644
--- a/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
+++ b/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
@@ -22,6 +22,7 @@ properties:
               - atmel,at91sam9g45-rstc
               - atmel,sama5d3-rstc
               - microchip,sam9x60-rstc
+              - microchip,sam9x7-rstc
               - microchip,sama7g5-rstc
       - items:
           - const: atmel,sama5d3-rstc
-- 
2.25.1


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

* [PATCH v2 13/45] dt-bindings: atmel-sysreg: add bindings for sam9x7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (11 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 12/45] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:00   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 14/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel AES Varshini Rajendran
                   ` (34 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add RAM controller, shutdown controller & SFR DT bindings.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
index ab1b352344ae..1e7349987d77 100644
--- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
+++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
@@ -11,7 +11,7 @@ PIT Timer required properties:
   shared across all System Controller members.
 
 PIT64B Timer required properties:
-- compatible: Should be "microchip,sam9x60-pit64b"
+- compatible: Should be "microchip,sam9x60-pit64b" or "microchip,sam9x7-pit64b"
 - reg: Should contain registers location and length
 - interrupts: Should contain interrupt for PIT64B timer
 - clocks: Should contain the available clock sources for PIT64B timer.
@@ -31,6 +31,7 @@ RAMC SDRAM/DDR Controller required properties:
 			"atmel,at91sam9g45-ddramc",
 			"atmel,sama5d3-ddramc",
 			"microchip,sam9x60-ddramc",
+			"microchip,sam9x7-ddramc",
 			"microchip,sama7g5-uddrc"
 - reg: Should contain registers location and length
 
@@ -89,7 +90,7 @@ SHDWC SAMA5D2-Compatible Shutdown Controller
 
 required properties:
 - compatible: should be "atmel,sama5d2-shdwc", "microchip,sam9x60-shdwc" or
-  "microchip,sama7g5-shdwc"
+  "microchip,sama7g5-shdwc" or "microchip,sam9x7-shdwc"
 - reg: should contain registers location and length
 - clocks: phandle to input clock.
 - #address-cells: should be one. The cell is the wake-up input index.
@@ -156,7 +157,7 @@ required properties:
 - compatible: Should be "atmel,<chip>-sfr", "syscon" or
 	"atmel,<chip>-sfrbu", "syscon"
   <chip> can be "sama5d3", "sama5d4" or "sama5d2".
-  It also can be "microchip,sam9x60-sfr", "syscon".
+  It also can be "microchip,sam9x60-sfr" or "microchip,sam9x7-sfr", "syscon".
 - reg: Should contain registers location and length
 
 	sfr@f0038000 {
-- 
2.25.1


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

* [PATCH v2 14/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel AES
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (12 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 13/45] dt-bindings: atmel-sysreg: add bindings for sam9x7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:58   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 15/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA Varshini Rajendran
                   ` (33 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add DT bindings for atmel AES.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml
index 0b7383b3106b..f0736696c883 100644
--- a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml
+++ b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml
@@ -12,7 +12,10 @@ maintainers:
 
 properties:
   compatible:
-    const: atmel,at91sam9g46-aes
+    oneOf:
+      - items:
+          - const: atmel,at91sam9g46-aes
+          - const: microchip,sam9x7-aes
 
   reg:
     maxItems: 1
-- 
2.25.1


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

* [PATCH v2 15/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (13 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 14/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel AES Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:59   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 16/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES Varshini Rajendran
                   ` (32 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add DT bindings for atmel SHA.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml
index ee2ffb034325..6a54cb79b6e2 100644
--- a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml
+++ b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml
@@ -12,7 +12,10 @@ maintainers:
 
 properties:
   compatible:
-    const: atmel,at91sam9g46-sha
+    oneOf:
+      - items:
+          - const: atmel,at91sam9g46-sha
+          - const: microchip,sam9x7-sha
 
   reg:
     maxItems: 1
-- 
2.25.1


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

* [PATCH v2 16/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (14 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 15/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  7:59   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 17/45] dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7 Varshini Rajendran
                   ` (31 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add DT bindings for atmel TDES.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml
index 3d6ed24b1b00..0e71bfd32a1c 100644
--- a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml
+++ b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml
@@ -12,7 +12,10 @@ maintainers:
 
 properties:
   compatible:
-    const: atmel,at91sam9g46-tdes
+    oneOf:
+      - items:
+          - const: atmel,at91sam9g46-tdes
+          - const: microchip,sam9x7-tdes
 
   reg:
     maxItems: 1
-- 
2.25.1


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

* [PATCH v2 17/45] dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (15 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 16/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:27   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 18/45] dt-bindings: i2c: at91: Add SAM9X7 compatible string Varshini Rajendran
                   ` (30 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add compatible for sam9x7.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/dma/atmel-xdma.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/dma/atmel-xdma.txt b/Documentation/devicetree/bindings/dma/atmel-xdma.txt
index 510b7f25ba24..f672556ea715 100644
--- a/Documentation/devicetree/bindings/dma/atmel-xdma.txt
+++ b/Documentation/devicetree/bindings/dma/atmel-xdma.txt
@@ -2,8 +2,8 @@
 
 * XDMA Controller
 Required properties:
-- compatible: Should be "atmel,sama5d4-dma", "microchip,sam9x60-dma" or
-  "microchip,sama7g5-dma".
+- compatible: Should be "atmel,sama5d4-dma", "microchip,sam9x60-dma",
+  "microchip,sam9x7-dma" or "microchip,sama7g5-dma".
 - reg: Should contain DMA registers location and length.
 - interrupts: Should contain DMA interrupt.
 - #dma-cells: Must be <1>, used to represent the number of integer cells in
-- 
2.25.1


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

* [PATCH v2 18/45] dt-bindings: i2c: at91: Add SAM9X7 compatible string
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (16 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 17/45] dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:00   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 19/45] dt-bindings: mfd: " Varshini Rajendran
                   ` (29 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add compatible string for sam9x7.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml b/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml
index 6adedd3ec399..440f890e209f 100644
--- a/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml
@@ -24,9 +24,11 @@ properties:
               - atmel,sama5d4-i2c
               - atmel,sama5d2-i2c
               - microchip,sam9x60-i2c
+              - microchip,sam9x7-i2c
       - items:
           - const: microchip,sama7g5-i2c
           - const: microchip,sam9x60-i2c
+          - const: microchip,sam9x7-i2c
 
   reg:
     maxItems: 1
@@ -84,6 +86,7 @@ allOf:
               - atmel,sama5d4-i2c
               - atmel,sama5d2-i2c
               - microchip,sam9x60-i2c
+              - microchip,sam9x7-i2c
               - microchip,sama7g5-i2c
     then:
       properties:
-- 
2.25.1


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

* [PATCH v2 19/45] dt-bindings: mfd: at91: Add SAM9X7 compatible string
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (17 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 18/45] dt-bindings: i2c: at91: Add SAM9X7 compatible string Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:23   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 20/45] dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr Varshini Rajendran
                   ` (28 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Document sam9x7 DT for flexcom.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/mfd/atmel-flexcom.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt b/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt
index 9d837535637b..449e0af93a13 100644
--- a/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt
+++ b/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt
@@ -5,7 +5,7 @@ controller and an USART. Only one function can be used at a time and is chosen
 at boot time according to the device tree.
 
 Required properties:
-- compatible:		Should be "atmel,sama5d2-flexcom"
+- compatible:		Should be "atmel,sama5d2-flexcom" or "microchip,sam9x7-flexcom"
 - reg:			Should be the offset/length value for Flexcom dedicated
 			I/O registers (without USART, TWI or SPI registers).
 - clocks:		Should be the Flexcom peripheral clock from PMC.
-- 
2.25.1


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

* [PATCH v2 20/45] dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (18 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 19/45] dt-bindings: mfd: " Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:23   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 21/45] dt-bindings: atmel-matrix: add microchip,sam9x7-matrix Varshini Rajendran
                   ` (27 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add microchip,sam9x7-gpbr to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/mfd/atmel-gpbr.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt b/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt
index e8c525569f10..2cc39524af8c 100644
--- a/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt
+++ b/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt
@@ -6,6 +6,7 @@ Required properties:
 - compatible:		Should be one of the following:
 			"atmel,at91sam9260-gpbr", "syscon"
 			"microchip,sam9x60-gpbr", "syscon"
+			"microchip,sam9x7-gpbr", "syscon"
 - reg:			contains offset/length value of the GPBR memory
 			region.
 
-- 
2.25.1


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

* [PATCH v2 21/45] dt-bindings: atmel-matrix: add microchip,sam9x7-matrix
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (19 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 20/45] dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:24   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 22/45] dt-bindings: atmel-smc: add microchip,sam9x7-smc Varshini Rajendran
                   ` (26 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add microchip,sam9x7-matrix to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/mfd/atmel-matrix.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mfd/atmel-matrix.txt b/Documentation/devicetree/bindings/mfd/atmel-matrix.txt
index 89d05c64fb01..75378839fc7f 100644
--- a/Documentation/devicetree/bindings/mfd/atmel-matrix.txt
+++ b/Documentation/devicetree/bindings/mfd/atmel-matrix.txt
@@ -14,6 +14,7 @@ Required properties:
 			"atmel,at91sam9x5-matrix", "syscon"
 			"atmel,sama5d3-matrix", "syscon"
 			"microchip,sam9x60-matrix", "syscon"
+			"microchip,sam9x7-matrix", "syscon"
 - reg:			Contains offset/length value of the Bus Matrix
 			memory region.
 
-- 
2.25.1


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

* [PATCH v2 22/45] dt-bindings: atmel-smc: add microchip,sam9x7-smc
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (20 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 21/45] dt-bindings: atmel-matrix: add microchip,sam9x7-matrix Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:24   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 23/45] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc Varshini Rajendran
                   ` (25 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add microchip,sam9x7-smc to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/mfd/atmel-smc.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mfd/atmel-smc.txt b/Documentation/devicetree/bindings/mfd/atmel-smc.txt
index 5696d9fcb5dc..1eb2606820a5 100644
--- a/Documentation/devicetree/bindings/mfd/atmel-smc.txt
+++ b/Documentation/devicetree/bindings/mfd/atmel-smc.txt
@@ -10,6 +10,7 @@ Required properties:
 			"atmel,sama5d3-smc", "syscon"
 			"atmel,sama5d2-smc", "syscon"
 			"microchip,sam9x60-smc", "syscon"
+			"microchip,sam9x7-smc", "syscon"
 - reg:			Contains offset/length value of the SMC memory
 			region.
 
-- 
2.25.1


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

* [PATCH v2 23/45] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (21 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 22/45] dt-bindings: atmel-smc: add microchip,sam9x7-smc Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:24   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 24/45] dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci Varshini Rajendran
                   ` (24 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add microchip,sam9x7-ssc to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/misc/atmel-ssc.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/misc/atmel-ssc.txt b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
index f9fb412642fe..67c1227a01bd 100644
--- a/Documentation/devicetree/bindings/misc/atmel-ssc.txt
+++ b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
@@ -2,6 +2,7 @@
 
 Required properties:
 - compatible: "atmel,at91rm9200-ssc" or "atmel,at91sam9g45-ssc"
+	       or "microchip,sam9x7-ssc"
 	- atmel,at91rm9200-ssc: support pdc transfer
 	- atmel,at91sam9g45-ssc: support dma transfer
 - reg: Should contain SSC registers location and length
-- 
2.25.1


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

* [PATCH v2 24/45] dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (22 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 23/45] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:24   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 25/45] dt-bindings: atmel-nand: add microchip,sam9x7-pmecc Varshini Rajendran
                   ` (23 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add microchip,sam9x7-sdhci to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/mmc/sdhci-atmel.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt b/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt
index 69edfd4d3922..b8df78fbc00f 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt
+++ b/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt
@@ -5,11 +5,13 @@ Documentation/devicetree/bindings/mmc/mmc.txt and the properties used by the
 sdhci-of-at91 driver.
 
 Required properties:
-- compatible:		Must be "atmel,sama5d2-sdhci" or "microchip,sam9x60-sdhci".
+- compatible:		Must be "atmel,sama5d2-sdhci" or "microchip,sam9x60-sdhci"
+			or "microchip,sam9x7-sdhci"
 - clocks:		Phandlers to the clocks.
 - clock-names:		Must be "hclock", "multclk", "baseclk" for
 			"atmel,sama5d2-sdhci".
 			Must be "hclock", "multclk" for "microchip,sam9x60-sdhci".
+			Must be "hclock", "multclk" for "microchip,sam9x7-sdhci".
 
 Optional properties:
 - assigned-clocks:	The same with "multclk".
-- 
2.25.1


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

* [PATCH v2 25/45] dt-bindings: atmel-nand: add microchip,sam9x7-pmecc
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (23 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 24/45] dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:24   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 26/45] dt-bindings: pinctrl: at91: add bindings for SAM9X7 Varshini Rajendran
                   ` (22 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add microchip,sam9x7-pmecc to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/mtd/atmel-nand.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mtd/atmel-nand.txt b/Documentation/devicetree/bindings/mtd/atmel-nand.txt
index 50645828ac20..9c9dfab38fdf 100644
--- a/Documentation/devicetree/bindings/mtd/atmel-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/atmel-nand.txt
@@ -56,6 +56,7 @@ Required properties:
 	"atmel,sama5d4-pmecc"
 	"atmel,sama5d2-pmecc"
 	"microchip,sam9x60-pmecc"
+	"microchip,sam9x7-pmecc"
 - reg: should contain 2 register ranges. The first one is pointing to the PMECC
        block, and the second one to the PMECC_ERRLOC block.
 
-- 
2.25.1


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

* [PATCH v2 26/45] dt-bindings: pinctrl: at91: add bindings for SAM9X7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (24 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 25/45] dt-bindings: atmel-nand: add microchip,sam9x7-pmecc Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:24   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 27/45] dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG Varshini Rajendran
                   ` (21 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add device tree binding for SAM9X7 pin controller.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
index e8abbdad7b5d..5a3be10dcbfb 100644
--- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
@@ -20,6 +20,7 @@ such as pull-up, multi drive, etc.
 Required properties for iomux controller:
 - compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl"
 		or "atmel,sama5d3-pinctrl" or "microchip,sam9x60-pinctrl"
+		or "microchip,sam9x7-pinctrl"
 - atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be
   configured in this periph mode. All the periph and bank need to be describe.
 
@@ -119,7 +120,7 @@ Some requirements for using atmel,at91rm9200-pinctrl binding:
 
 For each bank the required properties are:
 - compatible: "atmel,at91sam9x5-gpio" or "atmel,at91rm9200-gpio" or
-  "microchip,sam9x60-gpio"
+  "microchip,sam9x60-gpio" or "microchip,sam9x7-gpio"
 - reg: physical base address and length of the controller's registers
 - interrupts: interrupt outputs from the controller
 - interrupt-controller: marks the device node as an interrupt controller
-- 
2.25.1


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

* [PATCH v2 27/45] dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (25 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 26/45] dt-bindings: pinctrl: at91: add bindings for SAM9X7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:01   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 28/45] dt-bindings: rtc: at91rm9200: add sam9x7 compatible Varshini Rajendran
                   ` (20 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add compatbile for Microchip sam9x7 TRNG.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml
index 3ce45456d867..7e4dbf5e22b4 100644
--- a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml
+++ b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml
@@ -17,6 +17,7 @@ properties:
       - enum:
           - atmel,at91sam9g45-trng
           - microchip,sam9x60-trng
+          - microchip,sam9x7-trng
       - items:
           - enum:
               - microchip,sama7g5-trng
-- 
2.25.1


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

* [PATCH v2 28/45] dt-bindings: rtc: at91rm9200: add sam9x7 compatible
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (26 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 27/45] dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:01   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 29/45] dt-bindings: rtt: at91rm9260: " Varshini Rajendran
                   ` (19 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add compatible for SAM9X7 RTC.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
index 4d2bef15fb7a..e15872bbdd7e 100644
--- a/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
@@ -20,6 +20,7 @@ properties:
       - atmel,sama5d4-rtc
       - atmel,sama5d2-rtc
       - microchip,sam9x60-rtc
+      - microchip,sam9x7-rtc
       - microchip,sama7g5-rtc
 
   reg:
-- 
2.25.1


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

* [PATCH v2 29/45] dt-bindings: rtt: at91rm9260: add sam9x7 compatible
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (27 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 28/45] dt-bindings: rtc: at91rm9200: add sam9x7 compatible Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:02   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 30/45] dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7 Varshini Rajendran
                   ` (18 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add compatible for SAM9X7 RTT.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
index b80b85c394ac..2d5cce1c1331 100644
--- a/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
+++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
@@ -20,6 +20,7 @@ properties:
           - const: atmel,at91sam9260-rtt
       - items:
           - const: microchip,sam9x60-rtt
+          - const: microchip,sam9x7-rtt
           - const: atmel,at91sam9260-rtt
       - items:
           - const: microchip,sama7g5-rtt
-- 
2.25.1


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

* [PATCH v2 30/45] dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (28 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 29/45] dt-bindings: rtt: at91rm9260: " Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:02   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible Varshini Rajendran
                   ` (17 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add sam9x7 compatible to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml b/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
index 30b2131b5860..d836224f99c6 100644
--- a/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
+++ b/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
@@ -17,6 +17,7 @@ properties:
           - atmel,at91rm9200-usart
           - atmel,at91sam9260-usart
           - microchip,sam9x60-usart
+          - microchip,sam9x7-usart
       - items:
           - const: atmel,at91rm9200-dbgu
           - const: atmel,at91rm9200-usart
@@ -26,6 +27,8 @@ properties:
       - items:
           - const: microchip,sam9x60-dbgu
           - const: microchip,sam9x60-usart
+          - const: microchip,sam9x7-dbgu
+          - const: microchip,sam9x7-usart
           - const: atmel,at91sam9260-dbgu
           - const: atmel,at91sam9260-usart
 
-- 
2.25.1


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

* [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (29 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 30/45] dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 23:43   ` Rob Herring
  2023-06-24  8:02   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 32/45] spi: dt-bindings: atmel,at91rm9200-spi: " Varshini Rajendran
                   ` (16 subsequent siblings)
  47 siblings, 2 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add sam9x7 compatible to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/sound/atmel,sama5d2-classd.yaml      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml b/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml
index 43d04702ac2d..d53addbcd41b 100644
--- a/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml
+++ b/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml
@@ -18,7 +18,10 @@ description:
 
 properties:
   compatible:
-    const: atmel,sama5d2-classd
+    oneOf:
+      - items:
+          - const: atmel,sama5d2-classd
+          - const: microchip,sam9x7-classd
 
   reg:
     maxItems: 1
-- 
2.25.1


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

* [PATCH v2 32/45] spi: dt-bindings: atmel,at91rm9200-spi: add sam9x7 compatible
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (30 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:02   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 33/45] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7 Varshini Rajendran
                   ` (15 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add sam9x7 compatible to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml b/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml
index 6c57dd6c3a36..bdc42eeacba4 100644
--- a/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml
+++ b/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml
@@ -19,6 +19,7 @@ properties:
       - const: atmel,at91rm9200-spi
       - items:
           - const: microchip,sam9x60-spi
+          - const: microchip,sam9x7-spi
           - const: atmel,at91rm9200-spi
 
   reg:
-- 
2.25.1


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

* [PATCH v2 33/45] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (31 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 32/45] spi: dt-bindings: atmel,at91rm9200-spi: " Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:23   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 34/45] dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt Varshini Rajendran
                   ` (14 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add sam9x7 bindings.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/usb/atmel-usb.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/usb/atmel-usb.txt
index 12183ef47ee4..6359af0123bf 100644
--- a/Documentation/devicetree/bindings/usb/atmel-usb.txt
+++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt
@@ -3,8 +3,8 @@ Atmel SOC USB controllers
 OHCI
 
 Required properties:
- - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers
-   used in host mode.
+ - compatible: Should be "atmel,at91rm9200-ohci" or "microchip,sam9x7-ohci"
+   for USB controllers used in host mode.
  - reg: Address and length of the register set for the device
  - interrupts: Should contain ohci interrupt
  - clocks: Should reference the peripheral, host and system clocks
@@ -30,8 +30,8 @@ usb0: ohci@500000 {
 EHCI
 
 Required properties:
- - compatible: Should be "atmel,at91sam9g45-ehci" for USB controllers
-   used in host mode.
+ - compatible: Should be "atmel,at91sam9g45-ehci" or "microchip,sam9x7-ehci"
+   for USB controllers used in host mode.
  - reg: Address and length of the register set for the device
  - interrupts: Should contain ehci interrupt
  - clocks: Should reference the peripheral and the UTMI clocks
@@ -87,6 +87,7 @@ Required properties:
 	       "atmel,at91sam9g45-udc"
 	       "atmel,sama5d3-udc"
 	       "microchip,sam9x60-udc"
+	       "microchip,sam9x7-udc"
 	       "microchip,lan9662-udc"
 	       For "microchip,lan9662-udc" the fallback "atmel,sama5d3-udc"
 	       is required.
-- 
2.25.1


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

* [PATCH v2 34/45] dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (32 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 33/45] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:03   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 35/45] dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
                   ` (13 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add compatible microchip,sam9x7-wdt to DT bindings documentation.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml          | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml b/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml
index 816f85ee2c77..216e64dfddb2 100644
--- a/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml
@@ -17,6 +17,7 @@ properties:
     enum:
       - atmel,sama5d4-wdt
       - microchip,sam9x60-wdt
+      - microchip,sam9x7-wdt
       - microchip,sama7g5-wdt
 
   reg:
-- 
2.25.1


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

* [PATCH v2 35/45] dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (33 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 34/45] dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:23   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 36/45] clk: at91: sam9x7: add sam9x7 pmc driver Varshini Rajendran
                   ` (12 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Document the support added for the Advanced interrupt controller(AIC)
chip in the sam9x7 SoC family.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 .../devicetree/bindings/interrupt-controller/atmel,aic.txt      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
index 7079d44bf3ba..2c267a66a3ea 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
@@ -4,7 +4,7 @@ Required properties:
 - compatible: Should be:
     - "atmel,<chip>-aic" where  <chip> can be "at91rm9200", "sama5d2",
       "sama5d3" or "sama5d4"
-    - "microchip,<chip>-aic" where <chip> can be "sam9x60"
+    - "microchip,<chip>-aic" where <chip> can be "sam9x60", "sam9x7"
 
 - interrupt-controller: Identifies the node as an interrupt controller.
 - #interrupt-cells: The number of cells to define the interrupts. It should be 3.
-- 
2.25.1


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

* [PATCH v2 36/45] clk: at91: sam9x7: add sam9x7 pmc driver
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (34 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 35/45] dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 37/45] irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
                   ` (11 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add a driver for the PMC clocks of sam9x7 Soc family.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/clk/at91/Makefile |   1 +
 drivers/clk/at91/sam9x7.c | 942 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 943 insertions(+)
 create mode 100644 drivers/clk/at91/sam9x7.c

diff --git a/drivers/clk/at91/Makefile b/drivers/clk/at91/Makefile
index 89061b85e7d2..8e3684ba2c74 100644
--- a/drivers/clk/at91/Makefile
+++ b/drivers/clk/at91/Makefile
@@ -20,6 +20,7 @@ obj-$(CONFIG_SOC_AT91SAM9) += at91sam9260.o at91sam9rl.o at91sam9x5.o dt-compat.
 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9g45.o dt-compat.o
 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9n12.o at91sam9x5.o dt-compat.o
 obj-$(CONFIG_SOC_SAM9X60) += sam9x60.o
+obj-$(CONFIG_SOC_SAM9X7) += sam9x7.o
 obj-$(CONFIG_SOC_SAMA5D3) += sama5d3.o dt-compat.o
 obj-$(CONFIG_SOC_SAMA5D4) += sama5d4.o dt-compat.o
 obj-$(CONFIG_SOC_SAMA5D2) += sama5d2.o dt-compat.o
diff --git a/drivers/clk/at91/sam9x7.c b/drivers/clk/at91/sam9x7.c
new file mode 100644
index 000000000000..292ae51be568
--- /dev/null
+++ b/drivers/clk/at91/sam9x7.c
@@ -0,0 +1,942 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * SAM9X7 PMC code.
+ *
+ * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Varshini Rajendran <varshini.rajendran@microchip.com>
+ *
+ */
+#include <linux/clk.h>
+#include <linux/clk-provider.h>
+#include <linux/mfd/syscon.h>
+#include <linux/slab.h>
+
+#include <dt-bindings/clock/at91.h>
+
+#include "pmc.h"
+
+static DEFINE_SPINLOCK(pmc_pll_lock);
+static DEFINE_SPINLOCK(mck_lock);
+
+/**
+ * enum pll_ids - PLL clocks identifiers
+ * @PLL_ID_PLLA:	PLLA identifier
+ * @PLL_ID_UPLL:	UPLL identifier
+ * @PLL_ID_AUDIO:	Audio PLL identifier
+ * @PLL_ID_LVDS:	LVDS PLL identifier
+ * @PLL_ID_PLLA_DIV2:	PLLA DIV2 identifier
+ * @PLL_ID_MAX:		Max PLL Identifier
+ */
+enum pll_ids {
+	PLL_ID_PLLA,
+	PLL_ID_UPLL,
+	PLL_ID_AUDIO,
+	PLL_ID_LVDS,
+	PLL_ID_PLLA_DIV2,
+	PLL_ID_MAX,
+};
+
+/**
+ * enum pll_type - PLL type identifiers
+ * @PLL_TYPE_FRAC:	fractional PLL identifier
+ * @PLL_TYPE_DIV:	divider PLL identifier
+ */
+enum pll_type {
+	PLL_TYPE_FRAC,
+	PLL_TYPE_DIV,
+};
+
+static const struct clk_master_characteristics mck_characteristics = {
+	.output = { .min = 32000000, .max = 266666667 },
+	.divisors = { 1, 2, 4, 3, 5},
+	.have_div3_pres = 1,
+};
+
+static const struct clk_master_layout sam9x7_master_layout = {
+	.mask = 0x373,
+	.pres_shift = 4,
+	.offset = 0x28,
+};
+
+/* Fractional PLL core output range. */
+static const struct clk_range plla_core_outputs[] = {
+	{ .min = 375000000, .max = 1600000000 },
+};
+
+static const struct clk_range upll_core_outputs[] = {
+	{ .min = 600000000, .max = 1200000000 },
+};
+
+static const struct clk_range lvdspll_core_outputs[] = {
+	{ .min = 400000000, .max = 800000000 },
+};
+
+static const struct clk_range audiopll_core_outputs[] = {
+	{ .min = 400000000, .max = 800000000 },
+};
+
+static const struct clk_range plladiv2_core_outputs[] = {
+	{ .min = 375000000, .max = 1600000000 },
+};
+
+/* Fractional PLL output range. */
+static const struct clk_range plla_outputs[] = {
+	{ .min = 732421, .max = 800000000 },
+};
+
+static const struct clk_range upll_outputs[] = {
+	{ .min = 300000000, .max = 600000000 },
+};
+
+static const struct clk_range lvdspll_outputs[] = {
+	{ .min = 10000000, .max = 800000000 },
+};
+
+static const struct clk_range audiopll_outputs[] = {
+	{ .min = 10000000, .max = 800000000 },
+};
+
+static const struct clk_range plladiv2_outputs[] = {
+	{ .min = 366210, .max = 400000000 },
+};
+
+/* PLL characteristics. */
+static const struct clk_pll_characteristics plla_characteristics = {
+	.input = { .min = 20000000, .max = 50000000 },
+	.num_output = ARRAY_SIZE(plla_outputs),
+	.output = plla_outputs,
+	.core_output = plla_core_outputs,
+};
+
+static const struct clk_pll_characteristics upll_characteristics = {
+	.input = { .min = 20000000, .max = 50000000 },
+	.num_output = ARRAY_SIZE(upll_outputs),
+	.output = upll_outputs,
+	.core_output = upll_core_outputs,
+	.upll = true,
+};
+
+static const struct clk_pll_characteristics lvdspll_characteristics = {
+	.input = { .min = 20000000, .max = 50000000 },
+	.num_output = ARRAY_SIZE(lvdspll_outputs),
+	.output = lvdspll_outputs,
+	.core_output = lvdspll_core_outputs,
+};
+
+static const struct clk_pll_characteristics audiopll_characteristics = {
+	.input = { .min = 20000000, .max = 50000000 },
+	.num_output = ARRAY_SIZE(audiopll_outputs),
+	.output = audiopll_outputs,
+	.core_output = audiopll_core_outputs,
+};
+
+static const struct clk_pll_characteristics plladiv2_characteristics = {
+	.input = { .min = 20000000, .max = 50000000 },
+	.num_output = ARRAY_SIZE(plladiv2_outputs),
+	.output = plladiv2_outputs,
+	.core_output = plladiv2_core_outputs,
+};
+
+/* Layout for fractional PLL ID PLLA. */
+static const struct clk_pll_layout plla_frac_layout = {
+	.mul_mask = GENMASK(31, 24),
+	.frac_mask = GENMASK(21, 0),
+	.mul_shift = 24,
+	.frac_shift = 0,
+	.div2 = 1,
+};
+
+/* Layout for fractional PLLs. */
+static const struct clk_pll_layout pll_frac_layout = {
+	.mul_mask = GENMASK(31, 24),
+	.frac_mask = GENMASK(21, 0),
+	.mul_shift = 24,
+	.frac_shift = 0,
+};
+
+/* Layout for DIV PLLs. */
+static const struct clk_pll_layout pll_divpmc_layout = {
+	.div_mask = GENMASK(7, 0),
+	.endiv_mask = BIT(29),
+	.div_shift = 0,
+	.endiv_shift = 29,
+};
+
+/* Layout for DIV PLL ID PLLADIV2. */
+static const struct clk_pll_layout plladiv2_divpmc_layout = {
+	.div_mask = GENMASK(7, 0),
+	.endiv_mask = BIT(29),
+	.div_shift = 0,
+	.endiv_shift = 29,
+	.div2 = 1,
+};
+
+/* Layout for DIVIO dividers. */
+static const struct clk_pll_layout pll_divio_layout = {
+	.div_mask	= GENMASK(19, 12),
+	.endiv_mask	= BIT(30),
+	.div_shift	= 12,
+	.endiv_shift	= 30,
+};
+
+/*
+ * PLL clocks description
+ * @n:		clock name
+ * @p:		clock parent
+ * @l:		clock layout
+ * @t:		clock type
+ * @c:		pll characteristics
+ * @f:		true if clock is critical and cannot be disabled
+ * @eid:	export index in sam9x7->chws[] array
+ */
+static const struct {
+	const char *n;
+	const char *p;
+	const struct clk_pll_layout *l;
+	u8 t;
+	const struct clk_pll_characteristics *c;
+	unsigned long f;
+	u8 eid;
+} sam9x7_plls[][PLL_ID_MAX] = {
+	[PLL_ID_PLLA] = {
+		{
+			.n = "plla_fracck",
+			.p = "mainck",
+			.l = &plla_frac_layout,
+			.t = PLL_TYPE_FRAC,
+			/*
+			 * This feeds plla_divpmcck which feeds CPU. It should
+			 * not be disabled.
+			 */
+			.f = CLK_IS_CRITICAL | CLK_SET_RATE_GATE,
+			.c = &plla_characteristics,
+		},
+
+		{
+			.n = "plla_divpmcck",
+			.p = "plla_fracck",
+			.l = &pll_divpmc_layout,
+			.t = PLL_TYPE_DIV,
+			/* This feeds CPU. It should not be disabled */
+			.f = CLK_IS_CRITICAL | CLK_SET_RATE_GATE,
+			.eid = PMC_PLLACK,
+			.c = &plla_characteristics,
+		},
+	},
+
+	[PLL_ID_UPLL] = {
+		{
+			.n = "upll_fracck",
+			.p = "main_osc",
+			.l = &pll_frac_layout,
+			.t = PLL_TYPE_FRAC,
+			.f = CLK_SET_RATE_GATE,
+			.c = &upll_characteristics,
+		},
+
+		{
+			.n = "upll_divpmcck",
+			.p = "upll_fracck",
+			.l = &pll_divpmc_layout,
+			.t = PLL_TYPE_DIV,
+			.f = CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE |
+			     CLK_SET_RATE_PARENT,
+			.eid = PMC_UTMI,
+			.c = &upll_characteristics,
+		},
+	},
+
+	[PLL_ID_AUDIO] = {
+		{
+			.n = "audiopll_fracck",
+			.p = "main_osc",
+			.l = &pll_frac_layout,
+			.f = CLK_SET_RATE_GATE,
+			.c = &audiopll_characteristics,
+			.t = PLL_TYPE_FRAC,
+		},
+
+		{
+			.n = "audiopll_divpmcck",
+			.p = "audiopll_fracck",
+			.l = &pll_divpmc_layout,
+			.f = CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE |
+			     CLK_SET_RATE_PARENT,
+			.c = &audiopll_characteristics,
+			.t = PLL_TYPE_DIV,
+		},
+
+		{
+			.n = "audiopll_diviock",
+			.p = "audiopll_fracck",
+			.l = &pll_divio_layout,
+			.f = CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE |
+			     CLK_SET_RATE_PARENT,
+			.c = &audiopll_characteristics,
+			.t = PLL_TYPE_DIV,
+		},
+	},
+
+	[PLL_ID_LVDS] = {
+		{
+			.n = "lvdspll_fracck",
+			.p = "main_osc",
+			.l = &pll_frac_layout,
+			.f = CLK_SET_RATE_GATE,
+			.c = &lvdspll_characteristics,
+			.t = PLL_TYPE_FRAC,
+		},
+
+		{
+			.n = "lvdspll_divpmcck",
+			.p = "lvdspll_fracck",
+			.l = &pll_divpmc_layout,
+			.f = CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE |
+			     CLK_SET_RATE_PARENT,
+			.c = &lvdspll_characteristics,
+			.t = PLL_TYPE_DIV,
+		},
+	},
+
+	[PLL_ID_PLLA_DIV2] = {
+		{
+			.n = "plla_div2pmcck",
+			.p = "plla_fracck",
+			.l = &plladiv2_divpmc_layout,
+			/*
+			 * This may feed critical parts of the system like timers.
+			 * It should not be disabled.
+			 */
+			.f = CLK_IS_CRITICAL | CLK_SET_RATE_GATE,
+			.c = &plladiv2_characteristics,
+			.t = PLL_TYPE_DIV,
+		},
+	},
+};
+
+static const struct clk_programmable_layout sam9x7_programmable_layout = {
+	.pres_mask = 0xff,
+	.pres_shift = 8,
+	.css_mask = 0x1f,
+	.have_slck_mck = 0,
+	.is_pres_direct = 1,
+};
+
+static const struct clk_pcr_layout sam9x7_pcr_layout = {
+	.offset = 0x88,
+	.cmd = BIT(31),
+	.gckcss_mask = GENMASK(12, 8),
+	.pid_mask = GENMASK(6, 0),
+};
+
+static const struct {
+	char *n;
+	char *p;
+	u8 id;
+	unsigned long flags;
+} sam9x7_systemck[] = {
+	/*
+	 * ddrck feeds DDR controller and is enabled by bootloader thus we need
+	 * to keep it enabled in case there is no Linux consumer for it.
+	 */
+	{ .n = "ddrck",		.p = "masterck_div",	.id = 2,	.flags = CLK_IS_CRITICAL },
+	{ .n = "uhpck",		.p = "usbck",		.id = 6 },
+	{ .n = "pck0",		.p = "prog0",		.id = 8 },
+	{ .n = "pck1",		.p = "prog1",		.id = 9 },
+};
+
+/*
+ * Peripheral clocks description
+ * @n:		clock name
+ * @f:		true if clock is critical and cannot be disabled
+ * @id:		peripheral id
+ */
+static const struct {
+	char *n;
+	unsigned long f;
+	u8 id;
+} sam9x7_periphck[] = {
+	{ .n = "pioA_clk",	.id = 2, },
+	{ .n = "pioB_clk",	.id = 3, },
+	{ .n = "pioC_clk",	.id = 4, },
+	{ .n = "flex0_clk",	.id = 5, },
+	{ .n = "flex1_clk",	.id = 6, },
+	{ .n = "flex2_clk",	.id = 7, },
+	{ .n = "flex3_clk",	.id = 8, },
+	{ .n = "flex6_clk",	.id = 9, },
+	{ .n = "flex7_clk",	.id = 10, },
+	{ .n = "flex8_clk",	.id = 11, },
+	{ .n = "sdmmc0_clk",	.id = 12, },
+	{ .n = "flex4_clk",	.id = 13, },
+	{ .n = "flex5_clk",	.id = 14, },
+	{ .n = "flex9_clk",	.id = 15, },
+	{ .n = "flex10_clk",	.id = 16, },
+	{ .n = "tcb0_clk",	.id = 17, },
+	{ .n = "pwm_clk",	.id = 18, },
+	{ .n = "adc_clk",	.id = 19, },
+	{ .n = "dma0_clk",	.id = 20, },
+	{ .n = "uhphs_clk",	.id = 22, },
+	{ .n = "udphs_clk",	.id = 23, },
+	{ .n = "macb0_clk",	.id = 24, },
+	{ .n = "lcd_clk",	.id = 25, },
+	{ .n = "sdmmc1_clk",	.id = 26, },
+	{ .n = "ssc_clk",	.id = 28, },
+	{ .n = "can0_clk",	.id = 29, },
+	{ .n = "can1_clk",	.id = 30, },
+	{ .n = "flex11_clk",	.id = 32, },
+	{ .n = "flex12_clk",	.id = 33, },
+	{ .n = "i2s_clk",	.id = 34, },
+	{ .n = "qspi_clk",	.id = 35, },
+	{ .n = "gfx2d_clk",	.id = 36, },
+	{ .n = "pit64b0_clk",	.id = 37, },
+	{ .n = "trng_clk",	.id = 38, },
+	{ .n = "aes_clk",	.id = 39, },
+	{ .n = "tdes_clk",	.id = 40, },
+	{ .n = "sha_clk",	.id = 41, },
+	{ .n = "classd_clk",	.id = 42, },
+	{ .n = "isi_clk",	.id = 43, },
+	{ .n = "pioD_clk",	.id = 44, },
+	{ .n = "tcb1_clk",	.id = 45, },
+	{ .n = "dbgu_clk",	.id = 47, },
+	/*
+	 * mpddr_clk feeds DDR controller and is enabled by bootloader thus we
+	 * need to keep it enabled in case there is no Linux consumer for it.
+	 */
+	{ .n = "mpddr_clk",	.id = 49,	.f = CLK_IS_CRITICAL },
+	{ .n = "csi2dc_clk",	.id = 52, },
+	{ .n = "csi4l_clk",	.id = 53, },
+	{ .n = "dsi4l_clk",	.id = 54, },
+	{ .n = "lvdsc_clk",	.id = 56, },
+	{ .n = "pit64b1_clk",	.id = 58, },
+	{ .n = "puf_clk",	.id = 59, },
+	{ .n = "gmactsu_clk",	.id = 67, },
+};
+
+/*
+ * Generic clock description
+ * @n:			clock name
+ * @pp:			PLL parents
+ * @pp_mux_table:	PLL parents mux table
+ * @r:			clock output range
+ * @pp_chg_id:		id in parent array of changeable PLL parent
+ * @pp_count:		PLL parents count
+ * @id:			clock id
+ */
+static const struct {
+	const char *n;
+	const char *pp[8];
+	const char pp_mux_table[8];
+	struct clk_range r;
+	int pp_chg_id;
+	u8 pp_count;
+	u8 id;
+} sam9x7_gck[] = {
+	{
+		.n = "flex0_gclk",
+		.id = 5,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex1_gclk",
+		.id = 6,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex2_gclk",
+		.id = 7,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex3_gclk",
+		.id = 8,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex6_gclk",
+		.id = 9,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex7_gclk",
+		.id = 10,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex8_gclk",
+		.id = 11,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "sdmmc0_gclk",
+		.id = 12,
+		.r = { .max = 105000000 },
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex4_gclk",
+		.id = 13,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex5_gclk",
+		.id = 14,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex9_gclk",
+		.id = 15,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex10_gclk",
+		.id = 16,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "tcb0_gclk",
+		.id = 17,
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "adc_gclk",
+		.id = 19,
+		.pp = { "upll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 5, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "lcd_gclk",
+		.id = 25,
+		.r = { .max = 75000000 },
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "sdmmc1_gclk",
+		.id = 26,
+		.r = { .max = 105000000 },
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "mcan0_gclk",
+		.id = 29,
+		.r = { .max = 80000000 },
+		.pp = { "upll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 5, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "mcan1_gclk",
+		.id = 30,
+		.r = { .max = 80000000 },
+		.pp = { "upll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 5, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex11_gclk",
+		.id = 32,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "flex12_gclk",
+		.id = 33,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "i2s_gclk",
+		.id = 34,
+		.r = { .max = 100000000 },
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "qspi_gclk",
+		.id = 35,
+		.r = { .max = 20000000 },
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "pit64b0_gclk",
+		.id = 37,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "classd_gclk",
+		.id = 42,
+		.r = { .max = 100000000 },
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "tcb1_gclk",
+		.id = 45,
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "dbgu_gclk",
+		.id = 47,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "mipiphy_gclk",
+		.id = 55,
+		.r = { .max = 27000000 },
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "pit64b1_gclk",
+		.id = 58,
+		.pp = { "plla_div2pmcck", },
+		.pp_mux_table = { 8, },
+		.pp_count = 1,
+		.pp_chg_id = INT_MIN,
+	},
+
+	{
+		.n = "gmac_gclk",
+		.id = 67,
+		.pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+		.pp_mux_table = { 6, 8, },
+		.pp_count = 2,
+		.pp_chg_id = INT_MIN,
+	},
+};
+
+static void __init sam9x7_pmc_setup(struct device_node *np)
+{
+	struct clk_range range = CLK_RANGE(0, 0);
+	const char *td_slck_name, *md_slck_name, *mainxtal_name;
+	struct pmc_data *sam9x7_pmc;
+	const char *parent_names[9];
+	void **alloc_mem = NULL;
+	int alloc_mem_size = 0;
+	struct clk_hw *main_osc_hw;
+	struct regmap *regmap;
+	struct clk_hw *hw;
+	int i, j;
+
+	i = of_property_match_string(np, "clock-names", "td_slck");
+	if (i < 0)
+		return;
+
+	td_slck_name = of_clk_get_parent_name(np, i);
+
+	i = of_property_match_string(np, "clock-names", "md_slck");
+	if (i < 0)
+		return;
+
+	md_slck_name = of_clk_get_parent_name(np, i);
+
+	i = of_property_match_string(np, "clock-names", "main_xtal");
+	if (i < 0)
+		return;
+	mainxtal_name = of_clk_get_parent_name(np, i);
+
+	regmap = device_node_to_regmap(np);
+	if (IS_ERR(regmap))
+		return;
+
+	sam9x7_pmc = pmc_data_allocate(PMC_PLLACK + 1,
+				       nck(sam9x7_systemck),
+				       nck(sam9x7_periphck),
+				       nck(sam9x7_gck), 8);
+	if (!sam9x7_pmc)
+		return;
+
+	alloc_mem = kmalloc(sizeof(void *) *
+				(ARRAY_SIZE(sam9x7_gck)),
+				GFP_KERNEL);
+	if (!alloc_mem)
+		goto err_free;
+
+	hw = at91_clk_register_main_rc_osc(regmap, "main_rc_osc", 12000000,
+					   50000000);
+	if (IS_ERR(hw))
+		goto err_free;
+
+	hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name, 0);
+	if (IS_ERR(hw))
+		goto err_free;
+	main_osc_hw = hw;
+
+	parent_names[0] = "main_rc_osc";
+	parent_names[1] = "main_osc";
+	hw = at91_clk_register_sam9x5_main(regmap, "mainck", parent_names, 2);
+	if (IS_ERR(hw))
+		goto err_free;
+
+	sam9x7_pmc->chws[PMC_MAIN] = hw;
+
+	for (i = 0; i < PLL_ID_MAX; i++) {
+		for (j = 0; j < 3; j++) {
+			struct clk_hw *parent_hw;
+
+			if (!sam9x7_plls[i][j].n)
+				continue;
+
+			switch (sam9x7_plls[i][j].t) {
+			case PLL_TYPE_FRAC:
+				if (!strcmp(sam9x7_plls[i][j].p, "mainck"))
+					parent_hw = sam9x7_pmc->chws[PMC_MAIN];
+				else if (!strcmp(sam9x7_plls[i][j].p, "main_osc"))
+					parent_hw = main_osc_hw;
+				else
+					parent_hw = __clk_get_hw(of_clk_get_by_name
+								 (np, sam9x7_plls[i][j].p));
+
+				hw = sam9x60_clk_register_frac_pll(regmap,
+								   &pmc_pll_lock,
+								   sam9x7_plls[i][j].n,
+								   sam9x7_plls[i][j].p,
+								   parent_hw, i,
+								   sam9x7_plls[i][j].c,
+								   sam9x7_plls[i][j].l,
+								   sam9x7_plls[i][j].f);
+				break;
+
+			case PLL_TYPE_DIV:
+				hw = sam9x60_clk_register_div_pll(regmap,
+								  &pmc_pll_lock,
+								  sam9x7_plls[i][j].n,
+								  sam9x7_plls[i][j].p, i,
+								  sam9x7_plls[i][j].c,
+								  sam9x7_plls[i][j].l,
+								  sam9x7_plls[i][j].f, 0);
+				break;
+
+			default:
+				continue;
+			}
+
+			if (IS_ERR(hw))
+				goto err_free;
+
+			if (sam9x7_plls[i][j].eid)
+				sam9x7_pmc->chws[sam9x7_plls[i][j].eid] = hw;
+		}
+	}
+
+	parent_names[0] = md_slck_name;
+	parent_names[1] = "mainck";
+	parent_names[2] = "plla_divpmcck";
+	parent_names[3] = "upll_divpmcck";
+	hw = at91_clk_register_master_pres(regmap, "masterck_pres", 4,
+					   parent_names, &sam9x7_master_layout,
+					   &mck_characteristics, &mck_lock);
+	if (IS_ERR(hw))
+		goto err_free;
+
+	hw = at91_clk_register_master_div(regmap, "masterck_div",
+					  "masterck_pres", &sam9x7_master_layout,
+					  &mck_characteristics, &mck_lock,
+					  CLK_SET_RATE_GATE, 0);
+	if (IS_ERR(hw))
+		goto err_free;
+
+	sam9x7_pmc->chws[PMC_MCK] = hw;
+
+	parent_names[0] = "plla_divpmcck";
+	parent_names[1] = "upll_divpmcck";
+	parent_names[2] = "main_osc";
+	hw = sam9x60_clk_register_usb(regmap, "usbck", parent_names, 3);
+	if (IS_ERR(hw))
+		goto err_free;
+
+	parent_names[0] = md_slck_name;
+	parent_names[1] = td_slck_name;
+	parent_names[2] = "mainck";
+	parent_names[3] = "masterck_div";
+	parent_names[4] = "plla_divpmcck";
+	parent_names[5] = "upll_divpmcck";
+	parent_names[6] = "audiopll_divpmcck";
+	for (i = 0; i < 2; i++) {
+		char name[6];
+
+		snprintf(name, sizeof(name), "prog%d", i);
+
+		hw = at91_clk_register_programmable(regmap, name,
+						    parent_names, 7, i,
+						    &sam9x7_programmable_layout,
+						    NULL);
+		if (IS_ERR(hw))
+			goto err_free;
+
+		sam9x7_pmc->pchws[i] = hw;
+	}
+
+	for (i = 0; i < ARRAY_SIZE(sam9x7_systemck); i++) {
+		hw = at91_clk_register_system(regmap, sam9x7_systemck[i].n,
+					      sam9x7_systemck[i].p,
+					      sam9x7_systemck[i].id,
+					      sam9x7_systemck[i].flags);
+		if (IS_ERR(hw))
+			goto err_free;
+
+		sam9x7_pmc->shws[sam9x7_systemck[i].id] = hw;
+	}
+
+	for (i = 0; i < ARRAY_SIZE(sam9x7_periphck); i++) {
+		hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
+							 &sam9x7_pcr_layout,
+							 sam9x7_periphck[i].n,
+							 "masterck_div",
+							 sam9x7_periphck[i].id,
+							 &range, INT_MIN,
+							 sam9x7_periphck[i].f);
+		if (IS_ERR(hw))
+			goto err_free;
+
+		sam9x7_pmc->phws[sam9x7_periphck[i].id] = hw;
+	}
+
+	parent_names[0] = md_slck_name;
+	parent_names[1] = td_slck_name;
+	parent_names[2] = "mainck";
+	parent_names[3] = "masterck_div";
+	for (i = 0; i < ARRAY_SIZE(sam9x7_gck); i++) {
+		u8 num_parents = 4 + sam9x7_gck[i].pp_count;
+		u32 *mux_table;
+
+		mux_table = kmalloc_array(num_parents, sizeof(*mux_table),
+					  GFP_KERNEL);
+		if (!mux_table)
+			goto err_free;
+
+		PMC_INIT_TABLE(mux_table, 4);
+		PMC_FILL_TABLE(&mux_table[4], sam9x7_gck[i].pp_mux_table,
+			       sam9x7_gck[i].pp_count);
+		PMC_FILL_TABLE(&parent_names[4], sam9x7_gck[i].pp,
+			       sam9x7_gck[i].pp_count);
+
+		hw = at91_clk_register_generated(regmap, &pmc_pcr_lock,
+						 &sam9x7_pcr_layout,
+						 sam9x7_gck[i].n,
+						 parent_names, mux_table,
+						 num_parents,
+						 sam9x7_gck[i].id,
+						 &sam9x7_gck[i].r,
+						 sam9x7_gck[i].pp_chg_id);
+		if (IS_ERR(hw))
+			goto err_free;
+
+		sam9x7_pmc->ghws[sam9x7_gck[i].id] = hw;
+		alloc_mem[alloc_mem_size++] = mux_table;
+	}
+
+	of_clk_add_hw_provider(np, of_clk_hw_pmc_get, sam9x7_pmc);
+	kfree(alloc_mem);
+
+	return;
+
+err_free:
+	if (alloc_mem) {
+		for (i = 0; i < alloc_mem_size; i++)
+			kfree(alloc_mem[i]);
+		kfree(alloc_mem);
+	}
+	kfree(sam9x7_pmc);
+}
+
+/* Some clks are used for a clocksource */
+CLK_OF_DECLARE(sam9x7_pmc, "microchip,sam9x7-pmc", sam9x7_pmc_setup);
-- 
2.25.1


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

* [PATCH v2 37/45] irqchip/atmel-aic5: Add support for sam9x7 aic
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (35 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 36/45] clk: at91: sam9x7: add sam9x7 pmc driver Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 38/45] power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7 Varshini Rajendran
                   ` (10 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

From: Hari Prasath <Hari.PrasathGE@microchip.com>

Add support for the Advanced interrupt controller(AIC) chip in the sam9x7.

Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/irqchip/irq-atmel-aic5.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
index 145535bd7560..bab11900f3ef 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -320,6 +320,7 @@ static const struct of_device_id aic5_irq_fixups[] __initconst = {
 	{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
 	{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
 	{ .compatible = "microchip,sam9x60", .data = sam9x60_aic_irq_fixup },
+	{ .compatible = "microchip,sam9x7", .data = sam9x60_aic_irq_fixup },
 	{ /* sentinel */ },
 };
 
@@ -406,3 +407,12 @@ static int __init sam9x60_aic5_of_init(struct device_node *node,
 	return aic5_of_init(node, parent, NR_SAM9X60_IRQS);
 }
 IRQCHIP_DECLARE(sam9x60_aic5, "microchip,sam9x60-aic", sam9x60_aic5_of_init);
+
+#define NR_SAM9X7_IRQS		70
+
+static int __init sam9x7_aic5_of_init(struct device_node *node,
+				      struct device_node *parent)
+{
+	return aic5_of_init(node, parent, NR_SAM9X7_IRQS);
+}
+IRQCHIP_DECLARE(sam9x7_aic5, "microchip,sam9x7-aic", sam9x7_aic5_of_init);
-- 
2.25.1


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

* [PATCH v2 38/45] power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (36 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 37/45] irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 39/45] power: reset: at91-reset: add reset support for sam9x7 SoC Varshini Rajendran
                   ` (9 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Use sam9x7 pmc's compatible to lookup for in the SHDWC driver.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 drivers/power/reset/at91-sama5d2_shdwc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c
index d8ecffe72f16..d0f29b99f25e 100644
--- a/drivers/power/reset/at91-sama5d2_shdwc.c
+++ b/drivers/power/reset/at91-sama5d2_shdwc.c
@@ -326,6 +326,7 @@ static const struct of_device_id at91_pmc_ids[] = {
 	{ .compatible = "atmel,sama5d2-pmc" },
 	{ .compatible = "microchip,sam9x60-pmc" },
 	{ .compatible = "microchip,sama7g5-pmc" },
+	{ .compatible = "microchip,sam9x7-pmc" },
 	{ /* Sentinel. */ }
 };
 
-- 
2.25.1


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

* [PATCH v2 39/45] power: reset: at91-reset: add reset support for sam9x7 SoC
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (37 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 38/45] power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7 Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 40/45] power: reset: at91-reset: add sdhwc " Varshini Rajendran
                   ` (8 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add power reset support for SAM9X7 SoC.

Signed-off-by: Varshini Rajendran <varshini.rajendran@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 8c87eeda0fec..6c4ad81a0059 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_SAM9X60 || SOC_SAMA5
+	default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA5
 	help
 	  This driver supports restart for Atmel AT91SAM9 and SAMA5
 	  SoCs
-- 
2.25.1


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

* [PATCH v2 40/45] power: reset: at91-reset: add sdhwc support for sam9x7 SoC
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (38 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 39/45] power: reset: at91-reset: add reset support for sam9x7 SoC Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 41/45] ARM: at91: Kconfig: add config flag for SAM9X7 SoC Varshini Rajendran
                   ` (7 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add shutdown controller support for SAM9X7 SoC.

Signed-off-by: Varshini Rajendran <varshini.rajendran@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 6c4ad81a0059..59459f5abbed 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_SAM9X60 || SOC_SAMA5
+	default SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA5
 	help
 	  This driver supports the alternate shutdown controller for some Atmel
 	  SAMA5 SoCs. It is present for example on SAMA5D2 SoC.
-- 
2.25.1


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

* [PATCH v2 41/45] ARM: at91: Kconfig: add config flag for SAM9X7 SoC
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (39 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 40/45] power: reset: at91-reset: add sdhwc " Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 42/45] ARM: configs: at91: enable config flags for sam9x7 SoC family Varshini Rajendran
                   ` (6 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add config flag for sam9x7 SoC.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 arch/arm/mach-at91/Kconfig | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 3dd9e718661b..4e9cb30f5091 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -143,11 +143,28 @@ config SOC_SAM9X60
 	help
 	  Select this if you are using Microchip's SAM9X60 SoC
 
+config SOC_SAM9X7
+	bool "SAM9X7"
+	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 SAM9X7 SoC
+
 comment "Clocksource driver selection"
 
 config ATMEL_CLOCKSOURCE_PIT
 	bool "Periodic Interval Timer (PIT) support"
-	depends on SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
+	depends on SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA5
 	default SOC_AT91SAM9 || SOC_SAMA5
 	select ATMEL_PIT
 	help
@@ -157,7 +174,7 @@ config ATMEL_CLOCKSOURCE_PIT
 
 config ATMEL_CLOCKSOURCE_TCB
 	bool "Timer Counter Blocks (TCB) support"
-	default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
+	default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA5
 	select ATMEL_TCB_CLKSRC
 	help
 	  Select this to get a high precision clocksource based on a
@@ -168,7 +185,7 @@ config ATMEL_CLOCKSOURCE_TCB
 
 config MICROCHIP_CLOCKSOURCE_PIT64B
 	bool "64-bit Periodic Interval Timer (PIT64B) support"
-	default SOC_SAM9X60 || SOC_SAMA7
+	default SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA7
 	select MICROCHIP_PIT64B
 	help
 	  Select this to get a high resolution clockevent (SAM9X60) or
-- 
2.25.1


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

* [PATCH v2 42/45] ARM: configs: at91: enable config flags for sam9x7 SoC family
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (40 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 41/45] ARM: at91: Kconfig: add config flag for SAM9X7 SoC Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-23 20:30 ` [PATCH v2 43/45] ARM: dts: at91: sam9x7: add device tree for SoC Varshini Rajendran
                   ` (5 subsequent siblings)
  47 siblings, 0 replies; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Enable config flags for SAM9X7 SoC for the sam9x7 SoC family.

Signed-off-by: Varshini Rajendran <varshini.rajendran@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 82bcf4dc7f54..6266a000736b 100644
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -15,6 +15,7 @@ CONFIG_ARCH_AT91=y
 CONFIG_SOC_AT91RM9200=y
 CONFIG_SOC_AT91SAM9=y
 CONFIG_SOC_SAM9X60=y
+CONFIG_SOC_SAM9X7=y
 # CONFIG_ATMEL_CLOCKSOURCE_PIT is not set
 CONFIG_AEABI=y
 CONFIG_UACCESS_WITH_MEMCPY=y
-- 
2.25.1


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

* [PATCH v2 43/45] ARM: dts: at91: sam9x7: add device tree for SoC
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (41 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 42/45] ARM: configs: at91: enable config flags for sam9x7 SoC family Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:09   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 44/45] dt-bindings: arm: add sam9x75 curiosity board Varshini Rajendran
                   ` (4 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add device tree file for SAM9X7 SoC family.

Co-developed-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 arch/arm/boot/dts/sam9x7.dtsi | 1237 +++++++++++++++++++++++++++++++++
 1 file changed, 1237 insertions(+)
 create mode 100644 arch/arm/boot/dts/sam9x7.dtsi

diff --git a/arch/arm/boot/dts/sam9x7.dtsi b/arch/arm/boot/dts/sam9x7.dtsi
new file mode 100644
index 000000000000..535a55f13dd0
--- /dev/null
+++ b/arch/arm/boot/dts/sam9x7.dtsi
@@ -0,0 +1,1237 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * sam9x7.dtsi - Device Tree Include file for Microchip SAM9X7 SoC family
+ *
+ * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Varshini Rajendran <varshini.rajendran@microchip.com>
+ */
+
+#include <dt-bindings/clock/at91.h>
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/mfd/atmel-flexcom.h>
+#include <dt-bindings/pinctrl/at91.h>
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	model = "Microchip SAM9X7 SoC";
+	compatible = "microchip,sam9x7";
+	interrupt-parent = <&aic>;
+
+	aliases {
+		serial0 = &dbgu;
+		gpio0 = &pioA;
+		gpio1 = &pioB;
+		gpio2 = &pioC;
+		gpio3 = &pioD;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu@0 {
+			compatible = "arm,arm926ej-s";
+			device_type = "cpu";
+			reg = <0>;
+		};
+	};
+
+	clocks {
+		slow_xtal: clock-slowxtal {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+		};
+
+		main_xtal: clock-mainxtal {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+		};
+	};
+
+	sram: sram@300000 {
+		compatible = "mmio-sram";
+		reg = <0x300000 0x10000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0 0x300000 0x10000>;
+	};
+
+	ahb {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		usb0: gadget@500000 {
+			compatible = "microchip,sam9x7-udc", "microchip,sam9x60-udc";
+			reg = <0x500000 0x100000>,
+			      <0xf803c000 0x400>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
+			clock-names = "pclk", "hclk";
+			assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>;
+			assigned-clock-rates = <480000000>;
+			status = "disabled";
+		};
+
+		ohci0: usb@600000 {
+			compatible = "microchip,sam9x7-ohci", "atmel,at91rm9200-ohci", "usb-ohci";
+			reg = <0x600000 0x100000>;
+			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 6>;
+			clock-names = "ohci_clk", "hclk", "uhpck";
+			status = "disabled";
+		};
+
+		ehci0: usb@700000 {
+			compatible = "microchip,sam9x7-ehci", "atmel,at91sam9g45-ehci", "usb-ehci";
+			reg = <0x700000 0x100000>;
+			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
+			clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 22>;
+			clock-names = "usb_clk", "ehci_clk";
+			assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>;
+			assigned-clock-rates = <480000000>;
+			status = "disabled";
+		};
+
+		sdmmc0: sdio-host@80000000 {
+			compatible = "microchip,sam9x7-sdhci", "microchip,sam9x60-sdhci";
+			reg = <0x80000000 0x300>;
+			interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>;
+			clock-names = "hclock", "multclk";
+			assigned-clocks = <&pmc PMC_TYPE_GCK 12>;
+			assigned-clock-rates = <100000000>;
+			status = "disabled";
+		};
+
+		sdmmc1: sdio-host@90000000 {
+			compatible = "microchip,sam9x7-sdhci", "microchip,sam9x60-sdhci";
+			reg = <0x90000000 0x300>;
+			interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
+			clock-names = "hclock", "multclk";
+			assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
+			assigned-clock-rates = <100000000>;
+			status = "disabled";
+		};
+
+		apb {
+			compatible = "simple-bus";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			flx4: flexcom@f0000000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf0000000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf0000000 0x800>;
+				status = "disabled";
+
+				uart4: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(8))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(9))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				spi4: spi@400 {
+					compatible = "microchip,sam9x7-spi", "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
+					reg = <0x400 0x200>;
+					interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
+					clock-names = "spi_clk";
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(8))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(9))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c4: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(8))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(9))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx5: flexcom@f0004000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf0004000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf0004000 0x800>;
+				status = "disabled";
+
+				uart5: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(10))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(11))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				spi5: spi@400 {
+					compatible = "microchip,sam9x7-spi", "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
+					reg = <0x400 0x200>;
+					interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
+					clock-names = "spi_clk";
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(10))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(11))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c5: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(10))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(11))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			dma0: dma-controller@f0008000 {
+				compatible = "microchip,sam9x7-dma", "microchip,sam9x60-dma", "atmel,sama5d4-dma";
+				reg = <0xf0008000 0x1000>;
+				interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
+				#dma-cells = <1>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
+				clock-names = "dma_clk";
+				status = "disabled";
+			};
+
+			ssc: ssc@f0010000 {
+				compatible = "microchip,sam9x7-ssc", "atmel,at91sam9g45-ssc";
+				reg = <0xf0010000 0x4000>;
+				interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(38))>,
+				       <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(39))>;
+				dma-names = "tx", "rx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 28>;
+				clock-names = "pclk";
+				status = "disabled";
+			};
+
+			i2s: i2s@f001c000 {
+				compatible = "microchip,sam9x7-i2smcc", "microchip,sam9x60-i2smcc";
+				reg = <0xf001c000 0x100>;
+				interrupts = <34 IRQ_TYPE_LEVEL_HIGH 7>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(36))>,
+				       <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(37))>;
+				dma-names = "tx", "rx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 34>, <&pmc PMC_TYPE_GCK 34>;
+				clock-names = "pclk", "gclk";
+				status = "disabled";
+			};
+
+			flx11: flexcom@f0020000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf0020000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf0020000 0x800>;
+				status = "disabled";
+
+				uart11: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <32 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(22))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(23))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c11: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <32 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(22))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(23))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx12: flexcom@f0024000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf0024000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf0024000 0x800>;
+				status = "disabled";
+
+				uart12: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(24))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(25))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c12: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(24))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(25))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			pit64b0: timer@f0028000 {
+				compatible = "microchip,sam9x7-pit64b", "microchip,sam9x60-pit64b";
+				reg = <0xf0028000 0x100>;
+				interrupts = <37 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
+				clock-names = "pclk", "gclk";
+			};
+
+			sha: crypto@f002c000 {
+				compatible = "microchip,sam9x7-sha", "atmel,at91sam9g46-sha";
+				reg = <0xf002c000 0x100>;
+				interrupts = <41 IRQ_TYPE_LEVEL_HIGH 0>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(34))>;
+				dma-names = "tx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 41>;
+				clock-names = "sha_clk";
+			};
+
+			trng: rng@f0030000 {
+				compatible = "microchip,sam9x7-trng", "microchip,sam9x60-trng";
+				reg = <0xf0030000 0x100>;
+				interrupts = <38 IRQ_TYPE_LEVEL_HIGH 0>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 38>;
+				status = "disabled";
+			};
+
+			aes: crypto@f0034000 {
+				compatible = "microchip,sam9x7-aes", "atmel,at91sam9g46-aes";
+				reg = <0xf0034000 0x100>;
+				interrupts = <39 IRQ_TYPE_LEVEL_HIGH 0>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(32))>,
+				       <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(33))>;
+				dma-names = "tx", "rx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 39>;
+				clock-names = "aes_clk";
+			};
+
+			tdes: crypto@f0038000 {
+				compatible = "microchip,sam9x7-tdes", "atmel,at91sam9g46-tdes";
+				reg = <0xf0038000 0x100>;
+				interrupts = <40 IRQ_TYPE_LEVEL_HIGH 0>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(31))>,
+				       <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(30))>;
+				dma-names = "tx", "rx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 40>;
+				clock-names = "tdes_clk";
+			};
+
+			classd: classd@f003c000 {
+				compatible = "microchip,sam9x7-classd", "atmel,sama5d2-classd";
+				reg = <0xf003c000 0x100>;
+				interrupts = <42 IRQ_TYPE_LEVEL_HIGH 7>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(35))>;
+				dma-names = "tx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 42>, <&pmc PMC_TYPE_GCK 42>;
+				clock-names = "pclk", "gclk";
+				status = "disabled";
+			};
+
+			pit64b1: timer@f0040000 {
+				compatible = "microchip,sam9x7-pit64b", "microchip,sam9x60-pit64b";
+				reg = <0xf0040000 0x100>;
+				interrupts = <58 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 58>, <&pmc PMC_TYPE_GCK 58>;
+				clock-names = "pclk", "gclk";
+			};
+
+			can0: can@f8000000 {
+				compatible = "bosch,m_can";
+				reg = <0xf8000000 0x100>, <0x300000 0x7800>;
+				reg-names = "m_can", "message_ram";
+				interrupts = <29 IRQ_TYPE_LEVEL_HIGH 0
+					      68 IRQ_TYPE_LEVEL_HIGH 0>;
+				interrupt-names = "int0", "int1";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 29>, <&pmc PMC_TYPE_GCK 29>;
+				clock-names = "hclk", "cclk";
+				assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_GCK 29>;
+				assigned-clock-rates = <480000000>, <40000000>;
+				assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
+				bosch,mram-cfg = <0x3400 0 0 64 0 0 32 32>;
+				status = "disabled";
+			};
+
+			can1: can@f8004000 {
+				compatible = "bosch,m_can";
+				reg = <0xf8004000 0x100>, <0x300000 0xbc00>;
+				reg-names = "m_can", "message_ram";
+				interrupts = <30 IRQ_TYPE_LEVEL_HIGH 0
+					      69 IRQ_TYPE_LEVEL_HIGH 0>;
+				interrupt-names = "int0", "int1";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 30>, <&pmc PMC_TYPE_GCK 30>;
+				clock-names = "hclk", "cclk";
+				assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_GCK 30>;
+				assigned-clock-rates = <480000000>, <40000000>;
+				assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
+				bosch,mram-cfg = <0x7800 0 0 64 0 0 32 32>;
+				status = "disabled";
+			};
+
+			tcb: timer@f8008000 {
+				compatible = "microchip,sam9x7-tcb","microchip,sam9x60-tcb", "simple-mfd", "syscon";
+				reg = <0xf8008000 0x100>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&clk32k 0>;
+				clock-names = "t0_clk", "slow_clk";
+				status = "disabled";
+			};
+
+			flx6: flexcom@f8010000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8010000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8010000 0x800>;
+				status = "disabled";
+
+				uart6: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(12))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(13))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c6: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(12))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(13))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx7: flexcom@f8014000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8014000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8014000 0x800>;
+				status = "disabled";
+
+				uart7: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <10 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(14))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(15))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c7: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <10 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(14))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(15))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx8: flexcom@f8018000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8018000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8018000 0x800>;
+				status = "disabled";
+
+				uart8: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <11 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(16))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(17))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c8: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <11 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(16))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(17))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx0: flexcom@f801c000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf801c000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf801c000 0x800>;
+				status = "disabled";
+
+				uart0: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(0))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(1))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				spi0: spi@400 {
+					compatible = "microchip,sam9x7-spi", "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
+					reg = <0x400 0x200>;
+					interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
+					clock-names = "spi_clk";
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(0))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(1))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c0: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(0))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(1))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx1: flexcom@f8020000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8020000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8020000 0x800>;
+				status = "disabled";
+
+				uart1: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(2))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(3))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				spi1: spi@400 {
+					compatible = "microchip,sam9x7-spi", "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
+					reg = <0x400 0x200>;
+					interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
+					clock-names = "spi_clk";
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(2))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(3))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c1: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(2))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(3))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx2: flexcom@f8024000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8024000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8024000 0x800>;
+				status = "disabled";
+
+				uart2: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(4))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(5))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				spi2: spi@400 {
+					compatible = "microchip,sam9x7-spi", "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
+					reg = <0x400 0x200>;
+					interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
+					clock-names = "spi_clk";
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(4))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(5))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c2: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(4))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(5))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx3: flexcom@f8028000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8028000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8028000 0x800>;
+				status = "disabled";
+
+				uart3: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(6))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(7))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				spi3: spi@400 {
+					compatible = "microchip,sam9x7-spi", "microchip,sam9x60-spi", "atmel,at91rm9200-spi";
+					reg = <0x400 0x200>;
+					interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
+					clock-names = "spi_clk";
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(6))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(7))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c3: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(6))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(7))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			gmac: ethernet@f802c000 {
+				compatible = "microchip,sam9x7-gem", "microchip,sama7g5-gem" ;
+				reg = <0xf802c000 0x1000>;
+				interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3		/* Queue 0 */
+					      60 IRQ_TYPE_LEVEL_HIGH 3          /* Queue 1 */
+					      61 IRQ_TYPE_LEVEL_HIGH 3          /* Queue 2 */
+					      62 IRQ_TYPE_LEVEL_HIGH 3          /* Queue 3 */
+					      63 IRQ_TYPE_LEVEL_HIGH 3          /* Queue 4 */
+					      64 IRQ_TYPE_LEVEL_HIGH 3>;        /* Queue 5 */
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_GCK 67>;
+				clock-names = "hclk", "pclk", "tsu_clk";
+				assigned-clocks = <&pmc PMC_TYPE_GCK 67>;
+				status = "disabled";
+			};
+
+			flx9: flexcom@f8040000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8040000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8040000 0x800>;
+				status = "disabled";
+
+				uart9: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <15 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(18))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(19))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c9: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <15 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(18))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(19))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			flx10: flexcom@f8044000 {
+				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
+				reg = <0xf8044000 0x200>;
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0x0 0xf8044000 0x800>;
+				status = "disabled";
+
+				uart10: serial@200 {
+					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
+					reg = <0x200 0x200>;
+					interrupts = <16 IRQ_TYPE_LEVEL_HIGH 7>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(20))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(21))>;
+					dma-names = "tx", "rx";
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
+					clock-names = "usart";
+					atmel,use-dma-rx;
+					atmel,use-dma-tx;
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+
+				i2c10: i2c@600 {
+					compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
+					reg = <0x600 0x200>;
+					interrupts = <16 IRQ_TYPE_LEVEL_HIGH 7>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
+					dmas = <&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(20))>,
+						<&dma0
+						(AT91_XDMAC_DT_MEM_IF(0) |
+						 AT91_XDMAC_DT_PER_IF(1) |
+						 AT91_XDMAC_DT_PERID(21))>;
+					dma-names = "tx", "rx";
+					atmel,fifo-size = <16>;
+					status = "disabled";
+				};
+			};
+
+			sfr: sfr@f8050000 {
+				compatible = "microchip,sam9x7-sfr, microchip,sam9x60-sfr", "syscon";
+				reg = <0xf8050000 0x100>;
+			};
+
+			matrix: matrix@ffffde00 {
+				compatible = "microchip,sam9x7-matrix", "microchip,sam9x60-matrix", "atmel,at91sam9x5-matrix", "syscon";
+				reg = <0xffffde00 0x200>;
+			};
+
+			pmecc: ecc-engine@ffffe000 {
+				compatible = "microchip,sam9x7-pmecc", "microchip,sam9x60-pmecc", "atmel,at91sam9g45-pmecc";
+				reg = <0xffffe000 0x300>,
+				      <0xffffe600 0x100>;
+			};
+
+			mpddrc: mpddrc@ffffe800 {
+				compatible = "microchip,sam9x7-ddramc", "microchip,sam9x60-ddramc", "atmel,sama5d3-ddramc";
+				reg = <0xffffe800 0x200>;
+				clocks = <&pmc PMC_TYPE_SYSTEM 2>, <&pmc PMC_TYPE_CORE PMC_MCK>;
+				clock-names = "ddrck", "mpddr";
+			};
+
+			smc: smc@ffffea00 {
+				compatible = "microchip,sam9x7-smc", "microchip,sam9x60-smc", "atmel,at91sam9260-smc", "syscon";
+				reg = <0xffffea00 0x100>;
+			};
+
+			aic: interrupt-controller@fffff100 {
+				compatible = "microchip,sam9x7-aic";
+				reg = <0xfffff100 0x100>;
+				#interrupt-cells = <3>;
+				interrupt-controller;
+				atmel,external-irqs = <31>;
+			};
+
+			dbgu: serial@fffff200 {
+				compatible = "microchip,sam9x7-dbgu", "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
+				reg = <0xfffff200 0x200>;
+				interrupts = <47 IRQ_TYPE_LEVEL_HIGH 7>;
+				dmas = <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(28))>,
+				       <&dma0
+					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
+					 AT91_XDMAC_DT_PERID(29))>;
+				dma-names = "tx", "rx";
+				clocks = <&pmc PMC_TYPE_PERIPHERAL 47>;
+				clock-names = "usart";
+				status = "disabled";
+			};
+
+			pinctrl: pinctrl@fffff400 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+				compatible = "microchip,sam9x7-pinctrl", "microchip,sam9x60-pinctrl", "atmel,at91sam9x5-pinctrl", "simple-mfd";
+				ranges = <0xfffff400 0xfffff400 0x800>;
+
+				/* mux-mask corresponding to sam9x7 SoC in TFBGA228L package */
+				atmel,mux-mask = <
+						 /*  A		B	   C	      D	  */
+						 0xffffffff 0xffffefc0 0xc0ffd000 0x00000000	/* pioA */
+						 0x07ffffff 0x0805fe7f 0x01ff9f80 0x06078000	/* pioB */
+						 0xffffffff 0x07dfffff 0xfa3fffff 0x00000000	/* pioC */
+						 0x00003fff 0x00003fe0 0x0000003f 0x00000000	/* pioD */
+						 >;
+
+				pioA: gpio@fffff400 {
+					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
+					reg = <0xfffff400 0x200>;
+					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
+					#gpio-cells = <2>;
+					gpio-controller;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
+				};
+
+				pioB: gpio@fffff600 {
+					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
+					reg = <0xfffff600 0x200>;
+					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
+					#gpio-cells = <2>;
+					gpio-controller;
+					#gpio-lines = <26>;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
+				};
+
+				pioC: gpio@fffff800 {
+					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
+					reg = <0xfffff800 0x200>;
+					interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
+					#gpio-cells = <2>;
+					gpio-controller;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
+				};
+
+				pioD: gpio@fffffa00 {
+					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
+					reg = <0xfffffa00 0x200>;
+					interrupts = <44 IRQ_TYPE_LEVEL_HIGH 1>;
+					#gpio-cells = <2>;
+					gpio-controller;
+					#gpio-lines = <22>;
+					interrupt-controller;
+					#interrupt-cells = <2>;
+					clocks = <&pmc PMC_TYPE_PERIPHERAL 44>;
+				};
+			};
+
+			pmc: pmc@fffffc00 {
+				compatible = "microchip,sam9x7-pmc", "syscon";
+				reg = <0xfffffc00 0x200>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				#clock-cells = <2>;
+				clocks = <&clk32k 1>, <&clk32k 0>, <&main_xtal>;
+				clock-names = "td_slck", "md_slck", "main_xtal";
+			};
+
+			reset_controller: rstc@fffffe00 {
+				compatible = "microchip,sam9x7-rstc", "microchip,sam9x60-rstc";
+				reg = <0xfffffe00 0x10>;
+				clocks = <&clk32k 0>;
+			};
+
+			shutdown_controller: shdwc@fffffe10 {
+				compatible = "microchip,sam9x7-shdwc", "microchip,sam9x60-shdwc";
+				reg = <0xfffffe10 0x10>;
+				clocks = <&clk32k 0>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				atmel,wakeup-rtc-timer;
+				atmel,wakeup-rtt-timer;
+				status = "disabled";
+			};
+
+			rtt: rtc@fffffe20 {
+				compatible = "microchip,sam9x7-rtt", "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
+				reg = <0xfffffe20 0x20>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&clk32k 0>;
+			};
+
+			clk32k: sckc@fffffe50 {
+				compatible = "microchip,sam9x7-sckc", "microchip,sam9x60-sckc";
+				reg = <0xfffffe50 0x4>;
+				clocks = <&slow_xtal>;
+				#clock-cells = <1>;
+			};
+
+			gpbr: syscon@fffffe60 {
+				compatible = "microchip,sam9x7-gbpr", "microchip,sam9x60-gpbr", "atmel,at91sam9260-gpbr", "syscon";
+				reg = <0xfffffe60 0x10>;
+			};
+
+			rtc: rtc@fffffea8 {
+				compatible = "microchip,sam9x7-rtc", "microchip,sam9x60-rtc";
+				reg = <0xfffffea8 0x100>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&clk32k 0>;
+			};
+
+			watchdog: watchdog@ffffff80 {
+				compatible = "microchip,sam9x7-wdt", "microchip,sam9x60-wdt";
+				reg = <0xffffff80 0x24>;
+				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+				clocks = <&clk32k 0>;
+				status = "disabled";
+			};
+		};
+	};
+};
-- 
2.25.1


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

* [PATCH v2 44/45] dt-bindings: arm: add sam9x75 curiosity board
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (42 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 43/45] ARM: dts: at91: sam9x7: add device tree for SoC Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:03   ` Krzysztof Kozlowski
  2023-06-23 20:30 ` [PATCH v2 45/45] ARM: dts: at91: sam9x75_curiosity: add device tree for " Varshini Rajendran
                   ` (3 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add documentation for SAM9X75 Curiosity board.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 Documentation/devicetree/bindings/arm/atmel-at91.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.yaml b/Documentation/devicetree/bindings/arm/atmel-at91.yaml
index dfb8fd089197..15b11feae46a 100644
--- a/Documentation/devicetree/bindings/arm/atmel-at91.yaml
+++ b/Documentation/devicetree/bindings/arm/atmel-at91.yaml
@@ -99,6 +99,12 @@ properties:
           - const: microchip,sam9x60
           - const: atmel,at91sam9
 
+      - description: Microchip SAM9X7 Evaluation Boards
+        items:
+          - const: microchip,sam9x75-curiosity
+          - const: microchip,sam9x7
+          - const: atmel,at91sam9
+
       - description: Nattis v2 board with Natte v2 power board
         items:
           - const: axentia,nattis-2
-- 
2.25.1


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

* [PATCH v2 45/45] ARM: dts: at91: sam9x75_curiosity: add device tree for sam9x75 curiosity board
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (43 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 44/45] dt-bindings: arm: add sam9x75 curiosity board Varshini Rajendran
@ 2023-06-23 20:30 ` Varshini Rajendran
  2023-06-24  8:12   ` Krzysztof Kozlowski
  2023-06-24  7:56 ` [PATCH v2 00/45] Add support for sam9x7 SoC family Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  47 siblings, 1 reply; 82+ messages in thread
From: Varshini Rajendran @ 2023-06-23 20:30 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, mturquette, sboyd, herbert,
	davem, vkoul, tglx, maz, lee, ulf.hansson, tudor.ambarus,
	miquel.raynal, richard, vigneshr, edumazet, kuba, pabeni,
	linus.walleij, p.zabel, olivia, a.zummo, radu_nicolae.pirea,
	richard.genoud, gregkh, lgirdwood, broonie, wim, linux, arnd,
	olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, varshini.rajendran, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

Add device tree file for sam9x75 curiosity board.

Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
---
 arch/arm/boot/dts/Makefile                   |   2 +
 arch/arm/boot/dts/at91-sam9x75_curiosity.dts | 336 +++++++++++++++++++
 2 files changed, 338 insertions(+)
 create mode 100644 arch/arm/boot/dts/at91-sam9x75_curiosity.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 59829fc90315..31f357f8e947 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -53,6 +53,8 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
 dtb-$(CONFIG_SOC_SAM9X60) += \
 	at91-sam9x60_curiosity.dtb \
 	at91-sam9x60ek.dtb
+dtb-$(CONFIG_SOC_SAM9X7) += \
+	at91-sam9x75_curiosity.dtb
 dtb-$(CONFIG_SOC_SAM_V7) += \
 	at91-kizbox2-2.dtb \
 	at91-kizbox3-hs.dtb \
diff --git a/arch/arm/boot/dts/at91-sam9x75_curiosity.dts b/arch/arm/boot/dts/at91-sam9x75_curiosity.dts
new file mode 100644
index 000000000000..56d3af549201
--- /dev/null
+++ b/arch/arm/boot/dts/at91-sam9x75_curiosity.dts
@@ -0,0 +1,336 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * at91-sam9x75_curiosity.dts - Device Tree file for Microchip SAM9X75 Curiosity board
+ *
+ * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
+ *
+ * Author: Varshini Rajendran <varshini.rajendran@microchip.com>
+ */
+/dts-v1/;
+#include "sam9x7.dtsi"
+#include <dt-bindings/input/input.h>
+
+/ {
+	model = "Microchip SAM9X75 Curiosity";
+	compatible = "microchip,sam9x75-curiosity", "microchip,sam9x7", "atmel,at91sam9";
+
+	aliases {
+		i2c0 = &i2c6;
+		i2c1 = &i2c7;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	clocks {
+		clock-slowxtal {
+			clock-frequency = <32768>;
+		};
+
+		clock-mainxtal {
+			clock-frequency = <24000000>;
+		};
+	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_key_gpio_default>;
+		status = "okay";
+
+		button-user {
+			label = "USER";
+			gpios = <&pioC 9 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_PROG1>;
+			wakeup-source;
+		};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_led_gpio_default>;
+		status = "okay";
+
+		led-0 {
+			label = "red";
+			gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-1 {
+			label = "green";
+			gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-2 {
+			label = "blue";
+			gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+		};
+	};
+
+	memory@20000000 {
+		device_type = "memory";
+		reg = <0x20000000 0x10000000>;
+	};
+};
+
+&dbgu {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_dbgu>;
+	status = "okay";
+};
+
+&dma0 {
+	status = "okay";
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+&flx6 {
+	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
+	status = "okay";
+
+	i2c6: i2c@600 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_flx6_default>;
+		i2c-analog-filter;
+		i2c-digital-filter;
+		i2c-digital-filter-width-ns = <35>;
+		status = "okay";
+
+		mcp16502@5b {
+			compatible = "microchip,mcp16502";
+			reg = <0x5b>;
+			status = "okay";
+
+			regulators {
+				vdd_3v3: VDD_IO {
+					regulator-name = "VDD_IO";
+					regulator-min-microvolt = <3000000>;
+					regulator-max-microvolt = <3600000>;
+					regulator-initial-mode = <2>;
+					regulator-allowed-modes = <2>, <4>;
+					regulator-always-on;
+
+					regulator-state-standby {
+						regulator-on-in-suspend;
+						regulator-mode = <4>;
+					};
+
+					regulator-state-mem {
+						regulator-mode = <4>;
+					};
+				};
+
+				vddioddr: VDD_DDR {
+					regulator-name = "VDD_DDR";
+					regulator-min-microvolt = <1283000>;
+					regulator-max-microvolt = <1450000>;
+					regulator-initial-mode = <2>;
+					regulator-allowed-modes = <2>, <4>;
+					regulator-always-on;
+
+					regulator-state-standby {
+						regulator-on-in-suspend;
+						regulator-mode = <4>;
+					};
+
+					regulator-state-mem {
+						regulator-on-in-suspend;
+						regulator-mode = <4>;
+					};
+				};
+
+				vddcore: VDD_CORE {
+					regulator-name = "VDD_CORE";
+					regulator-min-microvolt = <500000>;
+					regulator-max-microvolt = <1210000>;
+					regulator-initial-mode = <2>;
+					regulator-allowed-modes = <2>, <4>;
+					regulator-always-on;
+
+					regulator-state-standby {
+						regulator-on-in-suspend;
+						regulator-mode = <4>;
+					};
+
+					regulator-state-mem {
+						regulator-mode = <4>;
+					};
+				};
+
+				vddcpu: VDD_OTHER {
+					regulator-name = "VDD_OTHER";
+					regulator-min-microvolt = <1700000>;
+					regulator-max-microvolt = <3600000>;
+					regulator-initial-mode = <2>;
+					regulator-allowed-modes = <2>, <4>;
+					regulator-ramp-delay = <3125>;
+					regulator-always-on;
+
+					regulator-state-standby {
+						regulator-on-in-suspend;
+						regulator-mode = <4>;
+					};
+
+					regulator-state-mem {
+						regulator-mode = <4>;
+					};
+				};
+
+				vldo1: LDO1 {
+					regulator-name = "LDO1";
+					regulator-min-microvolt = <1200000>;
+					regulator-max-microvolt = <3700000>;
+					regulator-always-on;
+
+					regulator-state-standby {
+						regulator-on-in-suspend;
+					};
+				};
+
+				vldo2: LDO2 {
+					regulator-name = "LDO2";
+					regulator-min-microvolt = <1200000>;
+					regulator-max-microvolt = <3700000>;
+
+					regulator-state-standby {
+						regulator-on-in-suspend;
+					};
+				};
+			};
+		};
+	};
+};
+
+&flx7 {
+	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
+	status = "okay";
+
+	i2c7: i2c@600 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_flx7_default>;
+		i2c-analog-filter;
+		i2c-digital-filter;
+		i2c-digital-filter-width-ns = <35>;
+		status = "okay";
+	};
+};
+
+&ohci0 {
+	num-ports = <3>;
+	atmel,vbus-gpio = <0
+			   &pioC 27 GPIO_ACTIVE_HIGH
+			   &pioB 18 GPIO_ACTIVE_HIGH>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usb_default>;
+	status = "okay";
+};
+
+&pinctrl {
+
+	dbgu {
+		pinctrl_dbgu: dbgu-0 {
+			atmel,pins = <AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
+				      AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;
+		};
+	};
+
+	flexcom {
+		pinctrl_flx6_default: flx6_twi {
+			atmel,pins =
+				<AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
+				 AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
+		};
+
+		pinctrl_flx7_default: flx7_twi {
+			atmel,pins =
+				<AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_PULL_UP
+				 AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>;
+		};
+	};
+
+	gpio_keys {
+		pinctrl_key_gpio_default: pinctrl_key_gpio {
+			atmel,pins = <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+		};
+	};
+
+	leds {
+		pinctrl_led_gpio_default: pinctrl_led_gpio {
+			atmel,pins = <AT91_PIOC 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
+				      AT91_PIOC 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
+				      AT91_PIOC 20 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+		};
+	};
+
+	ohci0 {
+		pinctrl_usb_default: usb_default {
+			atmel,pins = <AT91_PIOC 27 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
+				      AT91_PIOB 18 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+		};
+	};
+
+	sdmmc0 {
+		pinctrl_sdmmc0_default: sdmmc0 {
+			atmel,pins =
+				<AT91_PIOA 2 AT91_PERIPH_A (AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_DIS)					/* PA2 CK  periph A with pullup */
+				 AT91_PIOA 1 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_DIS)		/* PA1 CMD periph A with pullup */
+				 AT91_PIOA 0 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_DIS)		/* PA0 DAT0 periph A */
+				 AT91_PIOA 3 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_DIS)		/* PA3 DAT1 periph A with pullup */
+				 AT91_PIOA 4 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_DIS)		/* PA4 DAT2 periph A with pullup */
+				 AT91_PIOA 5 AT91_PERIPH_A (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_DIS)>;	/* PA5 DAT3 periph A with pullup */
+		};
+	};
+
+	usb0 {
+		pinctrl_usba_vbus: usba_vbus {
+			atmel,pins = <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+		};
+	};
+}; /* pinctrl */
+
+&rtt {
+	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+};
+
+&sdmmc0 {
+	bus-width = <4>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sdmmc0_default>;
+	cd-gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
+	disable-wp;
+	status = "okay";
+};
+
+&shutdown_controller {
+	atmel,shdwc-debouncer = <976>;
+	status = "okay";
+
+	input@0 {
+		reg = <0>;
+	};
+};
+
+&trng {
+	status = "okay";
+};
+
+&usb0 {
+	atmel,vbus-gpio = <&pioC 8 GPIO_ACTIVE_HIGH>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usba_vbus>;
+	status = "okay";
+};
+
+&watchdog {
+	status = "okay";
+};
-- 
2.25.1


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

* Re: [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible
  2023-06-23 20:30 ` [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible Varshini Rajendran
@ 2023-06-23 23:43   ` Rob Herring
  2023-06-24  8:02   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 82+ messages in thread
From: Rob Herring @ 2023-06-23 23:43 UTC (permalink / raw)
  To: Varshini Rajendran
  Cc: ulf.hansson, krzysztof.kozlowski+dt, edumazet, broonie, arnd,
	maz, lgirdwood, alexandre.belloni, alain.volmat, p.zabel,
	mihai.sain, soc, linux-mtd, cristian.birsan, jerry.ray,
	tudor.ambarus, miquel.raynal, richard, gregkh, linux-usb,
	balamanikandan.gunasundar, lee, olivia, sboyd, mturquette, kuba,
	Hari.PrasathGE, linux-kernel, balakrishnan.s, alsa-devel,
	durai.manickamkr, sre, vkoul, linux-rtc, linux-serial, andrew,
	devicetree, nayabbasha.sayed, linux-gpio, nicolas.ferre, davem,
	pabeni, linux-arm-kernel, linux, wim, tglx, horatiu.vultur,
	radu_nicolae.pirea, dharma.b, a.zummo, linux-mmc, richard.genoud,
	claudiu.beznea, linus.walleij, conor+dt, herbert, eugen.hristev,
	dmaengine, netdev, linux-spi, linux, linux-watchdog, linux-pm,
	robh+dt, linux-i2c, linux-crypto, neil.armstrong, vigneshr,
	manikandan.m, linux-clk, olof


On Sat, 24 Jun 2023 02:00:42 +0530, Varshini Rajendran wrote:
> Add sam9x7 compatible to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/sound/atmel,sama5d2-classd.yaml      | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.example.dtb: sound@fc048000: compatible: 'oneOf' conditional failed, one must be fixed:
	['atmel,sama5d2-classd'] is too short
	from schema $id: http://devicetree.org/schemas/sound/atmel,sama5d2-classd.yaml#

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230623203056.689705-32-varshini.rajendran@microchip.com

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.


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

* Re: [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible
  2023-06-23 20:30 ` [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible Varshini Rajendran
@ 2023-06-24  7:53   ` Krzysztof Kozlowski
  2023-06-24  9:19     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:53 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add sam9x60, sam9x7 compatible string support in the schema file.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml | 


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v2 02/45] dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible
  2023-06-23 20:30 ` [PATCH v2 02/45] dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible Varshini Rajendran
@ 2023-06-24  7:53   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:53 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Document at91sam9g45-ehci compatible for usb-ehci.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 +

This is a friendly reminder during the review process.

It looks like you received a tag and forgot to add it.

If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new
versions. However, there's no need to repost patches *only* to add the
tags. The upstream maintainer will do that for acks received on the
version they apply.

https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540

If a tag was not added on purpose, please state why and what changed.

Best regards,
Krzysztof


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

* Re: [PATCH v2 03/45] dt-bindings: usb: generic-ehci: Document clock-names property
  2023-06-23 20:30 ` [PATCH v2 03/45] dt-bindings: usb: generic-ehci: Document clock-names property Varshini Rajendran
@ 2023-06-24  7:54   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:54 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Document the property clock-names in the schema.
> 
> It fixes the dtbs_check warning,
> 'clock-names' does not match any of the regexes: 'pinctrl-[0-9]+'
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/usb/generic-ehci.yaml | 4 ++++

This is a friendly reminder during the review process.

It seems my previous comments were not fully addressed. Maybe my
feedback got lost between the quotes, maybe you just forgot to apply it.
Please go back to the previous discussion and either implement all
requested changes or keep discussing them.

Thank you.

Best regards,
Krzysztof


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

* Re: [PATCH v2 04/45] dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface
  2023-06-23 20:30 ` [PATCH v2 04/45] dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface Varshini Rajendran
@ 2023-06-24  7:54   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:54 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add documentation for sam9x7 ethernet interface.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/net/cdns,macb.yaml | 1 +

So you ignored the comments and tags everywhere?

Best regards,
Krzysztof


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

* Re: [PATCH v2 00/45] Add support for sam9x7 SoC family
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (44 preceding siblings ...)
  2023-06-23 20:30 ` [PATCH v2 45/45] ARM: dts: at91: sam9x75_curiosity: add device tree for " Varshini Rajendran
@ 2023-06-24  7:56 ` Krzysztof Kozlowski
       [not found] ` <168756794811.1155588.11719780333735420720.b4-ty@kernel.org>
  2023-06-24  8:28 ` Krzysztof Kozlowski
  47 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:56 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> This patch series adds support for the new SoC family - sam9x7.
>  - The device tree, configs and drivers are added
>  - Clock driver for sam9x7 is added
>  - Support for basic peripherals is added
>  - Target board SAM9X75 Curiosity is added

Your CC list is enormous and causes multiple bounces/rejections.

Organize your patchset properly to avoid this.

Best regards,
Krzysztof


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

* Re: [PATCH v2 12/45] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding
  2023-06-23 20:30 ` [PATCH v2 12/45] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding Varshini Rajendran
@ 2023-06-24  7:57   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:57 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add documentation for SAM9X7 reset controller.
> 


A nit, subject: drop second/last, redundant "bindings". The
"dt-bindings" prefix is already stating that these are bindings.

> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/reset/atmel,at91sam9260-reset.yaml       | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml b/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
> index 98465d26949e..593a13c277ab 100644
> --- a/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
> +++ b/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
> @@ -22,6 +22,7 @@ properties:
>                - atmel,at91sam9g45-rstc
>                - atmel,sama5d3-rstc
>                - microchip,sam9x60-rstc
> +              - microchip,sam9x7-rstc

It does not look like you tested the DTS against bindings. Please run
`make dtbs_check` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).


Best regards,
Krzysztof


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

* Re: [PATCH v2 14/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel AES
  2023-06-23 20:30 ` [PATCH v2 14/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel AES Varshini Rajendran
@ 2023-06-24  7:58   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:58 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add DT bindings for atmel AES.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml    | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml
> index 0b7383b3106b..f0736696c883 100644
> --- a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml
> +++ b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml
> @@ -12,7 +12,10 @@ maintainers:
>  
>  properties:
>    compatible:
> -    const: atmel,at91sam9g46-aes
> +    oneOf:

This is not oneOf.

> +      - items:

And these are not items. You just broke existing users, which points to
the fact that you did not test the bindings nor the DTS. You didn't test
anything here.

This comment applies for entire patchset - please test everything. I
expect v3, after testing.


Best regards,
Krzysztof


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

* Re: [PATCH v2 15/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA
  2023-06-23 20:30 ` [PATCH v2 15/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA Varshini Rajendran
@ 2023-06-24  7:59   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:59 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add DT bindings for atmel SHA.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml    | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml
> index ee2ffb034325..6a54cb79b6e2 100644
> --- a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml
> +++ b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml
> @@ -12,7 +12,10 @@ maintainers:
>  
>  properties:
>    compatible:
> -    const: atmel,at91sam9g46-sha
> +    oneOf:
> +      - items:
> +          - const: atmel,at91sam9g46-sha
> +          - const: microchip,sam9x7-sha

Same as in other cases, so just to avoid applying by submaintainer: not
tested, broken.


Best regards,
Krzysztof


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

* Re: [PATCH v2 16/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES
  2023-06-23 20:30 ` [PATCH v2 16/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES Varshini Rajendran
@ 2023-06-24  7:59   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  7:59 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add DT bindings for atmel TDES.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml   | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml
> index 3d6ed24b1b00..0e71bfd32a1c 100644
> --- a/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml
> +++ b/Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml
> @@ -12,7 +12,10 @@ maintainers:
>  
>  properties:
>    compatible:
> -    const: atmel,at91sam9g46-tdes
> +    oneOf:
> +      - items:
> +          - const: atmel,at91sam9g46-tdes
> +          - const: microchip,sam9x7-tdes

Same as in other cases, so just to avoid applying by submaintainer: not
tested, broken.


Best regards,
Krzysztof


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

* Re: [PATCH v2 13/45] dt-bindings: atmel-sysreg: add bindings for sam9x7
  2023-06-23 20:30 ` [PATCH v2 13/45] dt-bindings: atmel-sysreg: add bindings for sam9x7 Varshini Rajendran
@ 2023-06-24  8:00   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:00 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add RAM controller, shutdown controller & SFR DT bindings.

A nit, subject: drop second/last, redundant "bindings". The
"dt-bindings" prefix is already stating that these are bindings.

Applies to every patch, since there will be a v3.


Best regards,
Krzysztof


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

* Re: [PATCH v2 18/45] dt-bindings: i2c: at91: Add SAM9X7 compatible string
  2023-06-23 20:30 ` [PATCH v2 18/45] dt-bindings: i2c: at91: Add SAM9X7 compatible string Varshini Rajendran
@ 2023-06-24  8:00   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:00 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add compatible string for sam9x7.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml b/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml
> index 6adedd3ec399..440f890e209f 100644
> --- a/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml
> @@ -24,9 +24,11 @@ properties:
>                - atmel,sama5d4-i2c
>                - atmel,sama5d2-i2c
>                - microchip,sam9x60-i2c
> +              - microchip,sam9x7-i2c

Same as in other cases, so just to avoid applying by submaintainer:
looks not tested and not working.


Best regards,
Krzysztof


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

* Re: [PATCH v2 27/45] dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG
  2023-06-23 20:30 ` [PATCH v2 27/45] dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG Varshini Rajendran
@ 2023-06-24  8:01   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:01 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add compatbile for Microchip sam9x7 TRNG.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml
> index 3ce45456d867..7e4dbf5e22b4 100644
> --- a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml
> +++ b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml
> @@ -17,6 +17,7 @@ properties:
>        - enum:
>            - atmel,at91sam9g45-trng
>            - microchip,sam9x60-trng
> +          - microchip,sam9x7-trng

Same as in other cases, so just to avoid applying by submaintainer:
looks not tested and not working.

Best regards,
Krzysztof


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

* Re: [PATCH v2 28/45] dt-bindings: rtc: at91rm9200: add sam9x7 compatible
  2023-06-23 20:30 ` [PATCH v2 28/45] dt-bindings: rtc: at91rm9200: add sam9x7 compatible Varshini Rajendran
@ 2023-06-24  8:01   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:01 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add compatible for SAM9X7 RTC.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
> index 4d2bef15fb7a..e15872bbdd7e 100644
> --- a/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
> +++ b/Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.yaml
> @@ -20,6 +20,7 @@ properties:
>        - atmel,sama5d4-rtc
>        - atmel,sama5d2-rtc
>        - microchip,sam9x60-rtc
> +      - microchip,sam9x7-rtc
>        - microchip,sama7g5-rtc

Same as in other cases, so just to avoid applying by submaintainer:
looks not tested and not working.

Best regards,
Krzysztof


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

* Re: [PATCH v2 29/45] dt-bindings: rtt: at91rm9260: add sam9x7 compatible
  2023-06-23 20:30 ` [PATCH v2 29/45] dt-bindings: rtt: at91rm9260: " Varshini Rajendran
@ 2023-06-24  8:02   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:02 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add compatible for SAM9X7 RTT.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
> index b80b85c394ac..2d5cce1c1331 100644
> --- a/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
> +++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
> @@ -20,6 +20,7 @@ properties:
>            - const: atmel,at91sam9260-rtt
>        - items:
>            - const: microchip,sam9x60-rtt
> +          - const: microchip,sam9x7-rtt
>            - const: atmel,at91sam9260-rtt

Same as in other cases, so just to avoid applying by submaintainer: not
tested, broken.

Best regards,
Krzysztof


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

* Re: [PATCH v2 30/45] dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7
  2023-06-23 20:30 ` [PATCH v2 30/45] dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7 Varshini Rajendran
@ 2023-06-24  8:02   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:02 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add sam9x7 compatible to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml b/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
> index 30b2131b5860..d836224f99c6 100644
> --- a/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
> +++ b/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
> @@ -17,6 +17,7 @@ properties:
>            - atmel,at91rm9200-usart
>            - atmel,at91sam9260-usart
>            - microchip,sam9x60-usart
> +          - microchip,sam9x7-usart
>        - items:
>            - const: atmel,at91rm9200-dbgu
>            - const: atmel,at91rm9200-usart
> @@ -26,6 +27,8 @@ properties:
>        - items:
>            - const: microchip,sam9x60-dbgu
>            - const: microchip,sam9x60-usart
> +          - const: microchip,sam9x7-dbgu
> +          - const: microchip,sam9x7-usart

Same as in other cases, so just to avoid applying by submaintainer: not
tested, broken.

Best regards,
Krzysztof


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

* Re: [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible
  2023-06-23 20:30 ` [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible Varshini Rajendran
  2023-06-23 23:43   ` Rob Herring
@ 2023-06-24  8:02   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:02 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add sam9x7 compatible to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/sound/atmel,sama5d2-classd.yaml      | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml b/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml
> index 43d04702ac2d..d53addbcd41b 100644
> --- a/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml
> +++ b/Documentation/devicetree/bindings/sound/atmel,sama5d2-classd.yaml
> @@ -18,7 +18,10 @@ description:
>  
>  properties:
>    compatible:
> -    const: atmel,sama5d2-classd
> +    oneOf:
> +      - items:
> +          - const: atmel,sama5d2-classd
> +          - const: microchip,sam9x7-classd

Same as in other cases, so just to avoid applying by submaintainer: not
tested, broken.

Best regards,
Krzysztof


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

* Re: [PATCH v2 32/45] spi: dt-bindings: atmel,at91rm9200-spi: add sam9x7 compatible
  2023-06-23 20:30 ` [PATCH v2 32/45] spi: dt-bindings: atmel,at91rm9200-spi: " Varshini Rajendran
@ 2023-06-24  8:02   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:02 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add sam9x7 compatible to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml b/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml
> index 6c57dd6c3a36..bdc42eeacba4 100644
> --- a/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml
> +++ b/Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml
> @@ -19,6 +19,7 @@ properties:
>        - const: atmel,at91rm9200-spi
>        - items:
>            - const: microchip,sam9x60-spi
> +          - const: microchip,sam9x7-spi
>            - const: atmel,at91rm9200-spi
>  

Same as in other cases, so just to avoid applying by maintainer: not
tested, broken.

Best regards,
Krzysztof


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

* Re: [PATCH v2 34/45] dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt
  2023-06-23 20:30 ` [PATCH v2 34/45] dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt Varshini Rajendran
@ 2023-06-24  8:03   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:03 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add compatible microchip,sam9x7-wdt to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml          | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml b/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml
> index 816f85ee2c77..216e64dfddb2 100644
> --- a/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml
> @@ -17,6 +17,7 @@ properties:
>      enum:
>        - atmel,sama5d4-wdt
>        - microchip,sam9x60-wdt
> +      - microchip,sam9x7-wdt
>        - microchip,sama7g5-wdt

Same as in other cases, so just to avoid applying by maintainer: looks
not tested and not working.

Best regards,
Krzysztof


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

* Re: [PATCH v2 44/45] dt-bindings: arm: add sam9x75 curiosity board
  2023-06-23 20:30 ` [PATCH v2 44/45] dt-bindings: arm: add sam9x75 curiosity board Varshini Rajendran
@ 2023-06-24  8:03   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:03 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add documentation for SAM9X75 Curiosity board.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/arm/atmel-at91.yaml | 6 ++++++

Did you receive here tags?

Best regards,
Krzysztof


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

* Re: [PATCH v2 43/45] ARM: dts: at91: sam9x7: add device tree for SoC
  2023-06-23 20:30 ` [PATCH v2 43/45] ARM: dts: at91: sam9x7: add device tree for SoC Varshini Rajendran
@ 2023-06-24  8:09   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:09 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add device tree file for SAM9X7 SoC family.
> 
> Co-developed-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  arch/arm/boot/dts/sam9x7.dtsi | 1237 +++++++++++++++++++++++++++++++++
>  1 file changed, 1237 insertions(+)
>  create mode 100644 arch/arm/boot/dts/sam9x7.dtsi
> 
> diff --git a/arch/arm/boot/dts/sam9x7.dtsi b/arch/arm/boot/dts/sam9x7.dtsi
> new file mode 100644
> index 000000000000..535a55f13dd0
> --- /dev/null
> +++ b/arch/arm/boot/dts/sam9x7.dtsi
> @@ -0,0 +1,1237 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * sam9x7.dtsi - Device Tree Include file for Microchip SAM9X7 SoC family
> + *
> + * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
> + *
> + * Author: Varshini Rajendran <varshini.rajendran@microchip.com>
> + */
> +
> +#include <dt-bindings/clock/at91.h>
> +#include <dt-bindings/dma/at91.h>
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/interrupt-controller/arm-gic.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/mfd/atmel-flexcom.h>
> +#include <dt-bindings/pinctrl/at91.h>
> +
> +/ {
> +	#address-cells = <1>;
> +	#size-cells = <1>;
> +	model = "Microchip SAM9X7 SoC";
> +	compatible = "microchip,sam9x7";
> +	interrupt-parent = <&aic>;
> +
> +	aliases {
> +		serial0 = &dbgu;

serial alias is rarely property of SoC. Do you claim that absolutely all
boards must use this serial and they cannot use anything else?

> +		gpio0 = &pioA;
> +		gpio1 = &pioB;
> +		gpio2 = &pioC;
> +		gpio3 = &pioD;

GPIOs are discussible but sometimes we keep them in SoC DTSI.

> +	};
> +
> +	cpus {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		cpu@0 {
> +			compatible = "arm,arm926ej-s";
> +			device_type = "cpu";
> +			reg = <0>;
> +		};
> +	};
> +
> +	clocks {
> +		slow_xtal: clock-slowxtal {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +		};
> +
> +		main_xtal: clock-mainxtal {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +		};
> +	};
> +
> +	sram: sram@300000 {
> +		compatible = "mmio-sram";
> +		reg = <0x300000 0x10000>;
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		ranges = <0 0x300000 0x10000>;
> +	};
> +
> +	ahb {
> +		compatible = "simple-bus";
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		ranges;
> +
> +		usb0: gadget@500000 {
> +			compatible = "microchip,sam9x7-udc", "microchip,sam9x60-udc";
> +			reg = <0x500000 0x100000>,
> +			      <0xf803c000 0x400>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
> +			clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
> +			clock-names = "pclk", "hclk";
> +			assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>;
> +			assigned-clock-rates = <480000000>;
> +			status = "disabled";
> +		};
> +
> +		ohci0: usb@600000 {
> +			compatible = "microchip,sam9x7-ohci", "atmel,at91rm9200-ohci", "usb-ohci";
> +			reg = <0x600000 0x100000>;
> +			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
> +			clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 6>;
> +			clock-names = "ohci_clk", "hclk", "uhpck";
> +			status = "disabled";
> +		};
> +
> +		ehci0: usb@700000 {
> +			compatible = "microchip,sam9x7-ehci", "atmel,at91sam9g45-ehci", "usb-ehci";
> +			reg = <0x700000 0x100000>;
> +			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
> +			clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 22>;
> +			clock-names = "usb_clk", "ehci_clk";
> +			assigned-clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>;
> +			assigned-clock-rates = <480000000>;
> +			status = "disabled";
> +		};
> +
> +		sdmmc0: sdio-host@80000000 {

It does not look like you tested the DTS against bindings. Please run
`make dtbs_check` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

> +			compatible = "microchip,sam9x7-sdhci", "microchip,sam9x60-sdhci";

So none of your DTS and bindings patches were tested... Limited review
follows as there is little sense to use reviewers time if you can use
machine.

> +			reg = <0x80000000 0x300>;
> +			interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>;
> +			clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>;
> +			clock-names = "hclock", "multclk";
> +			assigned-clocks = <&pmc PMC_TYPE_GCK 12>;
> +			assigned-clock-rates = <100000000>;
> +			status = "disabled";
> +		};
> +
> +		sdmmc1: sdio-host@90000000 {

It does not look like you tested the DTS against bindings. Please run
`make dtbs_check` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

> +			compatible = "microchip,sam9x7-sdhci", "microchip,sam9x60-sdhci";
> +			reg = <0x90000000 0x300>;
> +			interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0>;
> +			clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
> +			clock-names = "hclock", "multclk";
> +			assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
> +			assigned-clock-rates = <100000000>;
> +			status = "disabled";
> +		};
> +
> +		apb {
> +			compatible = "simple-bus";
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			ranges;
> +
> +			flx4: flexcom@f0000000 {
> +				compatible = "microchip,sam9x7-flexcom", "atmel,sama5d2-flexcom";
> +				reg = <0xf0000000 0x200>;
> +				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
> +				#address-cells = <1>;
> +				#size-cells = <1>;
> +				ranges = <0x0 0xf0000000 0x800>;
> +				status = "disabled";
> +
> +				uart4: serial@200 {
> +					compatible = "microchip,sam9x7-usart", "microchip,sam9x60-usart", "atmel,at91sam9260-usart";

Please run scripts/checkpatch.pl and fix reported warnings. Some
warnings can be ignored, but the code here looks like it needs a fix.
Feel free to get in touch if the warning is not clear.

> +					reg = <0x200 0x200>;
> +					interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
> +					dmas = <&dma0
> +						(AT91_XDMAC_DT_ME

...


> +
> +			dbgu: serial@fffff200 {
> +				compatible = "microchip,sam9x7-dbgu", "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";

I wonder if we can make the line longer...

> +				reg = <0xfffff200 0x200>;
> +				interrupts = <47 IRQ_TYPE_LEVEL_HIGH 7>;
> +				dmas = <&dma0
> +					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
> +					 AT91_XDMAC_DT_PERID(28))>,
> +				       <&dma0
> +					(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
> +					 AT91_XDMAC_DT_PERID(29))>;
> +				dma-names = "tx", "rx";
> +				clocks = <&pmc PMC_TYPE_PERIPHERAL 47>;
> +				clock-names = "usart";
> +				status = "disabled";
> +			};
> +
> +			pinctrl: pinctrl@fffff400 {
> +				#address-cells = <1>;
> +				#size-cells = <1>;
> +				compatible = "microchip,sam9x7-pinctrl", "microchip,sam9x60-pinctrl", "atmel,at91sam9x5-pinctrl", "simple-mfd";
> +				ranges = <0xfffff400 0xfffff400 0x800>;
> +
> +				/* mux-mask corresponding to sam9x7 SoC in TFBGA228L package */
> +				atmel,mux-mask = <
> +						 /*  A		B	   C	      D	  */
> +						 0xffffffff 0xffffefc0 0xc0ffd000 0x00000000	/* pioA */
> +						 0x07ffffff 0x0805fe7f 0x01ff9f80 0x06078000	/* pioB */
> +						 0xffffffff 0x07dfffff 0xfa3fffff 0x00000000	/* pioC */
> +						 0x00003fff 0x00003fe0 0x0000003f 0x00000000	/* pioD */
> +						 >;
> +
> +				pioA: gpio@fffff400 {
> +					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
> +					reg = <0xfffff400 0x200>;
> +					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
> +					#gpio-cells = <2>;
> +					gpio-controller;
> +					interrupt-controller;
> +					#interrupt-cells = <2>;
> +					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
> +				};
> +
> +				pioB: gpio@fffff600 {
> +					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
> +					reg = <0xfffff600 0x200>;
> +					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
> +					#gpio-cells = <2>;
> +					gpio-controller;
> +					#gpio-lines = <26>;
> +					interrupt-controller;
> +					#interrupt-cells = <2>;
> +					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
> +				};
> +
> +				pioC: gpio@fffff800 {
> +					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
> +					reg = <0xfffff800 0x200>;
> +					interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
> +					#gpio-cells = <2>;
> +					gpio-controller;
> +					interrupt-controller;
> +					#interrupt-cells = <2>;
> +					clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
> +				};
> +
> +				pioD: gpio@fffffa00 {
> +					compatible = "microchip,sam9x7-gpio", "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
> +					reg = <0xfffffa00 0x200>;
> +					interrupts = <44 IRQ_TYPE_LEVEL_HIGH 1>;
> +					#gpio-cells = <2>;
> +					gpio-controller;
> +					#gpio-lines = <22>;
> +					interrupt-controller;
> +					#interrupt-cells = <2>;
> +					clocks = <&pmc PMC_TYPE_PERIPHERAL 44>;
> +				};
> +			};
> +
> +			pmc: pmc@fffffc00 {
> +				compatible = "microchip,sam9x7-pmc", "syscon";
> +				reg = <0xfffffc00 0x200>;
> +				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
> +				#clock-cells = <2>;
> +				clocks = <&clk32k 1>, <&clk32k 0>, <&main_xtal>;
> +				clock-names = "td_slck", "md_slck", "main_xtal";
> +			};
> +
> +			reset_controller: rstc@fffffe00 {

reset-controller

> +				compatible = "microchip,sam9x7-rstc", "microchip,sam9x60-rstc";
> +				reg = <0xfffffe00 0x10>;
> +				clocks = <&clk32k 0>;
> +			};
> +
> +			shutdown_controller: shdwc@fffffe10 {

Usually power-management or reset-controller or something like this.



> +				compatible = "microchip,sam9x7-shdwc", "microchip,sam9x60-shdwc";
> +				reg = <0xfffffe10 0x10>;
> +				clocks = <&clk32k 0>;
> +				#address-cells = <1>;
> +				#size-cells = <0>;
> +				atmel,wakeup-rtc-timer;
> +				atmel,wakeup-rtt-timer;
> +				status = "disabled";


Best regards,
Krzysztof


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

* Re: [PATCH v2 45/45] ARM: dts: at91: sam9x75_curiosity: add device tree for sam9x75 curiosity board
  2023-06-23 20:30 ` [PATCH v2 45/45] ARM: dts: at91: sam9x75_curiosity: add device tree for " Varshini Rajendran
@ 2023-06-24  8:12   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:12 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add device tree file for sam9x75 curiosity board.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  arch/arm/boot/dts/Makefile                   |   2 +
>  arch/arm/boot/dts/at91-sam9x75_curiosity.dts | 336 +++++++++++++++++++
>  2 files changed, 338 insertions(+)
>  create mode 100644 arch/arm/boot/dts/at91-sam9x75_curiosity.dts
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 59829fc90315..31f357f8e947 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -53,6 +53,8 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
>  dtb-$(CONFIG_SOC_SAM9X60) += \
>  	at91-sam9x60_curiosity.dtb \
>  	at91-sam9x60ek.dtb
> +dtb-$(CONFIG_SOC_SAM9X7) += \
> +	at91-sam9x75_curiosity.dtb
>  dtb-$(CONFIG_SOC_SAM_V7) += \
>  	at91-kizbox2-2.dtb \
>  	at91-kizbox3-hs.dtb \
> diff --git a/arch/arm/boot/dts/at91-sam9x75_curiosity.dts b/arch/arm/boot/dts/at91-sam9x75_curiosity.dts
> new file mode 100644
> index 000000000000..56d3af549201
> --- /dev/null
> +++ b/arch/arm/boot/dts/at91-sam9x75_curiosity.dts
> @@ -0,0 +1,336 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * at91-sam9x75_curiosity.dts - Device Tree file for Microchip SAM9X75 Curiosity board
> + *
> + * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
> + *
> + * Author: Varshini Rajendran <varshini.rajendran@microchip.com>
> + */
> +/dts-v1/;
> +#include "sam9x7.dtsi"
> +#include <dt-bindings/input/input.h>
> +
> +/ {
> +	model = "Microchip SAM9X75 Curiosity";
> +	compatible = "microchip,sam9x75-curiosity", "microchip,sam9x7", "atmel,at91sam9";
> +
> +	aliases {
> +		i2c0 = &i2c6;
> +		i2c1 = &i2c7;
> +	};
> +
> +	chosen {
> +		stdout-path = "serial0:115200n8";
> +	};
> +
> +	clocks {
> +		clock-slowxtal {
> +			clock-frequency = <32768>;
> +		};
> +
> +		clock-mainxtal {
> +			clock-frequency = <24000000>;
> +		};
> +	};
> +
> +	gpio-keys {
> +		compatible = "gpio-keys";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_key_gpio_default>;
> +		status = "okay";

Why? Did you disable it?

> +
> +		button-user {
> +			label = "USER";
> +			gpios = <&pioC 9 GPIO_ACTIVE_LOW>;
> +			linux,code = <KEY_PROG1>;
> +			wakeup-source;
> +		};
> +	};
> +
> +	leds {
> +		compatible = "gpio-leds";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_led_gpio_default>;
> +		status = "okay";

Why? Did you disable it?

> +
> +		led-0 {
> +			label = "red";
> +			gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
> +		};
> +
> +		led-1 {
> +			label = "green";
> +			gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
> +		};
> +
> +		led-2 {
> +			label = "blue";
> +			gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
> +			linux,default-trigger = "heartbeat";
> +		};
> +	};
> +
> +	memory@20000000 {
> +		device_type = "memory";
> +		reg = <0x20000000 0x10000000>;
> +	};
> +};
> +
> +&dbgu {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_dbgu>;
> +	status = "okay";
> +};
> +
> +&dma0 {
> +	status = "okay";
> +};
> +
> +&ehci0 {
> +	status = "okay";
> +};
> +
> +&flx6 {
> +	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
> +	status = "okay";
> +
> +	i2c6: i2c@600 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_flx6_default>;
> +		i2c-analog-filter;
> +		i2c-digital-filter;
> +		i2c-digital-filter-width-ns = <35>;
> +		status = "okay";

Did you disable it? If so this should be overridden by label...


> +
> +		mcp16502@5b {

Node names should be generic. See also explanation and list of examples
in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

> +			compatible = "microchip,mcp16502";
> +			reg = <0x5b>;
> +			status = "okay";

Srsly, drop.

> +
> +			regulators {
> +				vdd_3v3: VDD_IO {
> +					regulator-name = "VDD_IO";
> +					regulator-min-microvolt = <3000000>;
> +					regulator-max-microvolt = <3600000>;

...

> +&flx7 {
> +	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
> +	status = "okay";
> +
> +	i2c7: i2c@600 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_flx7_default>;
> +		i2c-analog-filter;
> +		i2c-digital-filter;
> +		i2c-digital-filter-width-ns = <35>;
> +		status = "okay";

Empty bus. Keep disabled. Anyway overrides should be done via label, not
by duplicating children.

> +	};
> +};
> +
> +&ohci0 {
> +	num-ports = <3>;
> +	atmel,vbus-gpio = <0
> +			   &pioC 27 GPIO_ACTIVE_HIGH
> +			   &pioB 18 GPIO_ACTIVE_HIGH>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usb_default>;
> +	status = "okay";
> +};
> +
> +&pinctrl {
> +
> +	dbgu {
> +		pinctrl_dbgu: dbgu-0 {
> +			atmel,pins = <AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
> +				      AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;
> +		};
> +	};
> +
> +	flexcom {
> +		pinctrl_flx6_default: flx6_twi {

No underscors in node names.

This applies everywhere.



Best regards,
Krzysztof


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

* Re: (subset) [PATCH v2 00/45] Add support for sam9x7 SoC family
       [not found] ` <168756794811.1155588.11719780333735420720.b4-ty@kernel.org>
@ 2023-06-24  8:13   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:13 UTC (permalink / raw)
  To: Mark Brown, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, wim,
	linux, arnd, olof, soc, linux, sre, jerry.ray, horatiu.vultur,
	durai.manickamkr, andrew, alain.volmat, neil.armstrong,
	mihai.sain, eugen.hristev, devicetree, linux-arm-kernel,
	linux-kernel, linux-clk, linux-crypto, dmaengine, linux-i2c,
	linux-mmc, linux-mtd, netdev, linux-gpio, linux-rtc, linux-spi,
	linux-serial, alsa-devel, linux-usb, linux-watchdog, linux-pm,
	Varshini Rajendran
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 24/06/2023 02:52, Mark Brown wrote:
> On Sat, 24 Jun 2023 02:00:11 +0530, Varshini Rajendran wrote:
>> This patch series adds support for the new SoC family - sam9x7.
>>  - The device tree, configs and drivers are added
>>  - Clock driver for sam9x7 is added
>>  - Support for basic peripherals is added
>>  - Target board SAM9X75 Curiosity is added
>>
>>  Changes in v2:
>>  --------------
>>
>> [...]
> 
> Applied to
> 
>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
> 
> Thanks!
> 
> [32/45] spi: dt-bindings: atmel,at91rm9200-spi: add sam9x7 compatible
>         commit: a3eb95484f276488e3d59cffa8eec29f79be416e

Eh... the patch - like all the bindings patches in this patchset - is
utterly broken. I don't even get its intention, but I will try to fix it
with a followup based on DTS.

Best regards,
Krzysztof


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

* Re: [PATCH v2 33/45] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7
  2023-06-23 20:30 ` [PATCH v2 33/45] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7 Varshini Rajendran
@ 2023-06-24  8:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:23 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add sam9x7 bindings.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/usb/atmel-usb.txt | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/usb/atmel-usb.txt
> index 12183ef47ee4..6359af0123bf 100644
> --- a/Documentation/devicetree/bindings/usb/atmel-usb.txt
> +++ b/Documentation/devicetree/bindings/usb/atmel-usb.txt
> @@ -3,8 +3,8 @@ Atmel SOC USB controllers
>  OHCI
>  
>  Required properties:
> - - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers
> -   used in host mode.
> + - compatible: Should be "atmel,at91rm9200-ohci" or "microchip,sam9x7-ohci"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 35/45] dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic
  2023-06-23 20:30 ` [PATCH v2 35/45] dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
@ 2023-06-24  8:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:23 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Document the support added for the Advanced interrupt controller(AIC)
> chip in the sam9x7 SoC family.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/interrupt-controller/atmel,aic.txt      | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
> index 7079d44bf3ba..2c267a66a3ea 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
> +++ b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
> @@ -4,7 +4,7 @@ Required properties:
>  - compatible: Should be:
>      - "atmel,<chip>-aic" where  <chip> can be "at91rm9200", "sama5d2",
>        "sama5d3" or "sama5d4"
> -    - "microchip,<chip>-aic" where <chip> can be "sam9x60"
> +    - "microchip,<chip>-aic" where <chip> can be "sam9x60", "sam9x7"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 19/45] dt-bindings: mfd: at91: Add SAM9X7 compatible string
  2023-06-23 20:30 ` [PATCH v2 19/45] dt-bindings: mfd: " Varshini Rajendran
@ 2023-06-24  8:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:23 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Document sam9x7 DT for flexcom.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/mfd/atmel-flexcom.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt b/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt
> index 9d837535637b..449e0af93a13 100644
> --- a/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt
> +++ b/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt
> @@ -5,7 +5,7 @@ controller and an USART. Only one function can be used at a time and is chosen
>  at boot time according to the device tree.
>  
>  Required properties:
> -- compatible:		Should be "atmel,sama5d2-flexcom"
> +- compatible:		Should be "atmel,sama5d2-flexcom" or "microchip,sam9x7-flexcom"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 20/45] dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr
  2023-06-23 20:30 ` [PATCH v2 20/45] dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr Varshini Rajendran
@ 2023-06-24  8:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:23 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add microchip,sam9x7-gpbr to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/mfd/atmel-gpbr.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt b/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt
> index e8c525569f10..2cc39524af8c 100644
> --- a/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt
> +++ b/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt
> @@ -6,6 +6,7 @@ Required properties:
>  - compatible:		Should be one of the following:
>  			"atmel,at91sam9260-gpbr", "syscon"
>  			"microchip,sam9x60-gpbr", "syscon"
> +			"microchip,sam9x7-gpbr", "syscon"

That's not what your DTS is saying. Srsly, just open the DTS and compare
the list.

Best regards,
Krzysztof


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

* Re: [PATCH v2 21/45] dt-bindings: atmel-matrix: add microchip,sam9x7-matrix
  2023-06-23 20:30 ` [PATCH v2 21/45] dt-bindings: atmel-matrix: add microchip,sam9x7-matrix Varshini Rajendran
@ 2023-06-24  8:24   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:24 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add microchip,sam9x7-matrix to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/mfd/atmel-matrix.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/atmel-matrix.txt b/Documentation/devicetree/bindings/mfd/atmel-matrix.txt
> index 89d05c64fb01..75378839fc7f 100644
> --- a/Documentation/devicetree/bindings/mfd/atmel-matrix.txt
> +++ b/Documentation/devicetree/bindings/mfd/atmel-matrix.txt
> @@ -14,6 +14,7 @@ Required properties:
>  			"atmel,at91sam9x5-matrix", "syscon"
>  			"atmel,sama5d3-matrix", "syscon"
>  			"microchip,sam9x60-matrix", "syscon"
> +			"microchip,sam9x7-matrix", "syscon"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 22/45] dt-bindings: atmel-smc: add microchip,sam9x7-smc
  2023-06-23 20:30 ` [PATCH v2 22/45] dt-bindings: atmel-smc: add microchip,sam9x7-smc Varshini Rajendran
@ 2023-06-24  8:24   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:24 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add microchip,sam9x7-smc to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/mfd/atmel-smc.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/atmel-smc.txt b/Documentation/devicetree/bindings/mfd/atmel-smc.txt
> index 5696d9fcb5dc..1eb2606820a5 100644
> --- a/Documentation/devicetree/bindings/mfd/atmel-smc.txt
> +++ b/Documentation/devicetree/bindings/mfd/atmel-smc.txt
> @@ -10,6 +10,7 @@ Required properties:
>  			"atmel,sama5d3-smc", "syscon"
>  			"atmel,sama5d2-smc", "syscon"
>  			"microchip,sam9x60-smc", "syscon"
> +			"microchip,sam9x7-smc", "syscon"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 23/45] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc
  2023-06-23 20:30 ` [PATCH v2 23/45] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc Varshini Rajendran
@ 2023-06-24  8:24   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:24 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add microchip,sam9x7-ssc to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/misc/atmel-ssc.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/misc/atmel-ssc.txt b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
> index f9fb412642fe..67c1227a01bd 100644
> --- a/Documentation/devicetree/bindings/misc/atmel-ssc.txt
> +++ b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
> @@ -2,6 +2,7 @@
>  
>  Required properties:
>  - compatible: "atmel,at91rm9200-ssc" or "atmel,at91sam9g45-ssc"
> +	       or "microchip,sam9x7-ssc"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 24/45] dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci
  2023-06-23 20:30 ` [PATCH v2 24/45] dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci Varshini Rajendran
@ 2023-06-24  8:24   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:24 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add microchip,sam9x7-sdhci to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/mmc/sdhci-atmel.txt | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt b/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt
> index 69edfd4d3922..b8df78fbc00f 100644
> --- a/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt
> +++ b/Documentation/devicetree/bindings/mmc/sdhci-atmel.txt
> @@ -5,11 +5,13 @@ Documentation/devicetree/bindings/mmc/mmc.txt and the properties used by the
>  sdhci-of-at91 driver.
>  
>  Required properties:
> -- compatible:		Must be "atmel,sama5d2-sdhci" or "microchip,sam9x60-sdhci".
> +- compatible:		Must be "atmel,sama5d2-sdhci" or "microchip,sam9x60-sdhci"
> +			or "microchip,sam9x7-sdhci"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 25/45] dt-bindings: atmel-nand: add microchip,sam9x7-pmecc
  2023-06-23 20:30 ` [PATCH v2 25/45] dt-bindings: atmel-nand: add microchip,sam9x7-pmecc Varshini Rajendran
@ 2023-06-24  8:24   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:24 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add microchip,sam9x7-pmecc to DT bindings documentation.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/mtd/atmel-nand.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/mtd/atmel-nand.txt b/Documentation/devicetree/bindings/mtd/atmel-nand.txt
> index 50645828ac20..9c9dfab38fdf 100644
> --- a/Documentation/devicetree/bindings/mtd/atmel-nand.txt
> +++ b/Documentation/devicetree/bindings/mtd/atmel-nand.txt
> @@ -56,6 +56,7 @@ Required properties:
>  	"atmel,sama5d4-pmecc"
>  	"atmel,sama5d2-pmecc"
>  	"microchip,sam9x60-pmecc"
> +	"microchip,sam9x7-pmecc"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 26/45] dt-bindings: pinctrl: at91: add bindings for SAM9X7
  2023-06-23 20:30 ` [PATCH v2 26/45] dt-bindings: pinctrl: at91: add bindings for SAM9X7 Varshini Rajendran
@ 2023-06-24  8:24   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:24 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add device tree binding for SAM9X7 pin controller.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  .../devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt         | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
> index e8abbdad7b5d..5a3be10dcbfb 100644
> --- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
> +++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
> @@ -20,6 +20,7 @@ such as pull-up, multi drive, etc.
>  Required properties for iomux controller:
>  - compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl"
>  		or "atmel,sama5d3-pinctrl" or "microchip,sam9x60-pinctrl"
> +		or "microchip,sam9x7-pinctrl"

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 17/45] dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7
  2023-06-23 20:30 ` [PATCH v2 17/45] dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7 Varshini Rajendran
@ 2023-06-24  8:27   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:27 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> Add compatible for sam9x7.
> 
> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
> ---
>  Documentation/devicetree/bindings/dma/atmel-xdma.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/dma/atmel-xdma.txt b/Documentation/devicetree/bindings/dma/atmel-xdma.txt
> index 510b7f25ba24..f672556ea715 100644
> --- a/Documentation/devicetree/bindings/dma/atmel-xdma.txt
> +++ b/Documentation/devicetree/bindings/dma/atmel-xdma.txt
> @@ -2,8 +2,8 @@
>  
>  * XDMA Controller
>  Required properties:
> -- compatible: Should be "atmel,sama5d4-dma", "microchip,sam9x60-dma" or
> -  "microchip,sama7g5-dma".
> +- compatible: Should be "atmel,sama5d4-dma", "microchip,sam9x60-dma",
> +  "microchip,sam9x7-dma" or "microchip,sama7g5-dma".

That's not what your DTS is saying. NAK.

Best regards,
Krzysztof


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

* Re: [PATCH v2 00/45] Add support for sam9x7 SoC family
  2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
                   ` (46 preceding siblings ...)
       [not found] ` <168756794811.1155588.11719780333735420720.b4-ty@kernel.org>
@ 2023-06-24  8:28 ` Krzysztof Kozlowski
  47 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  8:28 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 23/06/2023 22:30, Varshini Rajendran wrote:
> This patch series adds support for the new SoC family - sam9x7.
>  - The device tree, configs and drivers are added
>  - Clock driver for sam9x7 is added
>  - Support for basic peripherals is added
>  - Target board SAM9X75 Curiosity is added
> 
>  Changes in v2:
>  --------------
> 
>  - Added sam9x7 specific compatibles in DT with fallbacks
>  - Documented all the newly added DT compatible strings
>  - Added device tree for the target board sam9x75 curiosity and
>    documented the same in the DT bindings documentation
>  - Removed the dt nodes that are not supported at the moment
>  - Removed the configs added by previous version that are not supported
>    at the moment
>  - Fixed all the corrections in the commit message
>  - Changed all the instances of copyright year to 2023
>  - Added sam9x7 flag in PIT64B configuration
>  - Moved macro definitions to header file
>  - Added another divider in mck characteristics in the pmc driver
>  - Fixed the memory leak in the pmc driver
>  - Dropped patches that are no longer needed
>  - Picked up Acked-by and Reviewed-by tags

Where did you pick them up? Can you point me to the patches?

Best regards,
Krzysztof


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

* Re: [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible
  2023-06-24  7:53   ` Krzysztof Kozlowski
@ 2023-06-24  9:19     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 82+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-24  9:19 UTC (permalink / raw)
  To: Varshini Rajendran, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	nicolas.ferre, alexandre.belloni, claudiu.beznea, mturquette,
	sboyd, herbert, davem, vkoul, tglx, maz, lee, ulf.hansson,
	tudor.ambarus, miquel.raynal, richard, vigneshr, edumazet, kuba,
	pabeni, linus.walleij, p.zabel, olivia, a.zummo,
	radu_nicolae.pirea, richard.genoud, gregkh, lgirdwood, broonie,
	wim, linux, arnd, olof, soc, linux, sre, jerry.ray,
	horatiu.vultur, durai.manickamkr, andrew, alain.volmat,
	neil.armstrong, mihai.sain, eugen.hristev, devicetree,
	linux-arm-kernel, linux-kernel, linux-clk, linux-crypto,
	dmaengine, linux-i2c, linux-mmc, linux-mtd, netdev, linux-gpio,
	linux-rtc, linux-spi, linux-serial, alsa-devel, linux-usb,
	linux-watchdog, linux-pm
  Cc: Hari.PrasathGE, cristian.birsan, balamanikandan.gunasundar,
	manikandan.m, dharma.b, nayabbasha.sayed, balakrishnan.s

On 24/06/2023 09:53, Krzysztof Kozlowski wrote:
> On 23/06/2023 22:30, Varshini Rajendran wrote:
>> Add sam9x60, sam9x7 compatible string support in the schema file.
>>
>> Signed-off-by: Varshini Rajendran <varshini.rajendran@microchip.com>
>> ---
>>  .../devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml | 
> 
> 
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Un-acked. Actually NAK.

This does not match your DTS. Please test your patches before sending.

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-06-24  9:20 UTC | newest]

Thread overview: 82+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23 20:30 [PATCH v2 00/45] Add support for sam9x7 SoC family Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 01/45] dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60, sam9x7 compatible Varshini Rajendran
2023-06-24  7:53   ` Krzysztof Kozlowski
2023-06-24  9:19     ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 02/45] dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible Varshini Rajendran
2023-06-24  7:53   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 03/45] dt-bindings: usb: generic-ehci: Document clock-names property Varshini Rajendran
2023-06-24  7:54   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 04/45] dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface Varshini Rajendran
2023-06-24  7:54   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 05/45] ARM: at91: pm: add support for sam9x7 SoC family Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 06/45] ARM: at91: pm: add sam9x7 SoC init config Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 07/45] ARM: at91: add support in SoC driver for new sam9x7 Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 08/45] clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 09/45] clk: at91: sam9x7: add support for HW PLL freq dividers Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 10/45] clk: at91: sama7g5: move mux table macros to header file Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 11/45] dt-bindings: clk: at91: add bindings for SAM9X7's clock controller Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 12/45] dt-bindings: reset: atmel,at91sam9260-reset: add sam9x7 binding Varshini Rajendran
2023-06-24  7:57   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 13/45] dt-bindings: atmel-sysreg: add bindings for sam9x7 Varshini Rajendran
2023-06-24  8:00   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 14/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel AES Varshini Rajendran
2023-06-24  7:58   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 15/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel SHA Varshini Rajendran
2023-06-24  7:59   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 16/45] dt-bindings: crypto: add bindings for sam9x7 in Atmel TDES Varshini Rajendran
2023-06-24  7:59   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 17/45] dt-bindings: dmaengine: at_xdmac: add compatible with microchip,sam9x7 Varshini Rajendran
2023-06-24  8:27   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 18/45] dt-bindings: i2c: at91: Add SAM9X7 compatible string Varshini Rajendran
2023-06-24  8:00   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 19/45] dt-bindings: mfd: " Varshini Rajendran
2023-06-24  8:23   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 20/45] dt-bindings: atmel-gpbr: add microchip,sam9x7-gpbr Varshini Rajendran
2023-06-24  8:23   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 21/45] dt-bindings: atmel-matrix: add microchip,sam9x7-matrix Varshini Rajendran
2023-06-24  8:24   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 22/45] dt-bindings: atmel-smc: add microchip,sam9x7-smc Varshini Rajendran
2023-06-24  8:24   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 23/45] dt-bindings: atmel-ssc: add microchip,sam9x7-ssc Varshini Rajendran
2023-06-24  8:24   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 24/45] dt-bindings: sdhci-of-at91: add microchip,sam9x7-sdhci Varshini Rajendran
2023-06-24  8:24   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 25/45] dt-bindings: atmel-nand: add microchip,sam9x7-pmecc Varshini Rajendran
2023-06-24  8:24   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 26/45] dt-bindings: pinctrl: at91: add bindings for SAM9X7 Varshini Rajendran
2023-06-24  8:24   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 27/45] dt-bindings: rng: atmel,at91-trng: document sam9x7 TRNG Varshini Rajendran
2023-06-24  8:01   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 28/45] dt-bindings: rtc: at91rm9200: add sam9x7 compatible Varshini Rajendran
2023-06-24  8:01   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 29/45] dt-bindings: rtt: at91rm9260: " Varshini Rajendran
2023-06-24  8:02   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 30/45] dt-bindings: serial: atmel,at91-usart: add compatible for sam9x7 Varshini Rajendran
2023-06-24  8:02   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 31/45] dt-bindings: atmel-classd: add sam9x7 compatible Varshini Rajendran
2023-06-23 23:43   ` Rob Herring
2023-06-24  8:02   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 32/45] spi: dt-bindings: atmel,at91rm9200-spi: " Varshini Rajendran
2023-06-24  8:02   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 33/45] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x7 Varshini Rajendran
2023-06-24  8:23   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 34/45] dt-bindings: watchdog: sama5d4-wdt: add compatible for sam9x7-wdt Varshini Rajendran
2023-06-24  8:03   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 35/45] dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
2023-06-24  8:23   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 36/45] clk: at91: sam9x7: add sam9x7 pmc driver Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 37/45] irqchip/atmel-aic5: Add support for sam9x7 aic Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 38/45] power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7 Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 39/45] power: reset: at91-reset: add reset support for sam9x7 SoC Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 40/45] power: reset: at91-reset: add sdhwc " Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 41/45] ARM: at91: Kconfig: add config flag for SAM9X7 SoC Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 42/45] ARM: configs: at91: enable config flags for sam9x7 SoC family Varshini Rajendran
2023-06-23 20:30 ` [PATCH v2 43/45] ARM: dts: at91: sam9x7: add device tree for SoC Varshini Rajendran
2023-06-24  8:09   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 44/45] dt-bindings: arm: add sam9x75 curiosity board Varshini Rajendran
2023-06-24  8:03   ` Krzysztof Kozlowski
2023-06-23 20:30 ` [PATCH v2 45/45] ARM: dts: at91: sam9x75_curiosity: add device tree for " Varshini Rajendran
2023-06-24  8:12   ` Krzysztof Kozlowski
2023-06-24  7:56 ` [PATCH v2 00/45] Add support for sam9x7 SoC family Krzysztof Kozlowski
     [not found] ` <168756794811.1155588.11719780333735420720.b4-ty@kernel.org>
2023-06-24  8:13   ` (subset) " Krzysztof Kozlowski
2023-06-24  8:28 ` Krzysztof Kozlowski

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