Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2013 23:00:11 +0100
From:      fabiodive <fabiodive@gmail.com>
To:        Luiz Otavio O Souza <lists.br@gmail.com>
Cc:        "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>
Subject:   SPI device on Raspberry PI
Message-ID:  <935B7003-F750-42E7-9100-C27028B6A111@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello Luiz,

I was able to use your patches on Raspberry PI,
I builded an image with crochet and this is my dmesg output:


root@:/usr/ports # dmesg
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
       The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-ALPHA2 #0 r255620M: Tue Sep 17 02:45:12 UTC 2013
   =
seaman@bluehouse:/tank/projects/boreview_freebsd/crochet-freebsd/work/obj/=
arm.armv6/tank/projects/boreview_freebsd/head/sys/RPI-B arm
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
module_register: module iichb/iicbus already exists!
Module iichb/iicbus failed to register: 17
CPU: ARM1176JZ-S rev 7 (ARM11J core)
Supported features: ARM_ISA THUMB2 JAZELLE ARMv4 Security_Ext
WB enabled LABT branch prediction enabled
 16KB/32B 4-way instruction cache
 16KB/32B 4-way write-back-locking-C data cache
real memory  =3D 536870912 (512 MB)
avail memory =3D 484188160 (461 MB)
kbd0 at kbdmux0
random: <Software, Yarrow> initialized
simplebus0: <Flattened device tree simple bus> mem 0x20000000-0x20ffffff =
on fdtbus0
intc0: <BCM2835 Interrupt Controller> mem 0x2000b200-0x2000b3ff on =
simplebus0
systimer0: <BCM2835 System Timer> mem 0x20003000-0x20003fff irq =
8,9,10,11 on simplebus0
Event timer "BCM2835 Event Timer 3" frequency 1000000 Hz quality 1000
Timecounter "BCM2835 Timecounter" frequency 1000000 Hz quality 1000
bcmwd0: <BCM2708/2835 Watchdog> mem 0x2010001c-0x20100027 on simplebus0
gpio0: <BCM2708/2835 GPIO controller> mem 0x20200000-0x202000af irq =
57,59,58,60 on simplebus0
gpio0: read-only pins: 46,47,48,49,50,51,52,53.
gpio0: reserved pins: 48,49,50,51,52,53.
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
iichb0: <BCM2708/2835 BSC controller> mem 0x20205000-0x2020501f irq 61 =
on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
iichb1: <BCM2708/2835 BSC controller> mem 0x20804000-0x2080401f irq 61 =
on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
spi0: <BCM2708/2835 SPI controller> mem 0x20204000-0x2020401f irq 62 on =
simplebus0
spibus0: <OFW SPI bus> on spi0
miibus0: <MII bus> on smsc0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ue0: <USB Ethernet> on smsc0


and this is /dev

root@:/usr/ports # ls /dev
bpf             cuau0.lock      iic0            log             nfslock  =
       stderr          ttyv0           ttyv7           ttyve           =
uhid0
bpf0            devctl          iic1            mdctl           null     =
       stdin           ttyv1           ttyv8           ttyvf           =
ukbd0
console         devstat         kbd0            mem             openfirm =
       stdout          ttyv2           ttyv9           ufssuspend      =
urandom
consolectl      fd              kbd1            mmcsd0          ptmx     =
       sysmouse        ttyv3           ttyva           ugen0.1         =
usb
ctty            fido            kbdmux0         mmcsd0s1        pts      =
       ttyu0           ttyv4           ttyvb           ugen0.2         =
usbctl
cuau0           geom.ctl        klog            mmcsd0s2        random   =
       ttyu0.init      ttyv5           ttyvc           ugen0.3         =
xpt0
cuau0.init      gpioc0          kmem            mmcsd0s2a       snp      =
       ttyu0.lock      ttyv6           ttyvd           ugen0.4         =
zero
root@:/usr/ports #=20


Now.. I see the GPIO device and iic as well but what about SPI?
Should I create the device or just use GPIO?
Any ideas?

Thank you
Fabio=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?935B7003-F750-42E7-9100-C27028B6A111>