OpenWrt Forum Archive

Topic: SD card detection error - RT5350 chipset- CC 15.05.1

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I install the package luci-app-mmc-over-gpio
I get web interface that allows me to select the pins for DI,DO,CLK,CS.

I have connected SD card with 4 free gpios (GPIO#7,#9,#11,#13) of RT5350 chipset.
DI=7, DO=9, CLK=13, CS=11.

These GPIOs are of UARTF port. They are DTR_N,RTS_N,DSR_N,CTS_N.
UARTF is in GPIO mode as I dumped the register GPIOMODE (0x1000_0060). It is defined as gpio in .dts file as below:

pinctrl {
        state_default: pinctrl0 {
            gpio {
                ralink,group = "i2c", "jtag", "uartf";
                ralink,function = "gpio";
            };
        };
    };

Currently, getting the below error in dmesg:

gpiommc gpiommc.0: no of_node; not parsing pinctrl DT
gpio-mmc: Failed to request mmc_spi module.
spi-gpio spi-gpio.0: no of_node; not parsing pinctrl DT
rt2880-pinmux pinctrl: request pin 13 (io13) for pio:13
spi-gpio: probe of spi-gpio.0 failed with error -16
gpio-mmc: MMC-Card "default1" attached to GPIO pins di=7, do=9, clk=13, cs=11

Any clues about this error?

Thanks,

(Last edited by pradeepsysargus on 27 Sep 2016, 06:32)

When the jtag pins are used as gpio, we are able to rectify the error and detect the SD card.

Thxs,

The discussion might have continued from here.