Welcome, Guest

Author Topic: AM3352-SPI How enable SPI0?  (Read 1470 times)

1kvi1

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
AM3352-SPI How enable SPI0?
« on: October 05, 2015, 05:33:20 AM »
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

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AM3352-SPI How enable SPI0?
« Reply #1 on: June 20, 2018, 09:38:59 PM »
I have the same problem

when you decompile the dtb

Code: [Select]
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";
};