Answer the question
In order to leave comments, you need to log in
How to make SD work in mmc-spi mode on Altera NIOS2 processor running Linux?
Hello.
I have a NIOS2 software processor running Linux with kernel 4.9.76. An SD card is connected to the processor via the Altera spi (3-wire) IP core. The kernel has support for Altera SPI Controller and MMC/SD over SPI.
A section describing the connection has been added to the dts file:
SDcard: [email protected] {
#address-cells = <1>;
#size-cells = <0>;
compatible = "altr,spi-18.0", "altr,spi-1.0";
reg = <0x00000000 0x00000020>;
interrupt-parent = <&nios2_gen2_0>;
interrupts = <3>;
[email protected] {
compatible = "mmc-spi-slot";
spi-max-frequency = <10000000>;
reg=<0x00000000>;
voltage-ranges = <3300 3300>;
status="okay";
}; //end [email protected]
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question