Hello,
I was trying to play with SPI overlay but without success. *I had it 
working on 3.8 kernel but with 4.1 it fails.*
Device is created in */dev* but no real communication on board. 

It does not work with mine dtbo file or even with precompiled one 
(BB-SPIDEV0).

*dmesg *reports no errors:

> [   89.102860] bone_capemgr bone_capemgr: part_number 'BB-SPIDEV0', 
>> version 'N/A'
>
> [   89.102911] bone_capemgr bone_capemgr: slot #4: override
>
> [   89.102938] bone_capemgr bone_capemgr: Using override eeprom data at 
>> slot 4
>
> [   89.102966] bone_capemgr bone_capemgr: slot #4: 'Override Board 
>> Name,00A0,Override Manuf,BB-SPIDEV0'
>
> [   89.124965] bone_capemgr bone_capemgr: slot #4: dtbo 
>> 'BB-SPIDEV0-00A0.dtbo' loaded; overlay id #0
>
>
>
*kernel*: *Linux beaglebone 4.1.15-ti-rt-r43 #1 SMP PREEMPT RT Thu Jan 21 
20:13:58 UTC 2016*
*image*: *bone-debian-8.3-lxqt-4gb-armhf-2016-01-24-4gb.img*
*dtc*: *Version: DTC 1.4.1-g1e75ebc9*

Mine edited dts file i was trying it with:

/dts-v1/;
>
/plugin/;


> / {

compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";


> /* identification */

part-number = "BB-SPIDEV0";

version = "00A0";


> /* state the resources this cape uses */

exclusive-use =

/* the pin header uses */

"P9.17", /* spi0_cs0 */

"P9.18", /* spi0_d1 */

"P9.21", /* spi0_d0 */

"P9.22", /* spi0_sclk */

/* the hardware ip uses */

"spi0";


> fragment@0 {

target = <&am33xx_pinmux>;

__overlay__ {

/* default state has all gpios released and mode set to uart1 */

bb_spi0_pins: pinmux_bb_spi0_pins {

pinctrl-single,pins = <

0x150 0x30 /* spi0_sclk.spi0_sclk, INPUT_PULLUP | MODE0 */

0x154 0x10 /* spi0_d0.spi0_d0, INPUT_PULLUP | MODE0 */

0x158 0x30 /* spi0_d1.spi0_d1, OUTPUT_PULLUP | MODE0 */

0x15c 0x10 /* spi0_cs0.spi0_cs0, OUTPUT_PULLUP | MODE0 */

>;

};

};

};


> fragment@1 {

target = <&spi0>;

__overlay__ {

#address-cells = <1>;

#size-cells = <0>;


> status = "okay";

pinctrl-names = "default";

pinctrl-0 = <&bb_spi0_pins>;

ti,pio-mode; /* disable dma when used as an overlay, dma gets stuck at 160 
> bits... */

                        ti,pindir-d0-out-d1-in = <1>;

channel@0 {

#address-cells = <1>;

#size-cells = <0>;


> compatible = "spidev";


> reg = <0>;

spi-max-frequency = <16000000>;

spi-cpha;

};


> channel@1 {

#address-cells = <1>;

#size-cells = <0>;


> compatible = "spidev";


> reg = <1>;

spi-max-frequency = <16000000>;

};

};

};

};

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to