Page 1 of 1

SPI1 as GPIO?

Posted: Tue Jul 26, 2016 12:40 pm
by smilykoch
Hi guys.

Are there any way to disable SPI1, in order to use the GPIO pins as regular GPIOs, without also disabling SPI0 (SPI Flash)?

Best Regards,

Re: SPI1 as GPIO?

Posted: Tue Jul 26, 2016 11:45 pm
by Vonger
change it in VOCORE.dts, move the pinmux to gpio group, it will work as GPIO.

Re: SPI1 as GPIO?

Posted: Wed Jul 27, 2016 8:15 am
by smilykoch
Sorry but could you be more specific? I can't seem to make it work without disabling the spi flash aswell :/

Re: SPI1 as GPIO?

Posted: Wed Jul 27, 2016 9:19 am
by Vonger
./target/linux/ramips/dts/VOCORE.dtsi

ralink,group = "jtag", "uartf", "led";
ralink,function = "gpio";
change line to:
ralink,group = "jtag", "uartf", "led", "spi cs1";
ralink,function = "gpio";

Re: SPI1 as GPIO?

Posted: Wed Jul 27, 2016 9:35 am
by smilykoch
Ohh.. Is it supposed to be "spi cs1" ? And not "spi_cs1"?

I have not tried with space, but the one with underscore is found as a pinmux group, but the GPIOs are still not free for use?