I'm trying to use MicroSD on a custom carrier board

Share the full dmesg, dts and which software release you are using.

1 Like

Hello,

I am attaching the full dmesg.
dmesg4.txt (124.6 KB)

Is dts referring to the dtsi I modified?
What do you mean by software release?
Are you talking about the L4T version?

Thank you.

Is dts referring to the dtsi I modified?

Use dtc tool to convert the dtb back to dts. You will see a single file that contains all the device tree. Unlike the source code, which includes lots of dtsi files.

Are you talking about the L4T version?

Yes

1 Like

Hello,

dts is attached.
tegra210-p3448-0002-p3449-0000-b00.dts (326.9 KB)

L4T version :
cat /etc/nv_tegra_release

R32 (release), REVISION: 5.1, GCID: 26202423, BOARD: t210ref, EABI: aarch64, DATE: Fri Feb 19 16:45:52 UTC 2021

Thank you.

add cd-gpios and assign the gpio which matches your hardware design.

1 Like

This topic is totally same as your case. Just read it first.

1 Like

Hello, @WayneWWW @emreanilterzioglu

How can I add cd-gpios ?
adding it from the dtsi file?

Thank you.

Yes, adding it to the dts.

1 Like

Hello,

I have multiple dtsi files, can you specify which file to add?

Thank you.

Do you understand the rule of how device tree works?

1 Like

Hello,

I don’t know much right now, but I can follow along as I learn.

I only know the term open platform.

Can you briefly explain how to add it?

Thank you.

Hello,

I don’t quite understand the article below, where you pointed out that this is a similar case to mine.

Thank you.

Ok, then maybe this thread is shorter so that you can understand it easily.

This guy is also doing the debug. Maybe you can refer to it first so that I don’t need to write the same thing twice.

1 Like

Thank you 👍

Hello,

After adding cd-gpios and building dtb as shown in the first picture below, even if applied to nano, dmesg output is displayed as in the second picture below.

Which part should I check?

I am attaching dts made with dtc.
tegra210-p3448-0002-p3449-0000-b00.dts (327.0 KB)

I am attaching a full dmesg log.
dmesg_result.txt (63.9 KB)

I found the following in dmesg:

Thank you.

Hello

First of all, without using dtsi.
Is it possible to test the SD card by using the command to temporarily change gpio08(FAN_TACH) to SDMMC to make GPIO08 operate as SDMMC?

Can you please tell me how to do it?

Thank you.

Hello, @Trumany

Can you tell me how to set GPIO08 to SDMMC3_CD?

Thank you.

Is it possible to test the SD card by using the command to temporarily change gpio08(FAN_TACH) to SDMMC to make GPIO08 operate as SDMMC?

NOT POSSIBLE. It is time for you to learn how to develop such thing. If you don’t know how to use device tree, why not just start from building the original dts and flash it to board first?

1 Like

Hello,

Is it correct to configure pinmux using a spreadsheet as follows?
If yes, can you tell me how to set it to SDMMC3_CD here?

Thank you.

You are just asking the same question as this post doing. Thus, you can just check my answer in this comment.

1 Like