Discussion:
[fedora-arm] activation of SPI on fedora26 with a raspberry3
christophe pages
2017-09-16 12:33:20 UTC
Permalink
Hello,
I try to activate the spi on my raspberry3 using a fedora 26.
I tried these options:
device_tree_param=spi=on
dtoverlay=spi-bcm2708

I use this kernel:
4.12.5-300.fc26.armv7hl

I see that the support in kernel seems already inside:
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y


But I never see the devices /dev/spi* appearing.
I can't see any messages regarding spi in dmesg.

I tested with a raspbian and I see them correctly.
I think I miss somethiing.
Could you help.
Thanks.
Peter Robinson
2017-09-16 12:57:06 UTC
Permalink
Post by christophe pages
Hello,
I try to activate the spi on my raspberry3 using a fedora 26.
device_tree_param=spi=on
dtoverlay=spi-bcm2708
Did you add that to config.txt? That way of doing it is specific to
Rasspian, the driver in Fedora is the upstream driver which is
spi-bcm2835aux and you'll need to either edit the dtb to enable it or
use a DT overlay as it's disabled by default.
Post by christophe pages
4.12.5-300.fc26.armv7hl
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
But I never see the devices /dev/spi* appearing.
I can't see any messages regarding spi in dmesg.
I tested with a raspbian and I see them correctly.
I think I miss somethiing.
Could you help.
Thanks.
_______________________________________________
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an em
christophe pages
2017-09-16 20:53:39 UTC
Permalink
Thanks for your answer, Yes I added these 2 lines in the config.txt file
like for the raspbain .
So What do I have to do with the dtb files. I see nothing regarding the
spi.
Do I still have to use the config.txt file ?
Thanks for your help.
Post by Peter Robinson
Post by christophe pages
Hello,
I try to activate the spi on my raspberry3 using a fedora 26.
device_tree_param=spi=on
dtoverlay=spi-bcm2708
Did you add that to config.txt? That way of doing it is specific to
Rasspian, the driver in Fedora is the upstream driver which is
spi-bcm2835aux and you'll need to either edit the dtb to enable it or
use a DT overlay as it's disabled by default.
Post by christophe pages
4.12.5-300.fc26.armv7hl
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
But I never see the devices /dev/spi* appearing.
I can't see any messages regarding spi in dmesg.
I tested with a raspbian and I see them correctly.
I think I miss somethiing.
Could you help.
Thanks.
_______________________________________________
christophe pages
2017-09-18 12:30:49 UTC
Permalink
Hello,
I applied these commands:
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
/soc/***@7e204000 status "okay"

fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
/soc/***@7e215080 status "okay"
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
/soc/***@7e2150c0 status "okay"

And now I see spi_bcm2835 and spi_bcm2835aux modules started, after the
reboot. But I can't see my /dev/spi* devices.

Do you have an idea of the missing step?

[***@raspchr-fed26 device-tree]# dmesg | grep spi
[ 93.646629] spi-bcm2835 3f204000.spi: no tx-dma configuration found -
not using dma mode
[***@raspchr-fed26 device-tree]#

I still see other devices:
./soc/***@7e200000/spi0_gpio35
./soc/***@7e200000/spi0_gpio7
./soc/***@7e200000/spi1_gpio16
./soc/***@7e200000/spi2_gpio40

Do I need to activate them ?

Thanks for your help.
Christophe.
Post by christophe pages
Thanks for your answer, Yes I added these 2 lines in the config.txt file
like for the raspbain .
So What do I have to do with the dtb files. I see nothing regarding the
spi.
Do I still have to use the config.txt file ?
Thanks for your help.
Post by Peter Robinson
Post by christophe pages
Hello,
I try to activate the spi on my raspberry3 using a fedora 26.
device_tree_param=spi=on
dtoverlay=spi-bcm2708
Did you add that to config.txt? That way of doing it is specific to
Rasspian, the driver in Fedora is the upstream driver which is
spi-bcm2835aux and you'll need to either edit the dtb to enable it or
use a DT overlay as it's disabled by default.
Post by christophe pages
4.12.5-300.fc26.armv7hl
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
But I never see the devices /dev/spi* appearing.
I can't see any messages regarding spi in dmesg.
I tested with a raspbian and I see them correctly.
I think I miss somethiing.
Could you help.
Thanks.
_______________________________________________
Reflective Surface
2017-12-27 02:46:46 UTC
Permalink
Hello Christophe,

Were you able to get spi working?
I followed the same steps as listed in this thread and got the same error
message in dmesg.
Post by christophe pages
Hello,
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
And now I see spi_bcm2835 and spi_bcm2835aux modules started, after the
reboot. But I can't see my /dev/spi* devices.
Do you have an idea of the missing step?
[ 93.646629] spi-bcm2835 3f204000.spi: no tx-dma configuration found -
not using dma mode
Do I need to activate them ?
Thanks for your help.
Christophe.
Post by christophe pages
Thanks for your answer, Yes I added these 2 lines in the config.txt file
like for the raspbain .
So What do I have to do with the dtb files. I see nothing regarding the
spi.
Do I still have to use the config.txt file ?
Thanks for your help.
Post by Peter Robinson
Post by christophe pages
Hello,
I try to activate the spi on my raspberry3 using a fedora 26.
device_tree_param=spi=on
dtoverlay=spi-bcm2708
Did you add that to config.txt? That way of doing it is specific to
Rasspian, the driver in Fedora is the upstream driver which is
spi-bcm2835aux and you'll need to either edit the dtb to enable it or
use a DT overlay as it's disabled by default.
Post by christophe pages
4.12.5-300.fc26.armv7hl
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
But I never see the devices /dev/spi* appearing.
I can't see any messages regarding spi in dmesg.
I tested with a raspbian and I see them correctly.
I think I miss somethiing.
Could you help.
Thanks.
_______________________________________________
_______________________________________________
christophe pages
2017-12-28 16:32:23 UTC
Permalink
Hello,
Sorry I have the spi level enable but I am never able to activate the
spidev.
If you have a solution I am veru interested.
Best regards.
Christophe.
Post by Reflective Surface
Hello Christophe,
Were you able to get spi working?
I followed the same steps as listed in this thread and got the same error
message in dmesg.
Post by christophe pages
Hello,
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
fdtput --type s /boot/dtb-4.12.13-300.fc26.armv7hl/bcm2837-rpi-3-b.dtb
And now I see spi_bcm2835 and spi_bcm2835aux modules started, after the
reboot. But I can't see my /dev/spi* devices.
Do you have an idea of the missing step?
[ 93.646629] spi-bcm2835 3f204000.spi: no tx-dma configuration found -
not using dma mode
Do I need to activate them ?
Thanks for your help.
Christophe.
Post by christophe pages
Thanks for your answer, Yes I added these 2 lines in the config.txt file
like for the raspbain .
So What do I have to do with the dtb files. I see nothing regarding the
spi.
Do I still have to use the config.txt file ?
Thanks for your help.
On Sat, Sep 16, 2017 at 1:33 PM, christophe pages <
Post by christophe pages
Hello,
I try to activate the spi on my raspberry3 using a fedora 26.
device_tree_param=spi=on
dtoverlay=spi-bcm2708
Did you add that to config.txt? That way of doing it is specific to
Rasspian, the driver in Fedora is the upstream driver which is
spi-bcm2835aux and you'll need to either edit the dtb to enable it or
use a DT overlay as it's disabled by default.
Post by christophe pages
4.12.5-300.fc26.armv7hl
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
But I never see the devices /dev/spi* appearing.
I can't see any messages regarding spi in dmesg.
I tested with a raspbian and I see them correctly.
I think I miss somethiing.
Could you help.
Thanks.
_______________________________________________
_______________________________________________
Loading...