AM3352-SPI How enable SPI0?

Started by 1kvi1, October 05, 2015, 05:33:20 AM

Previous topic - Next topic

1kvi1

Hi!

I try to use AM3352-SOM in my project. For building kernel, u-boot and sd image I use this link https://www.olimex.com/wiki/Building_Debian_AM3352_SOM
Also I need to use SPI0 for communication with external mcu. I try to find information about adding SPI0 and found only this link
https://groups.google.com/forum/#!topic/beagleboard/_qhb4wumgpU.

But i still cannot add SPI0 to my system.
Can anyone give ready device tree file or link for workable way?

toto255

I have the same problem

when you decompile the dtb

spi@48030000 {
compatible = "ti,omap4-mcspi";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x48030000 0x400>;
interrupts = <0x41>;
ti,spi-num-cs = <0x2>;
ti,hwmods = "spi0";
clocks = <0xf>;
clock-names = "fck";
dmas = <0x15 0x10 0x15 0x11 0x15 0x12 0x15 0x13>;
dma-names = "tx0", "rx0", "tx1", "rx1";
status = "disabled";
};

spi@481a0000 {
compatible = "ti,omap4-mcspi";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x481a0000 0x400>;
interrupts = <0x7d>;
ti,spi-num-cs = <0x2>;
ti,hwmods = "spi1";
clocks = <0xf>;
clock-names = "fck";
dmas = <0x15 0x2a 0x15 0x2b 0x15 0x2c 0x15 0x2d>;
dma-names = "tx0", "rx0", "tx1", "rx1";
status = "disabled";
};

toto255

I have modify:

status = "disabled"; ====> status = "okay";