boards: atmel: samx7x add hsmci peripheral

Adds samx7x hsmci peripheral according to datasheet sections 10-1 and 14.1: https://ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/DataSheets/SAM-E70-S70-V70-V71-Family-Data-Sheet-DS60001527.pdf

Updates sam_e70_xplained overlay to include pin mapping to the SD card
connected to the hsmci and adds sdhc0 alias.

Signed-off-by: John Whittington <git@jbrengineering.co.uk>
This commit is contained in:
John Whittington 2025-05-20 15:04:03 +02:00 committed by Benjamin Cabé
commit 957e6341d3
5 changed files with 35 additions and 0 deletions

View file

@ -17,6 +17,7 @@
led0 = &green_led;
sw0 = &sw0_user_button;
watchdog0 = &wdt;
sdhc0 = &hsmci;
};
chosen {
@ -238,3 +239,17 @@ zephyr_udc0: &usbhs {
pinctrl-names = "default";
};
};
&hsmci {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&hsmci_default>;
cd-gpios = <&pioc 16 GPIO_ACTIVE_LOW>;
mmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};

View file

@ -182,4 +182,15 @@
<PD17B_USART2_SCK>;
};
};
hsmci_default: hsmci_default {
group1 {
pinmux = <PA28C_HSMCI_MCCDA>,
<PA25D_HSMCI_MCCK>,
<PA30C_HSMCI_MCDA0>,
<PA31C_HSMCI_MCDA1>,
<PA26C_HSMCI_MCDA2>,
<PA27C_HSMCI_MCDA3>;
};
};
};

View file

@ -18,6 +18,7 @@ supported:
- i2s
- pwm
- netif:eth
- sdhc
- spi
- usb_device
- watchdog

View file

@ -18,6 +18,7 @@ supported:
- i2s
- pwm
- netif:eth
- sdhc
- spi
- usb_device
- watchdog

View file

@ -46,6 +46,13 @@
};
soc {
hsmci: hsmci@40000000 {
compatible = "atmel,sam-hsmci";
reg = <0x40000000 0x4000>;
clocks = <&pmc PMC_TYPE_PERIPHERAL 18>;
status = "disabled";
};
ssc: ssc@40004000 {
compatible = "atmel,sam-ssc";
reg = <0x40004000 0x4000>;