boards: sam4_xpro: add HSMCI support

Adds support for the HSMCI peripheral enabling SD card access
on the SAM4E eXplained pro board

Signed-off-by: Vincent van Beveren <v.van.beveren@nikhef.nl>
This commit is contained in:
Vincent van Beveren 2023-05-24 13:53:58 +02:00 committed by Maureen Helm
commit 96beb5c870
3 changed files with 25 additions and 0 deletions

View file

@ -94,4 +94,16 @@
<PD24A_PWM_PWML0>;
};
};
hsmci_default: hsmci_default {
group1 {
pinmux = <PA28C_HSMCI_MCCDA>,
<PA29C_HSMCI_MCCK>,
<PA30C_HSMCI_MCDA0>,
<PA31C_HSMCI_MCDA1>,
<PA26C_HSMCI_MCDA2>,
<PA27C_HSMCI_MCDA3>;
};
};
};

View file

@ -21,6 +21,7 @@
sw0 = &user_button;
wdog = &wdt;
watchdog0 = &wdt;
sdhc0 = &hsmci;
};
chosen {
@ -211,6 +212,17 @@
pinctrl-names = "default";
};
&hsmci {
status = "okay";
pinctrl-0 = <&hsmci_default>;
pinctrl-names = "default";
mmc {
compatible = "zephyr,sdmmc-disk";
status = "okay";
};
};
&wdt {
status = "okay";
};

View file

@ -10,6 +10,7 @@ supported:
- netif:eth
- gpio
- spi
- sdhc
- watchdog
- xpro_gpio
- xpro_i2c