Skip to content

Commit 6437f9e

Browse files
tuna-f1shkartben
authored andcommitted
boards: sam: sam_v71_xult add hsmci for sdhc
Based on 4.3.6 https://ww1.microchip.com/downloads/en/devicedoc/atmel-42408-samv71-xplained-ultra_user-guide.pdf Signed-off-by: John Whittington <git@jbrengineering.co.uk>
1 parent 957e634 commit 6437f9e

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

boards/atmel/sam/sam_v71_xult/sam_v71_xult-common.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
sw0 = &sw0_user_button;
2222
sw1 = &sw1_user_button;
2323
watchdog0 = &wdt;
24+
sdhc0 = &hsmci;
2425
};
2526

2627
chosen {
@@ -341,6 +342,20 @@ zephyr_udc0: &usbhs {
341342
status = "okay";
342343
};
343344

345+
&hsmci {
346+
status = "okay";
347+
348+
pinctrl-names = "default";
349+
pinctrl-0 = <&hsmci_default>;
350+
cd-gpios = <&piod 18 GPIO_ACTIVE_LOW>;
351+
352+
mmc {
353+
compatible = "zephyr,sdmmc-disk";
354+
disk-name = "SD";
355+
status = "okay";
356+
};
357+
};
358+
344359
ext1_spi: &spi0 {
345360
};
346361

boards/atmel/sam/sam_v71_xult/sam_v71_xult-pinctrl.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,15 @@
153153
<PD19B_USART2_CTS>;
154154
};
155155
};
156+
157+
hsmci_default: hsmci_default {
158+
group1 {
159+
pinmux = <PA28C_HSMCI_MCCDA>,
160+
<PA25D_HSMCI_MCCK>,
161+
<PA30C_HSMCI_MCDA0>,
162+
<PA31C_HSMCI_MCDA1>,
163+
<PA26C_HSMCI_MCDA2>,
164+
<PA27C_HSMCI_MCDA3>;
165+
};
166+
};
156167
};

boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ supported:
2222
- pwm
2323
- netif:eth
2424
- rtc
25+
- sdhc
2526
- spi
2627
- usb_device
2728
- watchdog

boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ supported:
2222
- pwm
2323
- netif:eth
2424
- rtc
25+
- sdhc
2526
- spi
2627
- usb_device
2728
- watchdog

0 commit comments

Comments
 (0)