Hi everyone,
I would need to use the SDIO peripheral on the pins listed below to drive the ESP32 module:
I'm using a Yocto Dunfell system and in the device tree I set the device like this:
&sdhi1 { pinctrl-0 = <&sdhi1_pins>; pinctrl-names = "default"; no-1-8-v; broken-cd; vmmc-supply = <®_3p3v>; bus-width = <4>; status = "okay";};
where sdhi1_pins are:
sdhi1_pins: sd1 { sd1_data { pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; power-source = <3300>; };
sd1_ctrl { pins = "SD1_CLK", "SD1_CMD"; power-source = <3300>; };
sd1_mux { pinmux = <RZG2L_PORT_PINMUX(19, 0, 1)>; /* SD1_CD */ }; };
but when I launch the system I don't see the SDIO device in /dev/, I thought I could do a test with the command echo "test" > SDIO1 and see if anything came out on the SDIO data line. Is this feasible?
Thank you.
Hi Andedo,Do you have the RZ/G2L EVK or a custom board?The RZ/G2L EVK use that pins for the SD card. You need to set the DIP switches accordingly to enable these pins.Do you use the eMMC for booting?Can you see any messages in the dmesg for sdhi?Kind Regards.
I have a custom board.
Yes, I use eMMC or USB for booting.
If I find messages for dsh1 do you mean during boot?
Hi Andedo,Yes, if you execute dmesg | grep sdhi can you see any messages?Kind Regards.
Hi,
during the boot process I found this only two rows where I can find sdhi:
HI Andedo,Did you compile/copy the ESP32 SDIO driver into the board?Have you probed with a scope to see any data?Kind Regards.
no, I didn't insert the drivers for the ESP32, I first wanted to see if the SDIO device worked. Can you tell me how to insert the drivers and where I can find them and how to then test the device?