Skip to content

boards: atmel: samx7x add hsmci peripheral #90220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2025

Conversation

tuna-f1sh
Copy link
Contributor

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.

Relevant #18614

@github-actions github-actions bot added the platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) label May 20, 2025
@nandojve
Copy link
Member

BTW, how are you testing this ?

@tuna-f1sh
Copy link
Contributor Author

Good question. I have a SAMV71 Xplained Ultra I've been building for so same family. I actually noticed I didn't change the board for that so have added a commit.

In terms of testing I tested basic build and disk access with the sam_v71_xult/samv71q21 which works. The fs_sample fails however mounting. Reading through #58233 it looks like this is known so perhaps there is more work to this PR to get mounting working on samx7x?

*** Booting Zephyr OS build v4.1.0-2-gf3c3d5c8e066 ***
[00:00:01.027,000] <inf> main: Block count 62333952
Sector size 512
Memory Size(MB) 30436
[00:00:13.722,000] <err> fs: fs mount error (-19)
Error mounting disk.
[00:00:13.722,000] <err> fs: fs not mounted (mp == 0x20400000)

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>
Copy link

Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tuna-f1sh ,

In terms of testing I tested basic build and disk access with the sam_v71_xult/samv71q21 which works.

I think for the purpose of this PR the above is fine!
Thank you for bring the samv_71_xult too : )

Enjoy!

@tuna-f1sh
Copy link
Contributor Author

Cool thanks. I agree and the mount issue might actually be my hardware since basic disk io seems to work.

The SD holder part is obsolete so I have a janky setup using an adaptor and wires 🫣. The wires could be creating issues at the hsmci speed.

image

@kartben kartben merged commit 6437f9e into zephyrproject-rtos:main May 26, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants