[Bug 233489] SPI on the Raspberry Pi 3 is not working

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 25 02:31:11 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233489

            Bug ID: 233489
           Summary: SPI on the Raspberry Pi 3 is not working
           Product: Base System
           Version: CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: arm
          Assignee: freebsd-arm at FreeBSD.org
          Reporter: vince.bsd at hightek.org

Created attachment 199531
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199531&action=edit
device tree

Hi.

We are trying to gain userland access to SPI on the raspberry PI 3 on FreeBSD
12 and FreeBSD 13.0-CURRENT.

When we load the spigen.ko kernel module, it successfully loads but no spigen
devices appear in /dev.

There is a dtb file in the rpi boot partition, bcm2710-rpi-3-b.dtb, and we
confirmed it is being loaded.  SPI is enabled in config.txt with the line,

"dtparam=audio=on,i2c_arm=on,spi=on".

sysctl output shows 

dev.gpio.0.pin.11.function: alt0
dev.gpio.0.pin.10.function: alt0
dev.gpio.0.pin.9.function: alt0

alt0 is correct for SPI according to the Broadcom manual.

Yet no /dev/spigen0.n appear with the spigen.ko module loaded.

To confirm, we set spi=off in config.txt, for testing, and rebooted and those
three pins changed to

dev.gpio.0.pin.11.function: input
dev.gpio.0.pin.10.function: input
dev.gpio.0.pin.9.function: input

I have attached the device tree with SPI enabled as output by

    "ofwdump -a".

We also tested with the latest snapshot for FreeBSD 13 as of 11/20/2018.

BTW, i2c seems to work fine except that setting the speed via sysctl does not
work.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list