From: <Ryan.Wanner@microchip.com>
To: <robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
<nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>,
<claudiu.beznea@tuxon.dev>, <vkoul@kernel.org>,
<wim@linux-watchdog.org>, <linux@roeck-us.net>
Cc: <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <dmaengine@vger.kernel.org>,
<linux-watchdog@vger.kernel.org>,
Ryan Wanner <Ryan.Wanner@microchip.com>
Subject: [PATCH 4/8] ARM: at91: Add Support in SoC driver for SAMA7D65
Date: Fri, 14 Feb 2025 11:08:17 -0700 [thread overview]
Message-ID: <84b4a7ec0025741bc3ab647671fd4e880b2ed1d5.1739555984.git.Ryan.Wanner@microchip.com> (raw)
In-Reply-To: <cover.1739555984.git.Ryan.Wanner@microchip.com>
From: Ryan Wanner <Ryan.Wanner@microchip.com>
Add support for SAMA7D65 SoC in the SoC driver.
Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
---
drivers/soc/atmel/soc.c | 5 +++++
drivers/soc/atmel/soc.h | 3 +++
2 files changed, 8 insertions(+)
diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c
index 298b542dd1c06..68f20024dcebb 100644
--- a/drivers/soc/atmel/soc.c
+++ b/drivers/soc/atmel/soc.c
@@ -246,6 +246,9 @@ static const struct at91_soc socs[] __initconst = {
"samv70q19", "samv7"),
#endif
#ifdef CONFIG_SOC_SAMA7
+ AT91_SOC(SAMA7D65_CIDR_MATCH, AT91_CIDR_MASK_SAMA7G5,
+ AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7D65_EXID_MATCH,
+ "sama7d65", "sama7d6"),
AT91_SOC(SAMA7G5_CIDR_MATCH, AT91_CIDR_MATCH_MASK,
AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7G51_EXID_MATCH,
"sama7g51", "sama7g5"),
@@ -305,6 +308,7 @@ static int __init at91_get_cidr_exid_from_chipid(u32 *cidr, u32 *exid)
void __iomem *regs;
static const struct of_device_id chipids[] = {
{ .compatible = "atmel,sama5d2-chipid" },
+ { .compatible = "microchip,sama7d65-chipid"},
{ .compatible = "microchip,sama7g5-chipid" },
{ },
};
@@ -393,6 +397,7 @@ static const struct of_device_id at91_soc_allowed_list[] __initconst = {
{ .compatible = "atmel,at91sam9", },
{ .compatible = "atmel,sama5", },
{ .compatible = "atmel,samv7", },
+ { .compatible = "microchip,sama7d65",},
{ .compatible = "microchip,sama7g5", },
{ }
};
diff --git a/drivers/soc/atmel/soc.h b/drivers/soc/atmel/soc.h
index 2c78e54255f7f..66a74017d9a3e 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 SAM9X7_CIDR_MATCH 0x09750020
+#define SAMA7D65_CIDR_MATCH 0x00262100
#define SAMA7G5_CIDR_MATCH 0x00162100
#define AT91SAM9M11_EXID_MATCH 0x00000001
@@ -75,6 +76,8 @@ at91_soc_init(const struct at91_soc *socs);
#define SAM9X75_D5M_EXID_MATCH 0x00000010
#define SAM9X75_EXID_MATCH 0x00000000
+#define SAMA7D65_EXID_MATCH 0x00000080
+
#define SAMA7G51_EXID_MATCH 0x3
#define SAMA7G52_EXID_MATCH 0x2
#define SAMA7G53_EXID_MATCH 0x1
--
2.43.0
next prev parent reply other threads:[~2025-02-14 18:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 18:08 [PATCH 0/8] Add System Components for Microchip SAMA7D65 SoC Ryan.Wanner
2025-02-14 18:08 ` [PATCH 1/8] dt-bindings: atmel-sysreg: Add SAMA7D65 Chip ID Ryan.Wanner
2025-02-19 22:59 ` Rob Herring
2025-02-14 18:08 ` [PATCH 2/8] dt-bindings: watchdog: sama5d4-wdt: Add sama7d65-wdt Ryan.Wanner
2025-02-18 8:42 ` Claudiu Beznea
2025-02-19 22:59 ` Rob Herring
2025-02-14 18:08 ` [PATCH 3/8] dt-bindings: dma: atmel: add microchip,sama7d65-dma Ryan.Wanner
2025-02-19 23:00 ` Rob Herring (Arm)
2025-02-14 18:08 ` Ryan.Wanner [this message]
2025-02-14 18:08 ` [PATCH 5/8] ARM: dts: microchip: sama7d65: Add chipID for sama7d65 Ryan.Wanner
2025-02-14 18:08 ` [PATCH 6/8] ARM: dts: microchip: sama7d65: Add watchdog " Ryan.Wanner
2025-02-24 11:43 ` Claudiu Beznea
2025-02-14 18:08 ` [PATCH 7/8] ARM: dts: microchip: sama7d65: Add DMAs to sama7d65 SoC Ryan.Wanner
2025-02-18 8:41 ` Claudiu Beznea
2025-02-14 18:08 ` [PATCH 8/8] ARM: dts: microchip: sama7d65: Enable DMAs Ryan.Wanner
2025-02-18 8:45 ` [PATCH 0/8] Add System Components for Microchip SAMA7D65 SoC Claudiu Beznea
2025-02-19 0:42 ` Rob Herring (Arm)
2025-02-25 16:33 ` Claudiu Beznea
2025-02-27 12:07 ` (subset) " Vinod Koul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84b4a7ec0025741bc3ab647671fd4e880b2ed1d5.1739555984.git.Ryan.Wanner@microchip.com \
--to=ryan.wanner@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.org \
--cc=vkoul@kernel.org \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox