Skip to contentSkip to conversation

pinctrl: at91-pio4: Add sama7d65 pio4 support

PATCH In review [email protected] 2 participants 2 messages Jan 5 – Jan 7

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 pinctrl: at91-pio4: Add sama7d65 pio4 support

From: Ryan Wanner <[email protected]>

Add sama7d65 compatibility string.

Sama7d65 does not have a full last bank of PIO lines similar to the Sama7g54 SoC. Sama7d65 only has 14 lines on the last PIO bank not the full 32; adjusting the SoC attributes accordingly.

---
Hi,

dt-bindings already up-to-date with this new compatible string by:
https://lore.kernel.org/821255840c09d8d9cebbb1f2daaedd8a7c138875.1736522006.git.Ryan.Wanner@microchip.com
(even if still .txt)

Regards,
Nicolas

 drivers/pinctrl/pinctrl-at91-pio4.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/pinctrl/pinctrl-at91-pio4.c +9 -0
index ec5351fc282e..41cbb46ac589 100644
@@ -1053,6 +1053,12 @@ static const struct atmel_pioctrl_data atmel_sama5d2_pioctrl_data = {
 	.last_bank_count	= ATMEL_PIO_NPINS_PER_BANK,
 };
 
+static const struct atmel_pioctrl_data microchip_sama7d65_pioctrl_data = {
+	.nbanks			= 5,
+	.last_bank_count	= 14, /* sama7d65 has only PE0 to PE13 */
+	.slew_rate_support	= 1,
+};
+
 static const struct atmel_pioctrl_data microchip_sama7g5_pioctrl_data = {
 	.nbanks			= 5,
 	.last_bank_count	= 8, /* sama7g5 has only PE0 to PE7 */
@@ -1063,6 +1069,9 @@ static const struct of_device_id atmel_pctrl_of_match[] = {
 	{
 		.compatible = "atmel,sama5d2-pinctrl",
 		.data = &atmel_sama5d2_pioctrl_data,
+	}, {
+		.compatible = "microchip,sama7d65-pinctrl",
+		.data = &microchip_sama7d65_pioctrl_data,
 	}, {
 		.compatible = "microchip,sama7g5-pinctrl",
 		.data = &microchip_sama7g5_pioctrl_data,
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 10 lines · On Mon, Jan 5, 2026 at 11:00 AM <[email protected]> wrote:

From: Ryan Wanner <[email protected]>

Add sama7d65 compatibility string.

Sama7d65 does not have a full last bank of PIO lines similar to the Sama7g54 SoC. Sama7d65 only has 14 lines on the last PIO bank not the full 32; adjusting the SoC attributes accordingly.

Patch applied for Linux v7.0!

Yours,
Linus Walleij